cancel
Showing results for 
Search instead for 
Did you mean: 

URL to call JSP in EAR file

Former Member
0 Kudos

Dear All,

I have created a WAR file which contains a JSP. Then I created a EAR file and included the WAR in the EAR. Then I deployed that in WAS.

My problem is that I cant invoke the JSP. Basically the URL which I have given is not working.

Application.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">

<application>

<display-name>TestEAR</display-name>

<description>EAR description</description>

<module>

<web>

<web-uri>TestWAR.war</web-uri>

<context-root>/TestWAR</context-root>

</web>

</module>

</application>

Trried URL:

<b>http://servername:PORT/TestWAR/TestJSP.jsp</b>

Any ideas?

Kind regards,

Sreejesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The Context Root mapping can be checked here, please remove the '/' in the context root mapping and redeploy the EAR.

<context-root>TestWAR</context-root>

Regards,

S.Divakar

Former Member
0 Kudos

Dear Divakar,

Thanks for the answer, but it didn't work out..

Anything else I need to change?

Kind regards,

Sreejesh.

Former Member
0 Kudos

Hi Sreejesh,

What kind of message did you get trying to run your JSP ?

404 ?

Also make sure that you specify the URL as a case-sensitive,

Regards,

Mike