アプリケーションをJBOSS4.XからJBoss7.1に移行しています。私はここで述べたように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)
これへのポインタをお願いします
Sriniに感謝します