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 <[EMAIL PROTECTED]> 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 > '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-2.0 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > > security-realm-name@ > http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.2 > [EMAIL PROTECTED]://java.sun.com/xml/ns/persistence' instead of > '[EMAIL PROTECTED]://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 <[EMAIL PROTECTED]> > 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. > >