Hi everyone,
I am trying to deploy an
EJB (TestEJB, remote interface is
Test) component into weblogic 6.1. All the files related to TestEJB are in the package com.myApplication.test.
In the config.xml, the tag
<Application Deployed="true" Name="Test" Path=".\config\mydomain\applications\test">
<EJBComponent Name="test" Targets="server1" URI="test.jar"/>
</Application>
is written only once. Initially first time when I start the weblogic server, the test.jar will be deployed successfully without any error. When I stop the server and check the config file, there will be two <Application> tags for test.jar. I do not know how this tag is added once again.
So when I restart the server now , I get the following error :
Unable to deploy EJB: Test from test.jar:
Unable to bind a cluster-aware stateless session EJBObject to the name: ejb.com.
myApplication.test_EO. Please ensure that the jndi-name in the weblogic-ejb-jar.x
ml is correct. The error was:
javax.naming.NameAlreadyBoundException: Can't rebind anything but a replica-aware stub to a name that is currently bound to a replica-aware stub; remaining name
� �
<<no stack trace available>>
>
<Nov 11, 2003 1:49:21 PM EST> <Error> <Management> <Error deploying application
.\config\mydomain\applications\test: java.lang.reflect.UndeclaredThrowableExcept
ion>
Again when I start the server, one more <Application> tag will added for test.jar. Very weird !!!
I do not know why this <Application> tag for the componet test.jar is getting added each time when I start the server. How to avoid it ?
Only first time when I start the weblogic server, I do not get this error because there will be only one tag in the config file. But when I stop the server, the config.xml will be updated with one additional <Application> tag for test.jar. This keeps repeated each time when I restart the weblogic server.
Please suggest me how to get rid of this tag getting added repeatedly to the config.xml.
My weblogic-ejb-jar.xml for test.jar :
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<!-- Generated XML! -->
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Test</ejb-name>
<stateless-session-descriptor>
<pool>
</pool>
<stateless-clustering>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>30</trans-timeout-seconds>
</transaction-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/test</res-ref-name>
<jndi-name>test</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>ejb.com.myApplication.test</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Thanks and regards.