[jboss-user] [JBoss Seam] - Seam 1.1 on Resin

svadu do-not-reply at jboss.com
Thu Dec 14 16:03:05 EST 2006


HI All,

I've managed to run Seam 1.1 on Resin 3.0.21 with little workarounds (Gavin I posted about it on theserverside.com). It works pretty well for hibernate examples. However, if I want it to run in the ejb-3 micro-container I am getting the following exception:


  |  java.lang.RuntimeException: exception invoking: startup
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:112)
  |   at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
  |   at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
  |   at org.jboss.seam.Component.newInstance(Component.java:1728)
  |   at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
  |   at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
  |   at org.jboss.seam.init.Initialization.init(Initialization.java:430)
  |   at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  |   at com.caucho.server.webapp.Application.start(Application.java:1647)
  |   at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
  |   at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
  |   at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
  |   at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
  |   at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
  |   at com.caucho.server.host.Host.start(Host.java:420)
  |   at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
  |   at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
  |   at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
  |   at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
  |   at com.caucho.server.host.HostContainer.start(HostContainer.java:504)
  |   at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
  |   at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
  |   at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
  |   at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
  |   at com.caucho.server.resin.ResinServer.start(ResinServer.java:546)
  |   at com.caucho.server.resin.Resin.init(Resin.java)
  |   at com.caucho.server.resin.Resin.main(Resin.java:625)
  |  Caused by: java.lang.reflect.InvocationTargetException
  |   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:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
  |   ... 26 more
  |  Caused by: java.lang.NoSuchMethodError: javax.ejb.Local.value()[Ljava/lang/Class;
  |   at org.jboss.ejb3.ProxyFactoryHelper.getLocalInterfaces(ProxyFactoryHelper.java:124)
  |   at org.jboss.ejb3.ProxyDeployer.initializeLocalBindingMetadata(ProxyDeployer.java:117)
  |   at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:71)
  |   at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:573)
  |   at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:555)
  |   at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:536)
  |   at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:508)
  |   at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:463)
  |   at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:437)
  |   at org.jboss.seam.core.Ejb.startup(Ejb.java:55)
  |   ... 32 more
  | 

It seems that ejb-30.jar that is located at resin/lib is not compatible with the one jboss libs want to use. If I delete the jar from resin/lib then class loading works pretty well and ejb-3 works. However this is a problem because I can't do the same at my hosting provider (the ejb-30.jar would be missing for everyone else).
I was wandering whether there is anything possible to do from Seam side?

Thanks in advance,

Siarhei

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994023#3994023

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994023



More information about the jboss-user mailing list