Re: [jBoss-User] Still get No valid deployment descriptor wasfound ...
Hi Jim Strange .. can u try deploying ,first, a web application that includes only an index.html to test it : if u wanna try this I ll send u the whole app and the build.xml best reguards faisal; - Original Message - From: "Jim Archer" [EMAIL PROTECTED] To: "JBoss-User" [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 3:36 AM Subject: [jBoss-User] Still get No valid deployment descriptor was found ... 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-nameSample EJB 2.0 CMP DO Application/display-name servlet !-- servlet-nameTest20CmpDoOM-Go/servlet-name -- servlet-nameGo/servlet-name servlet-classTest20CmpDoOM.servlet.Go/servlet-name /servlet !-- servlet-mapping servlet-nameTest20CmpDoOM-Go/servlet-name url-pattern/Test20DoOM/url-pattern /servlet-mapping ejb-ref ejb-ref-nameejb/PersonHome/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homeTest20CmpDoOM.eb.PersonHome/home remoteTest20CmpDoOM.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
RE: [jBoss-User] Still get No valid deployment descriptor wasfound ...
Hi, Jim servlet servlet-nameGo/servlet-name servlet-classTest20CmpDoOM.servlet.Go/servlet-name !!! WHY /servlet-name and not /servlet-class ??? /servlet Regards, Dmitri Ulitski -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
RE: [jBoss-User] Still get No valid deployment descriptor wasfound ...
Yup, that was the problem! I found it a few hours ago. My foolish error. Thanks VERY much for your reply! Jim --On Tuesday, February 20, 2001 3:12 PM + Nimbus Partners Ltd [EMAIL PROTECTED] wrote: Hi, Jim servlet servlet-nameGo/servlet-name servlet-classTest20CmpDoOM.servlet.Go/servlet-name !!! WHY /servlet-name and not /servlet-class ??? /servlet Regards, Dmitri Ulitski -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED] 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]
Re: [jBoss-User] Still get No valid deployment descriptor wasfound...
could u try this test i ve just sent Let s try this Sure u are familiar to Orion tools .If not I ll include,anyway,how to use earassembler.jar 1/ in a created directory called let's say myapp - Run earassembler - From file click on new - From Application click on Create EJB jar - Click on yes -Name your Ejb.jar myapp-ejb -From Application click on new Web-application -Click on yes -Name it myapp-web --From File click on save in our created dir myapp * now our web application is ready -under myapp-web create new dir called web -Create an index.html -save it in web dir -to web.xml in WEB-INF add index.html as welcome-file -and make the context-root/myapp/context-root -make sure that jboss-dtd.xml is included in WEB-INF dir -go to META-INF rename our module myapp-web to myappp-web.war rename our module myapp-ejb to myapp-ejb.jar -- get rid of all the DTD in web.xml,ejb.jarxml application.xml Then use the following build.xml create the ear.file ?xml version="1.0" ? project name="fa" default="all" basedir="." target name="init" property name="orion.dir" value="C:\orion"/ property name="meta" value="META-INF"/ property name="name" value="myapp"/ property name="ejb.dir" value="myapp-ejb"/ property name="web.dir" value="myapp-web"/ property name="src.dir" value="src" / property name="lib.dir" value="lib" / property name="rel.dir" value="rel" / /target target name="prepare" depends="init" mkdir dir="${lib.dir}" / mkdir dir="${lib.dir}/ejb" / mkdir dir="${lib.dir}/ejb/META-INF" / mkdir dir="${lib.dir}/web" / mkdir dir="${lib.dir}/web/WEB-INF" / mkdir dir="${lib.dir}/web/WEB-INF/classes" / mkdir dir="${lib.dir}/j2ee" / mkdir dir="${lib.dir}/META-INF" / mkdir dir="${rel.dir}" / /target target name="preejb" depends="prepare" javac srcdir="${ejb.dir}" destdir="${lib.dir}/ejb"/ /target target name="ejb-meta-inf" depends="prepare" copyfile src="${ejb.dir}/META-INF/ejb-jar.xml" dest="${lib.dir}/ejb/META-INF/ejb-jar.xml" / /target target name="ejb-jar" depends="preejb,ejb-meta-inf" jar jarfile="${rel.dir}/${name}-ejb.jar" basedir="${lib.dir}/ejb" / /target target name="web-classes" depends="prepare" javac srcdir="${web.dir}" destdir="${lib.dir}/web/WEB-INF/classes" classpath="${lib.dir}/ejb:${orion.dir}/ejb.jar:${orion.dir}/jndi.jar:${orion .dir}/orion.jar" / /target target name="weball" depends="prepare" copydir src="${web.dir}/web" dest="${lib.dir}/web" / /target target name="web-web-inf" depends="prepare" copyfile src="${web.dir}/WEB-INF/web.xml" dest="${lib.dir}/web/WEB-INF/web.xml" / /target target name="dtd" depends="prepare" copyfile src="${web.dir}/WEB-INF/jboss-web.dtd" dest="${lib.dir}/web/WEB-INF/jboss-web.dtd"/ /target target name="web-war" depends="web-web-inf,weball,web-classes,dtd" jar jarfile="${rel.dir}/${name}-web.war" basedir="${lib.dir}/web" / /target target name="j2ee-meta-inf" depends="prepare" copyfile src="${meta}/application.xml" dest="${lib.dir}/j2ee/META-INF/application.xml" / /target target name="all" depends="ejb-jar,web-war,j2ee-meta-inf" copyfile src="${rel.dir}/${name}-ejb.jar" dest="${lib.dir}/j2ee/${name}-ejb.jar" / copyfile src="${rel.dir}/${name}-web.war" dest="${lib.dir}/j2ee/${name}-web.war" / jar jarfile="${rel.dir}/${name}.ear" basedir="${lib.dir}/j2ee" / /target /project copy the myapp.ear into deploy dir it will work- I ve just tested it now as a double check THEN U can add servlet in WEB-INF/classes/etc and run them NOTE THE ONLY THING I can 't guarantee it is calling my ejb classes throught my jsp servlet if u do know please let me know I mean with this application format I can run my application smoothly in Orion but in Jboss I could not Here are again The application.xml ?xml version="1.0"? application display-nameArchive/display-name module ejbmyapp-ejb.jar/ejb /module module web web-urimyapp-web.war/web-uri context-root/myapp/context-root /web /module /application the ejb.jar.xml contains nothing for the momen ?xml version="1.0"? ejb-jar enterprise-beans /enterprise-beans assembly-descriptor /assembly-descriptor /ejb-jar t the web.xml ?xml version="1.0"? web-app welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list login-config auth-methodBASIC/auth-method /login-config /web-app try and see if it will work it must work man ! Good luck faisal - Original Message - From: "Francesco Marchioni" [EMAIL PROTECTED] To: "JBoss-User" [EMAIL PROTECTED] Sent: Wednesday, February 21, 2001 3:10 PM Subject: Re: [jBoss-User] Still get No valid deployment descriptor was found... Hello everybody, I also am in panic with deployment descriptors- it seems jBoss