users@glassfish.java.net

Re: Why does the Client Container try to load a resource adapter's Connection class?

From: Jagadish Prasath Ramu <Jagadish.Ramu_at_Sun.COM>
Date: Thu, 29 May 2008 15:46:18 +0530

Can you post the exception stack traces?

Thanks,
-Jagadish


On Thu, 2008-05-29 at 11:53 +0200, Markus Karg wrote:
> My EAR contains three modules:
>
>
>
> * ResourceAdapter, providing a custom interface
>
> * EJB-JAR, containing a session bean that accesses the resource
> adapter's customer interface internally; also providing EJB 2.1
> Compatibility View
>
> * Application Client, using EJB 2.1 Compatibility View of the session
> bean
>
>
>
> The application client has NO references to any part of the resource
> adapter. He is completely unaware of its existence. Neither is any
> class or interface of the resource adapter beeing passes to the client
> by the session bean, or accepted by the session bean as beeing passed
> from the client.
>
>
>
> The validator has 0 errors, 0 warnings, 0 infos. Also I can deploy and
> startup the server without any problem.
>
>
>
> But when I click on "Launch" to run the client using Web Start, then
> Web Start shows me a nice exception that it is unable to locate one of
> the classes contained in the custom interface of the ResourceAdapter.
> In the stack trace there is only com.* and java.* stuff mentioned, but
> none of my own classes.
>
>
>
> As soon as I added a copy of all classes of the custom interface into
> my client JAR, it starts up very well (and certainly never uses that
> class).
>
>
>
> Can somebody explain, why the client container wants to load that
> class? It obviously is never referenced anywhere in the client!
>
>
>
> Thanks
>
> Markus
>
>
>
> QUIPSY QUALITY GmbH & Co. KG
>
> Ein Unternehmen der MES-Gruppe
>
> Stuttgarter Strasse 23
>
> D-75179 Pforzheim
>
> Tel: 07231-9189-52
>
> Fax: 07231-9189-59
>
> www.quipsy.de
>
> karg_at_quipsy.de
>
> Registergericht Mannheim HRA 701214
>
> Geschäftsführer: Nils Schroeder
>
>
>
> Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe
> geschützte Informationen und ist ausschließlich für den vorgesehenen
> o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail
> versehentlich erhalten haben und nicht der vorgesehene Empfänger sind,
> bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren,
> nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben.
> Bitte informieren Sie uns als Absender über diesen Zustellungsfehler
> und löschen Sie die E-Mail.
>
>
>
>