HI,
I have two jar files.One contains presentaion classes like Struts Actions and FormBeans etc ..and Another which contains business logic classes like DAO ,etc. It is a simple application with no ejbs,
Now that, I have added a class-path entry in manifest of first jar (solution.jar) as below
class-path: component.jar
component.jar is within the solution.jar
I hope this is as per jar standards of sun.
when i deploy solution.jar on websphere3.5.7,
it is not able to find the component.jar classes
it is throwing NoClassDefFoundException
Can anyone tell me how to do this or where I am going wrong??
Thanks
Yes
-
Class-Path entry in manifest (1 messages)
- Posted by: S Yes
- Posted on: October 20 2004 01:45 EDT
Threaded Messages (1)
- Re: Class-Path entry in manifest by George Thomas on October 20 2004 09:46 EDT
-
Re: Class-Path entry in manifest[ Go to top ]
- Posted by: George Thomas
- Posted on: October 20 2004 09:46 EDT
- in response to S Yes
Hi,component.jar is within the solution.jar
If I understand you correctly, I would say this is the source of your problems. The references in the Class-Path attribute are relative to the location of the JAR file itself. In your case, component.jar should be in the same directory as solution.jar. When deploying the application, the two JARs get bundled up into a single EAR file. Depending on (a) how the application server unbundles the EAR and (b) the application server's classloading mechanism, you might have to do some more work, but this should get you started (assuming I understood you correctly).
Haven't worked with Websphere, but I am sure there must be documentation on their application server's classloader. Another good reference I would recommend highly is chapter 14 of Rod Johnson's excellent "Expert one-on-one J2EE Design and Development".
regards
George