lamprax Posted August 17, 2012 Posted August 17, 2012 hello, I am facing a problem with jsp. I have uploaded some files and folders from my tomcat server installed on my pc (localhost) and I am trying to make the necessary modifications for the files to run on heliohost.org I have already put the java and .class files in "public_html/WEB-INF/classes/com" path I am getting the error below: org.apache.jasper.JasperException: /signUp.jsp(7,0) The value for the useBean class attribute com.moneyHdl.moneyBean is invalid. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1204)org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)org.apache.jasper.compiler.Node$Root.accept(Node.java:457)org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)org.apache.jasper.compiler.Generator.generate(Generator.java:3384)org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207)org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 1. all java files have the default public constructor 2. I added the web.xml file into "public_html/WEB-INF" path with the following information <?xml version="1.0" encoding="UTF-8"?><web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet><servlet-name>formBean</servlet-name><servlet-class>com.vld.formBean</servlet-class></servlet> <servlet><servlet-name>QstBean</servlet-name><servlet-class>com.qstHdl.QstBean</servlet-class></servlet> <servlet><servlet-name>moneyBean</servlet-name><servlet-class>com.moneyHdl.moneyBean</servlet-class></servlet> <servlet-mapping><servlet-name>formBean</servlet-name><url-pattern>/formBean</url-pattern></servlet-mapping> <servlet-mapping><servlet-name>QstBean</servlet-name><url-pattern>/QstBean</url-pattern></servlet-mapping> <servlet-mapping><servlet-name>moneyBean</servlet-name><url-pattern>/moneyBean</url-pattern></servlet-mapping> <session-config><session-timeout>30</session-timeout></session-config><welcome-file-list><welcome-file>lamprax.heliohost.org/public_html/signIn/signIn.jsp</welcome-file></welcome-file-list></web-app> 3. I have also added a whoWantsToBeAMillionaire.xml file with the following information <?xml version="1.0" encoding="UTF-8"?><Context antiJARLocking="true" docBase="lamprax.heliohost.org/public_html" path="lamprax.heliohost.org/public_html"/> I would like to ask why I am getting the message above and what changes I have to make in order my web page to work on heliohost. Also, could you please inform me whether I have to add some mysql.jar or tools.jar files in a folder or not? Thank you in advance
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now