I have read several posts that seem to be explaining a problem similar
to my own and yet it is constantly misinterpreted and so the replies
are somewhat useless. I will attempt to explain the problem as clearly
as possible:
I have 2 server classes,
AlbumUploader extends HTTPServlet
ServerImpl extends RemoteServiceServlet

In deploying these items on tomcat I have the following web.xml
entries:
<servlet>
        <servlet-name>Server</servlet-name>
        <servlet-class>com.BTI.main.server.ServerImpl</servlet-class>
</servlet>
<servlet-mapping>
        <servlet-name>Server</servlet-name>
        <url-pattern>/service</url-pattern>
</servlet-mapping>

<servlet>
        <servlet-name>AlbumUpload</servlet-name>
        <servlet-class>com.BTI.main.server.AlbumUpload</servlet-class>
</servlet>
<servlet-mapping>
        <servlet-name>AlbumUpload</servlet-name>
        <url-pattern>/AlbumUpload</url-pattern>
</servlet-mapping>

Which seems to work fine (If I go to mydeploymentplace/AlbumUpload it
complains that it won't take a get data input - which is correct
because it only accepts post data).

Now my problem is that when I use the AlbumUploader (Which being a
file upload receiver is called in the rather peculiar way you have to
do with file uploading in GXT) it returns absolutely fine - almost
instantly. No file is uploaded, no error is returned, no logs are
written and clearly that AlbumUploader either - hasn't run whatsoever
- or returned null instantly without this being logged as an error.

It would appear that I can't run a HTTPServlet in conjunction with an
RPCServlet?

Do I need to deploy these to different projects on my Tomcat server?
Is there some special key in the web.xml file to make these work
properly? How can I get this to write an error into one of the logs?
Where does System.out.println/System.err.println print to when your
running a HTTPServlet. If I am running the HTTPServlets and
RPCServlets in seperate projects deployed on the same server are they
going to be accessible to me on the front end still?

If anyone knows of any examples of a project with an RPCServlet and
HTTPServlet (Any kind, a picture server, a file upload receiver, etc)
running in conjunction on the server side and they both print their
logs in Tomcat WAR deployment correctly that would be extraordinarily
fantastic.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to