3 Replies Latest reply: Mar 9, 2012 1:51 PM by Dominik Grupp RSS

injection fails in test class

Dominik Grupp Newbie

Hello,

 

 

for my arquillian test I get the following error which I can't solve. Why is the injection not working? I am using Myfaces implementation which is working fine for the normal (non-test) deployment since configured in web.xml with

 

<context-param>    

          <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>    

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

</context-param>

   

Exception (without the assert in the test class simply a NPE is thrown)

 

11:43:41,771 INFO  [org.jboss.web] (MSC service thread 1-11) JBAS018210: Registering web context: /test

11:43:41,777 INFO  [org.jboss.as.server] (management-handler-threads - 48) JBAS018559: Deployed "test.war"

11:43:41,847 ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-4-thread-4) Failed: de.kdo.gui.page.CreateUserBeanTest.createNewUser: java.lang.AssertionError: CreateUserBean should have been injected by the CDI bean manager

          at org.junit.Assert.fail(Assert.java:93) [arquillian-service:]

          at org.junit.Assert.assertTrue(Assert.java:43) [arquillian-service:]

          at org.junit.Assert.assertNotNull(Assert.java:526) [arquillian-service:]

          at de.kdo.gui.page.CreateUserBeanTest.createNewUser(CreateUserBeanTest.java:80) [classes:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) [arquillian-service:]

          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [arquillian-service:]

          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270) [arquillian-service:]

          at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134) [arquillian-service:]

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) [arquillian-service:]

          at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

          at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

          at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

          at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134) [arquillian-service:]

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240) [arquillian-service:]

          at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) [arquillian-service:]

          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) [arquillian-service:]

          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) [arquillian-service:]

          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [arquillian-service:]

          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [arquillian-service:]

          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [arquillian-service:]

          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [arquillian-service:]

          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199) [arquillian-service:]

          at org.junit.runners.ParentRunner.run(ParentRunner.java:300) [arquillian-service:]

          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147) [arquillian-service:]

          at org.junit.runner.JUnitCore.run(JUnitCore.java:157) [arquillian-service:]

          at org.junit.runner.JUnitCore.run(JUnitCore.java:136) [arquillian-service:]

          at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]

          at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:128) [arquillian-service:]

          at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:107) [arquillian-service:]

          at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226) [arquillian-service:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) [classes.jar:1.6.0_29]

          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) [classes.jar:1.6.0_29]

          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [classes.jar:1.6.0_29]

          at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:489)

          at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:243)

          at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)

          at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)

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

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

          at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

 

11:43:41,930 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/test]] (MSC service thread 1-1) Exception sending context destroyed event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener: java.lang.IllegalArgumentException: Class org.jboss.as.weld.webtier.jsf.WeldApplicationFactory is no javax.faces.application.ApplicationFactory

          at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:354) [myfaces-api-2.1.6.jar:2.1.6]

          at javax.faces.FactoryFinder._getFactory(FactoryFinder.java:317) [myfaces-api-2.1.6.jar:2.1.6]

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:206) [myfaces-api-2.1.6.jar:2.1.6]

          at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:137) [myfaces-impl-2.1.6.jar:2.1.6]

          at org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:278) [myfaces-impl-2.1.6.jar:2.1.6]

          at org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(AbstractFacesInitializer.java:313) [myfaces-impl-2.1.6.jar:2.1.6]

          at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:153) [myfaces-impl-2.1.6.jar:2.1.6]

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.10.Final.jar:]

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.10.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.stop(WebDeploymentService.java:108) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

          at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

  

 

The test class

 

package de.kdo.gui.page;

 

import static org.junit.Assert.assertNotNull;

import java.io.File;

import org.jboss.arquillian.container.test.api.Deployment;

import org.jboss.arquillian.core.api.annotation.Inject;

import org.jboss.arquillian.junit.Arquillian;

import org.jboss.shrinkwrap.api.Archive;

import org.jboss.shrinkwrap.api.GenericArchive;

import org.jboss.shrinkwrap.api.ShrinkWrap;

import org.jboss.shrinkwrap.api.asset.EmptyAsset;

import org.jboss.shrinkwrap.api.spec.WebArchive;

import org.jboss.shrinkwrap.resolver.api.DependencyResolvers;

import org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver;

import org.junit.Assert;

import org.junit.Test;

import org.junit.runner.RunWith;

import de.kdo.domain.Department;

import de.kdo.domain.User;

import de.kdo.gui.jsf.UserVerify;

import de.kdo.gui.util.Messages;

import de.kdo.service.DepartmentService;

import de.kdo.service.impl.UserServiceQual;

