This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP

 
Yogesh Tisgaonkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that you have a error on line 2 of your JSP page.
Post your code, this can help.
 
Yogesh Tisgaonkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic