我正在将应用程序从 JBOSS 4.X 迁移到 JBoss 7.1。我正面临这里提到的一个问题
myApp.ear
+ ---- lib
| |------- common.jar
|
+----- META-INF
| +-- jboss-deployment-structure.xml and other config files
|
|
| ---- xxxEJB.jar
+ ---- xxxWebApp.war
jboss-deployment-structure.xml in ear/meta-inf is as follows
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="javaee.api" export="true"/>//module.xml
<module name="sun.jdk" export="true"/>
<module name="com.lib" export="true"/>
<module name="deployment.myapp.ear.xxxejb.jar"/>
</dependencies>
</deployment>
<sub-deployment name="xxxwebapp.war">
<resources>
<resource-root path="common.jar" >
</resource-root>
</resources>
</sub-deployment>
</jboss-deployment-structure>
尝试调用应用程序时出现以下异常
08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) javax.naming.NameNotFoundException: com.xxx.session.UserMgrHome -- service jboss.naming.context.java."com.xxx.session.UserMgrHome"
08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)
08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
08:05:06,562 ERROR [stderr] (http--127.0.0.1-8080-1) at javax.naming.InitialContext.lookup(InitialContext.java:392)
任何指向这个请
感谢和问候斯里尼