geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "problems mail" <problems.m...@gmail.com>
Subject Re: Deploy issue - issue with web.xml
Date Sat, 30 Dec 2006 01:00:41 GMT
David,

I wish I could buy u coffee :).

I had to move the host below the context root - huh! huh! :(.

Here is the final and working geronimo-web.xml

I use that for virtual hosting ( ajp13 passes specific domain names to
geronimo, geronimo maps the domain name to specific applications listening
at the context root). I get to have multiple applications listening at the
context root / for each domain nomain. I am hosting multiple domains.

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
        <environment>
                <moduleId>
                        <groupId>rmp.apps</groupId>
                        <artifactId>feed</artifactId>
                        <version>1.1</version>
                </moduleId>
                <dependencies>
                        <dependency>
                                <groupId>console.dbpool</groupId>
                                <artifactId>rsspool</artifactId>
                        </dependency>
                </dependencies>
       </environment>
        <context-root>/</context-root>
        <host>feed.rmp.com</host>
        <resource-ref>
                <ref-name>jdbc/RSSDataSource</ref-name>
                <resource-link>rsspool</resource-link>
        </resource-ref>
</web-app>

-- 
Regards,
Simon

On 12/29/06, David Carew <dccarew@gmail.com> wrote:
>
> It's complaining about the host element in your geronimo-web.xml. AFAIK
> it's not part of the schema for geronimo-web.xml. See
> http://geronimo.apache.org/schemas.html
>
>
> On 12/29/06, problems mail <problems.mail@gmail.com> wrote:
> >
> >
> > Huh !!
> >
> > Any clue what this is, looks like we dont have a full house in this
> > mailing group. Is there any other mailing list for geronimo ?
> >
> > [root@relay app6]# java -jar /usr/local/geronimo/bin/deployer.jar --user
> > system --password rmp.com  deploy  /home/appuser/apps/app6
> >     Error: Unable to distribute app6: xml problem for web app .
> >
> >         Invalid deployment descriptor: [error: cvc-complex-type.2.4a:
> >     Expected elements
> >     'resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> > <%27resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1>
> >     resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> >     message-destination@http://geronimo.apache.org/xml/ns/naming-1.1
> >     security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> >
> >     gbean@http://geronimo.apache.org/xml/ns/deployment-1.1'<gbean@http://geronimo.apache.org/xml/ns/deployment-1.1%27>instead
of
> >     'host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1'<%27host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1%27>here]
> >
> >     Descriptor: <xml-fragment
> >     xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1 "
> >     xmlns:tom=" http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1 "
> >     xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1">
> >
> > I just wrote a simple program to access the Database and look what I got
> > :(
> >
> > ==== Here is my web.xml =>
> >
> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd "
> > version="2.4">
> >
> > <display-name>rss</display-name>
> >
> > <resource-ref>
> > <res-ref-name>jdbc/RSSDataSource</res-ref-name>
> > <res-type>javax.sql.DataSource</res-type>
> > <res-auth>Container</res-auth>
> > <res-sharing-scope>Shareable</res-sharing-scope>
> > </resource-ref>
> >
> > </web-app>
> >
> > ==== Here 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>rmp.apps</groupId>
> >    <artifactId>feed</artifactId>
> >    <version> 1.1</version>
> >   </moduleId>
> >   <dependencies>
> >    <dependency>
> >     <groupId>console.dbpool</groupId>
> >     <artifactId>rsspool</artifactId>
> >    </dependency>
> >   </dependencies>
> >        </environment>
> >  <context-root>/</context-root>
> >
> >  <resource-ref>
> >   <ref-name>jdbc/RSSDataSource</ref-name>
> >   <resource-link>rsspool</resource-link>
> >  </resource-ref>
> >  <host> feed.rmp.com </host>
> > </web-app>
> > --
> > Regards,
> > Simon
> >
>
>


-- 
Regards,
Simon

Mime
View raw message