Link to home
Start Free TrialLog in
Avatar of stevebowdoin
stevebowdoinFlag for United States of America

asked on

Where do I put my external jar files for an IBMi servlet?

I have a Java servlet installed on an IBMi.  OS is at 7.3.  I am using the integrated application server.
My servlet needs an external jar file.  On Tomcat on Windows, I put the jar in the /bin directory.  
Where to I put it in the 400?
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

Deploy using the console.  Here are instructions on how to deploy the sample applications from Github.  Same basic process for you.  Put files where you want them in the IFS, and deploy through console:

https://www.ibm.com/support/knowledgecenter/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/covr_samples.html
Avatar of stevebowdoin

ASKER

Gary.  I am using the Integrated application server.  Not WAS.  I did deploy via the IAS console.  I still get a "class not found" error.  That jar is in the build path in Eclipse.
ASKER CERTIFIED SOLUTION
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gary.  

I got it.  The IAS does not have a WEB-INF/lib directory like Tomcat.  When I deployed to Tomcat, I would put my jar there.  I never liked having to do that.  
Your recommendation caused me to go back and read some Tomcat documentation.  One poster said that the export function of Eclipse would pick up what was in “WEB-INF/lib”.  I copied my jar to that dir in Eclipse and BINGO.

All this time, I have been adding external jars to the build path in Eclipse.  My deployments just got a lot easier.  Thanks
Steve
Might also want to look at Maven, or a similar tool.