Following Mike advice, here is what I did: I put in index.jsp: <c:redirect url="/hello.jsp"/> instead of the mainMenu.html
Then I changed in login.xml: <invoke description="get Login Page" url="/"/> to <invoke description="get Login Page" url="/login.jsp"/> Now I get this error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: /mnt/data/Linux/home/marc/wspace/DigiCommerce/branches/dev5.0.1/src/test/resources/login.xml:6: Wrong document title found!. Expected value ".*Main Menu.*" but got "| Digicommerce" I really would like to know why this problem happen and fix it. Thank you for your help. ttux wrote: > > I just tried to change: > <invoke description="get Login Page" url="/"/> > > by > > <invoke description="get Login Page" url="/mainMenu.html"/> > > or > > <invoke description="get Login Page" url="/hello.jsp"/> in my case > > but it doesn't fix the error below: > > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error executing ant tasks > > Embedded error: The following error occurred while executing this line: > src/test/resources/login.xml:2: Wrong document title found!. Expected > value ".*Login.*" but got "| AppFuse" > > > > Mike Horwitz wrote: >> >> On 10/15/07, ttux <[EMAIL PROTECTED]> wrote: >>> >>> >>> I tried this replacing in index.jsp <c:redirect url="/mainMenu.html"/> >>> by >>> <c:redirect url="/hello.jsp"/> but I get this error: >>> >>> [ERROR] BUILD ERROR >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Error executing ant tasks >>> >>> Embedded error: The following error occurred while executing this line: >>> >>> /mnt/data/Linux/home/marc/wspace/DigiCommerce/branches/dev5.0.1/src/test/resources/login.xml:2: >>> Wrong document title found!. Expected value ".*Login.*" but got "| >>> AppFuse" >> >> >> The web tests are all set to try and login before they carry on to do >> their >> respective tasks. They do this by attempting to access the "/" URL and >> expect to see the login page when they do. You may want to change this to >> route to mainMenu.html explicitly. To do this go to src/test/resources in >> your project and open the file called login.xml. In the top line change: >> >> <invoke description="get Login Page" url="/"/> >> >> To be >> >> <invoke description="get Login Page" url="/mainMenu.html"/> >> >> Mike >> >> I get this error often so if you can help me to fix it, it would be >>> wonderful. >>> >>> >>> >>> mraible wrote: >>> > >>> > You can change this in index.jsp - it does a redirect to mainMenu.html >>> > by default. If you haven't run "full-source", you can copy this file >>> > into your project from target/appname-version (to src/main/webapp). >>> > >>> > HTH, >>> > >>> > Matt >>> > >>> > On 10/15/07, ttux <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hi, >>> >> >>> >> My problem is simple: >>> >> >>> >> When I go on the root of my web application (http://localhost:8080/) >>> I >>> >> don't >>> >> want to see the login.jsp page when I am not logged in but an other >>> page >>> >> hello.jsp for example. >>> >> >>> >> How can I do that? I don't find where to change this. >>> >> >>> >> Thanks in advance for your help. >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/Change-the-default-page-login.jsp-by-something-else-when-not-logged-tf4625855s2369.html#a13209640 >>> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> > -- >>> > http://raibledesigns.com >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> > For additional commands, e-mail: [EMAIL PROTECTED] >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Change-the-default-page-login.jsp-by-something-else-when-not-logged-tf4625855s2369.html#a13210095 >>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Change-the-default-page-login.jsp-by-something-else-when-not-logged-tf4625855s2369.html#a13211463 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
