RE: Urgent: Error Installing Cocoon latest war using in Weblogic 6.1 sp2
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] From: Vadim Gritsenko [EMAIL PROTECTED] ... First you have to fix/force BEA to fix weblogic itself. It blindly replaces these properties with links to BEA's versions of parser and XSLT engine in (IIRC) T3SrvrImpl. I was able to deploy Cocoon in WL 7.0 using BEA's version of Xerces and Xalan. Can't say about the future, though. It's also possible to create custom XML registry and assign it to an application, IIRC. FWIW... It could be possible to remove these lines if you make some configuration in the proprietary WEB-INF/weblogic.xml file. I think, that it's also possible to override system settings using -Dparam=value in the server startup script. I will check this too. No, it was hardcoded (see above), so you can not replace it this way. And (I have wl700b) it is still here: System.setProperty(org.xml.sax.driver, weblogic.apache.xerces.parsers.SAXParser); System.setProperty(javax.xml.parsers.SAXParserFactory, weblogic.xml.jaxp.RegistrySAXParserFactory); System.setProperty(javax.xml.parsers.DocumentBuilderFactory, weblogic.xml.jaxp.RegistryDocumentBuilderFactory); System.setProperty(javax.xml.transform.TransformerFactory, weblogic.xml.jaxp.RegistrySAXTransformerFactory); System.setProperty(javax.xml.soap.MessageFactory, weblogic.webservice.core.soap.MessageFactoryImpl); System.setProperty(javax.xml.rpc.ServiceFactory, weblogic.webservice.core.rpc.ServiceFactoryImpl); Only way to override this without coding is to use proprietary config files. Vadim Anyway, WL 7.0 claims that it's Java 1.3 compliant platform and from the first look it seems that it's implements specifications better than 6.x versions. Konstantin Vadim -- Konstantin - 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]
Re: Urgent: Error Installing Cocoon latest war using in Weblogic 6.1 sp2
From: Vadim Gritsenko [EMAIL PROTECTED] From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Thanks Vadim, Did remove all the manifest files 1. Got the following error org/apache/cocoon/servlet/CocoonServlet - No class found error Now you have to rename all jars from the form XXX.YYY.jar to XXX-YYY.jar. Basically, WebLogic can't handle jar files with more than one dot in the name. NOTE: THIS IS ONLY FOR WEBLOGIC6.1 SP2 AND HIGHER, AND NOT FOR 6.1 SP1 AND LOWER. I can confirm that this is true also for WebLogic 7.0. I've been able to deploy Cocoon as a directory (didn't try WAR yet) only by renaming jar names without any other file moving/coping or changing the start script. Win 2000 Cocoon CVS HEAD WebLogic 7.0 2. I then added the jar cocoon-2.1-dev.jar to the class path explicitly in the startweblogic.cmd file. The above error dispappeared. However Please don't do this. See above. Vadim got the error java.lang.NoClassDefFoundError: org/apache/log/format/Formatter at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) 3. I then added the jar file logkit-xxx to the classpath and the above error disappeared. However java.lang.NoClassDefFoundError: org/apache/avalon/framework/context/Context Why is this happening? Can anyone explain this. Is there a logical way of determining which jar files need to be explicitly set in classpath and which jar files can be left in the WEB-INF/lib directory Note: The number of files in the WEB-INF of cocoon does not match the _tmp_*/WEB-INF/lib directory created by Weblogic 6.1 Thanks in advance, Chiths -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 08, 2002 1:42 PM To: [EMAIL PROTECTED] Subject: RE: Urgent: Error Installing Cocoon latest war using in Weblogic 6.1 sp2 WebLogic 6.1 sp1 has fewer bugs in it. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) Remove META-INF/manifest.mf from all jar files in the webapp. Vadim -- Resistance is futile. -Original Message- From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 08, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: Urgent: Error Installing Cocoon latest war using in Weblogic 6.1 sp2 Hello. I followed the instructions as depicted in the cocoon website: I built cocoon (latest from CVS ) 1. Copied cocoon\build\cocoon\webapp into config\mydomain\applications\ directory Renamed the webApp directory as cocoon. i.e. After rename config\mydomain\applications\cocoon 2. copied xerces-xxx.jar and xmlapis.jar to weblogic/lib directory 3. Modified startweblogic.cmd and added the above 2 jar files into the classpath 4. Added the following snippet in config.xml Application Deployed=true Name=Cocoon Path=./config/mydomain/applications WebAppComponent Name=cocoon Targets=myserver URI=cocoon/ /Application 5. restarted weblogic During startup I get an exception, the log file states the following java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at ... - 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] - 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]
RE: Urgent: Error Installing Cocoon latest war using in Weblogic 6.1 sp2
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] From: Konstantin Piroumian [EMAIL PROTECTED] ... I can confirm that this is true also for WebLogic 7.0. I've been able to deploy Cocoon as a directory (didn't try WAR yet) only by renaming jar names without any other file moving/coping or changing the start script. Sorry, it was a little lie, I had to comment out some lines (marked as FIXME by Vadim) from CocoonServlet.java and Cocoon.java files. In that lines system properties were set for JAXP and that prevented WL to startup. Vadim, isn't it better to remove those lines and use standart way of specifying JAXP properties (jaxp.properties or so)? First you have to fix/force BEA to fix weblogic itself. It blindly replaces these properties with links to BEA's versions of parser and XSLT engine in (IIRC) T3SrvrImpl. FWIW... It could be possible to remove these lines if you make some configuration in the proprietary WEB-INF/weblogic.xml file. Vadim -- Konstantin ... - 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]