Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40729

PortalSecurityManager and ModuleFrameworkClassLoader dont get loaded on JBoss EAP 5.1

    Details

      Description

      When portal is deployed on JBoss EAP 5.1 EAP, the following ERRORs happens (exception is not shown):

      ERROR [main][ServiceLoader:87] Unable to load interface org.osgi.framework.launch.FrameworkFactorywith com.li
      feray.portal.module.framework.ModuleFrameworkClassLoader@703ffe2
      

      and the similar one for the* PortalSecurityManager.

      The exception is:

      08:16:49,274 INFO  [STDOUT] 08:16:49,271 ERROR [main][ServiceLoader:92] Unable to load interface org.osgi.framework.launch.FrameworkFactorywith com.li
      feray.portal.module.framework.ModuleFrameworkClassLoader@9c6840d
      java.lang.IllegalArgumentException: URI is not hierarchical
              at java.io.File.<init>(File.java:363)
              at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
              at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
              at java.net.URL.openConnection(URL.java:945)
              at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:66)
              at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
              at java.net.URL.openConnection(URL.java:945)
              at java.net.URL.openStream(URL.java:1010)
              at com.liferay.portal.kernel.util.ServiceLoader._load(ServiceLoader.java:92)
              at com.liferay.portal.kernel.util.ServiceLoader.load(ServiceLoader.java:78)
              at com.liferay.portal.kernel.util.ServiceLoader.load(ServiceLoader.java:51)
              at com.liferay.osgi.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:370)
              at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:86)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:203)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
      

      i.e. there is a problem with JBoss URL handling and JBoss protocols vfsjar, vfszip, vfsfile.

      In order to get these two classes loaded, we need to fix the URL to get java-friendly version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                igor.spasic Igor Spasic (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 4 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.0 CE RC3
                  6.2.0 CE RC5