|
I am unable to instantiate my component from
JSP. I am doing a jsp:useBean on it, but it says its not in scope.
Upon inspection of the WAR file, I see that both "WEB-INF" and "web-inf" are
present. The JAR file containing my code is in "WEB-INF/lib". I
built this on Win2K. Is there something I'm doing wrong when I call
jar.exe that would produce this???
See attached please.
Snippet:
<%@ page import="java.sql.*"
%>
<jsp:useBean
id="dbcon" type="com.netspark.archivalcd.DBConnection" scope="session" /> <h3> Test </h3> <%
Connection con = null; try {
con = dbcon.getConnection(); } catch(Exception e) { out.println(e.getMessage() + "<br>"); } // Create Query and Get Results
Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM staff"); // List Results
while( rs.next() ) { out.println( rs.getString("name") + "<br>" ); } // Close connection -
important!!!
con.close(); %>
Also I notice that sometimes when I deploy my EAR
file I get this message:
[J2EE Deployer] Could not remove file:
file:/C:/jboss_tomcat/jboss-2.0-FINAL/tmp/deploy/archivalcd.ear
[Auto deploy] Deployment failed:file:/C:/jboss_tomcat/jboss-2.0-FINAL/deploy/archivalcd.ear [Auto deploy] java.io.EOFException: Unexpected end of ZLIB input stream The only way this goes away is for me to restart
jBoss. The EAR file deploys fine then.
Thanks,
Mark |
