This is a known bug in the 2.0 final deployer. One of the developers,
Daniel I believe, has fixed this in pre2.1. The problem is that the 2.0
deployer doesn't like the DOCTYPE tag. To work around, just remove the
DOCTYPE tag from the application.xml file.
Another problem with 2.0 is that if the context-root specified in the
application.xml file does not begin with a / the deployer does not
prepend a / and produces an unreachable context root. This is also fixed
in pre2.1. To work around this in 2.0, make sure that the context-root in
application.xml begins with /.
Scot.
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 1/3/01, 1:51:03 PM, Kemp Randy-W18971 <[EMAIL PROTECTED]> wrote
regarding [jBoss-User] Problem with deployment discriptor:
> First, I have a good site and a problem. An excellent EJB site I found
is http://www.mgm-edv.de/ejbsig/downloads/ejb_bookmarks.html. Now that I
have plugged the site, I can get on with the problem.
> I have tried to transport an application from Orion to Jboss. The
application is called addressbook and all the code, including the
deployment descriptor, is found at www.jollem.com. The resulting ear file
works fine in Orion and has a valid deployment descriptor, positioned under
META-INF, after the ant script in www.jollem.com builds the ear file. When
I move the same ear file to deply in the jboss directory, I get the
following log with regards to invalid deployment descriptor with
addressbook. Any idea what I did wrong or how to solve it?
> D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.0-FINAL\bin>set
TOMCAT_
> HOME=..\..\tomcat-3.2-b7
>
D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.0-FINAL\bin>.\run
tomca
> t
> Using configuration "tomcat"
> [Console logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [File logging] Initializing
> [File logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [Info] Java version: 1.3.0,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
> [Info] System: Windows 2000 5.0,x86
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
> [JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
> [Webserver] Initializing
> [Webserver] Initialized
> [Hypersonic] Initializing
> [Hypersonic] Initialized
> [Naming] Initializing
> [Naming] Naming started on port 1099
> [Naming] Initialized
> [Transaction manager] Initializing
> [Transaction manager] Initialized
> [JAAS Security Manager] Initializing
> [JAAS Security Manager] Initialized
> [Simple Realm Mapping] Initializing
> [Simple Realm Mapping] Initialized
> [Security manager] Initializing
> [Security manager] Initialized
> [InstantDB] Initializing
> [InstantDB] Initialized
> [DefaultDS] Initializing
> [DefaultDS] Initialized
> [Container factory] Initializing
> [Container factory] Initialized
> [Auto deploy] Watching
D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.
> 0-FINAL\deploy
> [Auto deploy] Initializing
> [Auto deploy] Initialized
> [JMX RMI Adaptor] Initializing
> [JMX RMI Adaptor] Initialized
> [JMX RMI Connector] Initializing
> [JMX RMI Connector] Initialized
> [Configuration] Initializing
> [Configuration] Initialized
> [J2EE Deployer] Initializing
> [J2EE Deployer] Initialized
> [EmbeddedTomcat] Initializing
> [EmbeddedTomcat] Initialized
> [SpyderMQ] Initializing
> [SpyderMQ] Initialized
> [EmbeddedTomcat] Starting
> [EmbeddedTomcat] Testing if Tomcat is present....
> [EmbeddedTomcat] OK
> [EmbeddedTomcat] ContextManager: Adding context Ctx( )
> [EmbeddedTomcat] path="" :org.apache.jasper.servlet.JspServlet: init
> [EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080
> [EmbeddedTomcat] Started
> [Simple Realm Mapping] Starting
> [Simple Realm Mapping] Started
> [Webserver] Starting
> [Webserver] Codebase set to http://IL93-1093:8083/
> [Webserver] Started webserver on port 8083
> [Webserver] Started
> [Transaction manager] Starting
> [Transaction manager] Started
> [Hypersonic] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Database started
> [Hypersonic] Started
> [Naming] Starting
> [Naming] Started
> [InstantDB] Starting
> [Hypersonic] Press [Ctrl]+[C] to abort
> [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> Enhydra InstantDB - Version 3.21
> [InstantDB] The Initial Developer of the Original Code is Lutris
Technologies In
> c.
> Portions created by Lutris are Copyright (C) 1997-2000 Lutris
Technologies, Inc.
> All Rights Reserved.
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [JAAS Security Manager] Starting
> [JAAS Security Manager] Started
> [Container factory] Starting
> [Container factory] Started
> [J2EE Deployer] Starting
> [J2EE Deployer] Cleaning up deployment directory
file:/D:/JavaServletProducts/jb
> oss-tomcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/
> [J2EE Deployer] Started
> [Security manager] Starting
> [Security manager] Started
> [Auto deploy] Starting
> [Auto deploy] Auto deploy of
file:/D:/JavaServletProducts/jboss-tomcat/jboss_tom
> cat/jboss-2.0-FINAL/deploy/addressbook.ear
> [J2EE Deployer] Deploy J2EE application:
file:/D:/JavaServletProducts/jboss-tomc
> at/jboss_tomcat/jboss-2.0-FINAL/deploy/addressbook.ear
> [J2EE Deployer] Could not delete temporary file:
/D:/JavaServletProducts/jboss-t
> omcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/copy1001.zip
> [J2EE Deployer] Destroying application addressbook.ear
> [J2EE Deployer] deployment.cfg file deleted.
> [J2EE Deployer] File tree
file:/D:/JavaServletProducts/jboss-tomcat/jboss_tomcat
> /jboss-2.0-FINAL/tmp/deploy/addressbook.ear deleted.
> [Auto deploy] Deployment
failed:file:/D:/JavaServletProducts/jboss-tomcat/jboss_
> tomcat/jboss-2.0-FINAL/deploy/addressbook.ear
> [Auto deploy] org.jboss.deployment.J2eeDeploymentException: No valid
deployment
> descriptor was found within this URL:
file:/D:/JavaServletProducts/jboss-tomcat/
> jboss_tomcat/jboss-2.0-FINAL/deploy/addressbook.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)
> [Auto deploy] Auto deploy of
file:/D:/JavaServletProducts/jboss-tomcat/jboss_tom
> cat/jboss-2.0-FINAL/deploy/tomcat-test.ear
> [J2EE Deployer] Deploy J2EE application:
file:/D:/JavaServletProducts/jboss-tomc
> at/jboss_tomcat/jboss-2.0-FINAL/deploy/tomcat-test.ear
> [J2EE Deployer] Could not delete temporary file:
/D:/JavaServletProducts/jboss-t
> omcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/copy1002.zip
> [J2EE Deployer] Create application tomcat-test.ear
> [J2EE Deployer] Installing web package: tomcat-test.war
> [J2EE Deployer] Added ./client.jar to common classpath
> [J2EE Deployer] Installing EJB package: tomcat-test.jar
> [J2EE Deployer] Starting module tomcat-test.jar
> [Container factory]
Deploying:file:/D:/JavaServletProducts/jboss-tomcat/jboss_to
> mcat/jboss-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1005.jar
> [Verifier] Verifying
file:/D:/JavaServletProducts/jboss-tomcat/jboss_tomcat/jbos
> s-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1005.jar
> [Container factory] Deploying Optimized
> [Container factory] Deploying NonOptimized
> [Container factory] Deployed application:
file:/D:/JavaServletProducts/jboss-tom
>
cat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1005
.jar
> [J2EE Deployer] Starting module tomcat-test.war
> [EmbeddedTomcat] ContextManager: Adding context Ctx( /jboss )
> [EmbeddedTomcat] path="/jboss" :org.apache.jasper.servlet.JspServlet:
init
> [J2EE Deployer] J2EE application:
file:/D:/JavaServletProducts/jboss-tomcat/jbos
> s_tomcat/jboss-2.0-FINAL/deploy/tomcat-test.ear is deployed.
> [Auto deploy] Started
> [SpyderMQ] Starting
> [SpyderMQ] Testing if SpyderMQ is present....
> [SpyderMQ] OK
> [SpyderMQ] Starting SpyderMQ...
> [SpyderMQ] Started
> [JMX RMI Adaptor] Starting
> [JMX RMI Adaptor] Started
> [JMX RMI Connector] Starting
> [JMX RMI Connector] Started
> [Default] 23 services and 4 other MBeans started.
> [Default] Shutdown hook added
> [Default] jBoss 2.0 FINAL Started
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]