Am Dienstag, 28. Mai 2002 15:11 schrieben Sie: > >JBoss3RCx has introduced a new Classloader mechanism. This influenced > > loading url protocol handler classes. > >So DirContextHandler of Catalina will not be loaded and the url protocol > >jndi: is not working. (in fact it is more complicated...) > >Its not visible in stacktrace in your mail, but it seems to be this > > problem. > > ...that is the problem I get at the moment at home. But I do not get this > problem at work...basically because I mustn't have set my environment up > correctly? hmm, i remember - it was a real version poker! please try cocoon2.0.2 or later for jboss3.0.0RC3. If you are using cocoon2.0.1 or earlier there will be another error. cocoon cannot load classes from jars inside wars. ( same as for weblogic i think)
> (Is there a rough JBoss3RCX/Cocoon install guide? never seen... so try this (maybe its not the best and cleanest way and next versions of jboss/tomcat/cocoon solve it without any workaround): 1. fix the jndi url protocol handler problem 1.1 get jboss3.0.0RC3 sources via cvs 1.2 patch the source 1.3 compile it described on jboss.org-->developers 1.4 compile catalina stuff inside jboss3 (look at jboss forums for some tips if you are not familiar with ant) 1.5 get the resulting jboss dist running and test it. 2. get cocoon2.0.2 or later 2.1 put WEB-INF/lib/batik-libs*.jar in <jboss>/lib dir (there's an classloader issue in batik1.1 libs) 2.2 deploy cocoon.war as a test ISSUES: - cocoon/batik needs an X-server: look at the cocoon mailing lists for more info. for jdk1.4 an export JAVA_OPTS=-Djava.awt.headless=true is enough running without any x-server. - jboss/catalina has problems deploying wars - it trys to deploy a partly unpacked war - zip file error occurs. workaround: build an ear with a war inside or put war in deploy and start jboss after this > do you still > need all those files in catalina/common/lib ? yes and there is no reason to delete one of this. > do you need to then edit > web.xml ?) no i deployed the standard cocoon.war and played around with the samples. >Only when I get the JNDI error can I then worry about patching I > guess. > yes, see above info about cocoon version. > >There should be an Malformed url exception: could not load url handler for > >protocol jndi: > > > >NOTE: this is true for embedded Catalina only. > > > >What i done is a hack. > >it registers the missing protocol in embedded catalina. > >it does some other hackisch stuff... > > > >Appended is a patch against rc3 code of jboss3. you have to compile this > >beast - its not an easy job for normal cocoon users. > > > >I sent this patch to jboss too. maybe somebody reviews that and its in > > the next release. Request-ID is 561405. > > ..when I posted on JBoss I got suggested to edit my jndi.properties file > hmm, i am not the jboss guru, but i think it is not the right place registering url protocol handlers. > Thanks for the patch...I'll certainly give it a try... > > C. Claas Thiele -- Technological Strategy VIRBUS AG Fon +49(0)341-979-7430 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>