tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lamle <la...@wapice.com>
Subject Re: how to get local/remote ejb stored in spring from a servlet - openejb spring integration
Date Wed, 06 Jul 2011 07:47:30 GMT
Hi Romain,

Yes but even I tried with initialContext.lokup("") it does not return what i
want. And spring injected bean should be s standard way we always do i
think.
Attached is my sample app, I removed created one very simple bean to test. 
http://openejb.979440.n4.nabble.com/file/n3647948/SpringIntegration.zip
SpringIntegration.zip 

WHen the server loads, i got this error:

INFO: Deploying configuration descriptor openejb.xml
context path = /openejb
Jul 6, 2011 10:23:10 AM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
        at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
        at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
        at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
        at
org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
        at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)
        at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
        at
org.apache.catalina.session.StandardManager.start(StandardManager.java:648)
        at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:800)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:603)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1064)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:465)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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.catalina.startup.Bootstrap.start(Bootstrap.java:291)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 6, 2011 10:23:10 AM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.io.EOFException
        at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
        at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
        at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
        at
org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
        at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)
        at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
        at
org.apache.catalina.session.StandardManager.start(StandardManager.java:648)
        at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:800)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:603)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1064)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:465)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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.catalina.startup.Bootstrap.start(Bootstrap.java:291)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
OpenEJB init-params:
Jul 6, 2011 10:23:10 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive SpringIntegration.war
context path = /SpringIntegration

--
View this message in context: http://openejb.979440.n4.nabble.com/how-to-get-local-remote-ejb-stored-in-spring-from-a-servlet-openejb-spring-integration-tp3647869p3647948.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message