my dog learned polymorphism*
The moose likes JSP and the fly likes jsp:useBean error in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:useBean error in WebSphere" Watch "jsp:useBean error in WebSphere" New topic
Author

jsp:useBean error in WebSphere

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
I have a simple JSP file mm1.jsp that uses a bean (bean is in websphere classpath)
<html>
<head> <title> Dictionary Select </title> </head>
<body>
<jsp:useBean id="abean" class="MRCPS.MRC007" />
<h2> Dictionary Selection </h2>
</body>
</html>
This file compiles and runs OK in Tomcat (on PC) but got this strange error in WebSphere:
Message: Server caught unhandled exception from servlet [JSP 1.0 Processor]: Compilation of "mm1.jsp" failed: /QIBM/UserData/WebASAdv/default/temp/default_host/mrcps/_mm1_2E_jsp_jsp_1.java:20: '}' expected. static StringBuffer[] _jspx_html_data = null; ^ 1 error
If I remove the useBean line then it runs OK in WebSphere:
<html>
<head> <title> Dictionary Select </title> </head>
<body>
<h2> Dictionary Selection </h2>
</body>
</html
Any ideas?


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12683
    
    5
I would certainly start by looking at the generated Java code to see what the lines around 20 contain.
Bill
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Thanks.
WebSphere on AS/400 (iSeries) does not give people generated servlet java code. The code is encoded (or serialized) I guess.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:useBean error in WebSphere
 
Similar Threads
error:The value for the useBean class attribute JBean is invalid
How to return ResultSet from Bean to JSP?
Browser back button
Problem with login page
calling javabean from jsp