|
I'm trying to run some JSPs in Tomcat 5 that use IBM Toolbox for Java classes. I have the jt400.jar file in my C:\Tomcat5\shared\lib directory. I have C:\Tomcat5\shared\lib\jt400.jar in both my user and my system CLASSPATH variables. (And, by the way, I have PHP scripts that use the jt400.jar classes and run just fine in Tomcat, so I know the jt400.jar classes are available for use by applications in Tomcat.) However, when I try to open the JSP pages in a browser, I get error messages saying the jt400.jar packages are not found. Any ideas how to get my JSPs to see the jt400.jar classes? Detailed info below... Thanks, Kelly Here are the three error statements: Generated servlet error: C:\Tomcat5\work\Catalina\localhost\amexj\org\apache\jsp\login_jsp.java:6: package com.ibm.AS400 does not exist import com.ibm.AS400.access; An error occurred at line: 2 in the jsp file: /includes/login/loginmodel.jsp Generated servlet error: C:\Tomcat5\work\Catalina\localhost\amexj\org\apache\jsp\login_jsp.java:297: cannot resolve symbol symbol : class AS400 location: class org.apache.jsp.login_jsp AS400 iSeries = new AS400(inSystem, inUser, inPassword); An error occurred at line: 2 in the jsp file: /includes/login/loginmodel.jsp Generated servlet error: C:\Tomcat5\work\Catalina\localhost\amexj\org\apache\jsp\login_jsp.java:297: cannot resolve symbol symbol : class AS400 location: class org.apache.jsp.login_jsp AS400 iSeries = new AS400(inSystem, inUser, inPassword); Here's the complete code of the scriptlet that fails to compile. I've tried with and without the page import directive. <%@ page import="com.ibm.AS400.access" %> <% try { String inSystem = "arcticsystem"; AS400 iSeries = new AS400(inSystem, inUser, inPassword); try { Boolean uservalid = iSeries.authenticate(inUser, inPassword); session.setAttribute("system", inSystem); session.setAttribute("user", inUser); session.setAttribute("password", inPassword); out.println("<meta http-equiv=\"refresh\" content=\"0;URL=http://localhost:8080/amexj/mainmenu.jsp\">"); } catch (Exception e) { message="User name or password not valid. Please try again."; %> <%@ include file="loginview.jsp" %> <% } } catch (Exception e) { message="Unable to connect to the iSeries server. Please contact IT."; %> <%@ include file="loginview.jsp" %> <% } %> _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.