This was a problem in 2.0 but I have downloaded a snapshot of pre 2.1 and 
this seems to be fixed.  I can now take an ear file that was built for 
the Sun reference implementation and deploy unchanged to jBoss_tomcat.

Scot.

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 12/13/00, 5:32:32 AM, Steve Kwee <[EMAIL PROTECTED]> wrote regarding 
Re: [jBoss-User] HELP: Why ear app deploys only while on-line OR with 
jboss.xml included:


> Howto run war files from tomcat distribution under
> jboss/embedded tomcat when offline
> (Maybe someone could put this into a FAQ.)

> This took me some time so I thout it might be worth describing
> a solution...
> I do not understand why the jboss.xml changes anything either.

> Problem:
> The war examples from the tomcat distribution do not work
> with the J2EE-Deployment mechanism of the embedded jboss/tomcat
> final distribution because the web.xml descriptor point to
> a DTD on java.sun.com.
> The problem can be solved by providing the DTD in question locally.

> Error Message:
> No valid deployment descriptor was found within this URL:
> file:/C:/Server/jboss/jboss-2.0-FINAL/deploy/examples.war

> Solution:
> 0. Get the original web-app-dtd from
>      http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

> 1. Goto the webapps dir in the tomcat installation

> 2. jar -xf examples.war (unpack examples.war)

> 3. Edit examples/WEB-INF/web.xml and change the location
>    of the web-app-dtd into one that is reachable when offline
>    i.e. file:/C:/Server/jboss/etc/web-app_2_2.dtd

> 4. Pack web-application into war file:
>    cd examples
>    jar cf ../examples.war .

> 5. Deploy the application by copiing examples.war to
>    the deploy dir in the jboss installation


> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 1. Dezember 2000 03:49
> An: [EMAIL PROTECTED]
> Betreff: RE: [jBoss-User] HELP: Why ear app deploys only while on-line
> OR with jboss.xml included


> OK. Now, after I included jboss.xml into ear, my simple app works fine
> either
> off-line or on-line. I am not sure why jboss.xml needs to be there, as it
> doesn't
> seem to add any value, just repeats the information already specified in
> ejb-jar.xml.
> Here it is the file which made app work:
> <?xml version="1.0" encoding="Cp1252"?>
> <jboss>
>    <secure>false</secure>
>    <container-configuration />
>    <resource-managers />
>    <enterprise-beans>
>       <session>
>          <ejb-name>HelloApp</ejb-name>
>          <jndi-name>HelloApp</jndi-name>
>          <configuration-name></configuration-name>
>       </session>
>    </enterprise-beans>
> </jboss>
> Now, if I have the same application WITHOUT ejb (just war), the deploy 
error
> still
> happens (either with war file only or ear file which contains only war 
and
> META-INF
> with application.xml and Manifest.MF). And it happens also while ON-LINE.
> I would like to see a logical rule here. What are possible meaning of 
"valid
> deployment descriptor" error and which are the rules to avoid this 
problem?!
> My configuration is: latest jboss_jetty, Win NT WS Service Pack 5, 
Pentium
> III 450MHz,
> 192Mb RAM. Connection either DSL (home) or LAN (work).
> Thanks and best regards. Miomir

> Here is (the same) deployment error, now with war only (either on-line or
> off-line):
> [Auto deploy] Deployment
> failed:file:/E:/java/jboss_jetty/jboss-PRE-2.1/deploy/j2ee-hello.ear
> [Auto deploy] org.jboss.deployment.J2eeDeploymentException: No valid
> deployment
> descriptor was found within this URL:
> file:/E:/java/jboss_jetty/jboss-PRE-2.1/de
> ploy/j2ee-hello.ear
> [Auto deploy] Make sure it points to a valid j2ee package
> (ejb.jar/web.war/app.e
> ar)!
> [Auto deploy]   at
> org.jboss.deployment.J2eeDeployer.installApplication(J2eeDepl
> oyer.java:403)
> [Auto deploy]   at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:13
> 6)
> .....


> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to