File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic


Yogesh Tisgaonkar

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(
vik nuckchady

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

Joined: May 15, 2001
Posts: 2
<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" />
Input: $<jsp:getProperty name="myBean" property="principal"/>
earning <jsp:getProperty name="myBean" property="interestRate"/>
percent interest over
<jsp:getProperty name="myBean" property="years"/> years
Future Value is:
$<jsp:getProperty name="myBean" property="futureValue"/>

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.
I agree. Here's the link:
subject: JSP
It's not a secret anymore!