Bugs item #648308, was opened at 2002-12-04 11:14
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=648308&group_id=22866

Category: JBossWeb
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jens Schumann (french_c)
Assigned to: Nobody/Anonymous (nobody)
Summary: web.xml <-> jboss-web.xml mappings 

Initial Comment:
As already stated in

http://www.jboss.org/forums/thread.jsp?
forum=50&thread=22026&message=3744132&q=web.xm
l+mapping#3744132

it seems all web.xml -> jboss-web.xml mappings do not 
work. To my knowledge the idea behind  java:comp/env 
entries is to map requested resources (such as EJBs, 
Datasources) to physical available ones. Without 
changing code I am able to map JNDI lookups to a 
different (or so to say the correct) resource.

For instance I need to lookup a datasource and always 
use in my code java:comp/env/jdbc/someDS. In my 
web.xml I do have an entry for jdbc/someDS and in the 
application server specific descriptor I map it to the 
physical name - for JBoss java:/jdbc/someDS.

I have tested several 3.0.x JBoss versions with both 
tomcat and jetty. Just no go. I can lookup from my 
JSP/Servlet container java:/jdbc/someDS, but I am 
unable retrieve the mapped resource 
java:comp/env/jdbc/someDS.

The issue is even more important if you want to use 
local EJB's from the servlet container. JBoss adds 
a "local/" to all local EJB JNDI names. Which is nice, 
but different to other application servers. If you write an 
application which should run on several application 
servers you want to use the application server specific 
deployment descriptors to take care of those issues. 
Which - just does not work.

A first look at the sources seem to prove what I stated 
above, but I need to dig a little bit deeper...

So ... if someone could fix it please, since this is a 
really important J2EE feature to develop applications 
with multi app server support.

Thanks,

Jens


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to