tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott@Egistix" <shrehirc...@egistix.com>
Subject SimpleStateless with JBoss5/Eclipse
Date Fri, 27 Nov 2009 20:10:37 GMT

Hi.
I am using eclipse.

I have download the examples (openejb-examples-3.1.2) and created a project
using the simple-stateless example.
I have added the junit.jar to my build path.
I have created a user-library for OpenEjb and added all the jars in the lib
dir, and added this user-lib to my build path.
I have created a server runtime using jboss5.1 and added this server runtime
to my build path.

When I run the test I get:

Apache OpenEJB 3.1.2    build: 20091010-03:11
http://openejb.apache.org/
INFO - openejb.home = E:\workspaces\openejb-examples-3.1.2\simple-stateless
INFO - openejb.base = E:\workspaces\openejb-examples-3.1.2\simple-stateless
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\common\lib\jboss-serialization.jar
INFO - Found EjbModule in classpath:
E:\workspaces\openejb-examples-3.1.2\simple-stateless\bin
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\client\javassist.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\common\lib\antlr.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\client\jaxws-tools.jar
INFO - Found ClientModule in classpath: D:\jboss-5.1.0.GA\lib\jaxb-xjc.jar
INFO - Found ClientModule in classpath:
E:\projects\openejb-3.1.2\lib\serializer-2.7.1.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\common\lib\dtdparser121.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\client\jboss-remoting.jar
INFO - Found ClientModule in classpath:
E:\projects\openejb-3.1.2\lib\xml-resolver-1.2.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\common\lib\jboss-remoting.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\client\jaxb-xjc.jar
INFO - Found ClientModule in classpath: D:\jboss-5.1.0.GA\client\antlr.jar
INFO - Found ClientModule in classpath: D:\jboss-5.1.0.GA\lib\javassist.jar
INFO - Found ClientModule in classpath:
D:\jboss-5.1.0.GA\client\jboss-serialization.jar
INFO - Found ClientModule in classpath: D:\jboss-5.1.0.GA\common\lib\bsh.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\common\lib\jboss-serialization.jar
INFO - Beginning load:
E:\workspaces\openejb-examples-3.1.2\simple-stateless\bin
INFO - Beginning load: D:\jboss-5.1.0.GA\client\javassist.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\common\lib\antlr.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\client\jaxws-tools.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\lib\jaxb-xjc.jar
INFO - Beginning load: E:\projects\openejb-3.1.2\lib\serializer-2.7.1.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\common\lib\dtdparser121.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\client\jboss-remoting.jar
INFO - Beginning load: E:\projects\openejb-3.1.2\lib\xml-resolver-1.2.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\common\lib\jboss-remoting.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\client\jaxb-xjc.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\client\antlr.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\lib\javassist.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\client\jboss-serialization.jar
INFO - Beginning load: D:\jboss-5.1.0.GA\common\lib\bsh.jar
INFO - Configuring enterprise application: classpath.ear
INFO - Configuring Service(id=Default Stateless Container, type=Container,
provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean CalculatorImpl:
Container(type=STATELESS, id=Default Stateless Container)
INFO - Enterprise application "classpath.ear" loaded.
INFO - Assembling app: classpath.ear
INFO - Jndi(name=CalculatorImplLocal) --> Ejb(deployment-id=CalculatorImpl)
INFO - Jndi(name=CalculatorImplRemote) --> Ejb(deployment-id=CalculatorImpl)
INFO - Created Ejb(deployment-id=CalculatorImpl, ejb-name=CalculatorImpl,
container=Default Stateless Container)
INFO - Undeploying app: classpath.ear
ERROR - Application could not be deployed:  classpath.ear
org.apache.openejb.OpenEJBException: Creating application failed:
classpath.ear: ParsedName{path=openejb/client/jboss-remoting/comp/env,
component=env}
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:666)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:449)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:367)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
	at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
	at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
	at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
	at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
	at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
	at javax.naming.InitialContext.init(Unknown Source)
	at javax.naming.InitialContext.<init>(Unknown Source)
	at org.superbiz.calculator.CalculatorTest.setUp(CalculatorTest.java:35)
	at junit.framework.TestCase.runBare(TestCase.java:132)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: javax.naming.NameAlreadyBoundException:
ParsedName{path=openejb/client/jboss-remoting/comp/env, component=env}
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:96)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:90)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:90)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:111)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:90)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:90)
	at org.apache.openejb.core.ivm.naming.NameNode.bind(NameNode.java:105)
	at org.apache.openejb.core.ivm.naming.IvmContext.bind(IvmContext.java:295)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:618)
	... 33 more

Why?

Thanks,
Scott
-- 
View this message in context: http://old.nabble.com/SimpleStateless-with-JBoss5-Eclipse-tp26545377p26545377.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message