4 Replies Latest reply on Aug 10, 2011 8:38 AM by gottseth

    JBoss6 - MalformedParameterizedTypeException

    gottseth

      Hey guys,

       

      i have trouble with deploying an  application to JBoss.

      Im working with JDK6,maven 3 and Jboss 6 and getting the following errors:

       

      ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfs:///C:/Programm/JBoss/51/server/default/deploy/timetracker-

      3.4-SNAPSHOT.ear state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs://

      /C:/Programm/JBoss/51/server/default/deploy/timetracker-3.4-SNAPSHOT.ear/timetracker-core-3.4-SNAPSHOT.jar/

       

      Caused by: java.lang.Error: Error visiting "/C:/Programm/JBoss/51/server/default/deploy/timetracker-3.4-SNAPSHOT.ear/ehcache-core-2.3.1.jar/net/sf/ehc

      ache/config/generator/model/elements/FactoryConfigurationElement.class"

              at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.GA]

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfs:///C:/Programm/JBoss/51/server/default/deploy/timetracker-3.4-SNAPSHOT.ear" is in error due to the following reason(s): java.lang.re

      flect.MalformedParameterizedTypeException

       

      I worked previously with Jboss 5.1 but also got a deployment error without any given causes.

      So i tried Jboss 6 but im not able to get it working. Google didnt help me at all.

       

      Any ideas?

       

      The command was build succesful:   mvn -f app/pom.xml -Ddeploy

      I uploaded the full console log in case it's needed.

       

      greetings

      Seth

        • 1. Re: JBoss6 - MalformedParameterizedTypeException
          alesj

          Imo, you're hitting https://issues.jboss.org/browse/JBAS-8782.

          Can you try the latest 6.1 snapshot (the link should be in some previous forum post)?

          1 of 1 people found this helpful
          • 2. Re: JBoss6 - MalformedParameterizedTypeException
            gottseth

            i tried adding

            <install method="addIgnored">

            <parameter>java.lang.reflect.MalformedParameterizedTypeException</parameter>

            </install>

             

            to the scanning-deployers-jboss-beans.xml file, now its showing some other erros

             

            16:08:00,118 ERROR [[/timetracker]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: java.lang.LinkageError: loader constraint violation: when resolving method "org.springframework.util.xml.SimpleSaxErrorHandler.<init>(Lorg/apache/commons/logging/Log;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/springframework/beans/factory/xml/XmlBeanDefinitionReader, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class,org/springframework/util/xml/SimpleSaxErrorHandler, have different Class objects for the type org/apache/commons/logging/Log used in the signature

             

            DEPLOYMENTS IN ERROR:

              Deployment "jboss.web.deployment:war=/timetracker" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file

            :/C:/Programm/JBoss/51/server/default/tmp/vfs/automount4ea348e7f3c4d1d2/timetracker-web-3.4-SNAPSHOT.war-a7dde3f91df33f23/ deployment failed

            • 3. Re: JBoss6 - MalformedParameterizedTypeException
              alesj

              You have some Apache Logging conflict.

              Remove this commons-logging.jar from your app and it should work.

              • 4. Re: JBoss6 - MalformedParameterizedTypeException
                gottseth

                the timetracker app doesnt contain a commons-logging.jar, only the maven repository has one but deleting the file had no impact on the error message

                 

                EDIT: I tried to edit the pom-files and setting the commons-logging parts as a comment, while doing this(and deleting the commons-logging direcotry) it shows an error even before the deployment happens.

                 

                Just deleting the directory doesnt help because maven just downloads it again...