It would probably be useful if you could provide an example of these URL differences.
Java web application URL structure usually follows something like...
I am not sure what you mean when you say that setting up config in the web.xml file ties you to one application server. This file is the standard config files for all Java web apps and all application servers should interpret it in the same way.
There should be no reason why you cannot achieve a consistent URL structure, but in order for us to see why it is not currently consistent, a little more info is required I think.
On Fri, Mar 1, 2013 at 2:34 PM, James Green <[address removed]>
Maybe I'm approaching this wrongly, but there seems no way to describe in a Java EE project what URL endpoints should exist where.
I'm developing an application that has JAX-RS and JAX-WS endpoint urls.
Deploying to Glassfish results in one set of URLs. Deploying to TomEE results in another set of URLs.
I can specify a context root to narrow the app down to a sub-url hierarchy, yet neither Glassfish nor TomEE place the JAX-WS resources within that context.
For JAX-WS the matter of neutrality gets even worse. Ignoring the lack of a context root, I can try to influence which services are exposed where by settings attributes on @WebService yet Glassfish and TOM-EE both map these differently.
For JAX-RS within TOM-EE, Application paths are ignored, and sub-resource paths are instead hiked to the top of the URL hierarchy.
And so I am left facing the inevitable: This is not how everyone else is doing it. Bear in mind we are a small shop and don't carve duties out between engineering and deployment departments - we have all possible hats on ourselves.
So come on, what magic am I missing? I've found references to setting up web.xml and assorted other xml files but these either tie you to one application server in the case of a web.xml entry, or to per-application server config files that contain essentially the same instructions.
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by James Green ([address removed]) from LJC - London Java Community.
To learn more about James Green, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]