aspose file tools
The moose likes JSF and the fly likes Error 500: Can't instantiate class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Error 500: Can Watch "Error 500: Can New topic
Author

Error 500: Can't instantiate class

Jessica James
Ranch Hand

Joined: Jan 23, 2007
Posts: 69
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

Joined: Jan 23, 2007
Posts: 69
Hi friends ,

I have rectified this error...

I used abstract class.. So only I got this error..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error 500: Can't instantiate class
 
Similar Threads
Foreign key field population from datatable to textbox?
how to use TreeSelectionListener in a tree ?
ServeletException, PropertyNnotFoundException
h:commandLink and onsubmit
How to target result Page in to tab panel.