stevebowdoin
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?
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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.
https://www.ibm.com/support/knowledgecenter/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/covr_samples.html