users@glassfish.java.net

RE: Gf 3.01 ejb3.0 class path problem?

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Fri, 29 Oct 2010 22:11:30 -0400

dave-
domain.xml contains the deploy locations for jars e.g.

<j2ee-application availability-enabled="false" directory-deployed="false" enabled="true" java-web-start-enabled="true"
location="${com.sun.aas.instanceRoot}/applications/j2ee-apps/__JWSappclients" name="__JWSappclients" object-type="system-all"/>

__JWSappclientsClient.jar would be located in ${com.sun.aas.instanceRoot}/applications/j2ee-apps/__JWSappclients

hth
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 29 Oct 2010 11:31:44 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Gf 3.01 ejb3.0 class path problem?
>
> I have been porting an ear application from glassfish v2.1.1 to glassfish 3.0.0.
> I seem to be stuck on one last issue. I've been playing around with it for about a week now.
>
> I have a 3.0 ejb that calls a lib (packaged in the ear lib dir). The library tries to resolve a pojo reference back into the ejb module (via Class.forName). That 's where I get ClassNotFoundException errors.
>
> The code works inside an app-client and the gfv2.1.1 3.0 ejb. If I move the pojo out of the ejb-module and into the lib. It cannot resolve an ejb reference (at runtime) the pojo uses. It's like the ejb classpath does not have itself in the search path.
>
> I've tried moving the pojo in the ejb-module around to no avail. I've also tried to move the ejb-module into the lib dir (bad idea).
>
> Any ideas?
>
> Dave
> [Message sent by forum member 'dbritton60']
>
> http://forums.java.net/jive/thread.jspa?messageID=486500
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>