Focal Point
[CASE-OPENED] Adding Jar Files for a JSP File

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9327033886

November 16, 2017, 02:18 AM
M. Nagy
[CASE-OPENED] Adding Jar Files for a JSP File
Hi,

I have a jsp file that uses two jar files. How do I add the jar files?

Thank you for your time!


Best regards,
M. Nagy


WebFOCUS 8.1.05M
AIX 7.1, All Outputs
November 16, 2017, 01:19 PM
dhagen
Assuming you are planning on deploying in WF, and you are using the directory deployment of Tomcat, then:

\ibi\WebFOCUS82\webapps\webfocus\WEB-INF\lib

Then restart Tomcat

If you are doing a .war or .ear deployment, add the files to the same directory and then build and deploy the .war


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
November 19, 2017, 03:13 AM
M. Nagy
Hi dhagen,

Thank you very much for your reply.

I added the jars and restarted Tomcat. But the jsp file gives me an error:
HTTP Status 500 - Unable to compile class for JSP
Is this error related to the Jars not being available for the JSP file?
Do I need to add them in the classpath in the profile.sh?
How can I verify that the jar files are available to the JSP file?

Best regards,
M. Nagy


WebFOCUS 8.1.05M
AIX 7.1, All Outputs
November 20, 2017, 11:17 AM
dhagen
More than likely there is a syntax error in the JSP. I'm not sure where you would get the complete list for JARs. Rest assured that if it is in the "lib" directory, and you are deploying using the directories and not a WAR file, then they will be available.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
November 29, 2017, 03:45 AM
M. Nagy
Hi dhagen,

Thank you very much for your reply.

I will check for syntax errors in the JSP.

Best regards,
M. Nagy


WebFOCUS 8.1.05M
AIX 7.1, All Outputs
November 29, 2017, 07:25 AM
M. Nagy
Hi,

I have checked, there is no syntax error.
What should I do now?

Thanks and best regards,
M. Nagy


WebFOCUS 8.1.05M
AIX 7.1, All Outputs
December 14, 2017, 08:39 AM
M. Nagy
I have a jsp file that uses two jar files. How do I add the jar files? and how do I verify that they became available to the jsp file?

Thank you for your time!


Best regards,
M. Nagy


WebFOCUS 8.1.05M
AIX 7.1, All Outputs