• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

InvocationTargetException while starting Tomcat  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!