Tomcat within Eclipse

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Tomcat within Eclipse

samsam007
Hi,

Can anyone tell me how to resolve the followoing exception?
and how do I know whether tomcat service is really running.

11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
Files/Java/jre6/bin/client;C:/Program
Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
Files\Nmap
11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 502 ms
11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
        at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
        at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
        at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
        at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/08/2008 14:47:47
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot rename original file to
C:\Program Files\Apache Software Foundation\Tomcat
6.0\conf\tomcat-users.xml.old
        at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
        at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
        at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
        at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
        at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm start
SEVERE: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Cannot rename original file to
C:\Program Files\Apache Software Foundation\Tomcat
6.0\conf\tomcat-users.xml.old
        at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/08/2008 14:47:47 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.java:261)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
INFO: Server startup in 104 ms
11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

Jens Kapitza-2
Sam Wun schrieb:

> Hi,
>
> Can anyone tell me how to resolve the followoing exception?
> and how do I know whether tomcat service is really running.
>
> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: C:\Program
> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
> Files/Java/jre6/bin/client;C:/Program
> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
> Files\Nmap
> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 502 ms
> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>  
is this location writeable?
> SEVERE: Catalina.start:
> LifecycleException:  No UserDatabase component found under key UserDatabase
>  
chain error ???

> at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 104 ms
>  
tomcat is running but with no userdatabase (?)
> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>  
i think tomcat can't do anything with no userdatabase so all commands
are invalid (?)


Jens Kapitza

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

Johnny Kewl
In reply to this post by samsam007

----- Original Message -----
From: "Sam Wun" <[hidden email]>
To: "Tomcat Users List" <[hidden email]>
Sent: Monday, August 11, 2008 6:57 AM
Subject: Tomcat within Eclipse


> Hi,
>
> Can anyone tell me how to resolve the followoing exception?
> and how do I know whether tomcat service is really running.
>
> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: C:\Program
> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
> Files/Java/jre6/bin/client;C:/Program
> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
> Files\Nmap
> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 502 ms
> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
> at
> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
> at
> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
> at
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
> at
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
> at
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
> createMBeans
> SEVERE: Exception processing Global JNDI Resources
> javax.naming.NamingException: Cannot rename original file to
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\conf\tomcat-users.xml.old
> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
> at
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
> at
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
> at
> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
> at
> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
> at
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> at
> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm start
> SEVERE: Exception looking up UserDatabase under key UserDatabase
> javax.naming.NamingException: Cannot rename original file to
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\conf\tomcat-users.xml.old
> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> at
> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47 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.java:261)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 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:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 104 ms
> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received

Gee Sam you seem to be having major problems... I cant believe there are no
Eclipse users hanging around to help you...
It looks like your whole server.xml is missing... not being read...

Try run Tomcat from the startup.bat file in the bin... without eclipse.
If you get an error the problem is Tomcats config is messed up... the
easiest way to fix that is just re install it...

If it works then eclipse setting is someow messed up and its not pointing at
TC correctly...

You should literally be able to unzip tomcat and run it...
Alternatively get the service version...

Hopefully an Eclipse user comes to your rescue ;)
Just make sure TC works on its own first....

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

samsam007
In reply to this post by Jens Kapitza-2
Can you tell me how to setup a *userdatabase* for this case?

Thank you for your reply.

On Mon, Aug 11, 2008 at 5:14 PM, Jens Kapitza
<[hidden email]> wrote:

> Sam Wun schrieb:
>>
>> Hi,
>>
>> Can anyone tell me how to resolve the followoing exception?
>> and how do I know whether tomcat service is really running.
>>
>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: C:\Program
>>
>> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
>> Files/Java/jre6/bin/client;C:/Program
>>
>> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
>> Files\Nmap
>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 502 ms
>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>
>
> is this location writeable?
>>
>> SEVERE: Catalina.start:
>> LifecycleException:  No UserDatabase component found under key
>> UserDatabase
>>
>
> chain error ???
>>
>>        at
>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261)
>>        at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>        at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>        at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>        at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>        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:288)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 104 ms
>>
>
> tomcat is running but with no userdatabase (?)
>>
>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>>
>
> i think tomcat can't do anything with no userdatabase so all commands are
> invalid (?)
>
>
> Jens Kapitza
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Tomcat within Eclipse

Praful Sinha
You can configure users through Tomcat 6.0\conf folder there tomcat have one
tomcat-users.xml file to create user group or profile. Also you can use the
administrator tool to manage uses in Tomcat.

Thanks and Regards,
Praful Sinha.

-----Original Message-----
From: Sam Wun [mailto:[hidden email]]
Sent: Monday, August 11, 2008 11:20 AM
To: Tomcat Users List
Subject: Re: Tomcat within Eclipse

Can you tell me how to setup a *userdatabase* for this case?

Thank you for your reply.

On Mon, Aug 11, 2008 at 5:14 PM, Jens Kapitza
<[hidden email]> wrote:

> Sam Wun schrieb:
>>
>> Hi,
>>
>> Can anyone tell me how to resolve the followoing exception?
>> and how do I know whether tomcat service is really running.
>>
>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: C:\Program
>>
>>
Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\
Windows;C:/Program
>> Files/Java/jre6/bin/client;C:/Program
>>
>>
Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program

>> Files\Nmap
>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 502 ms
>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>
>
> is this location writeable?
>>
>> SEVERE: Catalina.start:
>> LifecycleException:  No UserDatabase component found under key
>> UserDatabase
>>
>
> chain error ???
>>
>>        at
>>
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261
)

>>        at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>        at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>        at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>        at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>        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:288)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 104 ms
>>
>
> tomcat is running but with no userdatabase (?)
>>
>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>>
>
> i think tomcat can't do anything with no userdatabase so all commands are
> invalid (?)
>
>
> Jens Kapitza
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

samsam007
In reply to this post by Johnny Kewl
Hi,

I have the server.xml path defined in Eclipse (3.4):
C:\Program Files\Apache Software Foundation\Tomcat 6.0
Where is the startup.bat file? I can't find this batch file.

Thanks


On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl <[hidden email]> wrote:

>
> ----- Original Message ----- From: "Sam Wun" <[hidden email]>
> To: "Tomcat Users List" <[hidden email]>
> Sent: Monday, August 11, 2008 6:57 AM
> Subject: Tomcat within Eclipse
>
>
>> Hi,
>>
>> Can anyone tell me how to resolve the followoing exception?
>> and how do I know whether tomcat service is really running.
>>
>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: C:\Program
>>
>> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
>> Files/Java/jre6/bin/client;C:/Program
>>
>> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
>> Files\Nmap
>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 502 ms
>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>> at
>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>> at
>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>> at
>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>> at
>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>> at
>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>> 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:288)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
>> createMBeans
>> SEVERE: Exception processing Global JNDI Resources
>> javax.naming.NamingException: Cannot rename original file to
>> C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\conf\tomcat-users.xml.old
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>> at
>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>> at
>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>> at
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>> 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:288)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>> at
>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>> at
>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>> at
>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>> at
>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>> 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:288)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm start
>> SEVERE: Exception looking up UserDatabase under key UserDatabase
>> javax.naming.NamingException: Cannot rename original file to
>> C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\conf\tomcat-users.xml.old
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>> at
>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>> 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:288)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 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.java:261)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>> 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:288)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 104 ms
>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>
> Gee Sam you seem to be having major problems... I cant believe there are no
> Eclipse users hanging around to help you...
> It looks like your whole server.xml is missing... not being read...
>
> Try run Tomcat from the startup.bat file in the bin... without eclipse.
> If you get an error the problem is Tomcats config is messed up... the
> easiest way to fix that is just re install it...
>
> If it works then eclipse setting is someow messed up and its not pointing at
> TC correctly...
>
> You should literally be able to unzip tomcat and run it...
> Alternatively get the service version...
>
> Hopefully an Eclipse user comes to your rescue ;)
> Just make sure TC works on its own first....
>
> ---------------------------------------------------------------------------
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

Johnny Kewl

Oh no... I think for some reason the bin scripts are missing in TC 6....

Listen SAM... just for now... go get

apache-tomcat-5.5.25.zip
and
apache-tomcat-5.5.25.exe

Here

http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip
http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.exe

Install the EXE if you on XP

I know you not going to have issues there with TC...
And its very likely that any older plugins in Eclipse will be happy with
it...

TC6 is still quite new... get that going then later play with TC 6...

Then... if you still having problems... tell me what plugin you using in
eclipse, and I'll get the thing and try it...

I think you stumbling into little problems that are screwing you....

And I got to tell you that if an IDE needs to actually know where TC's
server.xml file is... its crap.
Forget about the UserDatabase error you getting... you getting it because
the IDE and TC are not playing nicely.

You should be doing little more than just telling the IDE where TC is...

BUT if that plugin is old... it will not do TC 6
I think you getting smacked around.... and its unfortunate because it
actually is the easiest thing in the world to do...

If you dont care what IDE you use then also look at NetBeans...
Thats just a "run setup" thing and you done!... its good as well... it has a
wizard to setup tomcat.

Good luck....


----- Original Message -----
From: "Sam Wun" <[hidden email]>
To: "Tomcat Users List" <[hidden email]>
Sent: Monday, August 11, 2008 3:05 PM
Subject: Re: Tomcat within Eclipse


> Hi,
>
> I have the server.xml path defined in Eclipse (3.4):
> C:\Program Files\Apache Software Foundation\Tomcat 6.0
> Where is the startup.bat file? I can't find this batch file.
>
> Thanks
>
>
> On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl <[hidden email]> wrote:
>>
>> ----- Original Message ----- From: "Sam Wun" <[hidden email]>
>> To: "Tomcat Users List" <[hidden email]>
>> Sent: Monday, August 11, 2008 6:57 AM
>> Subject: Tomcat within Eclipse
>>
>>
>>> Hi,
>>>
>>> Can anyone tell me how to resolve the followoing exception?
>>> and how do I know whether tomcat service is really running.
>>>
>>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
>>> INFO: The APR based Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found on the
>>> java.library.path: C:\Program
>>>
>>> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
>>> Files/Java/jre6/bin/client;C:/Program
>>>
>>> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
>>> Files\Nmap
>>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 502 ms
>>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>> at
>>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>>> at
>>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>>> at
>>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>>> at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>> at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
>>> createMBeans
>>> SEVERE: Exception processing Global JNDI Resources
>>> javax.naming.NamingException: Cannot rename original file to
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\conf\tomcat-users.xml.old
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>>> at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>> at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
>>> INFO: Starting service Catalina
>>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
>>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>> at
>>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>>> at
>>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>>> at
>>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>> at
>>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm start
>>> SEVERE: Exception looking up UserDatabase under key UserDatabase
>>> javax.naming.NamingException: Cannot rename original file to
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\conf\tomcat-users.xml.old
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>> at
>>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 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.java:261)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 104 ms
>>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
>>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>>
>> Gee Sam you seem to be having major problems... I cant believe there are
>> no
>> Eclipse users hanging around to help you...
>> It looks like your whole server.xml is missing... not being read...
>>
>> Try run Tomcat from the startup.bat file in the bin... without eclipse.
>> If you get an error the problem is Tomcats config is messed up... the
>> easiest way to fix that is just re install it...
>>
>> If it works then eclipse setting is someow messed up and its not pointing
>> at
>> TC correctly...
>>
>> You should literally be able to unzip tomcat and run it...
>> Alternatively get the service version...
>>
>> Hopefully an Eclipse user comes to your rescue ;)
>> Just make sure TC works on its own first....
>>
>> ---------------------------------------------------------------------------
>> HARBOR : http://www.kewlstuff.co.za/index.htm
>> The most powerful application server on earth.
>> The only real POJO Application Server.
>> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
>> ---------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: [hidden email]
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

Steve Ochani
Date sent:       Mon, 11 Aug 2008 15:50:56 +0200
From:           Johnny Kewl <[hidden email]>
Subject:         Re: Tomcat within Eclipse
To:             Tomcat Users List <[hidden email]>
Send reply to:   Tomcat Users List <[hidden email]>

>
> Oh no... I think for some reason the bin scripts are missing in TC
> 6....
>

I'm using the zip version of 6.0.18 on my dev. machine and it comes with startup.sh/.bat and
shutdown.sh/.bat, they are located in the bin directory.



> Listen SAM... just for now... go get
>
> apache-tomcat-5.5.25.zip
> and
> apache-tomcat-5.5.25.exe
>
> Here
>
> http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomc
> at-5.5.25.zip
> http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomc
> at-5.5.25.exe
>
> Install the EXE if you on XP
>
> I know you not going to have issues there with TC...
> And its very likely that any older plugins in Eclipse will be happy
> with it...
>
> TC6 is still quite new... get that going then later play with TC 6...
>
> Then... if you still having problems... tell me what plugin you using
> in eclipse, and I'll get the thing and try it...
>
> I think you stumbling into little problems that are screwing you....
>
> And I got to tell you that if an IDE needs to actually know where TC's
> server.xml file is... its crap. Forget about the UserDatabase error
> you getting... you getting it because the IDE and TC are not playing
> nicely.
>
> You should be doing little more than just telling the IDE where TC
> is...
>
> BUT if that plugin is old... it will not do TC 6
> I think you getting smacked around.... and its unfortunate because it
> actually is the easiest thing in the world to do...
>
> If you dont care what IDE you use then also look at NetBeans...
> Thats just a "run setup" thing and you done!... its good as well... it
> has a wizard to setup tomcat.
>
> Good luck....
>
>
> ----- Original Message -----
> From: "Sam Wun" <[hidden email]>
> To: "Tomcat Users List" <[hidden email]>
> Sent: Monday, August 11, 2008 3:05 PM
> Subject: Re: Tomcat within Eclipse
>
>
> > Hi,
> >
> > I have the server.xml path defined in Eclipse (3.4):
> > C:\Program Files\Apache Software Foundation\Tomcat 6.0
> > Where is the startup.bat file? I can't find this batch file.
> >
> > Thanks
> >
> >
> > On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl <[hidden email]>
> > wrote:
> >>
> >> ----- Original Message ----- From: "Sam Wun" <[hidden email]>
> >> To: "Tomcat Users List" <[hidden email]> Sent: Monday,
> >> August 11, 2008 6:57 AM Subject: Tomcat within Eclipse
> >>
> >>
> >>> Hi,
> >>>
> >>> Can anyone tell me how to resolve the followoing exception?
> >>> and how do I know whether tomcat service is really running.
> >>>
> >>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener
> >>> init INFO: The APR based Apache Tomcat Native library which allows
> >>> optimal performance in production environments was not found on
> >>> the java.library.path: C:\Program
> >>>
> >>> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\sy
> >>> stem32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program
> >>>
> >>> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\Syst
> >>> em32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
> >>> Files\Nmap 11/08/2008 14:47:47
> >>> org.apache.coyote.http11.Http11Protocol init INFO: Initializing
> >>> Coyote HTTP/1.1 on http-8080 11/08/2008 14:47:47
> >>> org.apache.catalina.startup.Catalina load INFO: Initialization
> >>> processed in 502 ms 11/08/2008 14:47:47
> >>> 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 6.0\conf\tomcat-users.xml.old at
> >>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDataba
> >>> se.java:582) at
> >>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInsta
> >>> nce(MemoryUserDatabaseFactory.java:104) at
> >>> org.apache.naming.factory.ResourceFactory.getObjectInstance(Resour
> >>> ceFactory.java:140) at
> >>> javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
> >>> at
> >>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInte
> >>> rnal(NamingContextBindingsEnumeration.java:113) at
> >>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingCont
> >>> extBindingsEnumeration.java:71) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
> >>> MBeans(GlobalResourcesLifecycleListener.java:137) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
> >>> MBeans(GlobalResourcesLifecycleListener.java:109) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecy
> >>> cleEvent(GlobalResourcesLifecycleListener.java:81) at
> >>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
> >>> ycleSupport.java:117) at
> >>> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> >>> 703) at
> >>> org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at
> >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
> >>> createMBeans SEVERE: Exception processing Global JNDI Resources
> >>> javax.naming.NamingException: Cannot rename original file to
> >>> C:\Program Files\Apache Software Foundation\Tomcat
> >>> 6.0\conf\tomcat-users.xml.old at
> >>> org.apache.naming.NamingContext.lookup(NamingContext.java:805) at
> >>> org.apache.naming.NamingContext.lookup(NamingContext.java:140) at
> >>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInte
> >>> rnal(NamingContextBindingsEnumeration.java:113) at
> >>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingCont
> >>> extBindingsEnumeration.java:71) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
> >>> MBeans(GlobalResourcesLifecycleListener.java:137) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
> >>> MBeans(GlobalResourcesLifecycleListener.java:109) at
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecy
> >>> cleEvent(GlobalResourcesLifecycleListener.java:81) at
> >>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
> >>> ycleSupport.java:117) at
> >>> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> >>> 703) at
> >>> org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at
> >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
> >>> INFO: Starting service Catalina 11/08/2008 14:47:47
> >>> org.apache.catalina.core.StandardEngine start INFO: Starting
> >>> Servlet Engine: Apache Tomcat/6.0.18 11/08/2008 14:47:47
> >>> 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 6.0\conf\tomcat-users.xml.old at
> >>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDataba
> >>> se.java:582) at
> >>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInsta
> >>> nce(MemoryUserDatabaseFactory.java:104) at
> >>> org.apache.naming.factory.ResourceFactory.getObjectInstance(Resour
> >>> ceFactory.java:140) at
> >>> javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> >>> at
> >>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseReal
> >>> m.java:253) at
> >>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:10
> >>> 37) at
> >>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
> >>> 443) at
> >>> org.apache.catalina.core.StandardService.start(StandardService.jav
> >>> a:516) at
> >>> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> >>> 710) at
> >>> org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at
> >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm
> >>> start SEVERE: Exception looking up UserDatabase under key
> >>> UserDatabase javax.naming.NamingException: Cannot rename original
> >>> file to C:\Program Files\Apache Software Foundation\Tomcat
> >>> 6.0\conf\tomcat-users.xml.old at
> >>> org.apache.naming.NamingContext.lookup(NamingContext.java:805) at
> >>> org.apache.naming.NamingContext.lookup(NamingContext.java:153) at
> >>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseReal
> >>> m.java:253) at
> >>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:10
> >>> 37) at
> >>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
> >>> 443) at
> >>> org.apache.catalina.core.StandardService.start(StandardService.jav
> >>> a:516) at
> >>> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> >>> 710) at
> >>> org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at
> >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
> >>> SEVERE: Catalina.start: LifecycleException:  No UserDatabase
> >>> component found under key UserDatabase at
> >>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseReal
> >>> m.java:261) at
> >>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:10
> >>> 37) at
> >>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
> >>> 443) at
> >>> org.apache.catalina.core.StandardService.start(StandardService.jav
> >>> a:516) at
> >>> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> >>> 710) at
> >>> org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at
> >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
> >>> INFO: Server startup in 104 ms 11/08/2008 14:49:20
> >>> org.apache.catalina.core.StandardServer await WARNING:
> >>> StandardServer.await: Invalid command 'GET / HTTP/1.1' received
> >>
> >> Gee Sam you seem to be having major problems... I cant believe
> >> there are no Eclipse users hanging around to help you... It looks
> >> like your whole server.xml is missing... not being read...
> >>
> >> Try run Tomcat from the startup.bat file in the bin... without
> >> eclipse. If you get an error the problem is Tomcats config is
> >> messed up... the easiest way to fix that is just re install it...
> >>
> >> If it works then eclipse setting is someow messed up and its not
> >> pointing at TC correctly...
> >>
> >> You should literally be able to unzip tomcat and run it...
> >> Alternatively get the service version...
> >>
> >> Hopefully an Eclipse user comes to your rescue ;)
> >> Just make sure TC works on its own first....
> >>
> >> -------------------------------------------------------------------
> >> -------- HARBOR : http://www.kewlstuff.co.za/index.htm The most
> >> powerful application server on earth. The only real POJO
> >> Application Server. See it in Action :
> >> http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> >> -------------------------------------------------------------------
> >> --------
> >>
> >> -------------------------------------------------------------------
> >> -- To start a new topic, e-mail: [hidden email] To
> >> unsubscribe, e-mail: [hidden email] For
> >> additional commands, e-mail: [hidden email]
> >>
> >>
> >
> > --------------------------------------------------------------------
> > - To start a new topic, e-mail: [hidden email] To
> > unsubscribe, e-mail: [hidden email] For
> > additional commands, e-mail: [hidden email]
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email] To unsubscribe,
> e-mail: [hidden email] For additional commands,
> e-mail: [hidden email]
>



---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tomcat within Eclipse

Konstantin Kolinko
In reply to this post by samsam007
Hi, Sam

If you installed Tomcat using the .exe installer, the *.bat files
are not included with it. You can download the zip archive to get them.

Eclipse does not need them, because it lauches Tomcat as a java
application, loading its Bootstrap class.

When you create a server launch configuration (a new "Server"),
a new supplemental project is created in your workspace, that
stores your launch configuration. When it is created, the
configuration files are copied there from the Tomcat installation.

You should check, that those files do exist.
They are shown in the Servers project on your Project Explorer
view, in a subfolder which name reflects the name of your
configuration. E.g.
Servers\Tomcat v6.0 Server at localhost-config

The following files should be there:
catalina.policy
catalina.properties
context.xml
server.xml
tomcat-users.xml
web.xml

If you want, you can replace them with some fresh copies
from your Tomcat installation, or from the zip archive, but
do not forget to refresh the Servers project (using the context
menu, or pressing F5).

Eclipse uses those files when launching Tomcat. (Actually it
copies them further, publishing them into a temporary directory
inside .metadata. That is why refreshing the Servers project is
important).

You may also want to check the following FAQ:
http://wiki.eclipse.org/WTP_Tomcat_FAQ

Best regards,
Konstantin Kolinko

2008/8/11 Sam Wun <[hidden email]>:

> Hi,
>
> I have the server.xml path defined in Eclipse (3.4):
> C:\Program Files\Apache Software Foundation\Tomcat 6.0
> Where is the startup.bat file? I can't find this batch file.
>
> Thanks
>
>
> On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl <[hidden email]> wrote:
>>
>> ----- Original Message ----- From: "Sam Wun" <[hidden email]>
>> To: "Tomcat Users List" <[hidden email]>
>> Sent: Monday, August 11, 2008 6:57 AM
>> Subject: Tomcat within Eclipse
>>
>>
>>> Hi,
>>>
>>> Can anyone tell me how to resolve the followoing exception?
>>> and how do I know whether tomcat service is really running.
>>>
>>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init
>>> INFO: The APR based Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found on the
>>> java.library.path: C:\Program
>>>
>>> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
>>> Files/Java/jre6/bin/client;C:/Program
>>>
>>> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
>>> Files\Nmap
>>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 502 ms
>>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>> at
>>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>>> at
>>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>>> at
>>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>>> at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
>>> createMBeans
>>> SEVERE: Exception processing Global JNDI Resources
>>> javax.naming.NamingException: Cannot rename original file to
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\conf\tomcat-users.xml.old
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
>>> at
>>> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
>>> at
>>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
>>> at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
>>> INFO: Starting service Catalina
>>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
>>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-users.xml.old
>>> at
>>> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
>>> at
>>> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
>>> at
>>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
>>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>> at
>>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm start
>>> SEVERE: Exception looking up UserDatabase under key UserDatabase
>>> javax.naming.NamingException: Cannot rename original file to
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\conf\tomcat-users.xml.old
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>> at
>>> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 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.java:261)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>> 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:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 104 ms
>>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
>>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received
>>
>> Gee Sam you seem to be having major problems... I cant believe there are no
>> Eclipse users hanging around to help you...
>> It looks like your whole server.xml is missing... not being read...
>>
>> Try run Tomcat from the startup.bat file in the bin... without eclipse.
>> If you get an error the problem is Tomcats config is messed up... the
>> easiest way to fix that is just re install it...
>>
>> If it works then eclipse setting is someow messed up and its not pointing at
>> TC correctly...
>>
>> You should literally be able to unzip tomcat and run it...
>> Alternatively get the service version...
>>
>> Hopefully an Eclipse user comes to your rescue ;)
>> Just make sure TC works on its own first....
>>
>> ---------------------------------------------------------------------------
>> HARBOR : http://www.kewlstuff.co.za/index.htm
>> The most powerful application server on earth.
>> The only real POJO Application Server.
>> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
>> ---------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: [hidden email]
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Tomcat within Eclipse

