Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error 500: Can't instantiate class  RSS feed

 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

When I call the class using ActionListener from my JSF file.. I got this error:
Error 500: Can't instantiate class: 'Can't instantiate class: 'com.ex.RegisterController'.'.

I dont know how to clear it..

This is my JSF file(Register.jsp)
<f:view>
<h:form styleClass="form" id="form1">
<h:commandLink styleClass="selectlink" id="link1"
actionListener="#{RegisterController.process}">
<h utputText value="Login"></h utputText>
</h:commandLink>
</h:form>
</f:view>

This is my RegisterController.java file:

public abstract class RegisterController implements ActionListener {

public void process(ActionEvent e)throws AbortProcessingException{
System.out.println("entered");
}
}

I have defined the class in the faces-config.xml also..

can you people help me out..
 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends ,

I have rectified this error...

I used abstract class.. So only I got this error..
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!