The ejb-integration-test seems to be broken pretty consistently. 

Basically the same steps to reproduce as in 3.0-beta-4:

1) In the resteasy /examples/ejb-integration directory:

 Edit pom.xml in the root directory.  Change the <jbossHome> property to the 
location of the EAP 6.1.0 installation

The following two steps are required to work around deployment issues:

2) In the resteasy /examples/ejb-integratinon/ear directory

 Edit pom.xml.  Change jboss-maven-plugin goal to "harddeploy".

3) Create $JBOSS_HOME/server/default/deploy directory.  Symlink to 
$JBOSS_HOME/standalone/deployments.

4) In the resteasy /examples/ejb-integration directory:

mvn clean install

In the 2.3.6.Final and the 3.0-beta-4 documentation in Chapter 39, "EJB 
Integration" there's a sentence that states:

An example EAR project is available from our testsuite here.

You would expect there to be a link in the docs but there is none.

2.3.5.Final output is below.  You get basically the same results with the 
example from 2.3.6.Final.

14:47:18,823 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) 
JBAS015876: Starting deployment of "ejb-integration.ear" (runtime-name: 
"ejb-integration.ear")
14:47:19,019 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-16) 
JBAS015876: Starting deployment of "null" (runtime-name: 
"ejb-integration-war-2.3.5.Final.war")
14:47:19,019 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) 
JBAS015876: Starting deployment of "null" (runtime-name: 
"ejb-integration-2.3.5.Final.jar")
14:47:19,044 INFO  
[org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
 (MSC service thread 1-15) JNDI bindings for session bean named 
LocatingResourceBean in deployment unit subdeployment 
"ejb-integration-2.3.5.Final.jar" of deployment "ejb-integration.ear" are as 
follows:

        
java:global/ejb-integration/ejb-integration-2.3.5.Final/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource
        
java:app/ejb-integration-2.3.5.Final/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource
        java:module/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource
        
java:global/ejb-integration/ejb-integration-2.3.5.Final/LocatingResourceBean
        java:app/ejb-integration-2.3.5.Final/LocatingResourceBean
        java:module/LocatingResourceBean

14:47:19,045 INFO  
[org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
 (MSC service thread 1-15) JNDI bindings for session bean named 
SimpleResourceBean in deployment unit subdeployment 
"ejb-integration-2.3.5.Final.jar" of deployment "ejb-integration.ear" are as 
follows:

        
java:global/ejb-integration/ejb-integration-2.3.5.Final/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource
        
java:app/ejb-integration-2.3.5.Final/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource
        java:module/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource
        
java:global/ejb-integration/ejb-integration-2.3.5.Final/SimpleResourceBean
        java:app/ejb-integration-2.3.5.Final/SimpleResourceBean
        java:module/SimpleResourceBean

14:47:19,061 INFO  [org.jboss.web] (ServerService Thread Pool -- 65) 
JBAS018210: Register web context: /ejb-integration-war
14:47:19,081 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejb-integration-war]]
 (ServerService Thread Pool -- 65) JBWEB000287: Exception sending context 
initialized event to listener instance of class 
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: 
java.lang.RuntimeException: javax.naming.NameNotFoundException: 
ejb-integration/SimpleResourceBean/local -- service 
jboss.naming.context.java.ejb-integration.SimpleResourceBean.local
        at 
org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory.getScannableClass(JndiResourceFactory.java:62)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:95)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addJndiResource(ResourceMethodRegistry.java:57)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:358)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:233) 
[resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        at 
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) 
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
        at 
org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
 [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at 
org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
 [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at 
org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
 [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 
[classes.jar:1.6.0_26]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
[classes.jar:1.6.0_26]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
[classes.jar:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [classes.jar:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[classes.jar:1.6.0_26]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_26]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: javax.naming.NameNotFoundException: 
ejb-integration/SimpleResourceBean/local -- service 
jboss.naming.context.java.ejb-integration.SimpleResourceBean.local
        at 
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
        at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
        at javax.naming.InitialContext.lookup(InitialContext.java:392) 
[classes.jar:1.6.0_26]
        at 
org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory.getScannableClass(JndiResourceFactory.java:57)
 [resteasy-jaxrs-2.3.5.Final.jar:]
        ... 18 more

14:47:19,085 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 65) 
JBWEB001103: Error detected during context /ejb-integration-war start, will 
stop it
14:47:19,085 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 
65) MSC00001: Failed to start service 
jboss.web.deployment.default-host./ejb-integration-war: 
org.jboss.msc.service.StartException in service 
jboss.web.deployment.default-host./ejb-integration-war: 
org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed 
to start context
        at 
org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 
[classes.jar:1.6.0_26]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
[classes.jar:1.6.0_26]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
[classes.jar:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [classes.jar:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[classes.jar:1.6.0_26]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_26]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.jboss.msc.service.StartException in anonymous service: 
JBAS018040: Failed to start context
        at 
org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)
        at 
org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
        at 
org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
        ... 7 more

14:47:19,287 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) 
JBAS015870: Deploy of deployment "ejb-integration.ear" was rolled back with the 
following failure message: 
{"JBAS014671: Failed services" => 
{"jboss.web.deployment.default-host./ejb-integration-war" => 
"org.jboss.msc.service.StartException in service 
jboss.web.deployment.default-host./ejb-integration-war: 
org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed 
to start context
    Caused by: org.jboss.msc.service.StartException in anonymous service: 
JBAS018040: Failed to start context"}}
14:47:19,304 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) 
JBAS015877: Stopped deployment null (runtime-name: 
ejb-integration-2.3.5.Final.jar) in 16ms
14:47:19,305 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) 
JBAS015877: Stopped deployment null (runtime-name: 
ejb-integration-war-2.3.5.Final.war) in 17ms
14:47:19,310 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) 
JBAS015877: Stopped deployment ejb-integration.ear (runtime-name: 
ejb-integration.ear) in 22ms
14:47:47,092 INFO  [org.apache.catalina.core] (MSC service thread 1-15) 
JBWEB001079: Container 
org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not 
been started
14:47:47,093 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service 
thread 1-13) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
14:47:47,095 INFO  [org.apache.coyote.http11] (MSC service thread 1-12) 
JBWEB003075: Coyote HTTP/1.1 pausing on: http-/127.0.0.1:8080
14:47:47,096 INFO  [org.apache.coyote.http11] (MSC service thread 1-12) 
JBWEB003077: Coyote HTTP/1.1 stopping on : http-/127.0.0.1:8080
14:47:47,099 INFO  [org.jboss.as] (MSC service thread 1-16) JBAS015950: JBoss 
EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1-redhat-4) stopped in 6ms



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to