• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to open the service Tomcat5

 
Anant Nimbalkar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
New to Servlets and TOMCAT till date only used WSAD and JDEVELOPER...

I am preparing for SCWCD,and for that downloaded TomCat, during its installation it asked me for the login/password for manager, At that time I gave it as admin/admin. Where as my pc user name is different. For the first time I was able to login, it did show me the login page. but now when I am trying to launch the Tomcat MAnager after restarting my pc ,I am getting the above mentioned error.

I have edited the tomcat-users.xml and replaced admin/admin userid/pwd by my PC userid/pwd as somewhere I read that TOmcat requires administrator login.

FYI My OS is VISTA

Hope to get a reply soon.

Regards,
Anant
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check tomcat-users.xml for syntax errors.
Also look in the Tomcat logs to see if there is any more specific information about what is going wrong during startup.
 
Anant Nimbalkar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply, when I checked the log, at most of of the lcoation it gives following error
WARNING: Unexpected exception resolving reference
.java.io.IOException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
...
...
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old

...
...
WARNING: Unexpected exception resolving reference
java.io.IOException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old

...
...
EVERE: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old

...
...
SEVERE: Catalina.start:
LifecycleException: No UserDatabase component found under key UserDatabase

...
...
14 Jul, 2008 12:19:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 149 ms
14 Jul, 2008 12:20:23 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
14 Jul, 2008 12:20:24 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
14 Jul, 2008 12:20:24 PM org.apache.catalina.startup.Catalina stop
SEVERE: Catalina.stop
LifecycleException: Pipeline has not been started

...
...

14 Jul, 2008 12:23:30 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\PROGRA~1\APACHE~1\TOMCAT~1.5\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Java\jdk1.6.0_07\bin;C:\Program Files\Java\jdk1.6.0_07\bin
14 Jul, 2008 12:23:30 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
14 Jul, 2008 12:23:30 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 390 ms
14 Jul, 2008 12:23:30 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:582)
...
...
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
...
...
14 Jul, 2008 12:23:30 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
14 Jul, 2008 12:23:30 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
14 Jul, 2008 12:23:30 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
...
...
14 Jul, 2008 12:23:30 PM 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 5.5\conf\tomcat-users.xml.old

...
...
14 Jul, 2008 12:23:30 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: No UserDatabase component found under key UserDatabase

...
...

Hope I have given the required details properly

Regards,
Anant
 
Palani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also faced this problem and found that MS-Vista does not allow to create or modify files in "C:\Program Files" without confirming "Admin" rights.

So move out Tomcat from "C:\Program Files" directory to either c:\ drive or any other drive.

Cheers,
Palani
[ September 15, 2008: Message edited by: Palani ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Palani",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic