一个 EAR 中的多个数据源文件
我正在测试 jboss 6 的 sapbabijca 。目前我的目录中有 2 个 -ds.xml 文件耳朵。一个用于我的 jdbc 连接,另一个包含我的 sap 连接器的配置。现在,当我尝试部署我的耳朵时,我得到:
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]`
我无法合并这两个文件,因为它们基于不同的 xml 架构。 我怎样才能让我的耳朵正常工作?
问候, 劳雷斯
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“不同的模式”是什么意思?
-ds.xml 文件具有固定格式,两个定义都应遵守该格式。
在 -ds.xml 文件中,可以定义多个数据源或托管连接。
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.