| 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: 12268
|
|
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.
|
 |
 |
|
|
subject: jsp:useBean error in WebSphere
|
|
|