1 Reply Latest reply on Mar 20, 2012 5:34 AM by Anton Kronseder

    GateIn with classloader isolation in EARClassLoaderDeployer

    Anton Kronseder Newbie

      Hi,

       

      switching to classloader isolation=true for   EARClassLoaderDeployer in ear-deployer-jboss-beans.xml

       

       

      <bean   name="EARClassLoaderDeployer">
            <!-- A flag indicating  if  ear deployments should have their own scoped
               class  loader  to isolate their classes from other deployments.
             -->     
             <property  name="isolated">true</property>

      </bean>

       

       

      I  get many ERRORs in the logfile.

       

      As  we would like to  use isolation=true for our portlets and ears, but  GateIn seems to need  to use one Classloader for all GateIn artifacts.

      I  changed the  GateIn ears to use in each ear in META-INF/jboss-app.xml  (e.g.:  gatein.ear, gatein-sample-portal.ear, starter-gatein-ear)

       

       

      <?xml   version="1.0" encoding="UTF-8" ?>
      <jboss-app>
          <loader-repository>
                   de.smartics.org.gatein:loader=SMARTICSGateInLoader
          </loader-repository>
      </jboss-app>

       

       

      I   did not change any ejbs or wars within those ears though.

       

      But   I get the following ERRORS:

       

       

      2010-06-17   15:12:50,361 ERROR   [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/starter]]   Exception sending context initialized event to listener instance of   class org.exoplatform.container.web.PortalContainerCreator
      java.lang.VerifyError:   (class: org/exoplatform/services/database/impl/HibernateServiceImpl,   method: getHibernateConfiguration signature:   ()Lorg/hibernate/cfg/Configuration;) Wrong return type in function
            at java.lang.Class.getDeclaredConstructors0(Native Method)
          at   java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

       

      ...

      2010-06-17   15:12:50,439 ERROR [org.apache.catalina.core.StandardContext] Error   listenerStart
      2010-06-17 15:12:50,439 ERROR   [org.apache.catalina.core.StandardContext] Context [/starter] startup   failed due to previous errors
      2010-06-17 15:12:50,439 ERROR   [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error   installing to Start: name=jboss.web.deployment:war=/starter  state=Create  mode=Manual requiredState=Installed
      org.jboss.deployers.spi.DeploymentException:   URL   file:/C:/SEU/Workspace/akdb/akdb-gatein/target/gatein/AKDB-GateIn-3.1.0-SNAPSHOT/server/akdb/tmp/4si04i-bbt22c-gajm0bh8-1-gajm28qf-a0/starter.war/   deployment failed

          at   org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

       

      (full   log is attached)

       

      Any hints?

       

       

      Best   regards,

       

      Anton