cancel
Showing results for 
Search instead for 
Did you mean: 

AS6.4 SP8: JSP-Engine Error when using jsp:usebean with beanName='<%=xx%>'

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185706
Participant
0 Kudos

Hi Michael,

could you please give me the "sClassname" declaration code?

Regards

Bojidar

Former Member
0 Kudos

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

former_member185706
Participant
0 Kudos

Hi Michael,

this seems to be an issue.

Please report an OSS message.

Regards

Bojidar