aspose file tools*
The moose likes Tomcat and the fly likes Problem with catalina.sh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with catalina.sh " Watch "Problem with catalina.sh " New topic
Author

Problem with catalina.sh

Asad Salim
Greenhorn

Joined: May 31, 2011
Posts: 13
I m not able to understand from where should I correct JRE_HOME variable and remove "; from the variable

mango-seeker@ubuntu:/usr/local/tomcat6/webapps/jspbook$ /usr/local/tomcat6/bin/catalina.sh run
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun";
Using CLASSPATH: /usr/local/tomcat6/bin/bootstrap.jar
exec: 506: /usr/lib/jvm/java-6-sun";/bin/java: not found

The problem exist only with run paramter.

Due to this , I feel I m not able to excute the below ant script


Output is

mango-seeker@ubuntu:/usr/local/tomcat6/webapps/jspbook$ ant
Buildfile: /usr/local/tomcat6/webapps/jspbook/build.xml

build:
[echo] Starting Build (JSP Book)

tomcatOff:
[echo] Turning Off Tomcat
[exec] /usr/local/tomcat6/webapps/jspbook/../../bin/catalina.sh: 506: /usr/lib/jvm/java-6-sun";/bin/java: not found

compile:
[echo] Compiling Book's Examples

tomcatOn:
[echo] Starting Tomcat(JSP Book)
[echo] Build Finished (JSP Book)

BUILD SUCCESSFUL
Total time: 0 seconds

Although the build is successful , i m confused about the above bold statement.

Any help would be appreciated.

Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

This is really not so much a Tomcat question as an Ant question.

One thing I recommend is that you replace your relative paths with property-relative paths. For example, instead of


make it be like so:


As far as setting JRE_HOME or JAVA_HOME, the best place to do that is usually to create a $CATALINA_BASE/bin/setenv.bat file and put a "SET" statement in it. If Tomcat detects a setenv.bat file (Windows) or a setenv.sh file (Unix/Linux), it will execute whatever is in that file with the idea that you're setting environment variables there.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with catalina.sh