Check the case of your application.xml file anem it should all be lower case, this is 
the error I get when I accidentily use Application.xml.



>>> Jim Archer <[EMAIL PROTECTED]> 02/20/01 03:36am >>>
Hi All...

After several days of trying (on and off) I still can't get WAR files to 
deploy with jBoss 2.0 FINAL and embeddeed Tomcat. I downloaded the binary 
distribution from the jBoss site and installed it. Its running in JDK 1.3 
from Sun on Windows 2000.

The error seems to be: No valid deployment descriptor was found ...

I have tried all the suggested workarounds I found in the mail archive, 
including commenting out the DOCTYPE and adding the /. I have also tried 
adding the DTD into the descriptor as suggested. No joy.

The sample EAR file distributed with the binary jBoss/Tomcat deploys fine. 
In fact, I even unzipped it and extracted the .WAR file and deployed it 
seperatly, and it deployes fine as well.

I then made my XML file match it almost identically changing only my 
servlet class and context root. Still no joy. I also verified the file 
names and name case is correct and the file locations within the archive as 
correct. I just don't see what I am doing differently.

I have pasted my XML file, a log file and the exception throws to the 
window below.

I realize I must be doing something foolish, since the sample deploys, so I 
appeal to the list for help. I really need to get past this in order to 
start actually developing again. I would appreciate any suggestions.

Thanks to everyone.

Jim

------------------------------------------------------

Output jBoss makes to its window when I deploy my WAR:

