users@glassfish.java.net

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

From: Matthieu Bertin <matthieu.bertin_at_hypsoma.com>
Date: Thu, 26 May 2011 11:26:19 +0200

Hello Sahoo,

I've added the jarmodule trying to force glassfish to read it. but it didn't
work.
I'm getting the very same error with the following 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>myapp</display-name>
  <module>
    <ejb>business-2.0.3-SNAPSHOT.jar</ejb>
  </module>
  <library-directory>lib</library-directory>
</application>

and of course i've doubled-checked that the domain.jar is in the ear lib
folder, and contains the "missing" class.