Re: Error while running JSP which calls a bean
Fernando, Try installing Build 157 of JRUN 2.3.3. That should solve your problem. The other fix is to provide the fully specified class name (package class) in the class parameter of the jsp:useBean tag. The JSPRuntime class in the older builds takes the value of the class parameter as a string and attempts to instantiate a bean with that name (I assume it uses Class.forName or some similar method). These methods, of course, require the fully specified name in order to find the class, and therefore, don't function correctly. The new build has replaced this method with a better implementation which is satisfied as long as you've performed an import as part of the page directive. -AMT P.S. If you do install the new build, make sure you erase all the old servlets generated from the JSPs. Otherwise, you appear to end up with all sorts of strange errors. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Fernando Ribeiro Sent: Wednesday, February 16, 2000 5:30 AM To: [EMAIL PROTECTED] Subject: Re: Error while running JSP which calls a bean You should take a look at the values of your environment variables and JRun-specific configuration. It seems like a regular CLASSPATH problem. Please let me know if that works. fribeiro Ram Anantha wrote: Hi, The configuration I am running under is (JRUN pro 2.3.3) + (Apache 1.3.11) on Windows NT. I have a jsp file (called junk2.jsp) which calls a bean as follows: jsp:useBean id="test" class="SimpleBean" / jsp:setProperty name="test" property="message" value="Hello World" / When I run this using: http://localhost/junk2.jsp, I get the following error: 500 Internal Server Error com.livesoftware.jsp.JSPServlet: javax.servlet.ServletException: Found 1 semantic error compiling "C:/JRun/jsm-default/services/jse/servlets/jsp/junk2.java": 36. SimpleBean test = (SimpleBean) JSPRuntime.instantiateBean("test", "SimpleBean", "page", __test_was_created, pageContext, request, session, application); *** Error: Type jsp/SimpleBean was not found - What am I doing wrong? I put the SimpleBean.class file in the same directory where junk2.java (servlet corresponding to junk2.jsp) was created. I also tried putting the SimpleBean.class file by creating another directory called jsp under: C:/JRun/jsm-default/services/jse/servlets/jsp directory. In both cases I get similar errors... Any suggestions ??? Please help !!! == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Error while running JSP which calls a bean
You should take a look at the values of your environment variables and JRun-specific configuration. It seems like a regular CLASSPATH problem. Please let me know if that works. fribeiro Ram Anantha wrote: Hi, The configuration I am running under is (JRUN pro 2.3.3) + (Apache 1.3.11) on Windows NT. I have a jsp file (called junk2.jsp) which calls a bean as follows: jsp:useBean id="test" class="SimpleBean" / jsp:setProperty name="test" property="message" value="Hello World" / When I run this using: http://localhost/junk2.jsp, I get the following error: 500 Internal Server Error com.livesoftware.jsp.JSPServlet: javax.servlet.ServletException: Found 1 semantic error compiling "C:/JRun/jsm-default/services/jse/servlets/jsp/junk2.java": 36. SimpleBean test = (SimpleBean) JSPRuntime.instantiateBean("test", "SimpleBean", "page", __test_was_created, pageContext, request, session, application); *** Error: Type jsp/SimpleBean was not found - What am I doing wrong? I put the SimpleBean.class file in the same directory where junk2.java (servlet corresponding to junk2.jsp) was created. I also tried putting the SimpleBean.class file by creating another directory called jsp under: C:/JRun/jsm-default/services/jse/servlets/jsp directory. In both cases I get similar errors... Any suggestions ??? Please help !!! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Error while running JSP which calls a bean
Hi, The configuration I am running under is (JRUN pro 2.3.3) + (Apache 1.3.11) on Windows NT. I have a jsp file (called junk2.jsp) which calls a bean as follows: jsp:useBean id="test" class="SimpleBean" / jsp:setProperty name="test" property="message" value="Hello World" / When I run this using: http://localhost/junk2.jsp, I get the following error: 500 Internal Server Error com.livesoftware.jsp.JSPServlet: javax.servlet.ServletException: Found 1 semantic error compiling "C:/JRun/jsm-default/services/jse/servlets/jsp/junk2.java": 36. SimpleBean test = (SimpleBean) JSPRuntime.instantiateBean("test", "SimpleBean", "page", __test_was_created, pageContext, request, session, application); *** Error: Type jsp/SimpleBean was not found - What am I doing wrong? I put the SimpleBean.class file in the same directory where junk2.java (servlet corresponding to junk2.jsp) was created. I also tried putting the SimpleBean.class file by creating another directory called jsp under: C:/JRun/jsm-default/services/jse/servlets/jsp directory. In both cases I get similar errors... Any suggestions ??? Please help !!! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html