From: Don C. <dco...@ch...> - 2003-06-20 22:51:40
|
We have Jython embedded in a servlet running in JBoss/Tomcat. With the following code we can access jars in the JBoss server lib directory. String dir = System.getProperty("user.dir") + "../server/default/lib"; PySystemState.add_extdir(dir); You may be able to user similar code to reference the WEB-INF/lib directory. For this example, user.dir is where jboss is started from ( $JBOSS_HOME/bin) On Fri, 2003-06-20 at 17:24, Frank Cohen wrote: > I'm working on TestNetwork, the distributed version of TestMaker > (http://www.pushtotest.com/ptt.) The code installs on Tomcat, receives > SOAP-based Web Service calls that contain a Jython script, and executes > the Jython code and returns the results. It is SO cool to see Jython > running remotely like that. > > My problem is that Jython does not appear to find the jar files in the > WAR file of my webapp. My Tomcat 4.1 installation looks like this: > > tomcat/webapps/TestNetwork.war > > That expands to include: > > tomcat/webapps/TestNetwork/WEB-INF/lib/tool.jar > > How do I tell Jython to look in the WEB-INF/lib directory to import the > tool.jar? > > -Frank > > -- > Frank Cohen, Founder, PushToTest, http://www.PushToTest.com, phone: 408 > 374 7426 > Come to PushToTest for free open-source test automation solutions that > test and monitor > Web-enabled applications, especially Web Services for scalability and > reliability. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |