开发者

Multiple Datasource-Files in one EAR

I'm testing the sapbabijca for jboss 6. Currently i have 2 -ds.xml files in my ear. One is for my jdbc connection, the other contains the config of my sap connector. Now, when i try to deploy my ear开发者_运维知识库 i get:

 java.lang.IllegalArgumentException: Multiple matching files not allowed: ["/C:/Users/abaetz/workspaces/JBossWorkspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_final_Server1295446459986/deploy/AdvancedTracking.ear/META-INF/sap-bw-ds.xml", "/C:/Users/abaetz/workspaces/JBossWorkspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_final_Server1295446459986/deploy/AdvancedTracking.ear/META-INF/VersionTracker-ds.xml"]
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.handleMultipleFiles(AbstractVFSParsingDeployer.java:440) [:2.2.0.GA]
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:319) [:2.2.0.GA]
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:376) [:2.2.0.GA]`

I can't merge the two files, because they are based on different xml-schemas. How can i get my ear to work?

Greetings, Laures


What do you mean with "different schemas"?

The -ds.xml file has a fixed format, that both definitions should adhere to. And within a -ds.xml file it is posible to define multiple data sources or managed connections.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