Error during running application
Hi Folks,
I have developed CustomerProject having a servlet looking up CustomerSession bean calling CustomerEntitybean.
For developing this I used Netbean5.0 and SunoneApplicationserver8.2.After building this when I run the application for first time.It worked well.When I added some more business methods in the bean and started running its giving the following error.Please help me what might be the problem.How to solve it
-
[b][#|2006-05-23T13:09:03.613-0500|WARNING|sun-appserver-pe8.2|javax.enterpr ise.system.core|_ThreadID=10;|CORE5021: Application NOT loaded: [order]|#]
[#|2006-05-23T13:09:03.803-0500|INFO|sun-appserver-pe8.2|javax.enterprise.syste m.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: CustomerFacadeBean; containerId: 75261912075403265|#]
[#|2006-05-23T13:09:03.823-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.container.ejb|_ThreadID=10;|EJB5090: Exception in creating EJB container [javax.naming.NameAlreadyBoundException [Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0]]|#]
[#|2006-05-23T13:09:03.823-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.container.ejb|_ThreadID=10;|appId=customerbook moduleName=CustomerBook-EJBModule_jar ejbName=CustomerFacadeBean|#]
[#|2006-05-23T13:09:03.833-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.core.classloading|_ThreadID=10;|LDR5012: Jndi name conflict found in [customerbook]. Jndi name [ejb/CustomerFacadeBean] for bean [CustomerFacadeBean] is already in use.|#]
[#|2006-05-23T13:09:03.833-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.core.classloading|_ThreadID=10;|LDR5013: Naming exception while creating EJB container:
javax.naming.NameAlreadyBoundException [Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0 ]
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:74)
at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:563)
at com.sun.jndi.cosnaming.CNCtx.bind(CNCtx.java:588)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.jav a:176)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.jav a:146)
at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:622)
at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessio nContainer.java:187)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImp l.java:287)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:481)
at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader. java:95)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:185)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.j ava:200)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:30 0)
at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
Caused by: org.omg.CosNaming.NamingContextPackage.AlreadyBound: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0
at org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read(AlreadyBoundHelp er.java:60)
at org.omg.CosNaming._NamingContextStub.bind(_NamingContextStub.java:67)
at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:552)... 15 more
|#]
Dont know where to bind or rebind if there is any naming exception.I just created service locator..but i dont know where to rebind it
Please help regarding this.Appreciate your time
Thanks,
Siris

