Oddity with XSP and Namespaces
Hi All, Can anyone explain the following? XSP page: xsp:page xmlns:xsp=http://apache.org/xsp; test Hello! /test /xsp:page Pipeline : map:match pattern=** map:generate type=serverpages src=xsp/test.xsp/ map:serialize/ /map:match After HTML serializations I get the clean result test Hello! /test But after WML serialization the result looks different ?xml version=1.0 encoding=UTF-8? test xmlns:xsp=http://apache.org/xsp; Hello! /test How could I get the same clean result after WML serialization? Environment: Tomcat 4.0.3, Latest Cocoon 2.0.1 sitemap serialisers : map:serializers default=wml map:serializer logger=sitemap.serializer.links name=links src=org.apache.cocoon.serialization.LinkSerializer/ map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size /map:serializer map:serializer logger=sitemap.serializer.wml mime-type=text/vnd.wap.wml name=wml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype-system encodingASCII/encoding omit-xml-declarationyes/omit-xml-declaration /map:serializer /map:serializers Any suggestions? Regards Helena. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Empty html page
Hi All, I am trying to test simple Hello World on WebLogic6.1.sp2 If I am using LogTransformer this is work correctly ( I see my xml file output on the server console ). While if I am using org.apache.cocoon.transformation, TraxTransformer output on the browser is just empty html page. All logs are without errors. Do I have forgotten something? Any help or ideas would be appreciated very much. Thank you in advance Helena. from sitemap.xml : map:transformer logger=sitemap.transformer.xslt name=xslt pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db use-delifalse/use-deli /map:transformer map:pipeline map:match pattern=**/result.xml map:generate src=xml/index.xml/ map:transform src=xsl/business.xsl/ map:serialize type=html/ /map:match /map:pipeline - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Empty html page
Yes. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: RE: Empty html page From: Helena Ginzburg [mailto:[EMAIL PROTECTED]] Hi All, I am trying to test simple Hello World on WebLogic6.1.sp2 If I am using LogTransformer this is work correctly ( I see my xml file output on the server console ). While if I am using org.apache.cocoon.transformation, TraxTransformer output on the browser is just empty html page. Do you have: xslt-processor class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=root.xslt parameter name=use-store value=true/ parameter name=transformer-factory value=org.apache.xalan.processor.TransformerFactoryImpl/ /xslt-processor in cocoon.xconf? Vadim All logs are without errors. Do I have forgotten something? Any help or ideas would be appreciated very much. Thank you in advance Helena. from sitemap.xml : map:transformer logger=sitemap.transformer.xslt name=xslt pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db use-delifalse/use-deli /map:transformer map:pipeline map:match pattern=**/result.xml map:generate src=xml/index.xml/ map:transform src=xsl/business.xsl/ map:serialize type=html/ /map:match /map:pipeline - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon.war Language Exception on WebLogic6.1 sp2
Hi, I need your help! The first cocoon welcome page is displayed properly. Now, the problem I am facing is, bea is not loading sub sitemaps. I am getting the following error: message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling welcome_index_xsp: nullLine 0, column 0: error: java.io.IOException: read error 1 error Thanx. Helena - 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]
Error Installing Cocoon latest war using in Weblogic 6.1 sp2
Hi All, I have deployed latest cocoon application on bea WebLogic6.1 SP2. In order to deploy this, I have done the following: 1.The cocoon Libraries consists of '.' in the names. Eliminated them. 2.Removed all Manifest.mf files from WEB-INF/lib jars. 3.Changed cocoon.xconf file for using XSLTProcessorImpl. xslt-processor class=org.apache.cocoon.components.xslt.XSLTProcessorImpl parameter name=use-store value=true/ !--parameter name=incremental-processing value=true/-- parameter name=transformer-factory value=org.apache.xalan.processor.TransformerFactoryImpl/ /xslt-processor The first cocoon welcome page is displayed properly. Now, the problem I am facing is, bea is not loading sub sitemaps. I am getting the following error on the browser : type fatal message Lookup of transformer for role 'xslt' failed. description org.apache.cocoon.ProcessingException: Lookup of transformer for role 'xslt' failed.: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: xslt sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Lookup of transformer for role 'xslt' failed.: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: xslt at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.addTransfor mer(AbstractProcessingPipeline.java:279) at org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.addTran sformer(CachingProcessingPipeline.java:172) at org.apache.cocoon.components.treeprocessor.sitemap.TransformNode.invoke(Tran sformNode.java:99) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:132) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:588) I am getting the following error on the sitemap.log file : java.lang.ClassCastException: org.apache.cocoon.components.xslt.XSLTProcessorImpl at org.apache.cocoon.transformation.TraxTransformer.configure(TraxTransformer.j ava:254) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:185) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi mitingPool.java:629) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo ol.java:359) at org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl eComponentHandler.java:186) at org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler. java:139) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca liburComponentSelector.java:277) at org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon entSelector.java:299) at org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon entSelector.java:303) at
RE: Cocoon 2 (B2) on weblogic 6.1 problem
Hi,I followed your instructions, but it did not solved the problem.However, I found where it is not working properly: CocoonServlet.private void initLogger() throws ServletException {.. subcontext.put("context-root", this.servletContext.getRealPath("/"));..}this.servletContext.getRealPath("/") === returns null The problem is that if I put it as a coccon.WAR file it returns null, if I put it as a directory (cocoon) it returns the expected value (C:\bea\wlserver6.1\config\mydomain\applications\cocoon), I have to work with it as a WAR file. Is there any solution for that? Thanks,Helena.-Original Message-From: Bernhard Huber [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 04, 2001 12:14 AMTo: [EMAIL PROTECTED]Subject: Re: Cocoon 2 (B2) on weblogic 6.1 problemhi,i posted a description into cocoon-users mail list about my experiencesdeploying cocoon2at WLS6.1 sucessfully, search the mailing list for wls6.1As I found the original mail here once again:Installing Cocoon2 under WLS6.1I have struggled a bit before I managed to run Cocoon2 under WLS6.1The following section describes the steps to install Cocoon2 under WLS6.1.I have installed Cocoon2 under WIN2000:As WLS6.1 sp1 uses it own XMLParser, and XSLTransformer you have toforce Cocoon to usethe apache xerces, and apache xalan jars.Edit the following files:1) Edit your server startup script: (startWebLogic.cmd in your domaindirectory)Add MYCLASSPATH specifying xerxes, and xalan jar of the Cocoon2distribution.Append both at the start of the CLASSPATH. This change is neccessary.--- snipped ---setMYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\cocoon\WEB-INF\lib\xerces_1_4_3.jarsetMYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\cocoon\WEB-INF\lib\xalan-2.1.0.jarset CLASSPATH=%MYCLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar...java -classpath %CLASSPATH%--- snipped ---2) Next edit the cocoon.xconf file, be sure to specify thetransformer-factory set toorg.apache.xalan.processor.TransformerFactoryImpl. This is very important: Using the WLS6.1 XSLTransformer I couldn'tmanaged to generate any valid java sitemap file. This change is neccessary.---snippet---!-- XSLT processor: -- xslt-processorclass="org.apache.cocoon.components.xslt.XSLTProcessorImpl"logger="root.xslt" parameter name="use-store" value="true"/ parameter name="transformer-factory"value="org.apache.xalan.processor.TransformerFactoryImpl"/ /xslt-processor---snippet---3) You may activate the xerces parser explicitly in cocoon.xconf, too.Although it is not absolutly necessary.--snippet---Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser -- parser class="org.apache.cocoon.components.parser.XercesParser"/--snippet--4) Last you may have to edit lib/weblogic.policy, deactivating anysecurity-policy setting, allowing to load compiled xsp, andsitemaps. At my last test this change was not necessary!--snippet--grant { // make cocoon work ?? // permission java.security.AllPermission; // Permission "enableSubstitution" needed to run the WebLogic console permission java.io.SerializablePermission "enableSubstitution";--snippet--I hope it helps!I have not checked the JSPEngine under Cocoon2 + WLS6.1, but it may needsome reconfiguration, too.Helena Ginzburg wrote:Has anyone managed to successfully install Cocoon 2 (B2) on weblogic 6.1?I followed the instructions that came with the distribution, but Cocoonfailed to load during deployment with the following errors:Dec 3, 2001 12:05:04 PM IST Error J2EE Error deploying applicationcocoon: Could not load cocoonjava.lang.reflect.UndeclaredThrowableException:java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) atorg.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107) atorg.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:423) atorg.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132) atweblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700) atweblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643) atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588) atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2203) atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2147) atweblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:884) atweblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:807) atweblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:160) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)