• Post Reply Bookmark Topic Watch Topic
  • New Topic

500 servletException

 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the following problem:

500 Servlet Exception

/usr/local/resin-3.0.4/diggov/dgrc/WEB-INF/classes/com/dgo/common/DAO/RegistrationDAO_original.java:16:
class RegistrationDAO is public, should be declared in a file named RegistrationDAO.java
public class RegistrationDAO {
^
1 error

Why is this happening? I did copy the contents back from the RegistrationDAO_original.java to RegistrationDAO.java and did run the follwoing command:
javac -classpath /usr/local/resin-3.0.4/lib/servlet.jar com/dgo/common/DAO/RegistrationDAO.java
and the class file seems to be updated...checked it using ls -l
any help will be appreciated.
Thanks
Preetham
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are probably still deploying the old class too. Clear out the temporary directories, delete RegistrationDAO_original.java and redeploy.
 
kalyani Sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As you are having 2 public classes you are getting the error. Try to rename the "public class" declaration in the old file.

Hope this helps.

Thanks
Kalyani
 
gudla Dathathreya Reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the class name with public key word and the filename you are saving is not matching.....

Regards,
Reddy
 
nandakumar yathirajula
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the class and redeploy it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!