users@glassfish.java.net

RE: enterprise app modules added to composite app

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 25 Feb 2009 09:46:39 -0500

Ray

depends on the location of your webapps web.xml and sun-web.xml configuration files

$GLASSFISH_HOME/domains/domain1/generated/xml/j2ee-modules/hello/WEB-INF/web.xml contents

<web-app version="2.4" 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/web-app_2_4.xsd">
  <display-name>hello</display-name>
  <distributable/>
</web-app>

$GLASSFISH_HOME/domains/domain1/generated/xml/j2ee-modules/hello/WEB-INF/sun-web.xml contents

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app>
  <context-root>hello</context-root>
</sun-web-app>

http://localhost:8080/hello

Assuming your hello webapp is deployed to a working domain (in my case that is domain1)

HTH
Martin
USCitizen(Contractor)
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.




Date: Wed, 25 Feb 2009 08:53:49 -0500
From: armart3_at_tycho.ncsc.mil
To: users_at_glassfish.dev.java.net
Subject: enterprise app modules added to composite app








i have an enterprise
app, Example with the usual modules Example-ejb and
Example-war.
 
in a composite app,
i select "Add JBI Module" - from the selection window, i add Example-ejb adn
Example-war.
 
the sun-web.xml file
in Example-war says the context is /Example-war
 
after deploying the
composite app, and setting the browser to http://localhost:8080/Example-war -
i can only get 503 requested service not available.
 
the admin console
shows the modules Example-war and Example-ejb deployed in the composite
app.
 
the context has not
changed has it?
_________________________________________________________________
Windows Live™ Hotmail®…more than just e-mail.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_022009