Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't instantiate class

843842Dec 18 2005 — edited Dec 22 2005
Hello guys,

I am facing a problem whey trying to instantiate a class and get data whey showing the form for the fist time.

My faces-config file is as follows:

<faces-config>
<managed-bean>
<description>NotificationPage</description>
<managed-bean-name>topBean</managed-bean-name>
<managed-bean-class>ecustoms.notification.ui.NotificationPage</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>timestamp</property-name>
<property-class>java.sql.Timestamp</property-class>
<value/>
</managed-property>
<managed-property>
<property-name>userID</property-name>
<property-class>java.lang.String</property-class>
<value>#{param.userID}</value>
</managed-property>
</managed-bean>
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>notification</from-outcome>
<to-view-id>/jsp/notification.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<navigation-case>
<from-outcome>Refresh_Notification</from-outcome>
<to-view-id>/jsp/notification.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>refresh</from-outcome>
<to-view-id>/jsp/notification.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<lifecycle/>
<application>
<locale-config/>
</application>
<factory/>
</faces-config>

I am trying to get the info from my bean this way:

<h:commandLink id="link1" action="#{topBean.getNotificationForUser}" target="mainFrame" rendered="#{topBean.hasNotificationFlag > 0}">
<h:outputText value="You have new messages"/>
</h:commandLink>


The following is the exception I got:

javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: ''.


I urgently need to solve this problem so can anybody please render me some help. Thanks.

Melvin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2006
Added on Dec 18 2005
2 comments
209 views