Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes InvocationTargetException while starting Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "InvocationTargetException while starting Tomcat" Watch "InvocationTargetException while starting Tomcat" New topic
Author

InvocationTargetException while starting Tomcat

Kaju Singh
Greenhorn

Joined: Jul 30, 2001
Posts: 10
Hi,
Can somebody help me with this->i am getting the following error while starting Tomcat 3.3-b1. I didn't have any such problem about a month ago (last time when I started this)
Full stacktrace is as follows:
/home/rajeshk/download/jakarta-tomcat-3.3-b1/bin> startup.sh
Using classpath: ./../lib/tomcat.jar:/home/rajeshk/classes/jconn2.jar:/home/keshab/test:/usr/java1.2/lib/classes.zip:/usr/java1.2/jre/lib/rt.jar:/home/keshab/weblogic/license:/home/keshab/weblogic/ classes:/home/keshab/weblogic/lib/weblogicaux.jar:/home/rajeshk/download/jakarta-tomcat-3.3-b1/lib/common/servlet.jar:.:/usr/java1.2/jre/lib/rt.jar
Using JAVA_HOME: /usr/java1.2
Using TOMCAT_HOME: ./..
/home/rajeshk/download/jakarta-tomcat-3.3-b1/bin> Tomcat: setAttribute home=./..
2001-08-27 10:35:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2001-08-27 10:35:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-examples.xml
2001-08-27 10:35:45 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml
2001-08-27 10:35:45 - AutoWebApp: Already loaded: DEFAULT:/admin
2001-08-27 10:35:45 - AutoWebApp: Already loaded: DEFAULT:/examples
2001-08-27 10:35:45 - AutoWebApp: Already loaded: DEFAULT:/
2001-08-27 10:35:45 - AutoWebApp: Already loaded: DEFAULT:/project
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/examples
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/ROOT
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/project
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/test
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/examples
2001-08-27 10:35:45 - ContextManager: Adding DEFAULT:/admin
2001-08-27 10:35:46 - ApacheConfig: Generating apache mod_jk config = /home/rajeshk/download/jakarta-tomcat-3.3-b1/conf/auto/mod_jk.conf
2001-08-27 10:35:46 - ApacheConfig: mod_jk location: libexec/mod_jk.so
2001-08-27 10:35:46 - ApacheConfig: Make sure it is installed corectly or set the config location
2001-08-27 10:35:46 - ApacheConfig: Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
2001-08-27 10:35:46 - ApacheConfig: Ignoring root context in mount-all mode
2001-08-27 10:35:46 - ContextManager: Init time 1664
Guessed home=./..
java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatException: Root cause - Address already in use
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.apache.tomcat.core.TomcatException.<init>(TomcatException.java:85)
at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(Compiled Code)
at org.apache.tomcat.core.ContextManager.start(Compiled Code)
at org.apache.tomcat.startup.EmbededTomcat.start(EmbededTomcat.java:271)
at org.apache.tomcat.startup.Tomcat.startTomcat(Tomcat.java:183)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:120)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:305)
at org.apache.tomcat.startup.Main.main(Main.java:191)
Kaju Singh
Greenhorn

Joined: Jul 30, 2001
Posts: 10
Hi,
I've got the solution, The error given was very much explicit (the same port was being used)but I had changed the port number in server.xml file, and after that I tried to shutdown Tomcat, so it wasn't able to kill the process running on the previous port.
Thanx
Kaju Singh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InvocationTargetException while starting Tomcat
 
Similar Threads
APACHE/TOMCAT INSTALLATION STEP-BY-STEP
Tomcat engine problem
Problem in running example JSP's in Tomcat 3.3-b1
tomcat 404 error
Apache not forwarding servlets request to Tomcat