my dog learned polymorphism*
The moose likes Tomcat and the fly likes Configuring Tomcat 5.5.7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Tomcat 5.5.7" Watch "Configuring Tomcat 5.5.7" New topic
Author

Configuring Tomcat 5.5.7

Sermandurai Venkatachalam
Greenhorn

Joined: Jan 19, 2005
Posts: 4
Hi,
I have an application which works fine in Tomcat 4.0.1.
I was using jdk 1.4 and jre 1.4 for running my application.
My application uses an Xerces.jar,j2ee.jar and classes12.jar.

Now I have installed Tomcat 5.5.7 and jre 1.5 to support tomcat.
The step I did to configure is:

1.I have given my application mapping in conf\server.xml i.e. in context node.
<Context path="/project" docBase="d:/project"
debug="0" privileged="true"/>
my folder structure is d:\project\web-inf.
In this folder i have an web.xml which has the entry for my servlet and I have my client side

application in d:\project.
I have placed my 3 jars(Xerces.jar,j2ee.jar and classes12.jar) in d:\project\lib.

2.Setting Environment variable.
CATALINA_HOME = D:\Tomcat 5.5\conf;
JAVA_HOME = C:\Program Files\Java\jre1.5.0_01
TOMCAT_HOME= d:\tomcat 5.5


My question is:
1.Do I have to compile my application using jdk 1.5 as I have only jdk 1.4. Is JDK 1.5 is a

mandatory for Tomcat 5.5?
2.If i compile my application using jre 1.5 it throws a lot of error related to xml document.
Does Tomcat 5.5 support Xerces.jar?
3.In tomcat 4.0, I have given the mapping of all my jar file(i.e.Xerces.jar,j2ee.jar and

classes12.jar) in catalina.bat. Does similar entry has to be given in Tomcat 5.5. If yes please

tell me where I have to?
4.If I start my application I get a NoClassDefFoundError exception.
Feb 1, 2005 1:17:48 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: javax/mail/Address
at com.abc.servlet.InitServlet.setupEmailDispatcher(InitServlet.java:157)
at com.abc.servlet.InitServlet.init(InitServlet.java:36)
at com.abc.xyz.StartupServlet.init(StartupServlet.java:131)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Feb 1, 2005 1:17:48 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /xyz threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet StartupServlet threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1109)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

5. I get a exception related to xml and my application stops at that place.
XMLDocHelper: Name of Parser is : com.sun.org.apache.xerces.internal.jaxp
XMLDocHelper: >>>>>>>>>>>>>>>>>>>>>>>>> WARNING <<<<<<<<<<<<<<<<<<<<<<<<<
XMLDocHelper: Parser does NOT appear to be Xerces and so may or may not work
XMLDocHelper: PARSER CLASS: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
XMLDocHelper: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Please help me out..

Thanking you.
Sermandurai.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring Tomcat 5.5.7