Receive "org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser" during deployment on JBoss

Solution Verified - Updated -

Issue

We see the following error during deployment:

ERROR [main] (MainDeployer.java:977) - Could
not create deployment:
file:/path/to/jboss-as/server/default/deploy/myapp.war/
org.jboss.wsf.spi.deployment.WSFDeploymentException:
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new
SAX parser
        at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.getWebservicesMetaData(ArchiveDeployerHook.java:138)
        at org.jboss.wsf.container.jboss42.JAXRPCDeployerHookPreJSE.isWebServiceDeployment(JAXRPCDeployerHookPreJSE.java:140)
        at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87)
        at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
        at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
        at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy54.create(Unknown Source)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
        at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
        at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.getWebservicesMetaData(ArchiveDeployerHook.java:130)
        ... 78 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
        at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:96)
        at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:55)
        at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
        ... 79 more
Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
        at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
        ... 81 more

Environment

  • JBoss EAP 4.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content