Jump to content

Problems With Jsp: Cannot Run On Heliohost


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...