[
https://jira.jboss.org/jira/browse/JBESB-1976?page=com.atlassian.jira.plu...
]
jarkko Lietolahti updated JBESB-1976:
-------------------------------------
Description:
org.jboss.deployment.DeploymentException: Error during create of ESB Module:
file:/home/jarkko/ff/esb/jboss-4.2.3.GA/server/default/deploy/cancelProductFESB.esb; -
nested throwable: ([com.ctc.wstx.exc.WstxLazyException]
com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15])
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:356)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.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)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
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 $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException:
(was java.io.FileNotFoundException) /home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:704)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:77)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at org.jboss.internal.soa.esb.util.XMLHelper.replaceSystemProperties(XMLHelper.java:145)
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:325)
... 21 more
Caused by: com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1594)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1534)
at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1498)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4679)
at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4124)
at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3699)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3647)
... 32 more
This is the same problem as with many other applications/framework, they define incorrect
"home" directory when doing XML parsing. By the spec external entities should be
searched from the same place/directory where the xml file resides.
<?xml version="1.0"?>
<!DOCTYPE jbossesb [
<!ENTITY jmsbusses SYSTEM "jmsbusses.xml">
]>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
xmlns:xi="http://www.w3.org/2001/XInclude">
<providers>
<jms-provider connection-factory="ConnectionFactory"
jndi-URL="jnp://127.0.0.1:1099"
jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces"
name="JBossMQ">
&jmsbusses;
Btw, the file jmsbusses.xml is generated from jboss-esb.xml using xsl. Also both
jbm-queue-service.xml and jbmq-queue-service.xml are also generated from jboss-esb.xml
which is extremely convenient and reduces typo based error alot. This should be included
in the platform.
If I remember it correctly here's
http://mail-archives.apache.org/mod_mbox/xerces-j-users/200410.mbox/%3C20...
some more information about this (
http://support.liferay.com/browse/LEP-3142).
was:
org.jboss.deployment.DeploymentException: Error during create of ESB Module:
file:/home/jarkko/ff/esb/jboss-4.2.3.GA/server/default/deploy/cancelProductFESB.esb; -
nested throwable: ([com.ctc.wstx.exc.WstxLazyException]
com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15])
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:356)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.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)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
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 $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException:
(was java.io.FileNotFoundException) /home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:704)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:77)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at org.jboss.internal.soa.esb.util.XMLHelper.replaceSystemProperties(XMLHelper.java:145)
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:325)
... 21 more
Caused by: com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1594)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1534)
at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1498)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4679)
at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4124)
at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3699)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3647)
... 32 more
This is the same problem as with many other applications/framework, they define incorrect
"home" directory when doing XML parsing. By the spec external entities should be
searched from the same place/directory where the xml file resides.
<?xml version="1.0"?>
<!DOCTYPE jbossesb [
<!ENTITY jmsbusses SYSTEM "jmsbusses.xml">
]>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
xmlns:xi="http://www.w3.org/2001/XInclude">
<providers>
<jms-provider connection-factory="ConnectionFactory"
jndi-URL="jnp://127.0.0.1:1099"
jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces"
name="JBossMQ">
&jmsbusses;
Btw, the file jmsbusses.xml is generated from jboss-esb.xml using xsl. Also both
jbm-queue-service.xml and jbmq-queue-service.xml are also generated from jboss-esb.xml
which is extremely convenient and reduces typo based error alot. This should be included
in the platform.
Wrong search path for external entitys when parsing jboss-esb.xml
------------------------------------------------------------------
Key: JBESB-1976
URL:
https://jira.jboss.org/jira/browse/JBESB-1976
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Configuration
Affects Versions: 4.4
Reporter: jarkko Lietolahti
org.jboss.deployment.DeploymentException: Error during create of ESB Module:
file:/home/jarkko/ff/esb/jboss-4.2.3.GA/server/default/deploy/cancelProductFESB.esb; -
nested throwable: ([com.ctc.wstx.exc.WstxLazyException]
com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15])
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:356)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.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)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
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 $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException:
(was java.io.FileNotFoundException) /home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:704)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:77)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.putElement(XMLHelper.java:225)
at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)
at
org.jboss.internal.soa.esb.util.XMLHelper$SystemPropertyReplacementParser.<init>(XMLHelper.java:185)
at
org.jboss.internal.soa.esb.util.XMLHelper.replaceSystemProperties(XMLHelper.java:145)
at
org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:325)
... 21 more
Caused by: com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException)
/home/jarkko/ff/esb/jboss-4.2.3.GA/bin/jmsbusses.xml
at [row,col {unknown-source}]: [17,15]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1594)
at com.ctc.wstx.sr.StreamScanner.expandEntity(StreamScanner.java:1534)
at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1498)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4679)
at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4124)
at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3699)
at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3647)
... 32 more
This is the same problem as with many other applications/framework, they define incorrect
"home" directory when doing XML parsing. By the spec external entities should be
searched from the same place/directory where the xml file resides.
<?xml version="1.0"?>
<!DOCTYPE jbossesb [
<!ENTITY jmsbusses SYSTEM "jmsbusses.xml">
]>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
xmlns:xi="http://www.w3.org/2001/XInclude">
<providers>
<jms-provider connection-factory="ConnectionFactory"
jndi-URL="jnp://127.0.0.1:1099"
jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces"
name="JBossMQ">
&jmsbusses;
Btw, the file jmsbusses.xml is generated from jboss-esb.xml using xsl. Also both
jbm-queue-service.xml and jbmq-queue-service.xml are also generated from jboss-esb.xml
which is extremely convenient and reduces typo based error alot. This should be included
in the platform.
If I remember it correctly here's
http://mail-archives.apache.org/mod_mbox/xerces-j-users/200410.mbox/%3C20...
some more information about this (
http://support.liferay.com/browse/LEP-3142).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira