[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Adding .jar files to the classpath of a webapp
jwiegley
do-not-reply at jboss.com
Thu Jun 21 23:09:13 EDT 2007
Hello, I'm building an .EAR file (using IDEA) that contains several .jar files in it. One of these .jar files contains classes that I need to be visible to Jython running inside a webapp (which is also packaged within the .war). To summarize:
FOO.EAR:
BAR.JAR
BAZ.WAR:
myclass.class <- uses org.python.core.imp.import
to load in a myscript.py file.
myscript.py does "import bar.type"
At the point when my web application gets to the "import bar.type" command in myscript.py in myclass.class within the .WAR, I get a long exception saying "module bar not found".
Module bar is inside BAR.JAR, which is being packaged in my .EAR. Apparently, this BAR.JAR is not being added to the classpath of my webapplication -- or it's not being passed down to Jython somehow.
How do I setup the classpath? Is it already being setup and I need to be looking at migrating it down to Jython?
I've looked everyone on Google for every combination of terms I can think of. So now I came to you all in frustration; help! :)
Thank you, John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056710#4056710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056710
More information about the jboss-user
mailing list