Results 1 to 3 of 3
  1. #1
    revathyraj is offline Member
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    Default Tomcat startup through eclipse error

    Hi folks,

    When I start tomcat I am getting the below error on eclipse. What could be the possible cause for this and what is the solution for the same. Please help me folks.

    Aug 15, 2008 8:13:07 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: C:\EasyEclipse Server Java 1.2.1\jre\bin;.;C:\Windows\system32;C:\Windows;C:\ Windows\system32;C:\Windows;C:\Windows\System32\Wb em;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\
    Aug 15, 2008 8:13:07 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Aug 15, 2008 8:13:08 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1639 ms
    Aug 15, 2008 8:13:08 PM org.apache.catalina.core.NamingContextListener addResource
    WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.Bas icDataSourceFactory
    Aug 15, 2008 8:13:08 PM org.apache.catalina.core.NamingContextListener addResource
    WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.Bas icDataSourceFactory
    Aug 15, 2008 8:13:08 PM org.apache.catalina.core.NamingContextListener addResource
    WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.Bas icDataSourceFactory
    Aug 15, 2008 8:13:08 PM org.apache.naming.NamingContext lookup
    WARNING: Unexpected exception resolving reference
    java.io.IOException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.catalina.users.MemoryUserDatabase.save( MemoryUserDatabase.java:581)
    at org.apache.catalina.users.MemoryUserDatabaseFactor y.getObjectInstance(MemoryUserDatabaseFactory.java :103)
    at org.apache.naming.factory.ResourceFactory.getObjec tInstance(ResourceFactory.java:129)
    at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:304)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:792)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:152)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:138)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:108)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycleEvent(GlobalResourcesLifecycleL istener.java:80)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:673)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Aug 15, 2008 8:13:08 PM org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener createMBeans
    SEVERE: Exception processing Global JNDI Resources
    javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:804)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:152)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:138)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:108)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycleEvent(GlobalResourcesLifecycleL istener.java:80)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:673)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Aug 15, 2008 8:13:08 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina

  2. #2
    vetalok is offline Member
    Join Date
    Aug 2008
    Posts
    4
    Rep Power
    0

    Default

    It seems you either have no admin rights to modify tomcat-users.xml or the path contains whitespaces (e.g move tomcat to d:/tomcat)

  3. #3
    Jui
    Jui is offline Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Default

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Sachin>cd C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin

    C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin>tomcat5.exe
    Mar 29, 2009 8:36:17 PM org.apache.catalina.core.AprLifecycleListener lifecycleE
    vent
    INFO: The Apache Tomcat Native library which allows optimal performance in produ
    ction environments was not found on the java.library.path: C:\Program Files\Apac
    he Software Foundation\Tomcat 5.5\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\syste
    m32;C:\Windows;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:
    \Windows;C:\Windows\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools
    \binn\;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;C:\Sun\AppServ
    er\bin
    Mar 29, 2009 8:36:17 PM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 29, 2009 8:36:17 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 412 ms
    Mar 29, 2009 8:36:17 PM org.apache.naming.NamingContext lookup
    WARNING: Unexpected exception resolving reference
    java.io.IOException: Cannot rename original file to C:\Program Files\Apache Soft
    ware Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.catalina.users.MemoryUserDatabase.save( MemoryUserDatabase.
    java:581)
    at org.apache.catalina.users.MemoryUserDatabaseFactor y.getObjectInstance
    (MemoryUserDatabaseFactory.java:103)
    at org.apache.naming.factory.ResourceFactory.getObjec tInstance(ResourceF
    actory.java:139)
    at javax.naming.spi.NamingManager.getObjectInstance(U nknown Source)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:792)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:139)
    at org.apache.naming.NamingContextBindingsEnumeration .nextElementInterna
    l(NamingContextBindingsEnumeration.java:112)
    at org.apache.naming.NamingContextBindingsEnumeration .next(NamingContext
    BindingsEnumeration.java:70)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBe
    ans(GlobalResourcesLifecycleListener.java:136)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBe
    ans(GlobalResourcesLifecycleListener.java:108)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycle
    Event(GlobalResourcesLifecycleListener.java:80)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:702
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Mar 29, 2009 8:36:17 PM org.apache.catalina.mbeans.GlobalResourcesLifecycl eListe
    ner createMBeans
    SEVERE: Exception processing Global JNDI Resources
    javax.naming.NamingException: Cannot rename original file to C:\Program Files\Ap
    ache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:804)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:139)
    at org.apache.naming.NamingContextBindingsEnumeration .nextElementInterna
    l(NamingContextBindingsEnumeration.java:112)
    at org.apache.naming.NamingContextBindingsEnumeration .next(NamingContext
    BindingsEnumeration.java:70)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBe
    ans(GlobalResourcesLifecycleListener.java:136)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBe
    ans(GlobalResourcesLifecycleListener.java:108)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycle
    Event(GlobalResourcesLifecycleListener.java:80)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:702
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Mar 29, 2009 8:36:17 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 29, 2009 8:36:17 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
    Mar 29, 2009 8:36:17 PM org.apache.naming.NamingContext lookup
    WARNING: Unexpected exception resolving reference
    java.io.IOException: Cannot rename original file to C:\Program Files\Apache Soft
    ware Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.catalina.users.MemoryUserDatabase.save( MemoryUserDatabase.
    java:581)
    at org.apache.catalina.users.MemoryUserDatabaseFactor y.getObjectInstance
    (MemoryUserDatabaseFactory.java:103)
    at org.apache.naming.factory.ResourceFactory.getObjec tInstance(ResourceF
    actory.java:139)
    at javax.naming.spi.NamingManager.getObjectInstance(U nknown Source)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:792)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:152)
    at org.apache.catalina.realm.UserDatabaseRealm.start( UserDatabaseRealm.j
    ava:252)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1005)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
    50)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Mar 29, 2009 8:36:17 PM org.apache.catalina.realm.UserDatabaseRealm start
    SEVERE: Exception looking up UserDatabase under key UserDatabase
    javax.naming.NamingException: Cannot rename origin`l file to C:\Program Files\Ap
    ache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:804)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:152)
    at org.apache.catalina.realm.UserDatabaseRealm.start( UserDatabaseRealm.j
    ava:252)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1005)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
    50)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Mar 29, 2009 8:36:17 PM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: No UserDatabase component found under key UserDatabase
    at org.apache.catalina.realm.UserDatabaseRealm.start( UserDatabaseRealm.j
    ava:260)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1005)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
    50)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Mar 29, 2009 8:36:17 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 107 ms



    me too getting similar error for starting Java...I am using os as Vista

    Can anybody help me sort it out...

Similar Threads

  1. eclipse with tomcat
    By nileshchavan in forum Eclipse
    Replies: 2
    Last Post: 06-23-2008, 01:25 PM
  2. Tomcat In Eclipse - Sysdeo Tomcat Plug-in
    By JavaForums in forum Eclipse
    Replies: 1
    Last Post: 02-13-2008, 11:33 AM
  3. Tomcat 5 for Eclipse
    By gapper in forum Eclipse
    Replies: 1
    Last Post: 02-07-2008, 07:08 AM
  4. Tomcat plugin for Eclipse
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-16-2008, 11:42 AM
  5. error Tomcat in eclipse
    By Marty in forum Eclipse
    Replies: 1
    Last Post: 05-06-2007, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •