Problem Description:
Two Package need deployed on JBoss: agent.war and msc.jar。
agent.war is a jaxm application. The main part of it is a Servlet class which extends JAXMServlet and implements ReqRespListener. Called HttpAdapter。
msc.jar is our EJBs including stateless sessionBean and CMP。
(1) Start JBoss3.6,pre-Deploy: jaxm-provider.war, jaxm-provideradmin.war (from JAXM1.1.2);
(2) Deploy agent.war,done。then deploy msc.jar, ok。Then, We use a client to invoke HttpAdapter, also OK。Unfortunately,
(3) after we modified agent, redeploy new agent.war on JBoss。Deploy ok. But when client invokes HttpAdapter again. An error occurs: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException。
(4) We restart JBoss, the problem is still there.
Methods we taked:
(1) undeploy agent.war and msc.jar,restart JBoss。Change the deploy order of agent.war and msc.jar. deployment is ok. But We got the same error report.
(2) we combined agent.war and msc.jar into msc.ear. undeploy and Restart jboss. Deployment is success. But when client invokes ,still Error, but another:
10:59:38,856 ERROR [Engine] StandardWrapperValve[HttpAdapter]: Allocate exception for servlet HttpAdapter
javax.servlet.ServletException: Error allocating a servlet instance
... ...
10:59:38,863 ERROR [Engine] ----- Root Cause -----
java.lang.NoClassDefFoundError: javax/xml/messaging/JAXMServlet
Your Help needed:
We think the most possible cause is the confliction in deployment file or configurations. We greatly appreciate your kindness help. Thanks a lot.
Appendix:
(1) runtime Environment:
JBoss3.6 & Tomcat4 on Solaris8
(2) msc.ear�s application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>MscPlatform</display-name>
<module>
<ejb>msc.jar</ejb>
</module>
<module>
<web>
<web-uri>agent.war</web-uri>
<context-root>HttpAdapter</context-root>
</web>
</module>
</application>
(3) developing Environment:
JBuilder8, Windows2000& WindowsXP,
JBoss�s JBuilder8 Plugin :JBossOpenTool.jar