Larry Isaacs
Backing up slightly, maybe the first step should be to confirm whether the Web Tools Platform, Sysdeo, or other plug-in is being used for the Tomcat server support.

The fact that "C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml" is being renamed suggests that if WTP was being used, the non-default "Use Tomcat installation" option would have to be enabled.  In this case, tomcat-users.xml would have being copied from the "Servers" project to the "conf" directory.  If this file isn't writable, this copy would likely have failed before even attempting to start the server.  This would suggest that WTP is not being used.  I'm guessing that it may be the Sysdeo plug-in and that it might be a permissions problem.  The user running Eclipse, and thus the user running the Tomcat server from Eclipse, doesn't have permission to modify this file.

Any details about the OS, server plug-in, and any configuration done to set up this server would likely help.  The stack trace alone doesn't provide a lot in the way of hard clues.

Cheers,
Larry

> -----Original Message-----
> From: Konstantin Kolinko [mailto:[hidden email]]
> Sent: Tuesday, August 12, 2008 4:54 AM
> To: Tomcat Users List
> Subject: Re: Tomcat within Eclipse
>
> Hi, Sam
>
> If you installed Tomcat using the .exe installer, the *.bat files
> are not included with it. You can download the zip archive to get them.
>
> Eclipse does not need them, because it lauches Tomcat as a java
> application, loading its Bootstrap class.
>
> When you create a server launch configuration (a new "Server"),
> a new supplemental project is created in your workspace, that
> stores your launch configuration. When it is created, the
> configuration files are copied there from the Tomcat installation.
>
> You should check, that those files do exist.
> They are shown in the Servers project on your Project Explorer
> view, in a subfolder which name reflects the name of your
> configuration. E.g.
> Servers\Tomcat v6.0 Server at localhost-config
>
> The following files should be there:
> catalina.policy
> catalina.properties
> context.xml
> server.xml
> tomcat-users.xml
> web.xml
>
> If you want, you can replace them with some fresh copies
> from your Tomcat installation, or from the zip archive, but
> do not forget to refresh the Servers project (using the context
> menu, or pressing F5).
>
> Eclipse uses those files when launching Tomcat. (Actually it
> copies them further, publishing them into a temporary directory
> inside .metadata. That is why refreshing the Servers project is
> important).
>
> You may also want to check the following FAQ:
> http://wiki.eclipse.org/WTP_Tomcat_FAQ
>
> Best regards,
> Konstantin Kolinko
>
> 2008/8/11 Sam Wun <[hidden email]>:
> > Hi,
> >
> > I have the server.xml path defined in Eclipse (3.4):
> > C:\Program Files\Apache Software Foundation\Tomcat 6.0
> > Where is the startup.bat file? I can't find this batch file.
> >
> > Thanks
> >
> >
> > On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl <[hidden email]>
> wrote:
> >>
> >> ----- Original Message ----- From: "Sam Wun" <[hidden email]>
> >> To: "Tomcat Users List" <[hidden email]>
> >> Sent: Monday, August 11, 2008 6:57 AM
> >> Subject: Tomcat within Eclipse
> >>
> >>
> >>> Hi,
> >>>
> >>> Can anyone tell me how to resolve the followoing exception?
> >>> and how do I know whether tomcat service is really running.
> >>>
> >>> 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener
> init
> >>> INFO: The APR based Apache Tomcat Native library which allows
> optimal
> >>> performance in production environments was not found on the
> >>> java.library.path: C:\Program
> >>>
> >>>
> Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system3
> 2;C:\Windows;C:/Program
> >>> Files/Java/jre6/bin/client;C:/Program
> >>>
> >>>
> Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\
> Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
> >>> Files\Nmap
> >>> 11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
> >>> INFO: Initializing Coyote HTTP/1.1 on http-8080
> >>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
> >>> INFO: Initialization processed in 502 ms
> >>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-
> users.xml.old
> >>> at
> >>>
> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.ja
> va:582)
> >>> at
> >>>
> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(M
> emoryUserDatabaseFactory.java:104)
> >>> at
> >>>
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac
> tory.java:140)
> >>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
> >>> at
> >>>
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(
> NamingContextBindingsEnumeration.java:113)
> >>> at
> >>>
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBi
> ndingsEnumeration.java:71)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
> s(GlobalResourcesLifecycleListener.java:137)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
> s(GlobalResourcesLifecycleListener.java:109)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEv
> ent(GlobalResourcesLifecycleListener.java:81)
> >>> at
> >>>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
> upport.java:117)
> >>> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
> >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> >>> 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:288)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47
> >>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
> >>> createMBeans
> >>> SEVERE: Exception processing Global JNDI Resources
> >>> javax.naming.NamingException: Cannot rename original file to
> >>> C:\Program Files\Apache Software Foundation\Tomcat
> >>> 6.0\conf\tomcat-users.xml.old
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
> >>> at
> >>>
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(
> NamingContextBindingsEnumeration.java:113)
> >>> at
> >>>
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBi
> ndingsEnumeration.java:71)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
> s(GlobalResourcesLifecycleListener.java:137)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
> s(GlobalResourcesLifecycleListener.java:109)
> >>> at
> >>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEv
> ent(GlobalResourcesLifecycleListener.java:81)
> >>> at
> >>>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
> upport.java:117)
> >>> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
> >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> >>> 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:288)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardService start
> >>> INFO: Starting service Catalina
> >>> 11/08/2008 14:47:47 org.apache.catalina.core.StandardEngine start
> >>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> >>> 11/08/2008 14:47:47 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 6.0\conf\tomcat-
> users.xml.old
> >>> at
> >>>
> org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.ja
> va:582)
> >>> at
> >>>
> org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(M
> emoryUserDatabaseFactory.java:104)
> >>> at
> >>>
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac
> tory.java:140)
> >>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> >>> at
> >>>
> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.jav
> a:253)
> >>> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> >>> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >>> at
> >>>
> org.apache.catalina.core.StandardService.start(StandardService.java:516
> )
> >>> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> >>> 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:288)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.realm.UserDatabaseRealm
> start
> >>> SEVERE: Exception looking up UserDatabase under key UserDatabase
> >>> javax.naming.NamingException: Cannot rename original file to
> >>> C:\Program Files\Apache Software Foundation\Tomcat
> >>> 6.0\conf\tomcat-users.xml.old
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
> >>> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> >>> at
> >>>
> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.jav
> a:253)
> >>> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> >>> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >>> at
> >>>
> org.apache.catalina.core.StandardService.start(StandardService.java:516
> )
> >>> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> >>> 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:288)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 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.jav
> a:261)
> >>> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
> >>> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >>> at
> >>>
> org.apache.catalina.core.StandardService.start(StandardService.java:516
> )
> >>> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> >>> 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:288)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >>> 11/08/2008 14:47:47 org.apache.catalina.startup.Catalina start
> >>> INFO: Server startup in 104 ms
> >>> 11/08/2008 14:49:20 org.apache.catalina.core.StandardServer await
> >>> WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1'
> received
> >>
> >> Gee Sam you seem to be having major problems... I cant believe there
> are no
> >> Eclipse users hanging around to help you...
> >> It looks like your whole server.xml is missing... not being read...
> >>
> >> Try run Tomcat from the startup.bat file in the bin... without
> eclipse.
> >> If you get an error the problem is Tomcats config is messed up...
> the
> >> easiest way to fix that is just re install it...
> >>
> >> If it works then eclipse setting is someow messed up and its not
> pointing at
> >> TC correctly...
> >>
> >> You should literally be able to unzip tomcat and run it...
> >> Alternatively get the service version...
> >>
> >> Hopefully an Eclipse user comes to your rescue ;)
> >> Just make sure TC works on its own first....
> >>
> >> --------------------------------------------------------------------
> -------
> >> HARBOR : http://www.kewlstuff.co.za/index.htm
> >> The most powerful application server on earth.
> >> The only real POJO Application Server.
> >> See it in Action :
> http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> >> --------------------------------------------------------------------
> -------
> >>
> >> --------------------------------------------------------------------
> -
> >> To start a new topic, e-mail: [hidden email]
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: [hidden email]
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [hidden email]
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]