1 2 Previous Next 17 Replies Latest reply on Aug 22, 2011 10:53 AM by smarlow Go to original post
      • 15. Re: Jboss 7 Conversion, Hibernate Issues?
        freylingb

        Scott,

         

        Progress!, Many Thanks.

         

        I still have errors but I believe these may now come down to configuration problems in my ejb classes.  I'm looking into it now.

         

        09:46:42,717 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."security.ear"."security-ejb-2.0.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."security.ear"."security-ejb-2.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "security-ejb-2.0.jar" of deployment "security.ear"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

                at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_17]

                at java.lang.Thread.run(Thread.java:619) [:1.6.0_17]

        Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to install component org.jboss.as.ee.component.ComponentConfiguration[name=SecurityManager class="security".ejb.server.SecurityManager]

                at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:77)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

                ... 5 more

        Caused by: java.lang.IllegalArgumentException: Incompatible conflicting binding at java:comp/env/security.ejb.server.SecurityManager/entityManager source: org.jboss.as.jpa.injectors.PersistenceContextInjectionSource@62506aee

                at org.jboss.as.ee.component.ComponentInstallProcessor.processBindings(ComponentInstallProcessor.java:218)

                at org.jboss.as.ee.component.ComponentInstallProcessor.access$000(ComponentInstallProcessor.java:53)

                at org.jboss.as.ee.component.ComponentInstallProcessor$1.handle(ComponentInstallProcessor.java:173)

                at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:52)

                at org.jboss.as.ee.component.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:170)

                at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:75)

                ... 6 more

        • 16. Re: Jboss 7 Conversion, Hibernate Issues?
          freylingb

          This is probably a side effect of some of the more recent changes since we are switching to the ejb, etc. versions that ship with jboss7.  I cannot immediately see what the problems is though : (.

           

          Note also, on the latest nightly the Jboss Console is not working ("http://localhost:9990/console/App.html"), localhost:8080 comes up instantly, yet the admin console sits with a loading icon (the spinning circle in middle of screen) forever.  Confirmed with no applications deploying (I removed my .ear)  Where is appropriate for reporting bugs on the nightly build?

           

          From: SecurityManager.java

           

          @Stateless

          @RolesAllowed( { "ADMINISTRATOR" })

          @Named ("security/SecurityManager/remote")

          //originally: @RemoteBinding(jndiBinding = "security/SecurityManager/remote")

          @WebService(endpointInterface = "security.ejb.client.SecurityManagerEndpoint")

          @SOAPBinding(style = SOAPBinding.Style.RPC)

          //TODO @WebContext(contextRoot="/securityws", authMethod="CLIENT-CERT", transportGuarantee="CONFIDENTIAL", secureWSDLAccess=false)

          @TransactionManagement(value = TransactionManagementType.CONTAINER)

          public class SecurityManager implements SecurityManagerRemote {

              /** logger */

              private static Log logger = LogFactory.getLog(SecurityManager.class);

             

              /** entity manager */

              @PersistenceContext(unitName = "security")    //TODO bugging out here?

              private EntityManager entityManager;  

           

           

          From: persistence.xml

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

            <persistence xmlns="http://java.sun.com/xml/ns/persistence"

               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

              version="2.0">

              <persistence-unit name="security">

                  <provider>org.hibernate.ejb.HibernatePersistence</provider>

                  <jta-data-source>java:jboss/datasources/security</jta-data-source>

               <properties>

                <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />

               </properties>

              </persistence-unit>

            </persistence>

          • 17. Re: Jboss 7 Conversion, Hibernate Issues?
            smarlow

            For questions about the nightly build, opening a new discussion thread (http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2279) for each separate issue, would be good.  Creating a bug report for bugs that you hit, is also good.

             

            Scott

            1 2 Previous Next