Hello,

I have developed application using JBoss-x.x.x_Tomcat-y.y.y and never had
problems with deploying my EAR file. Everything works fine.

Recently I have tried to deploy my EAR file to the
JBoss-2.4.0_Jetty-3.1.RC8-1 and encountered the problem that seem to be
related to Context.

My index.jsp file at http://bh-pc-58735:8080/footy/ proceeds to Logon page
with:

                <form name="main" method="POST" action="/footy/main" >
                <p><p><p>
                <input type="submit" value="Logon here">
                </form>

My main.jsp is protected with FORM based authentication:

web.xml:

                  <servlet-mapping>
                    <servlet-name>dispatcher</servlet-name>
                    <url-pattern>/main</url-pattern>
                  </servlet-mapping>

                  <security-constraint>
                    <web-resource-collection>
                           <web-resource-name>main</web-resource-name>
                      <description>no description</description>
                      <url-pattern>/main</url-pattern>
                    </web-resource-collection>
                    <auth-constraint>
                      <role-name>user</role-name>
                    </auth-constraint>
                    <user-data-constraint>
                      <description>no description</description>
                      <transport-guarantee>NONE</transport-guarantee>
                    </user-data-constraint>
                  </security-constraint>

                  <login-config>
                    <auth-method>FORM</auth-method>
                    <realm-name>Default</realm-name>
                    <form-login-config>
                      <form-login-page>/logon</form-login-page>
                      <form-error-page>/logonError</form-error-page>
                    </form-login-config>
                  </login-config>

Then I get http://bh-pc-58735:8080/logon with:

                HTTP ERROR: 404 Not Found
                Could not find resource for /logon 
                RequestURI=/logon 
My application.xml file is:

                <?xml version="1.0" encoding="ISO-8859-1"?>
                <application>
                        <display-name>FootyApp</display-name>
                        <module>
                        <web>
                                <web-uri>footy.war</web-uri>
                                <context-root>/footy</context-root>
                        </web>
                        </module>
                        <module>
                                <ejb>footy-ejb.jar</ejb>
                        </module>
                </application>

The relevant part of the output for the deploying of the application is:

                [Container factory] Deployed application:
file:/D:/JBoss/jboss/tmp/deploy/Default/footy_mysql.ear
                [J2EE Deployer Default] Starting module footy.war
                [Jetty] Unsuitable contextPathSpec /footy, Assuming:
/footy/*
                [Jetty] Registered
Jetty:Jetty=0,context=/footy,WebApplicationContext=0
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] Unknown user-data-constraint:NO DESCRIPTION
                      NONE
                [Jetty] +++ Created JBossUserRealm, realmName=Default
                [Jetty] Started SetupHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] Started SecurityHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] Started SecurityHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] JSP: init
                [Jetty] Started ServletHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] Started WebInfProtect
                [Jetty] ResourceHandler started in
file:/D:/JBoss/jboss/tmp/deploy/Default/footy_mysql.ear/web1001/
                [Jetty] Started ResourceHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] Stopped SetupHandler in
WebApplicationContext[/footy,FootyWar]
                [Jetty] Destroyed SetupHandler in null
                [Jetty] successfully deployed
file:/D:/JBoss/jboss/tmp/deploy/Default/footy_mysql.ear/web1001/ to /footy
                [J2EE Deployer Default] J2EE application:
file:/D:/JBoss/jboss/deploy/footy_mysql.ear is deployed.

Any advise will be appreciated.

Best Regards,

Leonid Shamis
--------------------
Directory Technology Pty. Ltd.
Team Leader - Publishing On-Line System

Phone:    +61 3 9856 5352
Fax:        +61 3 9856 5000
E-Mail:   mailto:[EMAIL PROTECTED]



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to