Re: Multi-Module Project and Servlet Mappings

2011-02-03 Thread newnoise
Got it. Reading your post several times got me to it. Thanks.

On 2 Feb., 22:26, newnoise tommmuel...@googlemail.com wrote:
 Hi,

 I'm having kind of the same problem, but dont understand what you
 actually did. Could you maybe post a sample web.xml?

 Thanks in advance!
 Tom

 On 14 Jan., 09:37, rsimon magickti...@gmail.com wrote:

  Ouch. Looks like I should have RTFM ;-) Thanks for the hint!

  This solved most of my problem. I was able to map the servlets to /
  endpointName, rather than being forced to create multiple /
  moduleName/endpointName mappings. The applications still made
  their RPC requests to moduleName/endpointName, though.

  However I could fix that by changing the RemoteServiceRelativePath
  configuration in my client side service interface, like so:

  RemoteServiceRelativePath(../endpointName) instead of
  (endpointName)

  Not sure if this is 100% clean. But it did the trick.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-02-02 Thread newnoise
Hi,

I'm having kind of the same problem, but dont understand what you
actually did. Could you maybe post a sample web.xml?

Thanks in advance!
Tom


On 14 Jan., 09:37, rsimon magickti...@gmail.com wrote:
 Ouch. Looks like I should have RTFM ;-) Thanks for the hint!

 This solved most of my problem. I was able to map the servlets to /
 endpointName, rather than being forced to create multiple /
 moduleName/endpointName mappings. The applications still made
 their RPC requests to moduleName/endpointName, though.

 However I could fix that by changing the RemoteServiceRelativePath
 configuration in my client side service interface, like so:

 RemoteServiceRelativePath(../endpointName) instead of
 (endpointName)

 Not sure if this is 100% clean. But it did the trick.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-01-14 Thread rsimon
Ouch. Looks like I should have RTFM ;-) Thanks for the hint!

This solved most of my problem. I was able to map the servlets to /
endpointName, rather than being forced to create multiple /
moduleName/endpointName mappings. The applications still made
their RPC requests to moduleName/endpointName, though.

However I could fix that by changing the RemoteServiceRelativePath
configuration in my client side service interface, like so:

RemoteServiceRelativePath(../endpointName) instead of
(endpointName)

Not sure if this is 100% clean. But it did the trick.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Multi-Module Project and Servlet Mappings

2011-01-13 Thread rsimon
Dear all,

I have a project which consists of multiple modules. Basically, it's
four separate GWT applications which share some common code. There's a
separate module for each of the four applications, plus a 'core'
module for the common functionality.

Now my problem: The common functionality includes server-side RPC
endpoints. I have defined the servlet paths for those endpoints in
the .gwt.xml file of my core module as

servlet path='/endpointA' class=.../
servlet path='/endpointB' class=.../

and so on. Now - when I inherit the core module in my app modules, GWT
insists that the endpoints are mapped to

/AppName/endpointA rather than just /endpointA

So far so good. But as a result, I need to provide 4 servlet mappings
in my web.xml, each pointing to the same service impl class. E.g.
something like this:

servlet
servlet-nameendpointAservlet-name
servlet-classmy.gwtapp.server.EndpointAServiceImpl/servlet-class
/servlet
servlet-mapping
servlet-nameendpointA/servlet-name
url-pattern/AppOne/endpointA/url-pattern
url-pattern/AppTwo/endpointA/url-pattern
url-pattern/AppThree/endpointA/url-pattern
url-pattern/AppFour/endpointA/url-pattern
/servlet-mapping

Ok, it's not a showstopper. But I can't believe there's no better way
to share servlets across modules than by repeating the mappings for
each module?

Any advice appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-01-13 Thread Y2i
What if you remove servlet/ from *.gwt.xml and configure servlets only 
from web.xml?

The xml reference says that 
*The servlet element applies only to GWT's embedded server server-side 
debugging feature.*
*NOTE: as of GWT 1.6, this tag does no longer loads servlets in development 
mode, instead you must configure a WEB-INF/web.xml in your war directory to 
load any servlets needed.*
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-01-13 Thread Allen Holub
Already doing that. None of the *.gwt.xml files have servlet/ elements 
in them.


On 1/13/11 4:42 PM, Y2i wrote:
What if you remove servlet/ from *.gwt.xml and configure servlets 
only from web.xml?


The xml reference says that
*The servlet element applies only to GWT's embedded server 
server-side debugging feature.*
/*NOTE: as of GWT 1.6, this tag does no longer loads servlets in 
development mode, instead you must configure a WEB-INF/web.xml in your 
war directory to load any servlets needed.*/

http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml


--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.