-
1. Re: Call a jsp inside an ear file deployed on JBoss 4.0.0
peterj May 10, 2008 11:05 PM (in response to pepelara)If your war file is named xxx.war, and the jsp is named yyy.jsp, and the jsp is in the base of the war file, you can access it by opening a browser and going to url http://localhost:8080/xxx/yyy.jsp.
-
2. Re: Call a jsp inside an ear file deployed on JBoss 4.0.0
pepelara May 11, 2008 2:31 AM (in response to pepelara)I have try but it does not work. On your response, I thought the problem is that I use the same name for all the files, that is adder.jar, adder.war and adder.ear.
I have proved to give them different names, that is adder-ejb.jar, adder-web.war and adder-app.ear to the files and try again and did not work.
In this post I include the descriptors because if there is something wrong,
ejb-jar.xml.-
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
My first EJB application
<display-name>Adder</display-name>
<enterprise-beans>
<ejb-name>AdderEJB</ejb-name>
es.deusto.ejb.AdderHomeRemote
es.deusto.ejb.AdderRemote
<ejb-class>es.deusto.ejb.AdderBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</enterprise-beans>
</ejb-jar>
web.xml.-
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>Adder</display-name>
Proyecto para JBoss
<servlet-name>beanClientJsp</servlet-name>
<jsp-file>/beanClient.jsp</jsp-file>
<servlet-mapping>
<servlet-name>beanClientJsp</servlet-name>
<url-pattern>/beanClient.jsp</url-pattern>
</servlet-mapping>
</web-app> -
3. Re: Call a jsp inside an ear file deployed on JBoss 4.0.0
pepelara May 11, 2008 2:32 AM (in response to pepelara)application.xml.-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<display-name>MyAdder</display-name>
This is the implementaion of the Adder application
adder-ejb.jar
<web-uri>adder-web.war</web-uri>
<context-root>/</context-root> -
4. Re: Call a jsp inside an ear file deployed on JBoss 4.0.0
jaikiran May 11, 2008 2:56 AM (in response to pepelara)<web-uri>adder-web.war</web-uri>
<context-root>/</context-root>
Try this http://localhost:8080/beanClient.jsp
While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted -
5. Re: Call a jsp inside an ear file deployed on JBoss 4.0.0
pepelara May 11, 2008 4:50 AM (in response to pepelara)I think it works. The browser IE show the page in blank and in the console i have got a message of programming error. I am going to resolve it.
I will have you informatted.
Thank you
pepelara