Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After using Tomcat for 9 months is suddenly decides not to start

Status
Not open for further replies.

dognobbler

Programmer
Jul 4, 2003
46
GB
I have been running tomcat on windows xp for 9 months now with no problems.

Today I was working with tomcat when my computer crashed. When I restarted my computer and then tryed to restart tomcat it would not work.

Each time I start it from the command line it tries to start and after a few seconds gives up.

The only thing I can find in the logs is this lised below. Does anyone have any idea what might have happened and what I can do to fix it?


Andy

UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



 
The " Content is not allowed in prolog." message usually refers to xml parsing when there is either some text or character (even space, or \n) either in front of the first xml line, the root element, the end of the root element, or a # sign. Check all your xml config files in conf directory.

I take it you've rebooted your pc a couple of times aswell ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top