javax.naming.NamingException: Content is not allowed in prolog.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 710349, 1 year ago
Content is not allowed in prolog.
via Coderanch by Tarun Oohri, 1 year ago
Content is not allowed in prolog.
via Oracle Community by 843834, 1 year ago
Content is not allowed in trailing section.
via jguru.com by Unknown author, 2 years ago
via Oracle Community by 843804, 1 year ago
The entity name must immediately follow the '&' in the entity reference.
via coderanch.com by Unknown author, 2 years ago
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.18\conf\tomcat-users.xml.new (Access is denied)
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

Users with the same issue

33 times, 2 weeks ago
Once, 3 months ago
Once, 8 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.