]
Carlo de Wolf updated EJBTHREE-1579:
------------------------------------
Due Date: (was: 11/Nov/08)
[EJB3.1 Embedded 1.0.0-SNAPSHOT ] Binding proxy problem during
running small test on Eclipse
---------------------------------------------------------------------------------------------
Key: EJBTHREE-1579
URL:
https://jira.jboss.org/browse/EJBTHREE-1579
Project: EJB 3.0
Issue Type: Bug
Components: proxy
Environment: Maven 2.0.9 / Java 1.5.0_16 / MacOS X 10.5
Reporter: Serge Emmanuel Pagop
Assignee: Andrew Rubinger
Attachments: ormsys-ejb31-embeddable.zip
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
Running into problem when try through Eclipse "Run As -> JUnit Test" and
here is the error trace.
15:09:21,383 INFO [HelloBeanTest] Test #1
15:09:21,635 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap
-beans.xml
15:09:23,040 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-bean
s.xml
15:09:23,385 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/namingserver-beans
.xml
15:09:23,484 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/aop-beans.xml
15:09:23,663 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/transactionmanager
-beans.xml
15:09:23,727 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/jpa-deployers-bean
s.xml
15:09:23,837 INFO [JBossEJBContainer] Deploying
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jb
oss-ejb3-core/1.0.0-SNAPSHOT/jboss-ejb3-core-1.0.0-SNAPSHOT.jar!/ejb3-interceptors-aop.xml
15:09:24,160 INFO [AspectDeployer] Deploying xml into
org.jboss.aop.AspectManager@5b670674 for sun.
misc.Launcher$AppClassLoader@6ba7bf11
15:09:24,342 INFO [JBossEJBContainer] Deploying
file:/Users/sp/innoq-dev/innoq-jboss/jboss-research
/ormsys-ejb31-embeddable/target/classes/
15:09:24,620 INFO [EjbModuleDeployer] Found
org.jboss.metadata.ejb.jboss.JBoss50MetaData@1f in Abst
ractVFSDeploymentContext@786709615{vfsfile:/Users/sp/innoq-dev/innoq-jboss/jboss-research/ormsys-ejb
31-embeddable/target/classes/}
15:09:24,648 INFO [EjbComponentDeployer] Found
org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBos
sSessionPolicyDecorator@bebe0782{HelloBean} in
ComponentDeploymentContext@913776642{HelloBean}
15:09:25,151 INFO [SessionSpecContainer] Starting
jboss.j2ee:jar=classes,name=HelloBean,service=EJB
3
15:09:25,156 INFO [EJBContainer] STARTED EJB: org.ormsys.ejb3.HelloBean ejbName:
HelloBean
15:09:25,180 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global
JNDI:
HelloBean/local - EJB3.x Default Local Business Interface
HelloBean/local-org.ormsys.ejb3.Hello - EJB3.x Local Business Interface
15:09:25,195 INFO [SessionSpecContainer] Stopping
jboss.j2ee:jar=classes,name=HelloBean,service=EJB
3
15:09:25,195 INFO [EJBContainer] STOPPED EJB: org.ormsys.ejb3.HelloBean ejbName:
HelloBean
15:09:25,236 ERROR [AbstractKernelController] Error installing to Start:
name=jboss.j2ee:jar=classes
,name=HelloBean,service=EJB3 state=Create
java.lang.RuntimeException: Could not bind Reference Class Name: Proxy for:
org.ormsys.ejb3.Hello
Type: ProxyFactoryKey
Content: ProxyFactory/HelloBean/HelloBean/local
Type: EJB Container Name
Content: jboss.j2ee:jar=classes,name=HelloBean,service=EJB3
Type: Proxy Factory is Local
Content: true
Type: Local Business Interface
Content: org.ormsys.ejb3.Hello
into JNDI at "HelloBean/local"
at
org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:8
82)
at
org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:8
62)
at
org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:8
51)
at
org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.jav
a:151)
at
org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:634)
at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:243)
at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:869)
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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:
150)
at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execu
te(KernelControllerContextAction.java:241)
at
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(Kerne
lControllerContextAction.java:109)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelContro
llerContextAction.java:70)
at
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:2
21)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:5
4)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:4
2)
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleCont
rollerContextAction.java:62)
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContex
tAction.java:71)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextA
ctions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
8)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:12
1)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51
)
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpl
eRealDeployer.java:62)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:5
0)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157
)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178
)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
8)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.deploy(MainDeployerImpl.java:414)
at org.jboss.ejb3.embedded.JBossEJBContainer.deployMain(JBossEJBContainer.java:142)
at org.jboss.ejb3.embedded.JBossEJBContainer.deployModules(JBossEJBContainer.java:154)
at org.jboss.ejb3.embedded.JBossEJBContainer.<init>(JBossEJBContainer.java:90)
at
org.jboss.ejb3.embedded.JBossEJBContainerProvider.createEJBContainer(JBossEJBContainerProvider.j
ava:56)
at javax.ejb.EJBContainer.createEJBContainer(EJBContainer.java:99)
at org.ormsys.ejb3.HelloBeanTest.test1(HelloBeanTest.java:33)
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.TestMethod.invoke(TestMethod.java:59)
at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of
these urls: lo
calhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to
server loc
alhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to
connect to server
localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1604)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.util.naming.Util.createSubcontext(Util.java:70)
at org.jboss.util.naming.Util.bind(Util.java:104)
at org.jboss.util.naming.Util.bind(Util.java:91)
at
org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:8
77)
... 76 more
Caused by: javax.naming.CommunicationException: Failed to connect to server
localhost:1099 [Root exc
eption is javax.naming.ServiceUnavailableException: Failed to connect to server
localhost:1099 [Root
exception is java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1575)
... 83 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server
localhost:1099 [Roo
t exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)
... 84 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:267)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:246)
... 84 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: