• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Server Error

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
while starting my Tomcat, it didn't start but logged this error in the catalina_log.txt

2008-02-27 07:41:04 UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Document root element is missing.
at org.apache.naming.NamingContext.lookup(NamingContext.java:799)
at org.apache.naming.NamingContext.lookup(NamingContext.java:148)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:220)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2213)
at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
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:151)

what is the problem with the server?
need help.
thanks
[ February 27, 2008: Message edited by: Bear Bibeault ]
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does your conf/tomcat-users.xml file exist and is it valid XML? At a minimum it should contain the following:
 
joseph okon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the file (conf/tomcat-users)exist but nothing is inside it??
i have type in
<?xml version='1.0' encoding='utf-8' ?>
<tomcat-users>
</tomcat-users>

it still give some error

Created MBeanServer with ID: 1c86be5:1185a45a21b:-8000:CFASIT18:1
Feb 27, 2008 9:42:39 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.36-LE-jdk14
Feb 27, 2008 9:43:00 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 33 column -1: Element "web-app" does not allow text.

org.xml.sax.SAXParseException: Element "web-app" does not allow text.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.text(Val
idatingParser.java:355)
at org.apache.crimson.parser.InputEntity.parsedContent(InputEntity.java:
597)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1826)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:221)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:58
0)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:182)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
644)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:777)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:76
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:538)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:261)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:731)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:626)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:375
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:785)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:331)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1156)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:697)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1148)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:221
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151)
Feb 27, 2008 9:43:00 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 33 column -1: Element "web-app" does not allow "serv
let-name" here.
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-name" h
ere.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(
ValidatingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:221)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:58
0)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:182)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
644)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:777)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:76
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:538)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:261)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:731)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:626)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:375
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:785)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:331)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1156)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:697)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1148)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:221
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151)
Feb 27, 2008 9:43:00 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 34 column -1: Element "web-app" does not allow "serv
let-class" here.
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-class"
here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(
ValidatingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:221)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:58
0)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:182)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
644)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:777)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:76
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:538)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:261)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:731)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:626)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:375
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:785)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:331)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1156)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:697)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1148)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:221
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151)
Feb 27, 2008 9:43:00 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 35 column -1: Expected "</web-app>" to termina
te element starting on line 7.
org.xml.sax.SAXParseException: Expected "</web-app>" to terminate element starti
ng on line 7.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1513)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:221)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:58
0)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:182)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
644)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:777)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:76
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:538)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:261)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:731)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:626)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:375
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:785)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:331)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1156)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:697)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1148)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:221
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151)
Feb 27, 2008 9:43:02 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 27, 2008 9:43:04 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 27, 2008 9:43:04 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/601 config=null
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a different error.
It looks like there is something in your WEB-INF/web.xml that is valid XML but does not validate against the servlet schema
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

web-app" does not allow "servlet-class" here.



You have a <servlet-class> somewhere it not supposed to be
 
joseph okon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, i have gotten the solution
i really appreciated your effort
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic