4 Replies Latest reply on Feb 19, 2018 8:03 AM by chandan kumar roushan

    Does Wildfly support Apache Cocoon framework?

    chandan kumar roushan Newbie

      Hi All,

                We have a Web application which currently uses JBoss 4.2 but we are migrating it to Wildfly 10.Our application also uses Apache Cocoon 2.0 for UI which internally interacts with JBoss 4.2 and it works fine.But now that we are migrating to Wildfly 10 , we are facing some cocoon related issues. So I have a question, does Wildfly 10 supports Apache Cocoon framework? if no then what could be the workaround or alternative for cocoon?

                                                                                  Any help would really be deeply appreciated.

       

       

       

       

      Thanks,

      Chandan Kumar

        • 1. Re: Does Wildfly support Apache Cocoon framework?
          Wolfgang Mayer Master

          I think this is mainly a Java issue. Up to version 2.1.2 Cocoon uses the package com.sun.image.codec.jpeg which is not available anymore in Java anymore. Therefor you should upgrade to at least version 2.1.3 ([COCOON-2341] Use ImageIO instead of old com.sun.image.* package in ImageReader - ASF JIRA )

          1 of 1 people found this helpful
          • 2. Re: Does Wildfly support Apache Cocoon framework?
            chandan kumar roushan Newbie

            I really appreciate your reply.So you mean that Wildfly 10 supports Apache Cocoon, but the Cocoon version should be 2.1.3 or later version?

             

            Thanks and Regards,

            Chandan

            • 3. Re: Does Wildfly support Apache Cocoon framework?
              Wolfgang Mayer Master

              Since Cocoon (version 2.2) is Spring based which is on top of the Servlet API it should also run in WildFly (Cocoon Main Site - Versions & Download)

              • 4. Re: Does Wildfly support Apache Cocoon framework?
                chandan kumar roushan Newbie

                After upgrading the Apache Cocoon to version 2.1.12 , we are getting below exception:

                 

                ERROR   (2018-02-19) 15:03.02:134   [sitemap.handled-errors] (/cupm/shared/licensestatus.xml) default task-1/ErrorHandlerHelper: Failed to process pipeline

                at <map:serialize> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:554:22

                at <map:transform type="i18n"> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:553:34

                at <map:transform> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:552:46

                at <map:generate> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:551:21

                org.apache.cocoon.ProcessingException: Failed to process pipeline

                at <map:serialize> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:554:22

                at <map:transform type="i18n"> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:553:34

                at <map:transform> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:552:46

                at <map:generate> - file:///opt/cupm/sep/deploy/dfc.ear/dfc.war/shared/sitemap.xmap:551:21

                at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145)

                at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:955)

                at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:585)

                at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)

                at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)

                at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)

                at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)

                at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)

                at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

                at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)

                at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)

                at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)

                at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)

                at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)

                at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)

                at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)

                at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)

                at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)

                at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)

                at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)

                at org.apache.cocoon.Cocoon.process(Cocoon.java:699)

                at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1162)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                at com.cisco.xmp.wap.dojo.servlet.filter.DojoIframeSendFilter.doFilter(DojoIframeSendFilter.java:56)

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                at dfc.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:96)

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

                at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

                at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

                at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

                at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

                at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

                at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                at java.lang.Thread.run(Thread.java:748)

                Caused by: org.xml.sax.SAXException: UT010029: Stream is closed

                java.io.IOException: UT010029: Stream is closed

                at org.apache.xml.serializer.ToStream.flushWriter(ToStream.java:268)

                at org.apache.xml.serializer.ToHTMLStream.endDocument(ToHTMLStream.java:768)

                at org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:963)

                at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)

                at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)

                at org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:183)

                at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)

                at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3447)

                at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:408)

                at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)

                at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)

                at dfc.cocoon.generators.RequestAttrGenerator.generate(RequestAttrGenerator.java:68)

                at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)

                ... 63 more

                Caused by: java.io.IOException: UT010029: Stream is closed

                at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:136)

                at org.apache.cocoon.util.BufferedOutputStream.flush(BufferedOutputStream.java:169)

                at org.apache.xml.serializer.WriterToUTF8Buffered.flush(WriterToUTF8Buffered.java:467)

                at org.apache.xml.serializer.ToStream.flushWriter(ToStream.java:249)

                ... 75 more

                 

                 

                 

                 

                Please help me to resolve this issue.

                 

                 

                Thanks,

                Chandan