Portal Home > Knowledgebase > Articles Database > Java/JSP config on cPanel hosting


Java/JSP config on cPanel hosting




Posted by schmergatrumpf, 01-16-2009, 11:58 PM
Hi, [I accidentally posted this to the 'New Member Forum'. Have reposted here]. I've just moved web hosts and am setting up my site. The new host is based on cPanel. I seem to have everything working ok except being able to access my Java Class files. The new site is running Apache Tomcat 5.5.25 and I have my local dev site here running Tomcat 5.5.26 and everything runs sweet on my local machine. All my JSPs return the same error - here's an example: org.apache.jasper.JasperException: /jsp/events.jsp(4,0) The value for the useBean class attribute com.qra.beans.QRASessionBean is invalid. This is in reference to the following useBean statement at the top of my events.jsp: <%-- events.jsp --%> <%@ page language="java" import="java.sql.*, java.io.*, java.util.*" %> <%@ page import="com.qra.beans.Event"%> I have my class files and jsp files in these locations resp: /public_html/WEB-INF/classes/com/qra/beans/ /public_html/qraonline/jsp/ I'm not entirely sure I have the WEB-INF dir in the right spot. I've also tried moving the WEB-INF directory up one level giving: /WEB-INF/classes/com/qra/beans/ The top section of my Java class QRASessionBean is: public class QRASessionBean { private RogaineDatabase rogaineDB; private static final String CLASS_VERSION = "/main/1"; private boolean authenticated=false; private int authlevel=0; private String user = ""; private String classname = ""; private Member sessionMember; public QRASessionBean() { classname = "com.qra.beans.QRASessionBean()"; rogaineDB = new RogaineDatabase(); } ... } I have checked with the web host and both they and cPanel believe the Tomcat config is correct and my WEB-INF is in the right spot. Any ideas on what's going on? I suspect an environment issue as it all works fine on my identical local Tomcat dev instance. Thanks A.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Unicode to Western (Views: 478)