users@glassfish.java.net

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

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 26 May 2011 14:03:03 +0530

Why have you specified <java>lib/domain-2.0.3-SNAPSHOT.jar</java>?
Module type java is used to indicate application client module. Remove
that and try.

Sahoo
On Thursday 26 May 2011 01:49 PM, forums_at_java.net wrote:
> 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
>
>