-
1. Re: Adding .jar files to the classpath of a webapp
raist_majere Jun 23, 2007 12:43 PM (in response to jwiegley)Try using Class-Path within the EAR manifest like in this example:
app3.ear: META-INF/application.xml ejb1_client.jar ejb3.jar Class-Path: ejb1_client.jar webapp.war Class-Path: ejb1_client.jar WEB-INF/web.xml WEB-INF/lib/servlet1.jar
-
2. Re: Adding .jar files to the classpath of a webapp
jwiegley Jun 23, 2007 7:56 PM (in response to jwiegley)I did try adding "package.jar" to the Class-Path in manifest.mf, but the module still comes up missing.
John -
3. Re: Adding .jar files to the classpath of a webapp
jwiegley Jun 25, 2007 7:00 PM (in response to jwiegley)Please, does anyone have any idea? I have tried many different things now, and *nothing* changes the classpath as seen by Jython. I'm testing by printing it out when the script first runs, and I haven't found a single way to change this list beforehand. Do others use Jython to run webapps?
John -
4. Re: Adding .jar files to the classpath of a webapp
raist_majere Jul 4, 2007 4:24 PM (in response to jwiegley)Would you mind copying the EAR manifest and the contents of the EAR? Maybe it could help more than the foo-bar example...
-
5. Re: Adding .jar files to the classpath of a webapp
jwiegley Jul 4, 2007 9:02 PM (in response to jwiegley)I thought I should mention that I found the solution to this problem. I need an extra add_extdir(PATH) and sys.path.append(PATH) to my Jython script, so that it could dynamically load new classes from the .jar files in WEB-INF/lib.
John