• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

No mapping found for HTTP request with URI

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI with spring 3.1.2, JBOSS 7.1.1 and JSP, I created a .ear file. when I navigated to the "home.jsp" page, jboss thrown the following error:

00:08:38,402 INFO [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-4) FrameworkServlet 'dispatcherServlet': initialization completed in 347 ms
00:08:38,404 INFO [org.jboss.web] (MSC service thread 1-4) JBAS018210: Registering web context: /DeliveriesManager-web
00:08:38,419 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "DeliveriesManager-ear-1.0.ear"
00:08:45,339 WARN [org.springframework.web.servlet.PageNotFound] (http-portal.ixsystems.com.au-192.168.1.20-8080-1) No mapping found for HTTP request with URI [/DeliveriesManager-web/] in DispatcherServlet with name 'dispatcherServlet'



here is my web.xml file:



servlet-context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->

<!-- Enables the Spring MVC @Controller programming model -->
<annotation-driven />

<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
<resources mapping="/resources/**" location="/resources/" />

<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>

<context:component-scan base-package="deliveries.maanger.controller" />
</beans:beans>



home.jsp:



DeliveriesController.java:



What might be the cause of the error in my project setup?
Very appreciate for any suggestion and help.
Thanks
Sam
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is this really the name of the package your controllers are in? It looks mispelled.



 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your suggestion. I fixed that error. Now the application can open its home page, but failed to read css/style.css file.
That is when user open its first page here:
http://122.106.189.123:8080/DeliveriesManager-web/
then click the button "Add Delivery", it opens "addDeliveries.jsp" in a new window. Noticed that the page is without css which is supposed to be styled by style.css.
The style.css link is failed to read as well:

http://122.106.189.123:8080/DeliveriesManager-web/resources/css/styles.css

Any thing wrong with my project setup?

Thanks
Sam
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to fall back to Spring 3.0.4.RELEASE to resolve this error.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic