geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "problems mail" <problems.m...@gmail.com>
Subject Deploy issue - issue with web.xml
Date Fri, 29 Dec 2006 23:17:47 GMT
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
    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' instead of
    'host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1' 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

Mime
View raw message