You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by newbie-gero <ch...@e7tech.com> on 2008/04/17 15:53:43 UTC

Require help and guidance to deploy a war file

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.


Re: Require help and guidance to deploy a war file

Posted by Jason Warner <ja...@apache.org>.
I believe you're trying to deploy on 2.1?  If that's the case then the
web-app xmlns should be web-2.0.1(
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1) not web-1.1.

On Thu, Apr 17, 2008 at 11:55 PM, newbie-gero <ch...@e7tech.com> wrote:

>
> 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:
>
>    <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>VOApp</dep:artifactId>
>
>          <dep:version>2.1</dep:version>
>
>        </dep:moduleId>
>
>      </dep:environment>
>
>      <tom:context-root>ims</tom:context-root>
>
>      <tom:port>
>
>        <tom:port-name>imsPort</tom:port-name>
>
>        <tom:protocol>http</tom:protocol>
>
>        <tom:host>localhost</tom:host>
>
>        <tom:port>8080</tom:port>
>
>        <!--<uri>/jaxws-calculator/calculator</uri>-->
>
>      </tom:port>
>
>    </xml-fragment>
>
> This is my geronimo-web.xml
>
>  <?xml version="1.0" encoding="UTF-8" ?>
> - <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
> - <environment>
> - <moduleId>
>  <groupId>sample2.applications</groupId>
>  <artifactId>VOApp</artifactId>
>  <version>2.1</version>
>  </moduleId>
>  </environment>
>  <context-root>ims</context-root>
> - <port>
>  <port-name>imsPort</port-name>
>  <protocol>http</protocol>
>  <host>localhost</host>
>  <port>8080</port>
> - <!-- <uri>/jaxws-calculator/calculator</uri>
>  -->
>  </port>
>  </web-app>
>
> 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 <ja...@apache.org>
> > 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 <ja...@apache.org>
> >> 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 <ch...@e7tech.com>
> >> > 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.
>
>


-- 
~Jason Warner

Re: Require help and guidance to deploy a war file

Posted by newbie-gero <ch...@e7tech.com>.
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:

    <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>VOApp</dep:artifactId>

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

        </dep:moduleId>

      </dep:environment>

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

      <tom:port>

        <tom:port-name>imsPort</tom:port-name>

        <tom:protocol>http</tom:protocol>

        <tom:host>localhost</tom:host>

        <tom:port>8080</tom:port>

        <!--<uri>/jaxws-calculator/calculator</uri>-->

      </tom:port>

    </xml-fragment>

This is my geronimo-web.xml

  <?xml version="1.0" encoding="UTF-8" ?> 
- <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
- <environment>
- <moduleId>
  <groupId>sample2.applications</groupId> 
  <artifactId>VOApp</artifactId> 
  <version>2.1</version> 
  </moduleId>
  </environment>
  <context-root>ims</context-root> 
- <port>
  <port-name>imsPort</port-name> 
  <protocol>http</protocol> 
  <host>localhost</host> 
  <port>8080</port> 
- <!-- <uri>/jaxws-calculator/calculator</uri>
  --> 
  </port>
  </web-app>

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 <ja...@apache.org>
> 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 <ja...@apache.org>
>> 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 <ch...@e7tech.com>
>> > 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.


Re: Require help and guidance to deploy a war file

Posted by Joseph Leong <jo...@gmail.com>.
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 <ja...@apache.org> 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 <ja...@apache.org>
> 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 <ch...@e7tech.com>
> > 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

Re: Require help and guidance to deploy a war file

Posted by Jason Warner <ja...@apache.org>.
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 <ja...@apache.org> 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 <ch...@e7tech.com> 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

Re: Require help and guidance to deploy a war file

Posted by Jason Warner <ja...@apache.org>.
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 <ch...@e7tech.com> 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