Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 74561 invoked from network); 18 Apr 2008 03:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 03:56:20 -0000 Received: (qmail 48656 invoked by uid 500); 18 Apr 2008 03:56:15 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 48623 invoked by uid 500); 18 Apr 2008 03:56:15 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 48612 invoked by uid 99); 18 Apr 2008 03:56:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 20:56:15 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 03:55:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JmhhP-000216-5f for user@geronimo.apache.org; Thu, 17 Apr 2008 20:55:43 -0700 Message-ID: <16760066.post@talk.nabble.com> Date: Thu, 17 Apr 2008 20:55:43 -0700 (PDT) From: newbie-gero To: user@geronimo.apache.org Subject: Re: Require help and guidance to deploy a war file In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: chongming@e7tech.com References: <16744015.post@talk.nabble.com> <73a75e430804170701q1c3585c0y41f71325e38a2743@mail.gmail.com> <73a75e430804170705qd1f7770he33c6b4ceab2e4f7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi lists, I have compress the file again and deploy in the geronimo This is the errors from geronimo: Error: Unable to distribute ims.war: xml problem for web app . Invalid deployment descriptor: errors: error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0 web-container@http://geronimo.apache.org/xml/ns/naming-1.2 host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2 ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2 ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2 service-ref@http://geronimo.apache.org/xml/ns/naming-1.2 resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2 resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2 message-destination@http://geronimo.apache.org/xml/ns/naming-1.2 security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 service@http://geronimo.apache.org/xml/ns/deployment-1.2 persistence@http://java.sun.com/xml/ns/persistence' instead of 'port@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here Descriptor: sample2.applications VOApp 2.1 ims imsPort http localhost 8080 This is my geronimo-web.xml - - - sample2.applications VOApp 2.1 ims - imsPort http localhost 8080 - Is it because of my geronimo-web.xml error? Thanks Joseph Leong wrote: > > To add any clarification, so inside your ims.war file you have a folder > called ims.war. Take the contents in that folder and unpack it to the > root > level of your war file. > > -Joseph Leong > > On Thu, Apr 17, 2008 at 10:05 AM, Jason Warner > wrote: > >> Hello again, >> >> Let me amend my previous statement. I was thinking slower than my >> fingers >> type. I believe you should just package the contents of /ims/ims.war >> into a >> war file. Meaning, everything in your ims.war directory should be >> contained >> in the root level of your actual war. >> >> Please ask for clarification if necessary. >> >> >> On Thu, Apr 17, 2008 at 10:01 AM, Jason Warner >> wrote: >> >> > Hello, >> > >> > I think you issue is with your directory structure. Currently, you >> have >> > ims/ims.war/*everythinginyourwar*. The ims.war directory is >> unnecessary and >> > could be what's causing your problems. Try changing your structure to >> > ims/*everythinginyourwar* and then repackaging the war and deploying. >> > >> > Hope this helps! >> > >> > >> > On Thu, Apr 17, 2008 at 9:53 AM, newbie-gero >> > wrote: >> > >> > > >> > > Hi lists. >> > > i require advice and help at deploying a war file. I started out >> using >> > > Jboss >> > > app server. i have attach my file which i deploy my in JBoss. It can >> > > run >> > > successfully when i type http://localhost:8080/ims/index.jsp >> > > >> > > This time round i deploy the file into geronimo. The difference with >> > > the >> > > file i deployed in Geronimo is i added in a geronimo-web.xml file in >> > > WEB-INF >> > > and compress the file into .war. >> > > When i use command line to deploy the file, the response is: >> > > >> > > chongming@LinuxCM:~/geronimo-2.1> java -jar bin/deployer.jar --user >> > > system >> > > --password manager deploy ims.war >> > > Deployed default/ims/1208439219896/war @ /ims >> > > >> > > However on the Geronimo log it shows this error: >> > > 21:33:39,897 WARN [TomcatModuleBuilder] Web application . does not >> > > contain >> > > a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a >> > > problem, depending on whether you have things like resource >> references >> > > that >> > > need to be resolved. You can also give the deployer a separate >> > > deployment >> > > plan file on the command line. >> > > >> > > These is the file i deployed in Geronimo. As for JBoss, simply >> > > uncompress >> > > the file; >> > > http://www.nabble.com/file/p16744015/ims.war ims.war >> > > >> > > >> > > -- >> > > View this message in context: >> > > >> http://www.nabble.com/Require-help-and-guidance-to-deploy-a-war-file-tp16744015s134p16744015.html >> > > Sent from the Apache Geronimo - Users mailing list archive at >> > > Nabble.com. >> > > >> > > >> > >> > >> > -- >> > ~Jason Warner >> >> >> >> >> -- >> ~Jason Warner > > -- View this message in context: http://www.nabble.com/Require-help-and-guidance-to-deploy-a-war-file-tp16744015s134p16760066.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.