I'm trying to deploy a SpringWebApplication in a .war on Geronimo.  

I can see in the console that the app is deploying and no errors are
occurring.

But when I try to access the URL for the app, I get HTTP Status 404 'The
requested resource is not available.  

Would anyone have any suggestions for why the App is not accessible?

My web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"    "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>

        <display-name>JPS</display-name>
        <description>JPS</description>
 
        <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>/WEB-INF/applicationContext.xml</param-value>
        </context-param>
        
         <listener>
        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
         </listener>
         
         
        <servlet>
                <servlet-name>JPSApplication</servlet-name>
        
<servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
                <init-param>            
            <param-name>applicationFactoryClassName</param-name>
           
<param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value> 
       
                </init-param>
                
                <init-param>
                        <param-name>configuration</param-name>
                        <!-- <param-value>development</param-value>  -->
                        <param-value>deployment</param-value>            
                </init-param>
                <load-on-startup>1</load-on-startup>
                
        </servlet>
        
        <servlet-mapping>
                <servlet-name>JPSApplication</servlet-name>
                <url-pattern>/jps/*</url-pattern>
        </servlet-mapping>
                        
</web-app>


My geronimo-web.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<web:web-app
xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0";
xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0";
xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";
xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2";
xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2";
xmlns:pers="http://java.sun.com/xml/ns/persistence";
xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1";
xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0";
xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
    <dep:environment>
        <dep:moduleId>
            <dep:groupId>default</dep:groupId>
            <dep:artifactId>JPS_generic</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
    </dep:environment>
    <web:context-root>/JPS_generic</web:context-root>
</web:web-app>

My applicationContext.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
        
        <!-- Setup the wicket Application -->
        <bean id="wicketApplication" class="com.jps.JPSApplication"/>

</beans>

-- 
View this message in context: 
http://www.nabble.com/deploy-WicketServlet-on-Geronimo-but-404--tp21732316p21732316.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to