users@glassfish.java.net

deployment trouble: jar in ear's /lib folder invisible to the ejbmodule

From: <forums_at_java.net>
Date: Thu, 26 May 2011 03:19:04 -0500 (CDT)

Hi,

I'm trying to deploy an ear on glassfish 3.1 and for some reason an error
appeared:

when deploying, an EJB - the first one being deployed - fails to deploy with
a Class not found error. Glassfish seems unable to fetch the classes in the
jar contained in my ear lib folder.

 

Is my application.xml wrong?
 

my application.xml :

<?xml version="1.0" encoding="UTF-8"?> <application
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
  <application-name>myapp</application-name>
  <display-name>packaging</display-name>   <module>
    <java>lib/domain-2.0.3-SNAPSHOT.jar</java>   </module>   <module>
    <ejb>business-2.0.3-SNAPSHOT.jar</ejb>   </module>
  <library-directory>lib</library-directory> </application>


--
[Message sent by forum member 'brzhk']
View Post: http://forums.java.net/node/806322