• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException / JSF and SPRING

 
Hernán Quevedo
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

Me again.
I'm writing a JSF / SPRING app on websphere 5.1 and jdk 1.4 using IBM RAD 7.0.

I don't know why, but somehow yesterday the app stopped instantiating a very important bean via Spring injection. The exception is as follows:

[code]Managedbean eskuEditSKUBean could not be created Can't instantiate class: 'com.sysde.siman.sol.presentacion.editSKU.EditSKUBean'.. class com.sysde.siman.sol.presentacion.editSKU.EditSKUBean : java.lang.NullPointerException
[27/05/09 16:47:34:420 GMT]
mkjavax.faces.FacesException: Can't instantiate class: 'com.sysde.siman.sol.presentacion.editSKU.EditSKUBean'.. class com.sysde.siman.sol.presentacion.editSKU.EditSKUBean : java.lang.NullPointerException
at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:209)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
at org.springframework.web.jsf.DelegatingVariableResolver.resolveOriginal(DelegatingVariableResolver.java:120)

Caused by: java.lang.ClassNotFoundException: class com.sysde.siman.sol.presentacion.editSKU.EditSKUBean : java.lang.NullPointerException
at java.beans.Beans.instantiate(Beans.java:223)
at java.beans.Beans.instantiate(Beans.java:63)
at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:203)[/code]



I can't imagine how is this possible... it is totally out of the blew. I have changed workspace, reinstalled RAD, clanead up the project and validated it, but nothing happens. There's nothing wrong with character codification nor package names; faces-config.xml is in order.

Any ideas?
Thanks.
 
Shivaji Byrapaneni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please make the class that you are trying to instantiate available to the JVM.
i mean in the CLASSPATH

mostly this error occurs when JVM cant find the class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!