Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » The requested resource (/baseball/) is not available
The requested resource (/baseball/) is not available [message #212444] Thu, 17 April 2008 07:06 Go to next message
Sanju Koli is currently offline Sanju Koli
Messages: 2
Registered: July 2009
Junior Member
Hi,

i am new to Eclipse So I started working with one of the tutorial of
developing Dynamic web application with eclipse. and I am facing some
problem.

I browse the old post and could find something.. like changing project
facets from 2.5 to 2.4 .. but the still i could not get it running..

I would appreciate if somebody can suggest me where to look to get it
resolve.

Here is browse output

*******************************

HTTP Status 404 - /baseball/PlayersServlet

------------------------------------------------------------ ---------------

type Status report

message /baseball/PlayersServlet

description The requested resource (/baseball/PlayersServlet) is not
available.


------------------------------------------------------------ ---------------

Apache Tomcat/6.0.16

**************


Here is the console output..
**************
17-04-2008 12:58:20 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.j2ee.server:baseball' did not find a
matching property.
17-04-2008 12:58:20 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jdk1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WIND OWS\system32;C:\WINDOWS;C:\Program
Files\Java\jre1.6.0_05\bin\client;C:\Program
Files\Java\jre1.6.0_05\bin;c:\Perl\bin;C:\WINDOWS\system32;C :\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Program
Files\Rational\ClearCase\bin;C:\Program
Files\Rational\common;D:\SW\tools\ARM;c:\bin;C:\Program
Files\UltraEdit;c:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program
Files\InterLab\InterLabEnterpriseClient_2v1b10\;;c:\Program
Files\Java\jre1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\
17-04-2008 12:58:21 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17-04-2008 12:58:21 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 841 ms
17-04-2008 12:58:21 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17-04-2008 12:58:21 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
17-04-2008 12:58:21 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17-04-2008 12:58:21 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17-04-2008 12:58:21 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40 config=null
17-04-2008 12:58:21 org.apache.catalina.startup.Catalina start
INFO: Server startup in 720 ms

*********
thanks
Sanj
Re: The requested resource (/baseball/) is not available [message #212448 is a reply to message #212444] Thu, 17 April 2008 07:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Sanj,

could you post the servlet related sections of your web.xml ("<servlet>" and
"<servlet-mapping>" elements)?

Best regards

Wolfgang

Sanj schrieb:
> Hi,
> i am new to Eclipse So I started working with one of the tutorial of
> developing Dynamic web application with eclipse. and I am facing some
> problem.
> I browse the old post and could find something.. like changing project
> facets from 2.5 to 2.4 .. but the still i could not get it running..
> I would appreciate if somebody can suggest me where to look to get it
> resolve.
Re: The requested resource (/baseball/) is not available [message #212629 is a reply to message #212448] Fri, 18 April 2008 19:13 Go to previous messageGo to next message
Sanju Koli is currently offline Sanju Koli
Messages: 2
Registered: July 2009
Junior Member
Hi Wolfgang,

Thanks for helping..

one point i want to add here that in my ealier mail.. i made a spelling
mistake in PlayerSerlvet... but still if I type the correct spelling the
output is same...

here is the web.xml

--------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
baseball</display-name>
<servlet>
<description>
</description>
<display-name>
PlayerServlet</display-name>
<servlet-name>PlayerServlet</servlet-name>
<servlet-class>
org.developerworks.baseball.web.PlayerServlet</servlet-class >
</servlet>
<servlet-mapping>
<servlet-name>PlayerServlet</servlet-name>
<url-pattern>/PlayerServlet</url-pattern>
</servlet-mapping>
<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>
</web-app>
--------------

Regards
Sanj

Wolfgang Knauf wrote:
> Hi Sanj,
>
> could you post the servlet related sections of your web.xml ("<servlet>"
> and "<servlet-mapping>" elements)?
>
> Best regards
>
> Wolfgang
>
> Sanj schrieb:
>> Hi,
>> i am new to Eclipse So I started working with one of the tutorial of
>> developing Dynamic web application with eclipse. and I am facing some
>> problem.
>> I browse the old post and could find something.. like changing project
>> facets from 2.5 to 2.4 .. but the still i could not get it running..
>> I would appreciate if somebody can suggest me where to look to get it
>> resolve.
Re: The requested resource (/baseball/) is not available [message #212654 is a reply to message #212444] Fri, 18 April 2008 21:02 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3148
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Sanj wrote:
> Hi,
> i am new to Eclipse So I started working with one of the tutorial of
> developing Dynamic web application with eclipse. and I am facing some
> problem.
> I browse the old post and could find something.. like changing project
> facets from 2.5 to 2.4 .. but the still i could not get it running..
> I would appreciate if somebody can suggest me where to look to get it
> resolve.
> Here is browse output
> *******************************
>
> HTTP Status 404 - /baseball/PlayersServlet
> [snip]
> Sanj
>

Sanj,

Maybe I can help (and maybe I can't), but I've had that problem too.
Here's a tutorial I have just finished writing based on problems I had
in getting through several other tutorials including, probably, the one
you're using. It may answer some of your questions.

http://www.windofkeltia.com/j2ee/wtp-tutorial.html

Russ Bateman
Re: The requested resource (/baseball/) is not available [message #212701 is a reply to message #212629] Mon, 21 April 2008 04:37 Go to previous message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Sanju,

I don't see an error in your web.xml. Have you verified that your webapp is
deployed properly in the server and available at the URL "/baseball" (e.g. by
adding some static HTML page)?
Could you export your code in a WAR file and post it here?

Best regards

Wolfgang
Previous Topic:Error: Type name xxx does not exist when it's in fact in the project?
Next Topic:Issue with publishing to app servers
Goto Forum:
  


Current Time: Fri Aug 22 13:42:39 EDT 2014

Powered by FUDForum. Page generated in 0.03232 seconds