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)
//Here is my application.xml:
<?xml version="1.0"?>
<!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>eForum Application</display-name>
<module>
<web>
<web-uri>eforum-1-0.war</web-uri>
<context-root>/servlets</context-root>
</web>
</module>
</application>
//My MANIFEST.MF:
Manifest-Version: 1.0
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 9:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [jBoss-User] HELP: Why ear app deploys only while on-line
Thanks for your answers, Peter, Greg, Julian
I am using the latest zip download (not CVS) for Jboss-PRE-2.1 and
Jetty-3.0.0_rc6
on Windows NT Workstation. I am using exactly the same DTD files (Sun's) as
in Tomcat
ear example (no dtd is refereced in ejb-jar.xml). I am not using jboss.xml
though.
Jboss-Jetty DOES try to connect to network any time when it comes to the
point to deploy my app. I will try to use jboss.xml file as well, for
everything to be exactly the same as in
Tomcat example. However, is there any other DTD which I can include directly
to ejb-jar.xml instead? Also do I have to download (which URL?) Sun's DTD? I
don't think I have it on my local system (as I used IBM's parser before).
However, I thought it is bundled somewhere in Jboss-Jetty, as Tomcat example
runs without the problem with the same DTD.
Alternativelly the only thing I can think of, is to try CVS download, if the
bug still exist in zip download, as per Greg's suggestion...
I also enclosed my xmls and interfaces, if you can see something wrong
there.
Cheers. Miomir
//My ejb-jar.xml:
<?xml version="1.0"?>
<ejb-jar>
<description>EJB Hello Application</description>
<display-name>EJB Hello Application</display-name>
<enterprise-beans>
<session>
<ejb-name>HelloApp</ejb-name>
<home>hello.ejb.HelloHome</home>
<remote>hello.ejb.Hello</remote>
<ejb-class>hello.ejb.HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
//My web.xml:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Hello Web Application</display-name>
<servlet>
<servlet-name>hello.web.HelloServlet</servlet-name>
<description>Servlet that calls the Hello bean</description>
<servlet-class>hello.web.HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hello.web.HelloServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
//My application.xml:
<?xml version="1.0"?>
<!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>Hello (Sample Application)</display-name>
<module>
<ejb>j2ee_hello-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>j2ee_hello-web.war</web-uri>
<context-root>/servlets</context-root>
</web>
</module>
</application>
//Remote Interface
package hello.ejb;
import java.rmi.*;
import javax.ejb.*;
// Remote interface
public interface Hello extends EJBObject {
public String sayHello() throws RemoteException;
}
//Home Interface
package hello.ejb;
import java.rmi.*;
import javax.ejb.*;
// Home interface
public interface HelloHome
extends EJBHome {
public Hello create()
throws EJBException, CreateException, RemoteException;
}
//Servlet Call
Object boundObject = context.lookup("HelloApp");
-----Original Message-----
From: Peter Jasko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 6:17 AM
To: jBoss
Subject: RE: [jBoss-User] HELP: Why ear app deploys only while on-line
Are you running Win9x? Win95 (and presumably win98) has known problems using
network/socket connections without being connected to a network or through
dial-up.
Peter
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Julian Gosnell
Sent: Thursday, November 30, 2000 10:37 AM
To: jBoss
Cc: [EMAIL PROTECTED]
Subject: Re: [jBoss-User] HELP: Why ear app deploys only while on-line
Without the source, diagnosis is difficult !
My immediate thought is that this may be due to a
similar problem we had. Do any of the XML files in the
war part of your ear contain .dtd URLs that are
non-local ? It may be that these are being looked up
at deploy time.
Look at the tomcat-test.ear and use the dtd
declaration in there.
If this is the problem, mail me your XML file and I
shall see what can be done.
If not, try putting a -DDEBUG on the JVM's startup.
This should produce more debug output.
God luck !
Jules
--- [EMAIL PROTECTED] wrote: > Hello
> I created test application - as an ear file (just
> one ejb call from servlet
> and passing values, nothing fancy) which runs
> fine (thanks to Daniel's help) on jboss_jetty,
> however ONLY if I am
> connected to Interent (via service provider).
> It doesn't deploy at all if I am off-line (while
> included tomcat.ear does).
> There is nothing in application that does
> anything with the host name or IP address. What
> could be the problem here?
> It is usefull sometimes to work on
> app when you are not connected (or behind firewall).
> I attached both stack
> traces (the installation and all files
> are completely identical in both cases). I am not
> able to find the reason.
> Please help.
> Thanks in advance. Cheers. Miomir
>
> Stack trace when ON-LINE:
> [Auto deploy] Auto deploy of
> file:/E:/java/jboss_jetty/jboss-PRE-2.1/deploy/j2ee
> _hello.ear
> [J2EE Deployer] Deploy J2EE application:
> file:/E:/java/jboss_jetty/jboss-PRE-2.1
> /deploy/j2ee_hello.ear
> [J2EE Deployer] Could not delete temporary file:
> /E:/java/jboss_jetty/jboss-PRE-
> 2.1/bin/../tmp/deploy/copy1002.zip
> [J2EE Deployer] Create application j2ee_hello.ear
> [J2EE Deployer] Installing EJB package:
> j2ee_hello-ejb.jar
> [J2EE Deployer] Installing web package:
> j2ee_hello-web.war
> [J2EE Deployer] Added ./remote.jar to common
> classpath
> [J2EE Deployer] Starting module j2ee_hello-ejb.jar
> [Container factory]
>
Deploying:file:/E:/java/jboss_jetty/jboss-PRE-2.1/bin/../tmp
> /deploy/j2ee_hello.ear/ejb1003.jar
> [Verifier] Verifying
>
file:/E:/java/jboss_jetty/jboss-PRE-2.1/bin/../tmp/deploy/j
> 2ee_hello.ear/ejb1003.jar
> [Container factory] Deploying HelloApp
> [Container factory] Deployed application:
> file:/E:/java/jboss_jetty/jboss-PRE-2.
> 1/bin/../tmp/deploy/j2ee_hello.ear/ejb1003.jar
> [J2EE Deployer] Starting module j2ee_hello-web.war
> [Jetty] About to deploy - /servlets/* maps to
> file:/E:/java/jboss_jetty/jboss-PR
> E-2.1/bin/../tmp/deploy/j2ee_hello.ear/war1004/
> [Jetty] Web Application WebApp:Hello Web
> Application@file:/E:/java/jboss_jetty/j
> boss-PRE-2.1/tmp/deploy/j2ee_hello.ear/war1004/
> added
>
> Stack trace when OFF-LINE:
> [Auto deploy] Starting
> [Auto deploy] Auto deploy of
> file:/E:/java/jboss_jetty/jboss-PRE-2.1/deploy/j2ee
> _hello.ear
> [J2EE Deployer] Deploy J2EE application:
> file:/E:/java/jboss_jetty/jboss-PRE-2.1
> /deploy/j2ee_hello.ear
> [J2EE Deployer] Could not delete temporary file:
> /E:/java/jboss_jetty/jboss-PRE-
> 2.1/bin/../tmp/deploy/copy1001.zip
> [J2EE Deployer] Destroying application
> j2ee_hello.ear
> [J2EE Deployer] deployment.cfg file deleted.
> [J2EE Deployer] File tree
>
file:/E:/java/jboss_jetty/jboss-PRE-2.1/tmp/deploy/j2e
> e_hello.ear deleted.
> [Auto deploy] Deployment
>
failed:file:/E:/java/jboss_jetty/jboss-PRE-2.1/deploy/j
> 2ee_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)
> [Auto deploy] at
> java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy] at
>
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1628)
> [Auto deploy] at
>
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1523)
> [Auto deploy] at
>
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:332)
> [Auto deploy] at
>
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268)
> [Auto deploy] at
>
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:311
> )
> [Auto deploy] at
>
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> java:92)
> [Auto deploy] at
> java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy] at
>
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1628)
> [Auto deploy] at
>
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1523)
> [Auto deploy] at
>
org.jboss.dependencies.DependencyManager.startMBean(Dependenc
> yManager.java:284)
> [Auto deploy] at
>
org.jboss.dependencies.DependencyManager.loadService(Dependen
> cyManager.java:261)
> [Auto deploy] at
>
org.jboss.dependencies.DependencyManager.processService(Depen
> dencyManager.java:243)
> [Auto deploy] at
>
org.jboss.dependencies.DependencyManager.startMBeans(Dependen
> cyManager.java:117)
> [Auto deploy] at
> org.jboss.Main.<init>(Main.java:162)
> [Auto deploy] at
> org.jboss.Main$1.run(Main.java:87)
> [Auto deploy] at
> java.security.AccessController.doPrivileged(Native
> Method)
> [Auto deploy] at org.jboss.Main.main(Main.java:83)
>
>
>
> --
>
--------------------------------------------------------------
> To subscribe:
> [EMAIL PROTECTED]
> To unsubscribe:
> [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]