The sar jboss-service.xml classpath should be visable to the ejb-jars since they are nested in the sar. It could just be a problem with how the verifier is loading classes and there have been some changes for this in the 3.2.2RCs. If you disable the verify by setting the VerifyDeployments attribute to false in
the conf/jboss-service.xml file:


  <!-- EJB deployer, remove to disable EJB behavior-->
  <mbean code="org.jboss.ejb.EJBDeployer" name="jboss.ejb:service=EJBDeployer">
    <attribute name="VerifyDeployments">false</attribute>
    <attribute name="ValidateDTDs">false</attribute>
    <attribute name="MetricsEnabled">false</attribute>
    <attribute name="VerifierVerbose">true</attribute>

does this still fail to deploy and work?

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Guy Rouillier wrote:


Scott, thanks for looking at this, and I apologize for taking so long to get back with this info. As a reminder, I have a scoped SAR that includes an EJB JAR that utilizes the MBean. Both the MBean and the EJB methods through custom exceptions that are defined in a separate JAR outside the SAR. I'm trying to keep this exception JAR outside the JBoss directory tree, along with all our other private JARs. When I deploy this SAR, I get an deployment exception on the EJB JAR that it is unable to locate the exception classes; the MBean deployment seems to find them though. If I copy our exception JAR into server/default/lib, everything deploys fine.


Below is the output from ListJar, the contents of jboss-service.xml and the part of the log showing the deployment exception. As I was copying and pasting the files below, I realized that the only place the classpath is defined is in jboss-service.xml. I may have just discovered the problem - that classpath isn't being used for the EJB JAR, is it?

ListJar output
--------------
\jboss-3.2.1\NEMSSar\sar\nems_activation_mbean.sar
+- META-INF/MANIFEST.MF
+- META-INF/jboss-service.xml
+- NEMS.jar (archive)
|  +- META-INF/MANIFEST.MF
|  +- client.policy
|  +- com/masergy/ejb/NEMS/ClassOfService.class
|  +- com/masergy/ejb/NEMS/Debug.class
|  +- com/masergy/ejb/NEMS/NEMS.class
|  +- com/masergy/ejb/NEMS/NEMSBean.class
|  +- com/masergy/ejb/NEMS/NEMSHome.class
|  +- jndi.properties
|  +- META-INF/ejb-jar.xml
|  +- META-INF/jboss.xml
+- nems_activation_mbean.jar (archive)
|  +- META-INF/MANIFEST.MF
|  +- com/masergy/nems/activation/ActivationServer$JobsThread.class
|  +- com/masergy/nems/activation/ActivationServer.class
|  +- com/masergy/nems/activation/ActivationServerMBean.class
Done

jboss-service.xml
-----------------
<?xml version="1.0" encoding="UTF-8"?>

<server>


<loader-repository>nems.masergy.com:loader=nems_activation_mbean.sar</loader-repository>


<classpath codebase="file:/apache/aslib" archives="*"/>

  <mbean code="com.masergy.nems.activation.ActivationServer"
     name=":service=ActivationServer">

<!-- Bind the RMIAdaptor to JNDI name jmx/rmi/RMIAdaptor -->
<attribute name="JndiName">com/masergy/nems/activation/ActivationServer</attribute>
</mbean>


</server>

server.log
------------
2003-09-17 12:32:55,125 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar
2003-09-17 12:32:55,156 INFO [org.jboss.deployment.SARDeployer] nested deployment: file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar


2003-09-17 12:32:55,172 INFO [org.jboss.deployment.SARDeployer] nested deployment: file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/nems_activation_mbean.jar

2003-09-17 12:32:55,578 WARN [org.jboss.ejb.EJBDeployer] Verify failed; continuing
java.lang.NoClassDefFoundError: com/masergy/exception/MsInvalidDataException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.privateGetPublicMethods(Class.java:1770)






------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to