tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33307] - jspInit() method is throwing an NamingException when extracting a factory object from a JNDI context
Date Tue, 08 Feb 2005 21:36:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33307>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33307


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From markt@apache.org  2005-02-08 22:36 -------
I did the following:
- renamed your war to case.war and placed it in $CATALINA_HOME/webapps
- added <Resource name="bean/MyBeanFactory"
                  auth="Container"
                  type="com.mycompany.MyBean"/>
            <ResourceParams name="bean/MyBeanFactory">
                <parameter>
                   <name>factory</name>
                   <value>org.apache.naming.factory.BeanFactory</value>
                </parameter>
                <parameter>
                    <name>bar</name>
                    <value>23</value>
                </parameter>
            </ResourceParams>

to the default context element of my server.xml
- restarted tomcat (to pick up the server.xml changes)
- noted the following in standard out:
Getting InitialContext
Doing initContext lookup
Extracting factory bean object
foo = Default Foo, bar = 23

This test was with the latest code from CVS.

There were many bug fixes in 4.1.31. You might want to try your test case with
4.1.31.

Also, test with a clean, unmodified installation.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message