Cannot run a web application with just a servlet [message #655433] |
Sun, 20 February 2011 22:55 |
Alejandro Barrero Messages: 12 Registered: February 2011 |
Junior Member |
|
|
I am using Version: Helios Service Release 1 Build id: 20100917-0705 on a 64 bit PC. The servelet can find javax.servlet.annotation.WebServlet and javax.servlet.http.HttpServlet among others; I have to add javaee.jar from GlassFish. This is very strange.
Eclipse creates web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Z</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>X</display-name>
<servlet-name>X</servlet-name>
<servlet-class>x.X</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>X</servlet-name>
<url-pattern>/X</url-pattern>
</servlet-mapping>
</web-app>
When I right click on the project an select "Debug As" I don't get the option to debug as a web application. I have created struts applications, but now I am lost.
Your help would be greatly appreciated,
Alejandro Barrero
Your help will be greatly appreciated;
Alejandro Barrero
|
|
|
Powered by
FUDForum. Page generated in 0.03731 seconds