Bugs item #599229, was opened at 2002-08-23 05:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=599229&group_id=22866
Category: None Group: v3.0 Rabbit Hole Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Brian Johnson (johnsbrn) Assigned to: Nobody/Anonymous (nobody) Summary: comp/env not available from servlet Initial Comment: Using JBoss 3.0.1 (Jetty) with JDK 1.4 on Windows, the java:comp/env resources configured in web.xml and jboss-web.xml (or jboss-web_3_0.xml) are not available from servlets. Name Not Bound error is returned. I have seen several postings on the forums related to this, but no solutions. It also appears to affect other version of JBoss and Tomcat. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-08-26 16:54 Message: Logged In: NO Here is the code for the web.xml and jboss-web.xml web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <display-name>Test</display-name> <description>Test</description> <servlet> <servlet-name>Test</servlet-name> <servlet-class>com.test.TestServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Test</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <mime-mapping> <extension>css</extension> <mime-type>text/css</mime-type> </mime-mapping> <resource-ref> <res-ref-name>jdbc/XAOracleDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>CONTAINER</res-auth> </resource-ref> <resource-ref> <res-ref-name>jdbc/FirebirdDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>CONTAINER</res-auth> </resource-ref> </web-app> jboss-web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd"> <jboss-web> <security-domain>java:/jaas/other</security-domain> <resource-ref> <res-ref-name>jdbc/XAOracleDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/XAOracleDS</jndi-name> </resource-ref> <resource-ref> <res-ref-name>jdbc/FirebirdDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/FirebirdDS</jndi-name> </resource-ref> </jboss-web> A call to ctx.lookup("java:/XAOracleDS") works, but a call to ctx.lookup("java:comp/env/jdbc/XAOracleDS") throws NameNotFoundException: jdbc not bound ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2002-08-26 15:44 Message: Logged In: YES user_id=175228 Provide an example that illustrates the problem as there are numerous testcases in the web integration unit tests that demonstrate this does work. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=599229&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