import de.kdo.spring.ViewScope;

 

@RunWith(Arquillian.class)

public class CreateUserBeanTest {

            public static final String WEBAPP_SRC = "src/main/webapp";

            @Deployment

          public static Archive<?> createTestArchive() {

                    return ShrinkWrap

                                        .create(WebArchive.class, "test.war")

                                        .addPackages(true, UserVerify.class.getPackage(), CreateUserBean.class.getPackage(), Messages.class.getPackage(),

                                                            ViewScope.class.getPackage())

                                        .addAsResource("service.spring.xml", "service.spring.xml")

                                        .addAsManifestResource("META-INF/persistence.xml", "META-INF/persistence.xml")

                                        .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")

                                        .addAsWebInfResource(new File(WEBAPP_SRC, "WEB-INF/faces-config.xml"))

                                        .addAsWebResource(new File(WEBAPP_SRC, "index.html"))

                                        .addAsWebInfResource(new File(WEBAPP_SRC, "WEB-INF/web.xml"))

                                        .addAsWebInfResource(new File(WEBAPP_SRC, "WEB-INF/web.spring.xml"))

                                        .addAsLibraries(

                                                            DependencyResolvers

                                                                                .use(MavenDependencyResolver.class)

                                                                                .configureFrom("src/test/resources/mvn_settings/settings.xml")

                                                                                .artifact("de.kdo:jatentities:jar:1.0")

                                                                                .artifact("de.kdo:jatdata:jar:1.0")

                                                                                .artifact("de.kdo:jatservice:jar:1.0")

                                                                                .artifact("javax.enterprise:cdi-api:jar:1.0")

                                                                                .artifact("org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final")

                                                                                .artifact("org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:1.0.0.Final")

                                                                                .artifact("org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final")

                                                                                .artifact("org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.0.Final")

                                                                                .artifact("org.hibernate:hibernate-jpamodelgen:jar:1.1.1.Final")

                                                                                .artifact("org.jboss.arquillian.junit:arquillian-junit-container:jar:1.0.0.CR7")

                                                                                .artifact("org.apache.myfaces.orchestra:myfaces-orchestra-core20:jar:1.4")

                                                                                .artifact("org.apache.myfaces.core:myfaces-api:jar:2.1.6")

                                                                                .artifact("org.apache.myfaces.core:myfaces-impl:jar:2.1.6").artifact("javax.servlet:servlet-api:jar:2.5")

                                                                                .artifact("commons-el:commons-el:jar:1.0")

                                                                                .artifact("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:1.1.0-alpha-2")

                                                                                .artifact("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:1.1.0-alpha-2")

                                                                                .resolveAs(GenericArchive.class));

          }

 

          @Inject

          @UserServiceQual

          private CreateUserBean createUser;

 

          @Inject

          @UserServiceQual

          private DepartmentService departmentService;

 

          @Test

          public void createNewUser() {

                    Assert.assertNotNull("CreateUserBean should have been injected by the CDI bean manager", createUser);

                    Assert.assertNotNull("DepartmentService should have been injected by the CDI bean manager", departmentService);

 

                    Department department = departmentService.findById(1l);

                    Assert.assertNotNull("Department should not be null", department);

 

                    User user = createUser.getUser();

                    user.setFirstname("Testfirstname");

                    user.setLastname("Testlastname");

                    user.setLoginname("Testlogin");

                    user.setPwd("aaaaaaaa");

                    user.setAdmin(false);

                    user.setBarred(true);

                    user.setDepartment(department);

  createUser.saveUser();

                    assertNotNull(user.getId());

          }

}

 

arquillian.xml

 

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

<arquillian xmlns="http://jboss.org/schema/arquillian"

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

          xsi:schemaLocation="http://jboss.org/schema/arquillian

        http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

            <engine>

                      <property name="deploymentExportPath">target/</property>

            </engine>

          <container qualifier="jboss" default="true">

                    <protocol type="jmx-as7">

                              <property name="executionType">REMOTE</property>

                    </protocol>

                    <configuration>

                              <property name="jbossHome">d:/Programsx/swd/jboss/jboss-as-7.1.0.Final/bin</property>

                    </configuration>

          </container>

</arquillian>

 

 

One further question: once the application is normally deployed testing fails with the following message. Is testing only possible if the application is still undeployed or will a separate perstistence unit need to be created?

 

11:44:40,330 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."test.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".INSTALL: Failed to process phase INSTALL of deployment "test.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

          at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for jatPU

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:370)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

          ... 5 more

Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.jboss.entityManagerFactory is already registered

          at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:345)

          ... 8 more

   

Regards,

 

Michael