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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 ? > > [EMAIL PROTECTED] 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 > '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1 > <[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1> > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1 > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1'<[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1%27>instead of > '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1'<[EMAIL PROTECTED]://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
