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


Solutions on the web25

Solution icon of oraclecommunity
via Oracle Community by 843836, 9 months ago
The processing instruction target matching "[xX][mM][lL]" is not allowed.

Solution icon of oraclecommunity
via Oracle Community by 843804, 1 year ago
C:\Program Files\Apache Software Foundation\Tomcat 5.05\conf\tomcat-users.xml.new (Access is denied)

Solution icon of oraclecommunity
via Oracle Community by 807581, 1 year ago
Content is not allowed in prolog.

Solution icon of coderanch
via Coderanch by Tarun Oohri, 10 months ago
Content is not allowed in prolog.

Solution icon of web
Content is not allowed in prolog.

Solution icon of oraclecommunity
via Oracle Community by 710349, 11 months ago
Content is not allowed in prolog.

Solution icon of coderanch
via Coderanch by ronnie villareal, 10 months ago
Content is not allowed in prolog.

Solution icon of oraclecommunity
via Oracle Community by 843834, 1 year ago
Content is not allowed in trailing section.

Solution icon of web
The processing instruction target matching "[xX][mM][lL]" is not allowed.

Solution icon of coderanch
via Coderanch by Matthew Webster, 10 months ago
Name Service is not bound in this Context

Stack trace

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.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
	at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
	at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	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)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

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