db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujahid Malaysia" <harimaumal...@fastmail.fm>
Subject RE: Two EAR and two Torque.properties
Date Wed, 14 Jan 2004 00:57:43 GMT
I did the scoped class loader to isolate each Torque instance but another
problem raised. My EJB in App1.ear could not connect to the EJBs in
App2.ear.


On Tue, 13 Jan 2004 10:13:28 -0500, "Keeney, Thomas" <KeeneyT@SEC.GOV>
said:
> If you're running a version of Torque that has codebase similar to
> version
> 3.0, I may know the issue.  In Torque version 3.0, Line 240 retrieves the
> iterator for "mapBuilders", a STATIC Map.  Then Line 246 sets
> "mapBuilders"
> to <code>null</code>.  I believe the problem is with JBoss's
> UnifiedClassLoader (unified class repository).  If I am correct the
> scenario
> would run like this:
> 
> 1)  You access App1.ear, so JBoss loads Torque.class into the unified
> class
> repository.  Torque.class initializes just fine (Line 240 retrieves the
> iterator for "mapBuilders" and Line 246 sets "mapBuilders" to
> <code>null</code>.
> 2)  You then access App2.ear.  JBoss uses Torque.class that is already in
> the unified class repository, so it uses the Class instance from step #1
> to
> initialize Torque.  "mapBuilders" has already been set to
> <code>null</code>,
> so when JBoss reaches line 240, a NullPointerException is thrown.
> 
> I found a problem that is similar to your's:
> http://www.mail-archive.com/jboss-development@lists.sourceforge.net/msg38686
> .html
> 
> 
> Try using scoped classloaders with your EAR's JBoss deployment
> descriptors
> to isolate each Torque instance.  Hope this helps.
> 
> Best Regards,
> 
> Tom 
-----------------------------
Mujahid Malaysia
"Kembalikan Keagungan Islam"

-- 
http://www.fastmail.fm - IMAP accessible web-mail

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message