cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot load the requested servlet

Former Member
0 Kudos

Hi,

I'm doing some tests and I can't make a simple Servlet work.

I do a request to:

http://localhost:50000/helloworld/app

and a I get a:

The request can't be processed.

Details: Cannot load the requested servlet [helloworld/servlet/app].

Here is the definition I have in application.xml file:

<module>

<web>

<web-uri>Tapestry.war</web-uri>

<context-root>helloworld</context-root>

</web>

</module>

and this is how web.xml is defined:

<web-app>

<display-name>Tutorial: HelloWorld</display-name>

<servlet>

<servlet-name>app</servlet-name>

<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>

<load-on-startup>0</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>app</servlet-name>

<url-pattern>/app</url-pattern>

</servlet-mapping>

</web-app>

I don't know where the /servlet is coming from.

Thanks,

Juan Manuel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I want the servlet org.apache.tapestry.ApplicationServlet to be called when I do a request to http://localhost:50000/helloworld/app

Regards,

Juan Manuel

Former Member
0 Kudos

But that should be achieved either by struts or filter.

If you call that servlet directly you will never get the response from your hello world servlet....

If this is not the case you will need to explain in more details what you are trying to achieve.

Former Member
0 Kudos

Hi Juan Manuel!

I am trying out some examples on WAS.. And I get a similar kind of error as you have posted a while ago….

Please let me know how you were able to resolve the problem and help me in this regards..

Former Member
0 Kudos

Your servlet referrencing "Hello World" seems not to be present. Instead app is being referrenced as

org.apache.tapestry.ApplicationServlet

I do not believe that this would be what you intended.