-
1. Re: display login.jsp page or call a servlet
jamezp Oct 7, 2014 6:53 PM (in response to flamant)Not the issue, but in your web.xml you have Login.jsp defined in the welcome files. It should be loging.jsp (lowercase L).
I'm not sure what this EJB tutorial is. Are you deploying an EAR or a WAR? Some more information about the project would be helpful.
One thing you could do is look at the log and look for a message like "JBAS017534: Registered web context: /EJBTutorial". It might be that your context is incorrect.
--
James R. Perkins
-
2. Re: display login.jsp page or call a servlet
flamant Oct 8, 2014 4:27 AM (in response to jamezp)Hello James and thank you for your answer.
Effectivaly I can see in the console the following log output "JBAS018210: Enregistrement du contexte web /EJBTutorialWeb". tranlation: "JBAS018210: registration of the web context /EJBTutorialWeb"
So the correct URL to enter was "http://localhost:8080/EJBTutorialWeb/test" and "http://localhost:8080/EJBTutorialWeb/login.jsp"
I am Surprised because the name of the ear deployed was EJBTutorial.ear so I thought that the web context was /EJBTutorial
Thanks again
-
3. Re: Re: display login.jsp page or call a servlet
jamezp Oct 8, 2014 11:06 AM (in response to flamant)1 of 1 people found this helpfulYou can change that in the application.xml of the EAR. Just add something like:
<application version="6" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"> ... <module> <web> <web-uri>EJBTutorialWeb.war</web-uri> <context-root>EJBTutorial</context-root> </web> </module> ... </application>
The reason though it doesn't use the name of the EAR is you can have more than one web deployment in your EAR. Each one needs a separate context root which is why the name of the web deployment is used.
--
James R. Perkins
-
4. Re: Re: display login.jsp page or call a servlet
flamant Oct 8, 2014 11:22 AM (in response to jamezp)Hello James and thank you for your answer. The problem is resolved.