Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 13336 invoked from network); 28 Apr 2008 15:13:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 15:13:26 -0000 Received: (qmail 16048 invoked by uid 500); 28 Apr 2008 15:13:26 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 15773 invoked by uid 500); 28 Apr 2008 15:13:25 -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 15760 invoked by uid 99); 28 Apr 2008 15:13:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 08:13:25 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of c1vamsi1c@gmail.com designates 74.125.46.28 as permitted sender) Received: from [74.125.46.28] (HELO yw-out-2324.google.com) (74.125.46.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 15:12:38 +0000 Received: by yw-out-2324.google.com with SMTP id 9so1013831ywe.85 for ; Mon, 28 Apr 2008 08:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=5Mqcjqumq73hTpooxRdIu/JckYwXp5tAkD6EM+MKQh8=; b=tQcIYyZ1GyCG2xOqdf0CYkcoGScObXz+ISXlqMS6iShzx9w/cEHLCKBAsYNygitiunkBJNLkPXScMq6OxFHauNY6zt71AI9Sb1tfngv1/zUDrb6qpztt1KjbRrihqZYhXCDOO+vJTUSfZ4ucnMtxM6RXThjMqlND02iiRXQIGvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=o+Zl5q6bIWD1x/PW8xDWG56kUsanrGE8hR+ubZa2KyPsg1e8v37Xnts2A5apmU7kF+bzYsZdTb3kCr8j+0439Nkz5BEB+xIzQZ7nZX3oiYnuI+L57bKWm9WCU5szDgrsNNmmiVmdeSA8mRYwuxF6Q8gUZ2shr4BgbnwXoMLFupE= Received: by 10.142.84.3 with SMTP id h3mr2188193wfb.113.1209395555069; Mon, 28 Apr 2008 08:12:35 -0700 (PDT) Received: by 10.142.233.12 with HTTP; Mon, 28 Apr 2008 08:12:35 -0700 (PDT) Message-ID: <22d56c4d0804280812s25ca50dei327eb76046c094e3@mail.gmail.com> Date: Mon, 28 Apr 2008 20:42:35 +0530 From: "Vamsavardhana Reddy" To: user@geronimo.apache.org Subject: Re: File structure of the files when deploying on Geronimo In-Reply-To: <16940625.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6019_19428129.1209395555068" References: <16921303.post@talk.nabble.com> <22d56c4d0804270227n2a71dd5cga8df7cdb92960654@mail.gmail.com> <16940625.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6019_19428129.1209395555068 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Problem seems to be due to the "type" element in geronimo-web.xml. I suggest you delete that element and retry the deployment step. ++Vamsi On Mon, Apr 28, 2008 at 8:20 PM, newbie-gero wrote: > > Hi, > Thanks for the help. I have deploy the directory named ims.war into > Geronimo > containing the application artifacts using this command: > java -jar bin/deployer.jar --user system --password manager deploy > --inPlace > ims.war > > This are the errors in prompt: > 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 > 'type@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here > > > Descriptor: > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" > xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"> > > > > > > sample2.applications > > IMSApp > > 2.1 > > > > > > ims > > war > > > > This is the geronimo-web.xml i wriiten and placed inside the WEB-INF > directory > > > > > sample2.applications > IMSApp > 2.1 > > > ims > war > > > What can i do? Thanks for the guidance.. > > Vamsavardhana Reddy-2 wrote: > > > > You can use inPlace deployment to deploy your application without having > > to > > create a war file. You will need to use the command line deployer with > > --inPlace option. The syntax would be something like the following: > > deploy --inPlace c:\mydir\ims.war > > > > Here c:\mydir\ims.war is the directory containing application artifacts. > > > > ++Vamsi > > > > On Sun, Apr 27, 2008 at 2:46 PM, newbie-gero > wrote: > > > >> > >> Greetings, > >> i have questions and i hope you all can help me. > >> I have been trying out geronimo and i do have some questions on which > >> type > >> of file structure to deploy the codes. > >> > >> I have been deploying my codes all in a directory without compressing > >> them > >> in .war or .ear extension on jboss and tomcat. Below is the tree of the > >> directory i deployed in jboss or tomcat and it is running well. The > >> ims.war > >> name in the tree below is the name of the directory, not a compress > file. > >> > >> ims.war/ > >> |-- WEB-INF > >> | |-- classes > >> | | `-- com > >> | | `-- IMS > >> | | |-- IMSObj > >> | | | |-- loginDataObj.class > >> | | | |-- loginDataObj.java > >> | | | |-- newUserObj.class > >> | | | `-- newUserObj.java > >> | | |-- bean > >> | | | |-- loginDataBean.class > >> | | | |-- loginDataBean.java > >> | | | |-- newUserBean.class > >> | | | `-- newUserBean.java > >> | | `-- connect > >> | | |-- ConnectData.class > >> | | |-- ConnectData.java > >> | | `-- connection.properties > >> | |-- geronimo-web.xml > >> | |-- geronimo-web.xml~ > >> | |-- lib > >> | `-- web.xml > >> |-- checkLogin.inc > >> |-- checkUser.inc > >> |-- default_style.css > >> |-- index.jsp > >> |-- indexError.jsp > >> |-- login-logic.jsp > >> |-- loginPage.jsp > >> |-- logout-logic.jsp > >> |-- main_page.jsp > >> |-- style.css > >> `-- top-bannerTest.jsp > >> > >> So my question for this topic is, is it possible to deploy the above > >> structure as shown above into geronimo and see it runs or when using > >> geronimo applicaion server, it is a must for me to compress it as a war > >> file? > >> > >> These are the file i deploy into jboss and tomcat. I have zip up the > >> contents. To deploy, i will unzip and copy the ims.war directory(not > >> compress) into the deploy folder for jboss and tomcat > >> http://www.nabble.com/file/p16921303/ims.war.zip ims.war.zip > >> > >> This is the compress file of the ims.war which i use to deploy in > >> geronimo > >> http://www.nabble.com/file/p16921303/ims.war ims.war > >> > >> Thanks in advance and waiting for the guidance > >> > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/File-structure-of-the-files-when-deploying-on-Geronimo-tp16921303s134p16921303.html > >> Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/File-structure-of-the-files-when-deploying-on-Geronimo-tp16921303s134p16940625.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > ------=_Part_6019_19428129.1209395555068 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Problem seems to be due to the "type" element  in geronimo-web.xml.  I suggest you delete that element and retry the deployment step.

++Vamsi

On Mon, Apr 28, 2008 at 8:20 PM, newbie-gero <chongming@e7tech.com> wrote:

Hi,
Thanks for the help. I have deploy the directory named ims.war into Geronimo
containing the application artifacts using this command:
java -jar bin/deployer.jar --user system --password manager deploy --inPlace
ims.war

This are the errors in prompt:
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
   'type@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here


   Descriptor:

   <xml-fragment
   xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
   xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1">

     <dep:environment>

       <dep:moduleId>

         <dep:groupId>sample2.applications</dep:groupId>

         <dep:artifactId>IMSApp</dep:artifactId>

         <dep:version>2.1</dep:version>

       </dep:moduleId>

     </dep:environment>

     <tom:context-root>ims</tom:context-root>

     <tom:type>war</tom:type>

   </xml-fragment>

This is the geronimo-web.xml i wriiten and placed inside the WEB-INF
directory
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
       <environment>
               <moduleId>
                       <groupId>sample2.applications</groupId>
                       <artifactId>IMSApp</artifactId>
                       <version>2.1</version>
               </moduleId>
       </environment>
       <context-root>ims</context-root>
       <type>war</type>
</web-app>

What can i do? Thanks for the guidance..

Vamsavardhana Reddy-2 wrote:
>
> You can use inPlace deployment to deploy your application without having
> to
> create a war file.  You will need to use the command line deployer with
> --inPlace option.  The syntax would be something like the following:
> deploy --inPlace c:\mydir\ims.war
>
> Here c:\mydir\ims.war is the directory containing application artifacts.
>
> ++Vamsi
>
> On Sun, Apr 27, 2008 at 2:46 PM, newbie-gero <chongming@e7tech.com> wrote:
>
>>
>> Greetings,
>> i have questions and i hope you all can help me.
>> I have been trying out geronimo and i do have some questions on which
>> type
>> of file structure to deploy the codes.
>>
>> I have been deploying my codes all in a directory without compressing
>> them
>> in .war or .ear extension on jboss and tomcat. Below is the tree of the
>> directory i deployed in jboss or tomcat and it is running well. The
>> ims.war
>> name in the tree below is the name of the directory, not a compress file.
>>
>> ims.war/
>> |-- WEB-INF
>> |   |-- classes
>> |   |   `-- com
>> |   |       `-- IMS
>> |   |           |-- IMSObj
>> |   |           |   |-- loginDataObj.class
>> |   |           |   |-- loginDataObj.java
>> |   |           |   |-- newUserObj.class
>> |   |           |   `-- newUserObj.java
>> |   |           |-- bean
>> |   |           |   |-- loginDataBean.class
>> |   |           |   |-- loginDataBean.java
>> |   |           |   |-- newUserBean.class
>> |   |           |   `-- newUserBean.java
>> |   |           `-- connect
>> |   |               |-- ConnectData.class
>> |   |               |-- ConnectData.java
>> |   |               `-- connection.properties
>> |   |-- geronimo-web.xml
>> |   |-- geronimo-web.xml~
>> |   |-- lib
>> |   `-- web.xml
>> |-- checkLogin.inc
>> |-- checkUser.inc
>> |-- default_style.css
>> |-- index.jsp
>> |-- indexError.jsp
>> |-- login-logic.jsp
>> |-- loginPage.jsp
>> |-- logout-logic.jsp
>> |-- main_page.jsp
>> |-- style.css
>> `-- top-bannerTest.jsp
>>
>> So my question for this topic is, is it possible to deploy the above
>> structure as shown above into geronimo and see it runs or when using
>> geronimo applicaion server, it is a must for me to compress it as a war
>> file?
>>
>> These are the file i deploy into jboss and tomcat. I have zip up the
>> contents. To deploy, i will unzip and copy the ims.war directory(not
>> compress) into the deploy folder for jboss and tomcat
>> http://www.nabble.com/file/p16921303/ims.war.zip ims.war.zip
>>
>> This is the compress file of the ims.war which i use to deploy in
>> geronimo
>> http://www.nabble.com/file/p16921303/ims.war ims.war
>>
>> Thanks in advance and waiting for the guidance
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/File-structure-of-the-files-when-deploying-on-Geronimo-tp16921303s134p16921303.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: http://www.nabble.com/File-structure-of-the-files-when-deploying-on-Geronimo-tp16921303s134p16940625.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


------=_Part_6019_19428129.1209395555068--