users@glassfish.java.net

Re: Common Classloader in a clustered environment?

From: Gopal Jorapur <Gopal.Jorapur_at_Sun.COM>
Date: Tue, 15 Jul 2008 15:50:13 -0700

Hi,

It is supposed to work if you put it under lib/ext of DAS machine and
restart your server instances

Can you check if the application works on DAS ? (Deploy application to
DAS and access it using DAS http port - 8080 by default)

Another thing to check would be permissions for the jar file

Thanks,
Gopal

glassfish_at_javadesktop.org wrote:

>I'm having problems getting a web app to use a common jar file. I have a 3 machine cluster with 1 DAS machine. To use the common classloader I copied my commonlibrary.jar file into the glassfish\domains\domain1\lib\ext directory of the DAS machine. When I launch my web app and perform some function that would use the common library I get java.lang.NoClassDefFoundError for the common library. Why doesn't this work? I have tried restarting the server, copying the common library to the glassfish\domains\domain1\lib directory, and just about everything I could think of. This is weird because for the database connection I have an ojdbc14.jar in the glassfish\domains\domain1\lib\ext directory and it has no problems seeing and using that common library.
>[Message sent by forum member 'chile62' (chile62)]
>
>http://forums.java.net/jive/thread.jspa?messageID=286871
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>


-- 
<http://blogs.sun.com/quality> 	* Gopal Jorapur*
Software Engineer
Blog Page <http://blogs.sun.com/quality>
GlassFish Quality Community 
<http://glassfish.dev.java.net/quality/portal/index.html>
Sun Java Application Server 
<http://www.sun.com/software/products/appsrvr/index.jsp>
Sun Microsystems, Inc.
Phone x34452
Email Gopal.Jorapur_at_Sun.COM <mailto:gopal.jorapur_at_sun.com>