• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Error 500: Can't instantiate class  RSS feed

 
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..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!