The question you linked is relevant to your scenario.
Up vote 0 down vote favorite share g+ share fb share tw.
I have one DispatcherServlet for my pages, and one ServletContainer for my Jersey webservice. As it is now, no pages are rendering (404), but the service is working fine. How can I run them in conjunction?
I saw this thread How to register multiple servlets in web. Xml in one Spring application that seems to deal with a similar issue, though that was regarding CXF so I'm unsure how relevant it is. I also tried having a separate Jersey-servlet.
Xml file, but that made both the pages and the service stop working. Don't really know where to go from this point, any help much appreciated. Web.
Xml: HSRMVC index. Jsp HSR org.springframework.web.servlet. DispatcherServlet HSR *.
Html Jersey REST Service com.sun.jersey.spi.container.servlet. ServletContainer se.hsr. Services HSRMVC Jersey REST Service /* HSR-sevlet.
Xml: UPDATED web. Xml HSRMVC index. Jsp HSR org.springframework.web.servlet.
DispatcherServlet 1 HSR *. Html contextConfigLocation /resources/applicationContext. Xml /WEB-INF/service-beans.
Xml service-beans com.sun.jersey.spi.container.servlet. ServletContainer se.hsr. Services HSRMVC 2 service-beans /* java web-services spring spring-mvc jersey link|improve this question edited Feb 8 '11 at 10:28 asked Feb 8 '11 at 8:37Soroush Hakami3881528 72% accept rate.
– skaffman Feb 8 '11 at 8:47 That means that when I point to say localhost/login. Hmtl, I get a 404 -error. When I write localhost/service/emil , I get a page displaying my name.
– Soroush Hakami Feb 8 '11 at 8:56.
The question you linked is relevant to your scenario. You can also try using . It is not meant exactly for this purpose, though.
(it's meant for static resources). Also check this and this.
Thanks for the reply. I read the resources you linked to but still don't quite understand how to make it work. I tried editing my web.
Xml (see originalpost), but the problem persists identically to before. – Soroush Hakami Feb 8 '11 at 10:27.
I resolved the problem. This is how my new web. Xml looks like: HSRMVC index.
Jsp contextConfigLocation classpath*:applicationContext. Xml /WEB-INF/HSR-service-beans. Xml org.springframework.web.context.
ContextLoaderListener HSR org.springframework.web.servlet. DispatcherServlet 1 HSR *. Html HSR-service com.sun.jersey.spi.container.servlet.
ServletContainer se.hsr. Services HSRMVC 2 HSR-service /service.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.