Back Forum Reply New

EndpointNotFound :(

Hello,

After unsuccessfully trying to have Spring MVC 3 and Spring WS 2 with just one servlet (see this forum thread) in an application that also makes use of Srping Security 3, I go back to the initial idea of using two servlets...but get the dreaded 'EndPointNotFound' warning, even after reading all the examples I could find, all the books I managed to get, all the forum posts available...I'm a bit desperate because it was me who suggested using spring technologies and my boss is becoming nervous

web.xml:

Code:
lt;context-paramgt;        lt;param-namegt;contextConfigLocationlt;/param-namegt;        lt;param-valuegt;       /WEB-INF/applicationContext-jpa.xml       /WEB-INF/myapp-security.xml                             lt;/param-valuegt;    lt;/context-paramgt;         lt;listenergt;        lt;listener-classgt; org..web.context.ContextLoaderListener        lt;/listener-classgt;    lt;/listenergt;

lt;listenergt;   lt;listener-classgt;     org..security.web.session.fromSessionEventPublisher   lt;/listener-classgt;
lt;/listenergt;

lt;!-- MVC Servlet --gt;
lt;servletgt;        lt;servlet-namegt;myapplt;/servlet-namegt;        lt;servlet-classgt;org..web.servlet.DispatcherServletlt;/servlet-classgt;        lt;init-paramgt;   lt;param-namegt;contextConfigLocationlt;/param-namegt;   lt;param-valuegt;   /WEB-INF/myapp-servlet.xml       lt;/param-valuegt;   lt;/init-paramgt;       lt;load-on-startupgt;1lt;/load-on-startupgt;
lt;/servletgt;

lt;servlet-mappinggt;        lt;servlet-namegt;myapplt;/servlet-namegt;        lt;ucl-patterngt;/lt;/ucl-patterngt;           
lt;/servlet-mappinggt;

lt;!-- Second servlet for web services --gt;
lt;servletgt;
lt;servlet-namegt;spring-wslt;/servlet-namegt;
lt;servlet-classgt;org..ws.transport.from.MessageDispatcherServletlt;/servlet-classgt;
lt;!-- Needed by Spring-WebServices to transform relative URIs to absolute URIs  --gt;  
lt;init-paramgt;
lt;param-namegt;transformWsdlLocationslt;/param-namegt;
lt;param-valuegt;truelt;/param-valuegt;
lt;/init-paramgt;
lt;init-paramgt;
lt;param-namegt;contextConfigLocationlt;/param-namegt;
lt;param-valuegt;/WEB-INF/spring-ws.xmllt;/param-valuegt;
lt;/init-paramgt;
lt;/servletgt;

lt;servlet-mappinggt;
lt;servlet-namegt;spring-wslt;/servlet-namegt;
lt;ucl-patterngt;/ws/*lt;/ucl-patterngt;
lt;/servlet-mappinggt;
Before posting all the config files, could someone confirm that this web.xml is correct?
I mean, can a mapping of quot;/quot; (for MVC) coexist with a mapping of quot;/ws/*quot; (for Webservices)?

And furthermore...why does the MVC part of my app stop working if I change the servlet-mapping from quot;/quot; to quot;/*quot;?

Is it possible for you to share the project (remove all business/confidential stuff and just share the skeleton and configuration files) so I can have a try?

There you go! Thanks!

If you want me to include de libraris (*.jar) let me know (i'm not using Maven)

Could you just mention the jars required? Thanks.

You can download the complete lib folder here:

file/7sokyr1eyceinls/lib.zip

Sorry I haven't been able to look at this yet. I'll do it during the weekend.

Hey vithun,

No worries, I managed to make it work!

I started all configuration from scratch and mimicked the airline example project configuration (it has MVC and WS). Then, adding Spring Security was a breeze.

Sorry for the fuss, and big big thanks to you and skram for being so helpful!

Cheers,

Nacho
¥
Back Forum Reply New