This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Well, I'm doing a web page using Glassfish tools bundle for Eclipse (I use the server provided by the Glassfish).
I have a package called "Interfaz" where I put the servlets. I added a servlet called "RegistroConciertos" but when I try to execute this, I receive the exception mentioned in the title of my topic. I try to add more servlets, but I receive the same exception. With the servlets what I have created above, I don't have problems.
At the first time I try to run the servlet after the server starts, I receive the exception HTTP Status 500 - javax.servlet.ServletException: PWC1397: Wrapper cannot find servlet class 'x' or a class it depends on.
And then, if I touch "Refresh" in the WebBrowser provides by GlassFish, I receive the exception HTTP 404.
You only have one URL mapping, for /HelloWorld. You have no welcome file list. That means that you can only access two types of URLs (if your project is still named ServletExam):
- http://localhost:8080/ServletExam/HelloWorld which will open the servlet.
- http://localhost:8080/ServletExam/xxx where xxx is a direct path to a JSP file, HTML file, image etc. In other words, anything that isn't a servlet (or inside the WEB-INF folder).
1.At first ,i am using tomcat as plug in in eclipse (so not using http://localhost:8080)
2. Yes i ddnt use any jsp any html page, cos i hv heard/read somewhere that we can use servlet without jsp also.
then cn i use for the same.
or guide me if its not possible.(
in this case i will add a new jsp/html )page then will try to run.
java file in src folder : HelloWorld