Hi. Well, I start a new topic. I want to make sure these 4 things.
So, all my java.files - including - servlets and one build.xml are in web-inf/src/package MyProject
But just to make sure;
1. I have three servlets and I have to make three web.xml.files, right?
2. And Like this;
?xml version="1.0" encoding="ISO-8859-1"?>
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<servlet-class>This is my project</servlet-class>
<url-pattern>/This is my project</url-pattern>
Is this correct?, servlet is S2 and when I open that with a web browser it says, This is my project.
3. AND WHERE I PUT THESE THREE WEB.XML.FILES?
4. AND probably when I have done those things, a problem;
now I have also S3 in WEB-INF/classes.
A web browser says about S3;
The server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: Cannot allocate servlet instance for path /tomcat//MyProject/servlet/S3
This is my last post: you have been told again and again that servlets need to be placed into a package. Yet you either refuse to do it, or don't know how. If the latter, I suggest stepping back and learning basic Java before trying to do servlets.
Joined: Nov 16, 2009
Please. Servlets are in a package, I just checked again, they are. I tried to do just like you adviced!
They are in package MyProject. I wrote that "is not available" line in a hurry.
Only thing that I can think is that web.xml configuration is wrong?
I want this thing work and I don't ask new questions anymore. I just wanted help and this is forum. I'm sorry.