• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I do not know how to call a JSP inside an ear file

 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have deployed an ear file with an ejb into a jar file and a jsp into war file. My problem is that now i do not know how to call my ouput jsp file. I'm using JBoss 4.0.0: I�m talking abot de example Adder maybe anyone knows

Waiting for the answer, thank you in advance

PS:
Excuse my english but I from Spain and I have no pratice
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Can you post the contents of your application.xml file and the name of the jsp, you want to invoke?
 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'>
<application>
<display-name>MyAdder</display-name>
<description>This is the implementaion of the Adder application</description>
<module>
<ejb>adder-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>adder-web.war</web-uri>
<context-root>/</context-root>
</web>
</module>
</application>

And the jsp is named beanClient.jsp, that means it is the client of the EJB in the jar file
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this http://localhost:8080/beanClient.jsp (assuming that beanClient.jsp is at the root of the adder-web.war file).
 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it.

Thanks a lot
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic