DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6148>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6148 Severe Bug in JNDI-HOWTO!!! Summary: Severe Bug in JNDI-HOWTO!!! Product: Tomcat 4 Version: 4.0.2 Beta 2 Platform: All URL: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi- resources-howto.html OS/Version: All Status: NEW Severity: Critical Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] after two weeks struggling with jndi under tomcat 4.0.2-b2 i found out that the JNDI-HOWTO was the source of all errors.... i tried to bind a custom resource factory to tomcat (a factory for creating DB2ConnectionPoolDataSources). i followed the jndi-howto and the db2-application development guide but had now success... ok, to make it short: the example in the jndi-howto (MyBeanFactory) is not complete!! the sun JNDI-Tutorial http://java.sun.com/products/jndi/tutorial/objects/factory/interface.html) says: "Accessibility The object factory class must not only implement the ObjectFactory/DirObjectFactory interface and provide an implementation for getObjectInstance(). It also must be public and must have a public constructor that accepts no arguments." HEUREKA! Ok the constructor is missing!! Please correct the JNDI-HOWTO-example! i found dozens of developers in newsgroups having the same problem as me... public class MyBeanFactory implements ObjectFactory { public MyBeanFactory() {} // IS MISSING!!! public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws NamingException { meanwhile i have db2, jndi with connection pooling running... best regards ralf eichinger [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
