This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes UnsatisfiedLinkError after Tomcat restart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "UnsatisfiedLinkError after Tomcat restart" Watch "UnsatisfiedLinkError after Tomcat restart" New topic
Author

UnsatisfiedLinkError after Tomcat restart

Jay Grant
Greenhorn

Joined: Feb 09, 2012
Posts: 12
Receiving java.lang.UnsatisfiedLinkError: ICEJ1 (Library is already loaded in another ClassLoader) on my ICEJ1 DLL. This occurs after a Tomcat restart on the first invocation of a servlet which loads the DLL, so it's not a case of having updated the servlet while Tomcat is running and attempting to reinvoke it (which as I and innumerable other victims have discovered, itself necessitates a Tomcat restart). libICEJ1.x and libICEJ1.so exist only in .../lib, there are no other copies. Could Tomcat have squirreled something somewhere else that precipitates this condition?
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

Could you post some more detailed information in the matter, its very hard to tell where its going wrong.
Jay Grant
Greenhorn

Joined: Feb 09, 2012
Posts: 12
Not really much I can add. If the DLL-related "lib..." files exist only in the .../lib directory as far as I can tell (where they should exist), then how can they be already loaded elsewhere in a different ClassLoader? A recursive search of the directory hierarchy only shows them in /lib.
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

Try Posting the Error Stack Trace, it might give more clarity, just the type of error cant help in any possible way, so could you give more information on this matter ?
Jay Grant
Greenhorn

Joined: Feb 09, 2012
Posts: 12
Actually think I found it...there was an overlooked class file of the same name in the ROOT structure which referenced the mystery DLL...deleted it and the message disappeared.
 
 
subject: UnsatisfiedLinkError after Tomcat restart
 
Similar Threads
Restarting apache tomcat after changes in servlet and jsps
Call DLL file signed applet
Tomcat 404 Error on Every New Servlet I Create
Deployed Servlet and Jsp
Servlets with Tomcat 4