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/j2ee/web/tomcat-1.1

   [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1' instead of
   '[EMAIL PROTECTED]://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

Reply via email to