0 Replies Latest reply on Aug 10, 2012 6:29 PM by cgmedina

    Migrating from glassfish v3 to JBoss 6.1+JSF

    cgmedina

      Hi everyone, this is my first post, I'm kinda newbie in jboss AS and I started using JBoss v 6.1 Final since JBoss AS 7.1 is not recognized by netbeans 7.1. Here  is my story:

       

      I have a fully developed working application  on glassfish v3.1.1. My application uses JSF 1.2, it also connects to a PostgreSQL 9.1 database and uses JMS queues for asynchronous messaging. It's all configured and it works on Glassfish without any problem. Due tu user requirements I have to migrate this application from glassfish v3 to any version of JBoss (it doesn't matter which version it is but I tried installing the latest and my Netbeans version didn't recognized it, so I had to work on Jboss AS 6.1 final version). By now I use a group of batch files in order to manage the installation, configuration and deployment for my application on glassfish. Those batch files work great, they communicate to Glassfish using the asadmin command, so I don't have to modify any xml configuration file for it. These are the steps covered for my batch files:

       

      1. Start domain: it starts the glassfish server.

      2. Server config: it configures the following server parameters:

      • server-config.security-service.default-principal=principal
      • server-config.security-service.default-principal-password=password
      • server-config.security-service.mapped-principal-class=CustomPrincipalImplClass
      • server-config.security-service.activate-default-principal-to-role-mapping=false
      • server-config.http-service.virtual-server.server.property.sso-enabled="true"
      • server-config.http-service.virtual-server.server.property.sso-max-inactive-seconds="300"
      • server-config.http-service.virtual-server.server.property.sso-reap-interval-seconds="60"

      3. Create JDBC: it creates the JDNC connection pool and JDBC resources for my project (I only use one resource and one connection pool as well)

      4. Create JMS: it creates two MessageFactoryPools and three message queues for each (one for request, one for reply and one for return)

      5. Deploy: It deploys my .ear application (including all its .war and ejb instances and dependencies)

      6. Copy properties: which copies the project properties(relative path of project resources, which are used  by my classes) into a resources folder inside the glassfish server.

       

      It would be great if I could execute the same scripts that I use on glassfish with JBoss, and if I only would have to change the commands received by the command line. But sadly it doesn't work in that way.

       

      My first attempt was trying to find a command line interface for JBoss that worked in the same way Glassfish asadmin command did, it wasn't successfull. (pleas somebody correct me if I'm wrong) It turned out that JBoss AS 7 comes with an CLI but previous versions don't.

       

      So I started studying the JBoss AS structure and trying to figure out the way for at least deploying my application on JBoss AS from Netbeans. Those attempts  weren't successfull either, so I decided to post my current situation telling you my story first, so you can understand what my goal is: I want to have my application on JBoss AS 6.1.1 with the least of changes to my source code and I want to be able to configure it in a pretty similar way as I do in glassfish.

       

      I have the following file structure in my project: mhzap101.ear which includes the ejb classes and the war files of the application.

       

      My application.xml file includes the following

       

      <?xml version="1.0" encoding="UTF-8"?>

      <application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">

          <display-name>mhzap101</display-name>

          <module>

              <ejb>mhzap101-ejb-business.jar</ejb>

          </module>

          <module>

              <ejb>mhzap101-ejb-core.jar</ejb>

          </module>

          <module>

              <ejb>mhzap101-ejb-persistence.jar</ejb>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web.war</web-uri>

                  <context-root>/mhzap101-web</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-filtro.war</web-uri>

                  <context-root>/mhzap101-web-filtro</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-rastro.war</web-uri>

                  <context-root>/mhzap101-web-rastro</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-recurso.war</web-uri>

                  <context-root>/mhzap101-web-recurso</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-recurso-filtro.war</web-uri>

                  <context-root>/mhzap101-web-recurso-filtro</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-usuario.war</web-uri>

                  <context-root>/mhzap101-web-usuario</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-conjunto-segmento.war</web-uri>

                  <context-root>/mhzap101-web-conjunto-segmento</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-rol.war</web-uri>

                  <context-root>/mhzap101-web-rol</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-configuracion-fija.war</web-uri>

                  <context-root>/mhzap101-web-configuracion-fija</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-configuracion-manual.war</web-uri>

                  <context-root>/mhzap101-web-configuracion-manual</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-gestion-pension.war</web-uri>

                  <context-root>/mhzap101-web-gestion-pension</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-gestion-censo.war</web-uri>

                  <context-root>/mhzap101-web-gestion-censo</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-proceso.war</web-uri>

                  <context-root>/mhzap101-web-proceso</context-root>

              </web>

          </module>

          <module>

              <web>

                  <web-uri>mhzap101-web-consulta.war</web-uri>

                  <context-root>/mhzap101-web-consulta</context-root>

              </web>

          </module>

          <security-role>

              <description>S&#250;per Gestor</description>

              <role-name>SuperGestor</role-name>

          </security-role>

          <security-role>

              <description>S&#250;per Lector</description>

              <role-name>SuperLector</role-name>

          </security-role>

          <security-role>

              <description>Operador</description>

              <role-name>Operador</role-name>

          </security-role>

          <security-role>

              <description>Registrador de Control de Acceso</description>

              <role-name>RegistradorControlAcceso</role-name>

          </security-role>

          <security-role>

              <description>Procesador de Control de Acceso</description>

              <role-name>ProcesadorControlAcceso</role-name>

          </security-role>

          <security-role>

              <description>Lector de Control de Acceso</description>

              <role-name>LectorControlAcceso</role-name>

          </security-role>

          <security-role>

              <description>Configurador de Control de Acceso</description>

              <role-name>ConfiguradorControlAcceso</role-name>

          </security-role>

          <security-role>

              <description>Gestor de Control de Acceso</description>

              <role-name>GestorControlAcceso</role-name>

          </security-role>

          <security-role>

              <description>Registrador de Recursos de Pensiones</description>

              <role-name>RegistradorRecursosPensiones</role-name>

          </security-role>

          <security-role>

              <description>Procesador de Recursos de Pensiones</description>

              <role-name>ProcesadorRecursosPensiones</role-name>

          </security-role>

          <security-role>

              <description>Lector de Recursos de Pensiones</description>

              <role-name>LectorRecursosPensiones</role-name>

          </security-role>

          <security-role>

              <description>Configurador de Recursos de Pensiones</description>

              <role-name>ConfiguradorRecursosPensiones</role-name>

          </security-role>

          <security-role>

              <description>Gestor de Recursos de Pensiones</description>

              <role-name>GestorRecursosPensiones</role-name>

          </security-role>

          <security-role>

              <description>Registrador de Recursos de Censos</description>

              <role-name>RegistradorRecursosCensos</role-name>

          </security-role>

          <security-role>

              <description>Procesador de Recursos de Censos</description>

              <role-name>ProcesadorRecursosCensos</role-name>

          </security-role>

          <security-role>

              <description>Lector de Recursos de Censos</description>

              <role-name>LectorRecursosCensos</role-name>

          </security-role>

          <security-role>

              <description>Configurador de Recursos de Censos</description>

              <role-name>ConfiguradorRecursosCensos</role-name>

          </security-role>

          <security-role>

              <description>Gestor de Recursos de Censos</description>

              <role-name>GestorRecursosCensos</role-name>

          </security-role>

      </application>

       

      each of my web.xml files inside my war files look pretty similar to this:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

          <context-param>

              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

              <param-value>server</param-value>

          </context-param>

          <context-param>

              <param-name>com.sun.faces.numberOfLogicalViews </param-name>

              <param-value>45</param-value>

          </context-param>

          <context-param>

              <param-name>com.sun.faces.numberOfViewsInSession</param-name>

              <param-value>45</param-value>

          </context-param>

          <context-param>

              <param-name>com.sun.faces.validateXml</param-name>

              <param-value>true</param-value>

          </context-param>

          <context-param>

              <param-name>com.sun.faces.verifyObjects</param-name>

              <param-value>false</param-value>

          </context-param>

          <filter>

              <filter-name>UploadFilter</filter-name>

              <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>

              <init-param>

                  <description>The maximum allowed upload size in bytes.  If this is set to a negative value, there is no maximum.  The default value is 1000000.</description>

                  <param-name>maxSize</param-name>

                  <param-value>2000000</param-value>

              </init-param>

              <init-param>

                  <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory.  Files smaller than or equal to this size will be stored in memory.  The default value is 4096.</description>

                  <param-name>sizeThreshold</param-name>

                  <param-value>4096</param-value>

              </init-param>

          </filter>

          <filter-mapping>

              <filter-name>UploadFilter</filter-name>

              <servlet-name>Faces Servlet</servlet-name>

          </filter-mapping>

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <init-param>

                  <param-name>javax.faces.LIFECYCLE_ID</param-name>

                  <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>

              </init-param>

              <load-on-startup>1</load-on-startup>

          </servlet>

          <servlet>

              <servlet-name>ExceptionHandlerServlet</servlet-name>

              <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>

              <init-param>

                  <param-name>errorHost</param-name>

                  <param-value>localhost</param-value>

              </init-param>

              <init-param>

                  <param-name>errorPort</param-name>

                  <param-value>24444</param-value>

              </init-param>

          </servlet>

          <servlet>

              <servlet-name>ThemeServlet</servlet-name>

              <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>/faces/*</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>ExceptionHandlerServlet</servlet-name>

              <url-pattern>/error/ExceptionHandler</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>ThemeServlet</servlet-name>

              <url-pattern>/theme/*</url-pattern>

          </servlet-mapping>

          <session-config>

              <session-timeout>

                  30

              </session-timeout>

          </session-config>

          <welcome-file-list>

              <welcome-file>index.jsp</welcome-file>

          </welcome-file-list>

          <error-page>

              <exception-type>javax.servlet.ServletException</exception-type>

              <location>/error/ExceptionHandler</location>

          </error-page>

          <error-page>

              <exception-type>java.io.IOException</exception-type>

              <location>/error/ExceptionHandler</location>

          </error-page>

          <error-page>

              <exception-type>javax.faces.FacesException</exception-type>

              <location>/error/ExceptionHandler</location>

          </error-page>

          <error-page>

              <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>

              <location>/error/ExceptionHandler</location>

          </error-page>

          <jsp-config>

              <jsp-property-group>

                  <url-pattern>*.jspf</url-pattern>

                  <is-xml>true</is-xml>

              </jsp-property-group>

          </jsp-config>

          <security-constraint>

              <web-resource-collection>

                  <web-resource-name>Area Publica</web-resource-name>

                  <description>Hojas de Estilo, Imagenes, etc</description>

                  <url-pattern>/resources/*</url-pattern>

              </web-resource-collection>

          </security-constraint>

          <security-constraint>

              <web-resource-collection>

                  <web-resource-name>Area Privada</web-resource-name>

                  <description>Gestion del Programa de Pension Alimentaria</description>

                  <url-pattern>/*</url-pattern>

              </web-resource-collection>

              <auth-constraint>

                  <role-name>SuperGestor</role-name>

                  <role-name>SuperLector</role-name>

                  <role-name>Operador</role-name>

              </auth-constraint>

          </security-constraint>

          <login-config>

              <auth-method>FORM</auth-method>

              <realm-name/>

              <form-login-config>

                  <form-login-page>/login.jsp</form-login-page>

                  <form-error-page>/error.jsp</form-error-page>

              </form-login-config>

          </login-config>

          <ejb-local-ref>

              <description>FacadeBeanLocator EJB Local Reference</description>

              <ejb-ref-name>ejb/FacadeBeanLocator</ejb-ref-name>

              <ejb-ref-type>Session</ejb-ref-type>

              <local>com.egt.ejb.persistence.FacadeBeanLocatorLocal</local>

              <ejb-link>mhzap101-ejb-persistence.jar#FacadeBeanLocatorBean</ejb-link>

          </ejb-local-ref>

          <resource-ref>

              <description>Visual Web generated DataSource Reference</description>

              <res-ref-name>jdbc/mhzap101</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

          </resource-ref>

         

      </web-app>

       

       

       

      when I try to deploy my application I get the following error messages:

       

      Deployment "vfs:///C:/JBoss/server/default/deploy/mhzap101.ear" is in error due to the following reason(s): java.lang.ClassNotFoundException: com.sun.errorhandler.ExceptionHandler from BaseClassLoader@1cdbc83{vfs:///C:/JBoss/server/default/deploy/mhzap101.ear/mhzap101-web-configuracion-fija.war/}


      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]

      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]

      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]

      at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

      at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

       

      It also shows the following messages:

       

      0:00:52,818 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfs:///C:/JBoss/server/default/deploy/mhzap101.ear state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/JBoss/server/default/deploy/mhzap101.ear

      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

      at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

      at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:98) [:0.2.2]

      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101) [:0.2.2]

      at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

      at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168) [:0.2.2]

      at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74) [:6.0.0.Final]

      at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156) [:6.0.0.Final]

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898) [:6.0.0.Final]

      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791) [:6.0.0.Final]

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744) [:6.0.0.Final]

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548) [:6.0.0.Final]

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234) [:6.0.0.Final]

      Caused by: java.lang.Error: Error visiting "/C:/JBoss/server/default/deployers/jsf.deployer/Mojarra-2.0/jsf-libs/jsf-api-2.0.3-b05.jar/javax/faces/model/DataModel$DataModelIterator.class"

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

      at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]

      at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]

      at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]

      at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]

      at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]

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

      at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]

      at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]

      at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]

      at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

      ... 30 more

      Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ javax/faces/model/DataModel$DataModelIterator.class / BaseClassLoader@8df350{vfs:///C:/JBoss/server/default/deploy/mhzap101.ear}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@41bcb7

      at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]

      at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.GA]

      at org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89) [:1.0.0.GA]

      at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112) [:1.0.0.GA]

      at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101) [jboss-classloading.jar:2.2.0.GA]

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

      ... 41 more

      Caused by: java.lang.reflect.MalformedParameterizedTypeException

      at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:42) [:1.6.0_25]

      at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:35) [:1.6.0_25]

      at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:77) [:1.6.0_25]

      at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:86) [:1.6.0_25]

      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:122) [:1.6.0_25]

      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [:1.6.0_25]

      at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:76) [:1.6.0_25]

      at java.lang.reflect.Constructor.getGenericParameterTypes(Constructor.java:238) [:1.6.0_25]

      at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:166) [jboss-reflect.jar:2.2.0.GA]

      at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:446) [jboss-reflect.jar:2.2.0.GA]

      at org.jboss.scanning.plugins.visitor.ClassHierarchyResourceVisitor.handleClass(ClassHierarchyResourceVisitor.java:79) [:1.0.0.GA]

      at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108) [:1.0.0.GA]

      at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86) [:1.0.0.GA]

      ... 45 more

       

       

       

      If anyone could give me some ideas for solving my problem I would appreciate it!!! I don't know what to do

       

      P.D. I included the Postgres-DS file for my datasource I can't find out if it works good because I can't deploy my application.

       

       

       

      Thanks a lot