Bugs item #669733, was opened at 2003-01-17 14:56
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=669733&group_id=22866

Category: JBossWeb
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Laurent Etiemble (letiemble)
Assigned to: Nobody/Anonymous (nobody)
Summary: URL Resource-ref not possible in a WebApp

Initial Comment:
URL Resource-ref cannot be declared successfully in a WebApplication.
I have the following in my web descriptor :
<web>
   ...
   <resource-ref>
      <res-ref-name>url/urlData</res-ref-name>
      <res-type>java.net.URL</res-type>
      <res-auth>Container</res-auth>
   </resource-ref>
   ...
</web>

And the following in my jboss-web descriptor :
<jboss-web>
   ...
   <resource-ref>
      <res-ref-name>url/urlData</res-ref-name>
      <jndi-name>http://orange-mibwas01:18080/Customers/CustomersIndex</jndi-name>
   </resource-ref>
   ...
</jboss-web>

When I deploy the webapp it leads to a DeploymentException.

If I change my jboss-web by removing the DTD reference and the content to :
<jboss-web>
   ...
   <resource-ref>
      <res-ref-name>url/urlData</res-ref-name>
      <res-url>http://localhost:8080/Data</res-url>
   </resource-ref>
   ...
</jboss-web>
It deploys fine.

The exception is raised in the org.jboss.metadata.ResourceRefMetaData class. When 
declaring an URL resource-ref, the searched tag is <res-url> and not <jndi-name>.
To enable URL Resource-ref, modifiy the definition of a resource-ref in jboss-web DTD 
to accept jndi-name OR res-url as child of resource-ref.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=669733&group_id=22866


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to