users@glassfish.java.net

Re: The context root of an EAR application

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Fri, 31 Mar 2006 09:26:14 -0500

Hi, Graf
     Do you have a sun-application.xml packagd inside the ear and it
also specifies a context root? If that's the case, the context root
specified in the sun-application.xml takes high precedence.
     Also did you look at the server.log to check if everything is
normal, no exceptions, and the web module is loaded at the context root
as expected?

     If you don't have a sun-application.xml and server.log looks all
normal to you, please attach you application and the server.log. I will
try it out for you see what I can find out.

     Thanks,

- Hong

Graf László wrote:

> Hi all,
>
> Using a NetBeans 5.5 for Windows and Sun Java System Application
> Server Platform Edition 9.0 Beta (build b32g) for Linux, I did create
> an enterprise application named 'exlybris'.
>
> The server works fine, I did deploy the application without any
> problem. This EAR contains an EJB module, named
> 'exlybris-EJBModule.jar', and a web module, named
> 'exlybris-WebModule.war', as you can see in my application.xml below:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <application version="5" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_5.xsd">
> <display-name>exlybris</display-name>
> <module>
> <web>
> <web-uri>exlybris-WebModule.war</web-uri>
> <context-root>/exlybris-WebModule</context-root>
> </web>
> </module>
> <module>
> <ejb>exlybris-EJBModule.jar</ejb>
> </module>
> </application>
>
> The EJB module contains three container-managed EJB3 and the WEB
> module contains a simple index.html only. The server can be reached at
> the address 'http://ip-address:8080'. My question is, if the context
> root of my web module is '/exlybris-WebModule', why the server gives
> me the message
>
>
> HTTP Status 404 -
>
> ------------------------------------------------------------------------
>
> *type* Status report
>
> *message*
>
> *description* _The requested resource () is not available._
>
> ------------------------------------------------------------------------
>
>
> Sun Java System Application Server Platform Edition 9.0 Beta
>
> when I access the URL 'http://ip-address:8080/exlybris-WebModule/' ?
> Please help me.
>
> Thank you,
>