Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » 404 return code when I am trying to run servlet or even retreive HTML
404 return code when I am trying to run servlet or even retreive HTML [message #629321] Mon, 27 September 2010 19:17 Go to next message
Alla is currently offline AllaFriend
Messages: 5
Registered: September 2010
Junior Member
I am getting "The requested resource ... is not available" whie I am trying to retreive HTML or execute a servlet.


When I select http://localhost:8080/ URL I am getting default JBOSS page

When I hilight index.hml and select option "Run on Server"
I am getting message :

HTTP Status 404 - /test2/index.html
------------------------------------------------------------ --------------------

type Status report

message /test2/index.html

description The requested resource (/test2/index.html) is not available.
------------------------------------------------------------ --------------------

JBoss Web/3.0.0-beta-6

When I higlight servlet and select option "Run on Server"
I am getting


HTTP Status 404 - /test2/TestServlet
------------------------------------------------------------ --------------------

type Status report

message /test2/TestServlet

description The requested resource (/test2/TestServlet) is not available.
------------------------------------------------------------ --------------------
JBoss Web/3.0.0-beta-6


==================================
Here it is mly environment: jdk 6, JBOSS 6.0
Eclipse 3.5.2
================================
my directory structure:
test2
-- java resources
---- myCobra.com
-------TestServlet.java
.......
-- WebContent
---- index.html
...............
----WEB-INF
------lib
------web.xml

============================
my 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>test2</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>TestServlet</display-name>
<servlet-name>TestServlet</servlet-name>
<servlet-class>mycobra.com.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
</web-app>

I would appreciate your help. I am new to JBOSS, but I had worked with TOMCAT for a long time. That is why it is frastraiting not being able to get it work

thanks a lot



Re: 404 return code when I am trying to run servlet or even retreive HTML [message #629587 is a reply to message #629321] Tue, 28 September 2010 19:22 Go to previous message
Alla is currently offline AllaFriend
Messages: 5
Registered: September 2010
Junior Member
I had found the solution for the problem and it does work.
look in http://community.jboss.org/message/533090

But it does seem difficult to figure out that the default deployment folder location is not working for JBOSS6, especially for the those who are new to JBOSS.

Previous Topic:Eclipse Helios + Glassfish v3 = Deployment problems
Next Topic:Problem with hover in debug perspective?
Goto Forum:
  


Current Time: Tue Apr 23 12:48:41 GMT 2024

Powered by FUDForum. Page generated in 0.02651 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top