Can someone please help me??

I have created a netplus.ear and within this I have ejb_LoginAPI.jar and 
communication.jar. The ear file also has application.xml as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>
<application>
<display-name>dummy</display-name>

<module>
<java>communication.jar</java>
</module>

<module>
<ejb>ejb_LoginAPI.jar</ejb>
</module> 
</application>

Now within ejb_LoginAPI.jar I have the EJB class files plus ejb-jar.xml.

<?xml version="1.0" encoding="Cp1252"?>

<ejb-jar>
<description>jBoss test application </description>
<display-name>Test</display-name>
<enterprise-beans>
<session>
<ejb-name>LoginAPI</ejb-name>
<home>com.abb.netplus.infrastructure.services.login.LoginAPIHome</home>
<remote>com.abb.netplus.infrastructure.services.login.LoginAPI</remote>
<ejb-class>com.abb.netplus.infrastructure.services.login.LoginAPIBean</ejb-cla
ss>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>

</session>
</enterprise-beans>
</ejb-jar>

Now my problem is..everytime I try deploying this netplus.ear on Jboss..I get 
NoClassDefFoundError. When Jboss trys to deploy ejb_LoginAPI it can't find 
APIResponse.class in communication.jar.

How do I setup my ejb to reference APIResponse?? I have found lots of examples 
for EJBs referencing other EJBs but what about referencing ordinary jar files 
like communication.jar.

Should communication.jar exist in the ear file with an application-client.xml 
file OR should the classes in communication.jar be part of ejb_LoginAPI.jar.

-----------------------
"From Golfing Breaks to Carribean Cruises, Totalise shop has the holiday for you"
http://www.totaliseshop.co.uk



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to