Hi,

are you sure there is no twice Red beans (sometimes in src/main and
src/test) or that the app is not deployed twice?

- Romain


2012/4/16 pritish <[email protected]>

> Hi,
>
> I am new to openEJB and trying to use it to unit test EJB3.0 using
> JDeveloper and weblogic. I am using openejb-standalone-4.0.0-beta-2
> version.
> I downloaded the example lookup-of-ejbs and imported it into a new project
> in JDeveloper. I tried to clean and build the project and then run the
> EJBDependencyTest.java. While execution, I get the following error message
> on the console log.
>
> C:\Oracle\Middleware\jdk160_24\bin\javaw.exe -client -classpath
>
> C:\JDeveloperProjects\Application6\.adf;C:\svnworkspace\lookup-of-ejbs\classes;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.jdeveloper.junit\junit4.5\junit-4.5.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\activeio-core-3.1.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\activemq-core-5.5.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\activemq-protobuf-1.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\activemq-ra-5.5.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\bval-core-0.3-incubating.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\bval-jsr303-0.3-incubating.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-beanutils-1.8.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-cli-1.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-collections-3.2.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-dbcp-1.4.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-lang-2.6.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-logging-1.1.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-net-2.0.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\commons-pool-1.5.7.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\geronimo-connector-3.1.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\geronimo-j2ee-connector_1.6_spec-1.0.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\geronimo-j2ee-management_1.1_spec-1.0.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\geronimo-javamail_1.4_mail-1.8.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\geronimo-transaction-3.1.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\howl-1.0.1-1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\hsqldb-2.2.4.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\javaee-api-6.0-3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\javassist-3.12.1.GA.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\jettison-1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\joda-time-1.6.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\kahadb-5.5.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\log4j-1.2.16.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\mbean-annotation-api-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\mimepull-1.4.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\neethi-3.0.0.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-api-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-client-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-core-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-cxf-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-cxf-bundle-2.5.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-cxf-transport-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-daemon-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-ejbd-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-hsql-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-http-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-javaagent-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-jee-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-loader-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-multicast-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-server-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openejb-webservices-4.0.0-beta-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openjpa-2.1.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\opensaml-2.5.1-1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-ee-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-ee-common-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-ejb-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-impl-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-spi-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openwebbeans-web-1.1.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\openws-1.4.2-1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\quartz-1.8.5.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\saaj-impl-1.3.12.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\scannotation-1.0.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\serializer-2.7.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\serp-1.13.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\slf4j-api-1.6.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\slf4j-log4j12-1.6.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\stax-api-1.0-2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\stax-api-1.0.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\stax2-api-3.0.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\swizzle-stream-1.0.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\woodstox-core-asl-4.0.8.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\wsdl4j-1.6.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\wss4j-1.6.3.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xalan-2.7.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xbean-asm-shaded-3.9.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xbean-bundleutils-3.9.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xbean-finder-shaded-3.9.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xbean-naming-3.9.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xbean-reflect-3.9.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xercesImpl-2.9.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xml-resolver-1.2.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xmlschema-core-2.0.1.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xmlsec-1.4.5.jar;C:\Installations\openejb-standalone-4.0.0-beta-2\apache-openejb-4.0.0-beta-2\lib\xmltooling-1.3.2-1.jar;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.jdeveloper.junit.jar;C:\Oracle\Middleware\jdeveloper\jdev\lib\junit4-rt.jar;C:\Oracle\Middleware\jdeveloper\jdev\lib\junit3-rt.jar;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.jdeveloper.junit\junit4.5\junit-4.5.jar;
>
> -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks
> oracle.jdevimpl.junit.runner.JUnitTestRunner -port 62051 -v3Tests
> org.superbiz.ejblookup.EjbDependencyTest
> Started JUnit Test Runner (v4)
>
> Apache OpenEJB 4.0.0-beta-2    build: 20120115-08:26
> http://openejb.apache.org/
> INFO - openejb.home = C:\svnworkspace\lookup-of-ejbs
> INFO - openejb.base = C:\svnworkspace\lookup-of-ejbs
> INFO - Using 'javax.ejb.embeddable.EJBContainer=true'
> 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 EjbModule in classpath: C:\svnworkspace\lookup-of-ejbs
> INFO - Found EjbModule in classpath: C:\svnworkspace\lookup-of-ejbs\classes
> INFO - Beginning load: C:\svnworkspace\lookup-of-ejbs
> INFO - Beginning load: C:\svnworkspace\lookup-of-ejbs\classes
> INFO - Configuring enterprise application: C:\svnworkspace\lookup-of-ejbs
> INFO - Configuring Service(id=Default Stateless Container, type=Container,
> provider-id=Default Stateless Container)
> INFO - Auto-creating a container for bean RedBean:
> Container(type=STATELESS,
> id=Default Stateless Container)
> INFO - Configuring Service(id=Default Managed Container, type=Container,
> provider-id=Default Managed Container)
> INFO - Auto-creating a container for bean
> org.superbiz.ejblookup.EjbDependencyTest: Container(type=MANAGED,
> id=Default
> Managed Container)
> INFO - Enterprise application "C:\svnworkspace\lookup-of-ejbs" loaded.
> INFO - Assembling app: C:\svnworkspace\lookup-of-ejbs
> INFO -
>
> Jndi(name="java:global/lookup-of-ejbs/RedBean!org.superbiz.ejblookup.Friend")
> INFO - Jndi(name="java:global/lookup-of-ejbs/RedBean")
> INFO -
>
> Jndi(name="java:global/lookup-of-ejbs/BlueBean!org.superbiz.ejblookup.Friend")
> INFO - Jndi(name="java:global/lookup-of-ejbs/BlueBean")
> ERROR - Jndi name could not be bound; it may be taken by another ejb.
> Jndi(name=openejb/Deployment/RedBean/org.superbiz.ejblookup.Friend!Local)
> INFO - Undeploying app: C:\svnworkspace\lookup-of-ejbs
> Apache OpenEJB 4.0.0-beta-2    build: 20120115-08:26
> http://openejb.apache.org/
> INFO - openejb.home = C:\svnworkspace\lookup-of-ejbs
> INFO - openejb.base = C:\svnworkspace\lookup-of-ejbs
> INFO - Using 'javax.ejb.embeddable.EJBContainer=true'
> 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 EjbModule in classpath: C:\svnworkspace\lookup-of-ejbs
> INFO - Found EjbModule in classpath: C:\svnworkspace\lookup-of-ejbs\classes
> INFO - Beginning load: C:\svnworkspace\lookup-of-ejbs
> INFO - Beginning load: C:\svnworkspace\lookup-of-ejbs\classes
> INFO - Configuring enterprise application: C:\svnworkspace\lookup-of-ejbs
> INFO - Configuring Service(id=Default Stateless Container, type=Container,
> provider-id=Default Stateless Container)
> INFO - Auto-creating a container for bean BlueBean:
> Container(type=STATELESS, id=Default Stateless Container)
> INFO - Configuring Service(id=Default Managed Container, type=Container,
> provider-id=Default Managed Container)
> INFO - Auto-creating a container for bean
> org.superbiz.ejblookup.EjbDependencyTest: Container(type=MANAGED,
> id=Default
> Managed Container)
> INFO - Enterprise application "C:\svnworkspace\lookup-of-ejbs" loaded.
> INFO - Assembling app: C:\svnworkspace\lookup-of-ejbs
> INFO -
>
> Jndi(name="java:global/lookup-of-ejbs/BlueBean!org.superbiz.ejblookup.Friend")
> INFO - Jndi(name="java:global/lookup-of-ejbs/BlueBean")
> INFO -
>
> Jndi(name="java:global/lookup-of-ejbs/RedBean!org.superbiz.ejblookup.Friend")
> INFO - Jndi(name="java:global/lookup-of-ejbs/RedBean")
> ERROR - Jndi name could not be bound; it may be taken by another ejb.
> Jndi(name=openejb/Deployment/BlueBean/org.superbiz.ejblookup.Friend!Local)
> INFO - Undeploying app: C:\svnworkspace\lookup-of-ejbs
> Process exited with exit code 0.
>
> and on the Junit TestRunner console, get the following error:
>
> org.apache.openejb.OpenEjbContainer$AssembleApplicationException:
> org.apache.openejb.OpenEJBException: Creating application failed:
> C:\svnworkspace\lookup-of-ejbs: Unable to bind business local interface for
> deployment RedBean
>
> I am not able to figure out what is the issue. Could you please help me.
>
> Thanks.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Getting-Jndi-name-could-not-be-bound-it-may-be-taken-by-another-ejb-error-tp4561863p4561863.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Reply via email to