Link to home
Start Free TrialLog in
Avatar of gagaliya
gagaliya

asked on

URGENT cant find jar file in war please help

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:

MAIN.war:
/WEB-INF/lib/comp1.jar
/WEB-INF/lib/comp2.jar
/WEB-INF/lib/comp3.jar
html/
etc..

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!!


ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gagaliya
gagaliya

ASKER

sorry i dont understand what that means?  what do you mean by loadable anywhere other than from those jars?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i got what you guys are saying now, it turns out there were multiple instances listed and it was picking the older version of the compiled jar. thanks!
:-)