• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapper cannot find servlet class

 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I develop a Web Application using JSP/Servlets in where i use MVC. So i had a bean file, a servlet file and ofcourse a JSP page. I already created a user reg file and it works fine. But when i create another servelt to update my table it doesnt work.

However when i compile the code it shows an error like this one..

C:\apache-tomcat-6.0.16\webapps\rmanew\WEB-INF\classes\com\rajk\javacode\servlet
s>javac -classpath c:\apache-tomcat-6.0.16\lib\servlet-api.jar RMAOutServlet.java
RMAOutServlet.java:14: cannot find symbol
symbol : class RMAEntryModel
location: class com.rajk.javacode.servlets.RMAOutServlet
RMAEntryModel model = new RMAEntryModel();
^
RMAOutServlet.java:14: cannot find symbol
symbol : class RMAEntryModel
location: class com.rajk.javacode.servlets.RMAOutServlet
RMAEntryModel model = new RMAEntryModel();
^
2 errors

Where RMAEntryModel is the bean file i used to get and put values.. I already used it in two file named as RMAEntryServlet and RMAProcessServlet. But it doesnt shows any error like this.. Whats wrong is in there. Here i paste my code for your reference.

RMAOutServlet.java
------------------



Anyhelp will be appreciated....
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your classpath is wrong. Make sure RMAEntryModel is in it.
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Paul,
the file RMAEntryModel is in the location. Why i am so clear on tis, because i already used the RMAEntryModel in my earlier modules like User Registration, Entry form Servlets.. At that time it works good.. But when i use it for RMAOutServlet, it shows an error like this? Why.. i get stuck with this problem..
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

javac -classpath c:\apache-tomcat-6.0.16\lib\servlet-api.jar RMAOutServlet.java

This is where you set your classpath. I don't see RMAEntryModel in it. It is not part of the Servlet APi whic his the only other thing you have in your classpath. See this if you are not sure what is going wrong.
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all,
I resolved my problem regarding classpath.. Now i got a new problem in MySQL query.. So i decided to get my feet on some MySQL...
Thanks for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic