on 11-10-2004 1:24 PM
Hi,
we are using SAP AS 6.4 SP8.
The JSP Engine seems not to be able to compile the following statement implemented in one of our JSPs:
<jsp:useBean id='ObjectsBeanVar' scope='page'
beanName='<%= sClassname %>'
type='com.viaMEDICI.custom.viaCONTENT.Objectable'>
The JSP Engine tries to find a Bean with the name "<%= sClassname %>" instead of using the Variable which is pointing to a class "com.viaMEDICI.custom.viaCONTENT.ImagesBean".
thanks
Michael
Hi Michael,
could you please give me the "sClassname" declaration code?
Regards
Bojidar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bojidar,
sClassname is declared like this:
<% String sClassname =
"com.viaMEDICI.custom.viaCONTENT.dynamicdata."+sType +"Bean"; %>
But the problem seems to be, that the JSP-Engine doesn't try to use the sClassname as a Variable.
The JSP-Engine uses "...sClassname..." as classname
during compilation.
And here's the runtime error:
500 Internal Server Error
SAP J2EE Engine/6.40
Application error occurs during processing the request.
Details: java.lang.InstantiationException: ID018236: Cannot instantiate bean. java.lang.ClassNotFoundException: <%= sClassname %>
Found in negative cache
-
Loader Info -
ClassLoader name: [sap.com/epim]
Parent loader name: [Frame ClassLoader]
......
thanks + regards
Michael
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.