aspose file tools*
The moose likes Servlets and the fly likes  Wrapper cannot find servlet class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " Wrapper cannot find servlet class " Watch " Wrapper cannot find servlet class " New topic
Author

Wrapper cannot find servlet class

Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

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....


Never try to be a hard-worker. Be a smart-worker.
My Blog
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Your classpath is wrong. Make sure RMAEntryModel is in it.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

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

Joined: Apr 14, 2004
Posts: 10336


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

Joined: May 29, 2008
Posts: 445

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrapper cannot find servlet class