Announcement Announcement Module
Collapse
No announcement yet.
Can't open link - HTTP Status 404 - Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't open link - HTTP Status 404 -

    Hi,
    With Spring MVC 3.0.1, hibernate and mysql database, I deployed its .war file into jboss 7 AS without error.
    The problem is when I tried to open its link "http://www.ixsystems.com.au:8080/spring-hibernate-mysql/krams" on browser, it can't find the link with error "HTTP Status 404 -".

    Here is its deployment message:

    09:05:29,680 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "spring-hibernate-mysql.war"
    09:05:31,005 WARN [org.jboss.as.ee.component.deployers.ResourceInject ionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: personService on class org.krams.tutorial.controller.MainController since it's missing a "lookup" (or "mappedName") value and isn't of any known type
    09:05:31,006 WARN [org.jboss.as.ee.component.deployers.ResourceInject ionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: sessionFactory on class org.krams.tutorial.service.PersonService since it's missing a "lookup" (or "mappedName") value and isn't of any known type
    09:05:31,092 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
    09:05:31,148 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/spring-hibernate-mysql]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext
    09:05:32,289 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/spring-hibernate-mysql]] (MSC service thread 1-2) Initializing Spring FrameworkServlet 'spring'
    09:05:32,317 INFO [org.jboss.web] (MSC service thread 1-2) registering web context: /spring-hibernate-mysql
    09:05:32,340 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "spring-hibernate-mysql.war"
    web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

    <servlet>
    <servlet-name>spring</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
    <servlet-name>spring</servlet-name>
    <url-pattern>/krams/*</url-pattern>
    </servlet-mapping>

    <listener>
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
    </listener>

    </web-app>
    Very appreciate for any help.
    Thanks
    Sam
Working...
X