This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes error running tomcat 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "error running tomcat 5.0" Watch "error running tomcat 5.0" New topic
Author

error running tomcat 5.0

Sana Jay
Greenhorn

Joined: Feb 03, 2004
Posts: 26
hi,
Just installed tomcat 5.0.But error running the server.
My admin.xml file is as follows.
<Context path="/admin" docBase="../server/webapps/admin"
debug="0" privileged="true">

Can anyone guide me as to wat to do abt it.
Should i configure any other xml files.
I have installed tomcat in f: drive
Thanks in advance
Sana

and the error is
Apr 5, 2004 3:59:45 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Apr 5, 2004 3:59:45 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:F:\tomcat 5.0\conf\Catalina\localhost\admin.xml
Apr 5, 2004 3:59:51 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:519)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.NoSuchMethodError: java.io.File.toURI()Ljava/net/URI;
at org.apache.tomcat.util.compat.Jdk14Compat.getURI(Jdk14Compat.java:113)
at org.apache.catalina.loader.WebappClassLoader.getURI(WebappClassLoader.java:2152)
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1824)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1618)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:839)
... 38 more
Apr 5, 2004 3:59:51 PM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error deploying configuration descriptor admin.xml
java.io.IOException: java.lang.reflect.InvocationTargetException
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:525)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Apr 5, 2004 3:59:51 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:F:\tomcat 5.0\conf\Catalina\localhost\balancer.xml
Apr 5, 2004 3:59:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Apr 5, 2004 3:59:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Apr 5, 2004 3:59:52 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:F:\tomcat 5.0\conf\Catalina\localhost\manager.xml
Apr 5, 2004 3:59:54 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:F:\tomcat 5.0\webapps\jsp-examples
Apr 5, 2004 3:59:55 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Apr 5, 2004 3:59:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 5, 2004 3:59:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Apr 5, 2004 3:59:55 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:F:\tomcat 5.0\webapps\ROOT
Apr 5, 2004 3:59:56 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:F:\tomcat 5.0\webapps\servlets-examples
Apr 5, 2004 3:59:57 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Apr 5, 2004 3:59:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 5, 2004 3:59:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Apr 5, 2004 3:59:57 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:F:\tomcat 5.0\webapps\tomcat-docs
Apr 5, 2004 3:59:57 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:F:\tomcat 5.0\webapps\webdav
Apr 5, 2004 3:59:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Apr 5, 2004 3:59:59 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 5, 2004 3:59:59 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=10/230 config=F:\tomcat 5.0\conf\jk2.properties
Apr 5, 2004 3:59:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14941 ms
N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
you have not mentioned what exactly you want to do ?? to start the server you don't need to do anything with any of the xml files. the xml files are well configured by jakarta team. moreover you have not mentioned what operating system you are using. i assume you are using Windows 2000 or later. I think your installation has some problem or you have done something with the existing xml files. Visit the following site for more help on how to install and configure Tomcat.
http://sit.iitkgp.ernet.in/~nnanda/config.html
or you can contact me for further problems at
Niranjan.Nanda@sit.iitkgp.ernet.in


Regards<br />--<br />Niranjan Nanda<br />Consultant<br />Capgemini Consulting India <br />Mumbai<br />Phone: 9324951476
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5

This line suggests some sort of version problem - which Java SDK version are you using?
The File.toURI() method is new with SDK version 1.4.
Bill
 
jQuery in Action, 2nd edition
 
subject: error running tomcat 5.0
 
Similar Threads
Help - JSF Tomcat Config Error
End event threw exception
Tomcat Errors on console
Taglib
Problem deploying axis in tomcat: missing httpSessionListener