Skip to main content

When is /lib/ext refreshed?

1 reply [Last post]
ricklam2
Offline
Joined: 2008-07-02

Running SJSAS9.1 on Windows 2003 Server.

I have changed my database driver (Oracle 8 to Oracle 10g), and copied it into /lib/ext. I have set up the connection pool, and pinged it OK.
However, when I try to start my instance, I get a class not found exception. When I investigated I found that the database driver did not get copied automatically into the /lib/ext directory.

When is this directory refreshed? - do I have to do something to get it refreshed? The node agent was running, so I expected it to be automatically updated.

Some further information...
My domain has 6 instances. I stopped & restarted each instance to force synchronisation. However the lib/ext directory was only refreshed on 4 of the instances! Can anyone please explain why?
I have tried switching on FINEST logging for synchronization but there were no extra logging messages output in the log.

Message was edited by: ricklam2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sahoo

I don't think domain/lib/ext is automatically synchronized. In fact, I
don't think domain/lib or domain/classes are also synchronized. As Siva
mentions in his blog [1], for automatic synchronization in the cluster,
copy the jars into the domains/domain1/config/xyz-config/lib directory.
Then add the jars in classpath-suffix or classpath-prefix element of
xyz-config. This will synchronize the jars for all server instances
using xyz-config. xyz refers to cluster name here.

Thanks,
Sahoo

[1]
http://blogs.sun.com/sivakumart/entry/classloaders_in_glassfish_an_attempt

glassfish@javadesktop.org wrote:
> Running SJSAS9.1 on Windows 2003 Server.
>
> I have changed my database driver (Oracle 8 to Oracle 10g), and copied it into /lib/ext. I have set up the connection pool, and pinged it OK.
> However, when I try to start my instance, I get a class not found exception. When I investigated I found that the database driver did not get copied automatically into the /lib/ext directory.
>
> When is this directory refreshed? - do I have to do something to get it refreshed? The node agent was running, so I expected it to be automatically updated.
> [Message sent by forum member 'ricklam2' (ricklam2)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283915
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net