• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Problem with catalina.sh

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 28713
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic