[opencms-dev] Using the cmsshell.sh utility

Stephan Hartmann beffe at beffe.de
Tue Mar 15 21:33:24 CET 2005


You could try to add the following option to the java command in the script:
java -Xmx512M ...
which adjusts the maximum heap size to the given value (the default for is
64M).

Regards,
Stephan



----- Original Message -----
From: "Daniel Rhoden" <drhoden at iiwinc.com>
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Sent: Tuesday, March 15, 2005 9:14 PM
Subject: Re: [opencms-dev] Using the cmsshell.sh utility


> Thanks for your help, Stephan.  That seems to have helped.  Now I have
> to overcome this:
>
> sh-2.05b$ ./cmsshell.sh
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> sh-2.05b$
>
>
>
> Stephan Hartmann wrote:
>
> >Hi Daniel,
> >
> >the file is in dos-format (i.e. \r\n as line breaks).
> >You have to convert it with dos2unix to unix format.
> >
> >Maybe you'll also have to adjust the classpath in the file.
> >
> >Regads,
> >Stephan
> >
> >----- Original Message -----
> >From: "Daniel Rhoden" <drhoden at iiwinc.com>
> >To: "The OpenCms mailing list" <opencms-dev at opencms.org>
> >Sent: Tuesday, March 15, 2005 8:34 PM
> >Subject: [opencms-dev] Using the cmsshell.sh utility
> >
> >
> >
> >
> >>Has anyone been able to use the cmsshell.sh utility in Linux for OpenCMS
> >>6 beta 1?
> >>
> >>I am having the following problem when trying to execute the file with
> >>bash (I already did 'chmod a+x cmsshell.sh' ):
> >>
> >>bash-2.05b$ ./cmsshell.sh
> >>: bad interpreter: No such file or directory
> >>bash-2.05b$
> >>
> >>
> >>or, when I do this:
> >>
> >>bash-2.05b$ sh ./cmsshell.sh
> >>: command not found 4:
> >>'/cmsshell.sh: line 6: syntax error near unexpected token `do
> >>'/cmsshell.sh: line 6: `for i in lib/*.jar; do
> >>bash-2.05b$
> >>
> >>Any ideas?
> >>
> >>Here is the script's contents:
> >>
> >>#!/bin/sh
> >># Start script for the OpenCms Shell
> >># Please make sure that "servlet.jar" is found, the path used below was
> >>tested with Tomcat 4.1
> >>
> >>OCMSLIBPATH=""
> >>for i in lib/*.jar; do
> >>   OCMSLIBPATH="$OCMSLIBPATH":"$i"
> >>done
> >>
> >>
> >>
> >>
>
>TOMCATLIB="../../../common/lib/servlet.jar:../../../common/lib/servlet-api.
j
> >ar:../../../common/lib/jsp-api.jar"
> >
> >
> >>java -classpath .:$TOMCATLIB$OCMSLIBPATH:classes
> >>org.opencms.main.CmsShell "$@"
> >>
> >>
> >>_______________________________________________
> >>This mail is send to you from the opencms-dev mailing list
> >>To change your list options, or to unsubscribe from the list, please
visit
> >>http://mail.opencms.org/mailman/listinfo/opencms-dev
> >>
> >>
> >>
> >
> >
> >
> >_______________________________________________
> >This mail is send to you from the opencms-dev mailing list
> >To change your list options, or to unsubscribe from the list, please
visit
> >http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> >
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list