Is this problem maybe due in part to JNDI changes in AS7

Does AS7 need some other param-value in web.xml?

   <context-param>
      <param-name>resteasy.jndi.resources</param-name>
      
<param-value>ejb-integration/SimpleResourceBean/local,ejb-integration/LocatingResourceBean/local
      </param-value>
   </context-param>

Getting nowhere, the stack trace below is the result of some experimenting.

I tried (in desperation):
 
<param-value>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,171 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: 
Registering web context: /ejb-integration-war
18:02:21,188 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) 
JBAS018565: Replaced deployment "ejb-integration.ear" with deployment 
"ejb-integration.ear"
18:02:35,557 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejb-integration-war]]
 (http-localhost-127.0.0.1-8080-1) StandardWrapper.Throwable: 
java.lang.RuntimeException: javax.naming.NameNotFoundException: 
ejb-integration-3.0-beta-4/LocatingResourceBean> -- service 
jboss.naming.context.java.app.ejb-integration."ejb-integration-3.0-beta-4".LocatingResourceBean>
        at 
org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory.getScannableClass(JndiResourceFactory.java:62)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:100)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:88)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addJndiResource(ResourceMethodRegistry.java:62)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:353)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:226) 
[resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
 [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) 
[jbossweb-7.0.13.Final.jar:]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_26]
Caused by: javax.naming.NameNotFoundException: 
ejb-integration-3.0-beta-4/LocatingResourceBean> -- service 
jboss.naming.context.java.app.ejb-integration."ejb-integration-3.0-beta-4".LocatingResourceBean>
        at 
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
        at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
        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-3.0-beta-4.jar:]
        ... 20 more

18:02:35,598 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejb-integration-war].[javax.ws.rs.core.Application]]
 (http-localhost-127.0.0.1-8080-1) Allocate exception for servlet 
javax.ws.rs.core.Application: javax.naming.NameNotFoundException: 
ejb-integration-3.0-beta-4/LocatingResourceBean> -- service 
jboss.naming.context.java.app.ejb-integration."ejb-integration-3.0-beta-4".LocatingResourceBean>
        at 
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
        at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
        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-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:100)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:88)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.addJndiResource(ResourceMethodRegistry.java:62)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:353)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:226) 
[resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
 [resteasy-jaxrs-3.0-beta-4.jar:]
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
 [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
[jbossweb-7.0.13.Final.jar:]
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
 [jbossweb-7.0.13.Final.jar:]
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) 
[jbossweb-7.0.13.Final.jar:]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_26]



------------------------------------------------------------------------------
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