views:

110

answers:

2

Hello guys,

i am having trouble with my web application developed in GWT. the application allows users to upload and download using an upload servlet and a download servlet, the upload servlet was created using the gwtUpload library. the download servlet is using regular HTTPServlet.

when i run the application within eclipse the download servlet works fine, when i deploy it to tomcat, when a user selects to upload a file, the file does not download, when a user selects a link to download a file, this error is returned

type Status report

message /testhibernategilead/downloadServlet

description The requested resource (/testhibernategilead/downloadServlet) is not available.

can anyone explain why this is

+1  A: 

The requested resource (/testhibernategilead/downloadServlet) is not available.

This is the same as a 404 Page Not Found. In other words, the URL is wrong, or the requested resource is indeed actually not there where you expect it to be.

If you are certain that the URL is correct, then you need to read the server logs if the server and the servlets started without problems. If a servlet fails during startup, then it will be unavailable that way.

BalusC
well i sorted the problem, but not by utilizing the tomcat server, instead i run the application in the embedded jetty server, all seems to work well on this server, just annoying why it will not work. where are the server logs for the tomcat server
molleman
In the `/logs` folder.
BalusC
A: 

I think this is due to the application's root directory misconfiguration in tomcat.

You can try adding the module base to your URL like this:

String servlet_url = GWT.getModuleBaseURL()+"testhibernategilead/downloadServlet";

Remember: GWT.getModuleBaseURL() puts a "/" at the end of the returned string.

Sari Alalem