troubleshooting Question

URGENT cant find jar file in war please help

Avatar of gagaliya
gagaliya asked on
6 Comments3 Solutions436 ViewsLast Modified:
hey guys,

Need some quick help please, we need to move a j2ee app from 1 linux server to another. We use the same weblogic81 on both servers.  All settings were copied and verified to be exactly the same/correct. Build using ant worked fine too.

We build our java files into different jar packages, ie: comp1.jar  comp2.jar comp3.jar  
Then those jar files are placed into our main war file under:   /WEB-INF/lib/  So the war file looks like:


Since this is purely a server migration no code was changed, all java classes have the correct package/imports already setup.

The problem is NONE of the java classes inside comp1.jar comp2.jar etc can be find at runtime. Whenever the program try to call a function from those java classes getting exceptions:

Root cause of ServletException. java.lang.NoSuchMethodError: getSomeFunction

Realize this is a difficult question without touching the code, but just want some ideas as to where to look/debug. Where exactly are the classpath for those jar files set for run time? which file?

1) import /  package  is not the problem
2) build/deploy works
3) main page of the application works
4) problem is only when the main program tries to use some function from within those jar files.

thank you!!

Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros