org.jboss.xb.binding.JBossXBException: Failed to parse > source: main-servlet cannot appear in this position. Expected content > of sip-app is unordered_sequence: post-constructs* app-name? locale- > encoding-mapping-list? login-config? session-config? ejb-references* > message-destination-references* security-role* pre-destroys* ejb-local- > references* context-param* persistence-context-refs* persistence-unit- > refs* message-destination* servlet* resource-environment-references* > resource-references* distributable? service-references* servlet- > selection? security-constraint* listener* proxy-config? environment- > entries* {all descriptionGroup}? {unordered_sequence > jndiEnvironmentRefsGroup}? at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse > (SaxJBossXBParser.java:203) at org.jboss.xb.binding.UnmarshallerImpl.unmarshal > (UnmarshallerImpl.java:168)

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 Google Groups by Roberto, 1 year ago
Failed to parse > > source: main-servlet cannot appear in this position. Expected content > > of sip-app is unordered_sequence: post-constructs* app-name? locale- > > encoding-mapping-list? login-config? session-config? ejb-references* > > message
via Stack Overflow by developer503
, 2 years ago
Failed to parse source: The content of element type "env-entry" must match "(description?,env-entry-name,env-entry-value?,env-entry-type)". @ vfsfile:/E:/jboss/server/default/deploy/solr.war/WEB-INF/web.xml[47,14] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203) at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
org.jboss.xb.binding.JBossXBException: Failed to parse > source: main-servlet cannot appear in this position. Expected content > of sip-app is unordered_sequence: post-constructs* app-name? locale- > encoding-mapping-list? login-config? session-config? ejb-references* > message-destination-references* security-role* pre-destroys* ejb-local- > references* context-param* persistence-context-refs* persistence-unit- > refs* message-destination* servlet* resource-environment-references* > resource-references* distributable? service-references* servlet- > selection? security-constraint* listener* proxy-config? environment- > entries* {all descriptionGroup}? {unordered_sequence > jndiEnvironmentRefsGroup}? at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse > (SaxJBossXBParser.java:203) at org.jboss.xb.binding.UnmarshallerImpl.unmarshal > (UnmarshallerImpl.java:168)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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