From: JD B. <br...@re...> - 2003-03-10 21:35:25
|
We had a similar error calling System.loadLibrary(). Worked the first time, but not on subsequent redeploys. In our case it turns out you can't load the same library twice into the same VM, so we moved that code out of our EJB jar and just put it in the JBoss server/lib directory. Maybe a similar fix will work for you. Good luck! JD -----Original Message----- From: Christian Nelson [mailto:cn...@sl...] Sent: Monday, March 10, 2003 1:13 PM To: JBoss User Subject: [JBoss-user] Linkage Error on Redeploy Greetings, We're have an issue with Linkage exceptions when we redeploy our application. The exception does *not* happen when we deploy for the first time (since Jboss was started). This happens with both jboss-3.0.4_tomcat-4.1.12 and jboss-3.0.5_tomcat-4.1.18, running under either Windows Xp and Linux 2.4.x. The exact exception is as follows: java.lang.LinkageError: loader constraints violated when linking org/apache/commons/digester/ObjectCreationFactory class Here is a scenario: 1) start up jboss (vanilla, no .ear file in deploy) 2) everything is fine. 3) deploy aaw.ear. 4) aaw.ear deploys a-okay, everything is fine. 5) recopy the aaw.ear file (with a newer timestamp) into deploy. 6) old aaw.ear is undeployed, this works fine. 7) on deploy of new aaw.ear, the above exception happens. I think it has to do with the default/tmp directory that caches jar files that have been deployed (or somesuch). Maybe there's a conflict wrt versions of jars that both jboss and my app depend on? I am pretty certain this is something we're doing dumb, not a bug with jboss.... I just don't know how best to diagnose what exactly is the cause. Any clues? Thanks, Christian --------------------------------------------------------------------------- Christian 'xian' Nelson cn...@sl... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Don't ask yourself what the world needs. Ask yourself what makes you come alive, and go do that, because what the world needs is people who have come alive." -- Howard Thurman --------------------------------------------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list JBo...@li... https://lists.sourceforge.net/lists/listinfo/jboss-user |