Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.ear file deployment --NoClassFound Error.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I have one session bean and one entity bean, my session bean is using rowset.jar's CachedRowSet class to store the database records, I package them (ejbs and jsp as war) to make a .ear file and when I deploy my .ear file it throws error NoClassFound sun.java.rowset.......??
if I put the jar file in the class path before starting the server it works but I don't what this way.
how can I resolve this problem
I am using weblogic 6.1 server.
please assist me.
regards
Hiresh
 
Where are you putting the rowset.jar in your ear? If you put in WEB-INF\lib then the ejb classes will not be able to use it. You have three choices:
1) Include it in the lib of every ejb that uses it.
2) Include in the top level of the ear alongside the ejb and war archives and then define a Class-Path manifest entry for each ejb that uses it. This will cause WebLogic load the classes in the correct order.
3) Deploy your ear as normal but keep the rowset.jar on the WebLogic Server CLASSPATH. (Current Solution)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top