• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

Installing Tomcat

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am required to install Tomcat5.5.7 on a Windows XP machine. First of all which code is better...binary or source? Secondly, is it necessary to install Tomcat in the root directory? Or is it fine in, say, Program Files? I would appreciate any tips on installing Tomcat.

Thanks,

Shweta
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
its better to get binary version , because if you get source code you should make it yourself.
its not reqired to install it in your program files , even its better to organize a directory like e:\dev\apps for all application server which you are going to install , and install tomcat there.
if you need to do administration job then you should get admin application seperatly (its not included in tomcat distro.)
aha i should tell you that tomcat 5.5.7 works with java 5 (1.5.0) and if you are going to run it on java 2 (1.4.2) then you need additional packages.
having an organized dev directory will make your life easier
[ March 19, 2005: Message edited by: Masoud Kalali ]
 
Shweta Pershad
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!

I think I am just going to install Tomcat in my root directory, since I am not required to perform administrative functions. But thanks for the advice.

The important bit of information about Tomcat compatability with Java is highly appreciated. I downloaded the additional package also. Then set the environment variables and path. But I think I may have gone wrong some place. Is it possible to get step-by-step installtion instructions for Tomcat5.5.7 on Windows XP?

Shweta
 
Shweta Pershad
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having trouble installing Tomcat.
I am running j2sdk1.4,2_07 and trying to install Tomcat5.5.7. I have the compatability package unzipped in the same directory as the Tomcat's home directory. After installing, when I ran the command 'catalina run' in Tomcat's \bin this is what I got....


C:\Program Files\jakarta-tomcat-5.5.7\bin>catalina run
Using CATALINA_BASE: .
Using CATALINA_HOME: C:\Program Files\jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: .\temp
Using JAVA_HOME: C:\j2sdk1.4.2_07
Created MBeanServer with ID: 12a54f9:1030b375724:-8000 ERSHADS:1
Apr 3, 2005 11:18:26 PM org.apache.catalina.startup.Embedded initDirs
SEVERE: Cannot find specified temporary folder at .\temp
Apr 3, 2005 11:18:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 3, 2005 11:18:26 PM org.apache.catalina.startup.Embedded initDirs
SEVERE: Cannot find specified temporary folder at .\temp
Apr 3, 2005 11:18:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 3, 2005 11:18:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

C:\Program Files\jakarta-tomcat-5.5.7\bin>



I am unable to figure out the problem and wi;; truely appreciate some help.

Shweta
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't speak from personal knowledge, but I've seen a posting elsewhere that claimed this problem arises from having different locations for CATALINA_BASE and CATALINA_HOME.
 
Karen Baldwin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found another post that claims a different solution:

I believe there is a bug in Confluence 2.9's service.bat file

In Confluence 2.7 line 113 was:

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 128 --JvmMx 256

In Confluence 2.9 line 113 became:

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp -XX:MaxPermSize=128m" --JvmMs 128 --JvmMx 256

This gave me error:

Aug 31, 2008 5:23:28 PM org.apache.catalina.startup.Embedded initDirs
SEVERE: Cannot find specified temporary folder at D:\ConfluenceApplication\confluence-2.9-std\temp -XX:MaxPermSize=128m

Changing the line to:

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp" -XX:MaxPermSize=128m --JvmMs 128 --JvmMx 256

Fixed the issue for me.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic