This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • 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
  • 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: 10447
227
IntelliJ IDE Ubuntu
  • 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
  • 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: 10447
227
IntelliJ IDE Ubuntu
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it.

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