Hi Gurus,
Here is a situation which I am trying to create.
1. I want to process a request from an HTML form into a JSP page which
inturn will call a JavaBean class to process the data sent by POST method.

2. I've put the HTML form in \JRun\jsm-default\services\jws\htdocs and the
JSP page(which is called from HTML form action) is in
\JRun\jsm-default\services\jws\htdocs\jsp\.

3. The bean class file is in \JRun\jsm-default\classes\form, and is referred
to in the jsp-page as 'type="form.FormBean.class"'.

4. While I fill the form and press submit, the jsp page is called and gives
following error:

*****************************
500 Internal Server Error
com.livesoftware.scripting.CompilerException:
Found 1 semantic error compiling
"C:/JRun/jsm-default/services/jseweb/servlets/jsp/jsp/Form.java":

    90.         String[] lang = formHandler.getLanguages();
                                <--------->
*** Error: "formHandler" is either a misplaced package name or a
non-existent entity.

        at
com.livesoftware.scripting.JavaCompiler.outProcessCompile(JavaCompiler.java:
158)
        at
com.livesoftware.scripting.JavaCompiler.compile(JavaCompiler.java:75)
        at
com.livesoftware.jrun.plugins.jsp.JSPCore.getPage(JSPCore.java:552)
        at com.livesoftware.jrun.plugins.jsp.JSP.callPage(JSP.java:618)
        at com.livesoftware.jrun.plugins.jsp.JSP.service(JSP.java:543)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.livesoftware.jrun.JRun.runServlet(JRun.java:321)
        at
com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
        at
com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleOutput(JRunWeb
ServiceHandler.java:266)
        at
com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleRequest(JRunWe
bServiceHandler.java:234)
        at
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.ja
va:96)

*****************

So far as I can understand, the error is bcoz the compiler is not able to
locate the bean classfile used in the JSP page.  I've checked in the the
jsm.properties and the classpath is set appropriately.
Can anybody point out the missing links.
Thank in advance..
Navin Agrawal

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to