Details

      Description

      I have portlet with xercesImpl.jar included via liferay-plugin-package.properties file.
      This portlet worked fine in Liferay 6.0

      When I'm deploying this portlet and trying to render any it's portlet on any page - I've got error (stacktrace

      17:19:24,706 ERROR [render_portlet_jsp:154] java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2823)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
      at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
      at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:83)
      at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:231)
      at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:290)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:114)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2823)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
      at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
      at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:83)
      at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:231)
      at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:290)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:114)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:316)
      at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:105)
      at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:366)
      at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:382)

      yes - specific class is not included into my portlet. Looks like before - xercesImpl was used with liferay's classpath and now it is used from Liferay with using my portlet classpath.
      Is it correct?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 20 weeks, 4 days ago

                Packages

                Version Package
                6.1.1 CE GA2