wood burning stoves*
The moose likes Servlets and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic
Author

JSP

Yogesh Tisgaonkar
Greenhorn

Joined: May 15, 2001
Posts: 2
Hello guys
I have a problem in deploying Java Bean class in Jrun 3.0. I put the class file in <Jrun 3.0 default Web Server path>servers\default\default-app\Web-inf\classes . The following errors appear. Could anyone please help?
javax.servlet.ServletException: Exception thrown running XT: Expected "" to terminate element starting on line 2. org.xml.sax.SAXParseException: Expected "" to terminate element starting on line 2.
at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
vik nuckchady
Greenhorn

Joined: Apr 25, 2001
Posts: 25
It seems that you have a error on line 2 of your JSP page.
Post your code, this can help.
Yogesh Tisgaonkar
Greenhorn

Joined: May 15, 2001
Posts: 2
CODE:
<jsp:useBean id="myBean" class="examples.CompoundInterestBean"/>
<jsp:setProperty name="myBean" property="principal" param="principal" />
<jsp:setProperty name="myBean" property="years" param="years" />
<jsp:setProperty name="myBean" property="interestRate" param="rate" />
</jsp:useBean>
<html>
<body>
Input: $<jsp:getProperty name="myBean" property="principal"/>
earning <jsp:getProperty name="myBean" property="interestRate"/>
percent interest over
<jsp:getProperty name="myBean" property="years"/> years
<p>
Future Value is:
$<jsp:getProperty name="myBean" property="futureValue"/>
</body>
</html>

:
I am having my bean under <jrun>\servers\default\default-app\web-inf\classes\examples\CompoundInterestBean.class
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I downloaded JRun to give it a try because I was becoming very frustrated with the reference implementation's buggy deploytool.

When I tried to deploy an ear file on this platform, I got a SAXParse exception as well. The ear file is just fine, and so are all the XML files it contains (I put them through XML Spy).

It seems JRun or the SAXParse has a bug.
 
jQuery in Action, 2nd edition
 
subject: JSP
 
Similar Threads
where to place jsp pages & class files in Jrun in which folders
Jsp Error
what can i do with my jrun3.0?
Famous sites with jsp! networksolutions.com + 4 new books on jsp & tutorial links
using a bean and jsp problem