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
'[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
[EMAIL PROTECTED]://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>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 <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
>> 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 <[EMAIL PROTECTED]>
>> > 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:
>> > >
>> > > [EMAIL PROTECTED]:~/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.