我正在尝试在JBoss 7.1.1Final上设置一个启用CORBA的应用程序。似乎我错过了什么,因为我所尝试的每一件事都会导致另一个例外。所以,我试过的是:
standalone -c standalone-ha.xml -Djboss.node.name=nodeA or
standalone -c standalone-full-ha.xml -Djboss.node.name=nodeA 然后这里的第二线
GlobalData.orb = org.omg.CORBA.ORB.init(args, p);
orb.resolve_initial_references("NameService");抛出异常:
(MSC service thread 1-9) IDL:omg.org/CORBA/ORB/InvalidName:1.0: org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0
at org.jacorb.orb.ORB.resolve_initial_references(ORB.java:1343) [jacorb-2.3.1.jbossorg-1.jar:]
at MyApp.startServer(MyApp.java:145) [server.jar:]我的/conf文件夹包含一个带有条目的jacorb.properties
ORBInitRef.NameService=corbaloc::localhost:3828/JBoss/Naming/root有人能把光带到黑暗里吗?谢谢,彼得
发布于 2013-10-24 12:42:18
我找到了解决这个问题的方法,Jacorb要求强制配置(jacorb.propeity) --您可以从JBoss 4.2.2获得该文件
然后
您需要将该文件包含在类路径中,这样才能创建自定义模块。
例如,转到jboss模块目录
创建子目录custom/myconfig/main,例如
在那里添加属性文件。
创建module.xml文件。你会选择模块名..。例如,custom.myconfig
<module xmlns="urn:jboss:module:1.1" name="custom.myconfig">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="."/>
<!-- Insert resources here -->
</resources>
<dependencies>
</dependencies>
</module>
In your jboss-deployment-structure.xml include this module to your app
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="custom.myconfig/>
</dependencies>
<resources>
</resources>
</deployment>
<sub-deployment name="My_WAR.war">
<dependencies>
<module name="custom.myconfig" />
</dependencies>
</sub-deployment>希望这对我有帮助
https://stackoverflow.com/questions/15974263
复制相似问题