Sorry, tomcat 5.5.25 and sorry about the typo. I thought it was the other way around? Common is visible to tomcat and web apps and shared was for just webapps? At least this is the way it used to be?
The resource entry in server.xml looks like this: <GlobalNamingResources> <Resource auth="Container" factory="org.apache.naming.factory.BeanFactory" name="bean/CSStarter" type="com.services.kernel.j2ee.tomcat.CSStarterBean"/> </GlobalNamingResources> I believe the issue is that the URL class is loaded in the bootstrap classloader and my Handler class is in the commons classloader. Even though I set the "java.protocol.handler.pkgs" System property correctly, the URL class tries to load it but it can't because parent classloaders can't load classes from their children. So what I'm wondering is if I can hook into that DirContextURLStreamHandlerFactory class somehow through configuration to return my handler class? Thanks Mike -----Original Message----- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 5:07 PM To: Tomcat Users List Subject: Re: Need my Protocol to be Seen in Tomcat!! -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike, Version numbers? Mike Wannamaker wrote: > So now we put classes into commons/lib/... Er... common/lib ? > and we add a global resource to server.xml that starts our services. [snip] > have debugged into the URL code and it can't find my class because > tomcat must put a classloader between the jvm classloader and my > classes loaded in tomcat. Because URL is loaded in the parent > classloader it can't find classes in the child classloader. Have you tried putting your protocol handler into shared/lib instead of common/lib? common/lib is for webapps to share. shared/lib is for both webapps /and/ Tomcat to share. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHPhSJ9CaO5/Lv0PARAukKAJ0VwO78eMLIC4Bk575R0BGvp5zXkACdFMNO 1jPpRrcsvxSaEIWmH5b6MM8= =gRma -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]