Re: [Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final
On Apr 23, 2013, at 9:27 AM, Bill Burke wrote: > First apologies. This is a beta and I didn't really go through and > manually test the examples that were not automated. I'm currently > working on greatly improving the JBoss examples so that you do not have > to download or manually start a jboss instance. If I may make a suggestion... It would be good if you could include a working ear-ejb-war example for AS7/EAP 6. I've really struggled with getting this type of application working in AS7, and I'm not there yet. You talked about removing the ejb-integration example. I don't think it would be hard (for you) to package it as an AS7 test. I understand how you might want to showcase how simple you can make EJB integration, but I think the ear-ejb-war example is an important one for those of us who are faced with having to deploy applications currently running in competitive REST implementations. -- Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final
On Apr 23, 2013, at 9:27 AM, Bill Burke wrote: > The deprecated ClientResponse object extends javax.ws.rs.core.Response. > Response has had a bunch of new methods added to it in JAX-RS 2.0 > which I didn't implement (or want to implement) for our deprecated > client framework. But it looks like it broke some backward > compatibility too, which wasn't aware of. > > My suggestion is to rewrite the examples using JAX-RS 2.0 API, or to fix > the example to use ClientResponse.getResponseHeaders() Thanks, Bill. getResponseHeaders() did the trick. I didn't spot that method in the javadocs. -- Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
[Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final
First let me apologize for all the threads I have the vanilla (not AS7 ) oreilly_workbook ex11_1 example working on 5.1.0.GA and the ejb-integration-test example working on 4.2.3.GA, so at least I've got some basepoints. That's probably all I need for now but the JAX RS 2.0/AS7 integration now has my attention. I'm getting better mileage with the 3.0-beta-4 ex11_1 example on 7.1.1.Final now, but apparently the (deprecated) org.jboss.resteasy.client.ClientResponse API has changed. In eclipse the commented statement in ShoppingTest.java displays the message, "Cannot cast from List to List". If I replace it with what looks like the obvious getStringHeaders() the ShoppingTest throws an spi error. I've rewritten some of these tests using ClientBuilder but I would really appreciate some help on this one. protected Map processLinkHeaders(ClientResponse response) { //List linkHeaders = (List) response.getHeaders().get("Link"); List linkHeaders = (List) response.getStringHeaders().get("Link"); Map links = new HashMap(); for (String header : linkHeaders) { Link link = Link.valueOf(header); links.put(link.getRelationship(), link); } return links; } --- Test set: com.restfully.shop.test.ShoppingTest --- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869 sec <<< FAILURE! testPopulateDB(com.restfully.shop.test.ShoppingTest) Time elapsed: 0.528 sec <<< ERROR! org.jboss.resteasy.spi.NotImplementedYetException at org.jboss.resteasy.client.core.BaseClientResponse.getStringHeaders(BaseClientResponse.java:720) at com.restfully.shop.test.ShoppingTest.processLinkHeaders(ShoppingTest.java:42) at com.restfully.shop.test.ShoppingTest.testPopulateDB(ShoppingTest.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99) at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81) at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75) at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45) at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71) at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35) at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42) at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testCreateOrder(com.restfully.shop.test.ShoppingTest) Time elapsed: 0.013 sec <<< ERROR! org.jboss.resteasy.spi.NotImplementedYetException at org.jboss.resteasy.client.core.BaseClientResponse.getStringHeaders(BaseClientResponse.java:720) at com.restfully.shop.test.ShoppingTest.processLinkHeaders(ShoppingTest.java:42) at com.restfully.shop.test.ShoppingTest.testCreateOrder(ShoppingTest.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[Resteasy-users] Resteasy 2.3.6.Final oreilly-workbook-as7 ex11_1 example fails on EAP 6.1.0
On Apr 22, 2013, at 9:19 AM, Bill Burke wrote: > That's a bad example to use as its a container agnostic example. I > might remove it. Instead look at this example: > > https://github.com/resteasy/Resteasy/tree/3.0-beta-4/jaxrs/examples/oreilly-workbook-as7/ex11_1 > > Using EJBs + JAX-RS is a lot simpler in a EE6+ application server then > the ejb-integration-test shows! > I don't think the ex_11 example will deploy as-is in eap-6.1. The mvn clean install hangs at this message: Apr 22, 2013 12:47:14 PM org.xnio.Xnio INFO: XNIO Version 3.0.3.GA Apr 22, 2013 12:47:14 PM org.xnio.nio.NioXnio INFO: XNIO NIO Implementation Version 3.0.3.GA Apr 22, 2013 12:47:14 PM org.jboss.remoting3.EndpointImpl INFO: JBoss Remoting version 3.2.3.GA and when interrupted the server produces the ugly stack trace below. This is the ex11_1 example from 2.3.6.Final. I'm looking for an example that builds an ear. The README says this builds an ear, but all I can find is a war. 12:13:08,496 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1 12:13:08,607 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA 12:13:08,655 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1-redhat-4) starting 12:13:08,660 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties: [Standalone] = ... 12:13:08,662 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -D[Standalone] -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/usr/local/Applications/JBoss/jboss-eap-6.1/standalone/log/server.log -Dlogging.configuration=file:/usr/local/Applications/JBoss/jboss-eap-6.1/standalone/configuration/logging.properties 12:13:09,174 INFO [org.xnio] (MSC service thread 1-11) XNIO Version 3.0.7.GA 12:13:09,181 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http) 12:13:09,184 INFO [org.xnio.nio] (MSC service thread 1-11) XNIO NIO Implementation Version 3.0.7.GA 12:13:09,190 INFO [org.jboss.remoting] (MSC service thread 1-11) JBoss Remoting version 3.2.14.GA 12:13:09,208 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 29) JBAS010280: Activating Infinispan subsystem. 12:13:09,213 INFO [org.jboss.as.security] (ServerService Thread Pool -- 42) JBAS013171: Activating Security Subsystem 12:13:09,216 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 35) JBAS012605: Activated the following JSF Implementations: [main, 1.2] 12:13:09,217 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 37) JBAS011800: Activating Naming Subsystem 12:13:09,220 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.15.Final 12:13:09,225 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 46) JBAS015537: Activating WebServices Extension 12:13:09,245 INFO [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.15.Final) 12:13:09,254 INFO [org.jboss.as.naming] (MSC service thread 1-13) JBAS011802: Starting Naming Service 12:13:09,255 INFO [org.jboss.as.mail.extension] (MSC service thread 1-11) JBAS015400: Bound mail session [java:jboss/mail/Default] 12:13:09,293 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 12:13:09,311 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.3.Final 12:13:09,390 INFO [org.apache.coyote.http11] (MSC service thread 1-1) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/127.0.0.1:8080 12:13:09,401 INFO [org.apache.coyote.http11] (MSC service thread 1-1) JBWEB003000: Coyote HTTP/1.1 starting on: http-/127.0.0.1:8080 12:13:09,439 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-10) JBAS015012: Started FileSystemDeploymentService for directory /usr/local/Applications/JBoss/jboss-eap-6.1/standalone/deployments 12:13:09,452 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on 127.0.0.1: 12:13:09,452 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:4447 12:13:09,479 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 12:13:09,502 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 12:13:09,502 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 12:13:09,502 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1
Re: [Resteasy-users] Resteasy 2.3.5/2.3.6.Final ejb-integration-test examples fail on EAP 6.1.0 beta
Technically, the subject should read, "Resteasy 2.3.5/2.3.6.Final ejb-integration-test examples fail on EAP 6.1.0 Alpha (not Beta). > 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
[Resteasy-users] Resteasy 2.3.5/2.3.6.Final ejb-integration-test examples fail on EAP 6.1.0 beta
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 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-
Re: [Resteasy-users] Resteasy 3.0-beta-4 TRACE logging in AS 7.1.1.Final
erver.resourcefactory.JndiResourceFactory.getScannableClass(JndiResourceFactory.java:57) org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:100) org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:88) org.jboss.resteasy.core.ResourceMethodRegistry.addJndiResource(ResourceMethodRegistry.java:62) org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:353) org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:226) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) java.lang.Thread.run(Thread.java:680) On Apr 18, 2013, at 8:59 PM, Bill Burke wrote: > Maybe its because there's very little we log? What exactly are you > looking for? Since Resteasy is embeddable, I resolve problems usually > within my IDE's browser. > > On 4/18/2013 4:47 PM, Tom Coleman wrote: >> >> >> Is there some trick to getting Resteasy TRACE level logging working in AS7? >> >> I've bumped the level in the AS7 log configuration to TRACE level, but TRACE >> [org.jboss.resteasy] log entries are suspiciously absent. >> >> -- 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
[Resteasy-users] Resteasy 3.0-beta-4 TRACE logging in AS 7.1.1.Final
Is there some trick to getting Resteasy TRACE level logging working in AS7? I've bumped the level in the AS7 log configuration to TRACE level, but TRACE [org.jboss.resteasy] log entries are suspiciously absent. -- 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
Re: [Resteasy-users] Resteasy 3.0-beta-4 ejb-integrtation-test fails on AS 7.1.1.Final
Is this problem maybe due in part to JNDI changes in AS7 Does AS7 need some other param-value in web.xml? resteasy.jndi.resources ejb-integration/SimpleResourceBean/local,ejb-integration/LocatingResourceBean/local Getting nowhere, the stack trace below is the result of some experimenting. I tried (in desperation): java:app/ejb-integration-3.0-beta-4/SimpleResourceBean,java:app/ejb-integration-3.0-beta-4/LocatingResourceBean> 18:02:19,908 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "ejb-integration.ear" 18:02:20,887 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "ejb-integration-war-3.0-beta-4.war" 18:02:20,887 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ejb-integration-3.0-beta-4.jar" 18:02:21,028 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-11) JNDI bindings for session bean named LocatingResourceBean in deployment unit subdeployment "ejb-integration-3.0-beta-4.jar" of deployment "ejb-integration.ear" are as follows: java:global/ejb-integration/ejb-integration-3.0-beta-4/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:app/ejb-integration-3.0-beta-4/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:module/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:global/ejb-integration/ejb-integration-3.0-beta-4/LocatingResourceBean java:app/ejb-integration-3.0-beta-4/LocatingResourceBean java:module/LocatingResourceBean 18:02:21,030 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-11) JNDI bindings for session bean named SimpleResourceBean in deployment unit subdeployment "ejb-integration-3.0-beta-4.jar" of deployment "ejb-integration.ear" are as follows: java:global/ejb-integration/ejb-integration-3.0-beta-4/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:app/ejb-integration-3.0-beta-4/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:module/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:global/ejb-integration/ejb-integration-3.0-beta-4/SimpleResourceBean java:app/ejb-integration-3.0-beta-4/SimpleResourceBean java:module/SimpleResourceBean 18:02:21,031 ERROR [stderr] (MSC service thread 1-11) java.lang.Exception: entering getSubResourceClass() 18:02:21,031 ERROR [stderr] (MSC service thread 1-11) at org.jboss.resteasy.util.GetRestful.getSubResourceClass(GetRestful.java:59) 18:02:21,032 ERROR [stderr] (MSC service thread 1-11) at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:73) 18:02:21,032 ERROR [stderr] (MSC service thread 1-11) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) 18:02:21,032 ERROR [stderr] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 18:02:21,033 ERROR [stderr] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 18:02:21,033 ERROR [stderr] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 18:02:21,033 ERROR [stderr] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 18:02:21,033 ERROR [stderr] (MSC service thread 1-11) at java.lang.Thread.run(Thread.java:680) 18:02:21,034 ERROR [stderr] (MSC service thread 1-11) java.lang.Exception: entering getSubResourceClass() 18:02:21,034 ERROR [stderr] (MSC service thread 1-11) at org.jboss.resteasy.util.GetRestful.getSubResourceClass(GetRestful.java:59) 18:02:21,035 ERROR [stderr] (MSC service thread 1-11) at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:73) 18:02:21,035 ERROR [stderr] (MSC service thread 1-11) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) 18:02:21,035 ERROR [stderr] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 18:02:21,035 ERROR [stderr] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 18:02:21,036 ERROR [stderr] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 18:02:21,036 ERROR [stderr] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 18:02:21,036 ERROR [stderr] (MSC service thread 1-11) at java.lang.Thread.run(Thread.java:680) 18:02:21
Re: [Resteasy-users] Resteasy 3.0-beta-4 ejb-integrtation-test fails on AS 7.1.1.Final
First of all, I may have had my versions mixed up and I apologize for any confusion that may have caused. After performing a clean install I now get different errors. To reproduce the issue: 1) Download jboss-as-7.1.1.Final.zip from http://www.jboss.org/jbossas/downloads. Note the timestamp: 2012-03-10. 2) Download resteasy-jaxrs-3.0-beta-4-all.zip from "http://sourceforge.net/projects/resteasy/files/Resteasy%20JAX-RS/3.0-beta-4. Unzip. 3) Unzip resteasy-jboss-modules-3.0-beta-4.zip in $JBOSS_HOME/modules directory. 4) In the resteasy /examples/ejb-integration directory: Edit pom.xml in the root directory. Change the property to the location of your JBoss installation The following two steps are required to work around AS7 deployment issues: 5) In the resteasy /examples/ejb-integratinon/ear directory Edit pom.xml. Change jboss-maven-plugin goal to "harddeploy". 6) Create $JBOSS_HOME/server/default/deploy directory. Symlink to $JBOSS_HOME/standalone/deployments. 7) In the resteasy /examples/ejb-integration directory: mvn clean install Thanks again for all the interest in this problem. 15:23:53,918 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA 15:23:54,065 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA 15:23:54,106 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting 15:23:54,666 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http) 15:23:54,667 INFO [org.xnio] XNIO Version 3.0.3.GA 15:23:54,677 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA 15:23:54,685 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA 15:23:54,696 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers 15:23:54,699 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem 15:23:54,705 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem. 15:23:54,709 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem 15:23:54,718 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem 15:23:54,720 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem 15:23:54,726 INFO [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final 15:23:54,728 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension 15:23:54,763 INFO [org.jboss.as.connector] (MSC service thread 1-10) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final) 15:23:54,774 INFO [org.jboss.as.naming] (MSC service thread 1-12) JBAS011802: Starting Naming Service 15:23:54,800 INFO [org.jboss.as.mail.extension] (MSC service thread 1-12) JBAS015400: Bound mail session [java:jboss/mail/Default] 15:23:54,829 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 15:23:54,833 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-14) JBoss Web Services - Stack CXF Server 4.0.2.GA 15:23:54,917 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-16) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080 15:23:55,095 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 15:23:55,330 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory /usr/local/Applications/JBoss/jboss-as-7.1.1.Final/standalone/deployments 15:23:55,336 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447 15:23:55,336 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1: 15:23:55,395 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 15:23:55,395 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1729ms - Started 133 of 208 services (74 services are passive or on-demand) 15:41:15,595 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015876: Starting deployment of "ejb-integration.ear" 15:41:16,001 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "ejb-integration-war-3.0-beta-4.war" 15:41:16,001 INFO [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015876: Starting deployment of "ejb-integration-3.0-beta-4.jar" 15:41:16,151 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named LocatingRe
[Resteasy-users] Resteasy 3.0-beta-4 ejb-integrtation-test fails on AS 7.1.1.Final
Can someone please help with trying to get a Resteasy ear/ejb/war project running on AS7? Below is the output from the deployment of the ejb-integration test in the jboss-integration-testing directory of the current Resteasy.master. It looks like the test is run against jboss-4.2.3.GA, so my guess is that I am probably running into some AS7 deployment issue. 19:33:48,286 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015876: Starting deployment of "ejb-integration-test.ear" 19:33:48,296 INFO [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015876: Starting deployment of "ejb-test-war-3.0-beta-4.war" 19:33:48,296 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "ejb-test-3.0-beta-4.jar" 19:33:48,321 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-test-3.0-beta-4.jar" of deployment "ejb-integration-test.ear" are as follows: java:global/ejb-integration-test/ejb-test-3.0-beta-4/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:app/ejb-test-3.0-beta-4/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:module/LocatingResourceBean!org.resteasy.test.ejb.LocatingResource java:global/ejb-integration-test/ejb-test-3.0-beta-4/LocatingResourceBean java:app/ejb-test-3.0-beta-4/LocatingResourceBean java:module/LocatingResourceBean 19:33:48,326 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-15) JNDI bindings for session bean named FooResourceBean in deployment unit subdeployment "ejb-test-3.0-beta-4.jar" of deployment "ejb-integration-test.ear" are as follows: java:global/ejb-integration-test/ejb-test-3.0-beta-4/FooResourceBean!org.resteasy.test.ejb.exception.FooResource java:app/ejb-test-3.0-beta-4/FooResourceBean!org.resteasy.test.ejb.exception.FooResource java:module/FooResourceBean!org.resteasy.test.ejb.exception.FooResource java:global/ejb-integration-test/ejb-test-3.0-beta-4/FooResourceBean java:app/ejb-test-3.0-beta-4/FooResourceBean java:module/FooResourceBean 19:33:48,327 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-test-3.0-beta-4.jar" of deployment "ejb-integration-test.ear" are as follows: java:global/ejb-integration-test/ejb-test-3.0-beta-4/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:app/ejb-test-3.0-beta-4/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:module/SimpleResourceBean!org.resteasy.test.ejb.SimpleResource java:global/ejb-integration-test/ejb-test-3.0-beta-4/SimpleResourceBean java:app/ejb-test-3.0-beta-4/SimpleResourceBean java:module/SimpleResourceBean 19:33:48,329 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC1: Failed to start service jboss.deployment.subunit."ejb-integration-test.ear"."ejb-test-3.0-beta-4.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ejb-integration-test.ear"."ejb-test-3.0-beta-4.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "ejb-test-3.0-beta-4.jar" of deployment "ejb-integration-test.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.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_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] Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.util.GetRestful.getSubResourceClass(Ljava/lang/Class;)Ljava/lang/Class; at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:73) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] ... 5 more 19:33:48,534 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ejb-integration-test.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"ejb-integration-test.ear\".\"ejb-test-3.0-beta-4.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"ejb-integration-te