[Auto deploy] Auto deploy of 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy/Sa
mple20EbDoOM-ver001a-web.war
[J2EE Deployer] Deploy J2EE application: 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FIN
AL/deploy/Sample20EbDoOM-ver001a-web.war
[J2EE Deployer] Could not delete temporary file: 
/C:/jbt/jboss_tomcat/jboss-2.0-
FINAL/bin/../tmp/deploy/copy1001.zip
[J2EE Deployer] Destroying application Sample20EbDoOM-ver001a-web.war
[J2EE Deployer] deployment.cfg file deleted.
[J2EE Deployer] File tree 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/tmp/deploy/S
ample20EbDoOM-ver001a-web.war deleted.
[Auto deploy] Deployment 
failed:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy
/Sample20EbDoOM-ver001a-web.war
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: No valid 
deployment
descriptor was found within this URL: 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/
deploy/Sample20EbDoOM-ver001a-web.war
[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 java.lang.Thread.run(Unknown Source)



My XML descriptor from the WAR:


<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
<!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>Sample EJB 2.0 CMP DO Application</display-name>

   <servlet>
      <!-- <servlet-name>Test20CmpDoOM-Go</servlet-name> -->
      <servlet-name>Go</servlet-name>
      <servlet-class>Test20CmpDoOM.servlet.Go</servlet-name>
   </servlet>


<!--
   <servlet-mapping>
      <servlet-name>Test20CmpDoOM-Go</servlet-name>
      <url-pattern>/Test20DoOM</url-pattern>
   </servlet-mapping>

    <ejb-ref>
      <ejb-ref-name>ejb/PersonHome</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <home>Test20CmpDoOM.eb.PersonHome</home>
      <remote>Test20CmpDoOM.eb.Person</remote>
    </ejb-ref>
-->

</web-app>




The complete jBoss log from starting and deploying and exiting:


[File logging] Initialized
[Classpath extension] Initializing
[Classpath extension] Added 
directory:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/tmp/
[Classpath extension] Initialized
[Classpath extension] Initializing
[Classpath extension] Added 
directory:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/db/
[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] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/awt.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/hsql.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/mail.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/activation.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jndi.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jetty-service.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jta-spec1_0_1.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejxeditor.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/idb.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/tomcat-service.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jms.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejb.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejxejb.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jmxtools.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/spydermq.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jpl-util-0_5b.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jnpserver.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/dynaserver.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/jboss.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejxjaws.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejxjboss.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/ejb20spi.jar
[Classpath extension] Added 
library:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/lib/ext/relationships.jar
[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 C:\jbt\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
[Configuration] MaxActiveClientCount set to 10 in Adaptor:name=html
[Configuration] Port set to 8082 in Adaptor:name=html
[Configuration] LibraryDirectory set to 
C:\jbt\jboss_tomcat\jboss-2.0-FINAL\bin in DefaultDomain:service=MLet
[Configuration] TransactionTimeout set to 300 in 
DefaultDomain:service=TransactionManager
[Configuration] Format set to [{2}] {4} in 
DefaultDomain:service=Logging,type=Console
[Configuration] Port set to 8083 in DefaultDomain:service=Webserver
[Configuration] Format set to [{2}] {4} in 
DefaultDomain:service=Logging,type=File
[Configuration] LogName set to server in 
DefaultDomain:service=Logging,type=File
[Configuration] URL set to jdbc:idb:../conf/default/instantdb.properties in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCMinIdleTime set to 1200000 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxSize set to 10 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCEnabled set to false in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] InvalidateOnError set to false in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] TimestampUsed set to false in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] Blocking set to true in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCInterval set to 120000 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeout set to 1800000 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeoutEnabled set to false in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] LoggingEnabled set to false in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxIdleTimeoutPercent set to 1.0 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MinSize set to 0 in 
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] Port set to 1476 in DefaultDomain:service=Hypersonic
[Configuration] Silent set to true in DefaultDomain:service=Hypersonic
[Configuration] Database set to default in DefaultDomain:service=Hypersonic
[Configuration] Trace set to false in DefaultDomain:service=Hypersonic
[Configuration] URL set to jdbc:HypersonicSQL:hsql://localhost:1476 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCMinIdleTime set to 1200000 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] JDBCUser set to sa in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxSize set to 10 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCEnabled set to false in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] InvalidateOnError set to false in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] TimestampUsed set to false in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] Blocking set to true in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCInterval set to 120000 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeout set to 1800000 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeoutEnabled set to false in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] LoggingEnabled set to false in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxIdleTimeoutPercent set to 1.0 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MinSize set to 0 in 
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] VerifyDeployments set to true in 
EJB:service=ContainerFactory
[Configuration] MetricsEnabled set to false in EJB:service=ContainerFactory
[Configuration] VerifierVerbose set to true in EJB:service=ContainerFactory
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is 
not writeable for MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed' 
is not writeable for MBean 
'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is 
not writeable for MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed' 
is not writeable for MBean 
'DefaultDomain:name=DefaultDS,service=XADataSource'
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Testing if Tomcat is present....
[EmbeddedTomcat] OK
[EmbeddedTomcat] ContextManager: Adding context Ctx(  )
[EmbeddedTomcat] path="" :jsp: init
[EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080
[EmbeddedTomcat] Started
[Simple Realm Mapping] Starting
[Simple Realm Mapping] Started
[Webserver] Starting
[Webserver] Codebase set to http://macduff: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
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
[InstantDB] The Initial Developer of the Original Code is Lutris 
Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies, 
Inc.
All Rights Reserved.
[Hypersonic] Press [Ctrl]+[C] to abort
[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:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/
[J2EE Deployer] Started
[Security manager] Starting
[Security manager] Started
[Auto deploy] Starting
[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
[Auto deploy] Auto deploy of 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy/Sample20EbDoOM-ver001a-web
.war
[J2EE Deployer] Deploy J2EE application: 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy/Sample20EbDoOM-ver001a-web
.war
[J2EE Deployer] Could not delete temporary file: 
/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/copy1001.zip
[J2EE Deployer] Destroying application Sample20EbDoOM-ver001a-web.war
[J2EE Deployer] deployment.cfg file deleted.
[J2EE Deployer] File tree 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/tmp/deploy/Sample20EbDoOM-ver001a
-web.war deleted.
[Auto deploy] Deployment 
failed:file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy/Sample20EbDoOM-ver0
01a-web.war
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: No valid 
deployment descriptor was found within this URL: 
file:/C:/jbt/jboss_tomcat/jboss-2.0-FINAL/deploy/Sample20EbDoOM-ver001a-web
.war
[Auto deploy] Make sure it points to a valid j2ee package 
(ejb.jar/web.war/app.ear)!
[Auto deploy]   at 
org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:403)
[Auto deploy]   at 
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:136)
[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 java.lang.Thread.run(Unknown Source)
[JMX RMI Adaptor] Stopping
[JMX RMI Adaptor] Stopped
[JMX RMI Adaptor] Destroying
[JMX RMI Adaptor] Destroyed
[JMX RMI Connector] Stopping
[JMX RMI Connector] Stopped
[JMX RMI Connector] Destroying
[JMX RMI Connector] Destroyed
[SpyderMQ] Stopping
[SpyderMQ] Stopped
[SpyderMQ] Destroying
[SpyderMQ] Destroyed
[Auto deploy] Stopping
[Auto deploy] Stopped
[Auto deploy] Destroying
[Auto deploy] Destroyed
[Security manager] Stopping
[Security manager] Stopped
[Security manager] Destroying
[Security manager] Destroyed
[J2EE Deployer] Stopping
[J2EE Deployer] Undeploying all applications.
[J2EE Deployer] Undeployed 0 applications.
[J2EE Deployer] Stopped
[J2EE Deployer] Destroying
[J2EE Deployer] Destroyed
[Container factory] Stopping
[Container factory] Stopped
[Container factory] Destroying
[Container factory] Destroyed
[JAAS Security Manager] Stopping
[JAAS Security Manager] Stopped
[JAAS Security Manager] Destroying
[JAAS Security Manager] Destroyed
[DefaultDS] Stopping
[DefaultDS] XA Connection pool DefaultDS removed from JNDI
[DefaultDS] XA Connection pool DefaultDS shut down
[DefaultDS] Error stopping service 
'DefaultDomain:name=DefaultDS,service=XADataSource': 
javax.management.RuntimeMBeanException: RuntimeException thrown in 
operation destroy
[DefaultDS] Unable to stop MBean 
'DefaultDomain:name=DefaultDS,service=XADataSource'
[InstantDB] Stopping
[InstantDB] XA Connection pool InstantDB removed from JNDI
[InstantDB] Database instantdb is shutting down...
[InstantDB] Database instantdb shutdown complete.
[InstantDB] XA Connection pool InstantDB shut down
[InstantDB] Error stopping service 
'DefaultDomain:name=InstantDB,service=XADataSource': 
javax.management.RuntimeMBeanException: RuntimeException thrown in 
operation destroy
[InstantDB] Unable to stop MBean 
'DefaultDomain:name=InstantDB,service=XADataSource'
[Naming] Stopping
[Naming] Stopped
[Naming] Destroying
[Naming] Destroyed
[Hypersonic] Stopping
[Hypersonic] Stopped
[Hypersonic] Destroying
[Hypersonic] Destroyed
[Transaction manager] Stopping
[Transaction manager] Stopped
[Transaction manager] Destroying
[Transaction manager] Destroyed
[Webserver] Stopping
[Webserver] Stopped
[Webserver] Destroying
[Webserver] Destroyed
[Simple Realm Mapping] Stopping
[Simple Realm Mapping] Stopped
[Simple Realm Mapping] Destroying
[Simple Realm Mapping] Destroyed
[EmbeddedTomcat] Stopping
[EmbeddedTomcat] Stopped
[EmbeddedTomcat] Destroying
[EmbeddedTomcat] Destroyed
[InstantDB] 27 services and 4 other MBeans stopped.













********************************************
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED] 
To unsubscribe:      [EMAIL PROTECTED] 
List Help?:          [EMAIL PROTECTED] 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to