Announcement Announcement Module
Collapse
No announcement yet.
jboss startup issue with spring version 3.1.2 NameAlreadyBoundException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jboss startup issue with spring version 3.1.2 NameAlreadyBoundException

    I have upgraded to Spring 3.1.2.RELEASE and having below issue, any idea?

    See below ejb-jar.xml; it successfully bounds the first session bean, EntityFinderBean, but then complains with the second one with exception javax.naming.NameAlreadyBoundException; remaining name 'env'.

    Has anybody had any similar issue?

    Many Thanks
    Ekin


    69146 main INFO org.hibernate.util.NamingHelper JNDI InitialContext properties:{}
    69149 main INFO org.jboss.hibernate.jmx.Hibernate SessionFactory successfully built and bound into JNDI [java:/hibernate/SessionFactory]
    69163 main INFO org.jboss.proxy.ejb.ProxyFactory Bound EJB Home 'EntityFinderBean' to jndi 'EntityFinderBean'
    69174 main WARN org.jboss.system.ServiceController Problem starting service jboss.j2ee:jndiName=LifeCycleBean,service=EJB
    javax.naming.NameAlreadyBoundException; remaining name 'env'
    at org.jnp.server.NamingServer.createSubcontext(Namin gServer.java:465)
    at org.jnp.interfaces.NamingContext.createSubcontext( NamingContext.java:942)
    at org.jnp.interfaces.NamingContext.createSubcontext( NamingContext.java:924)
    at org.jboss.ejb.Container.setupEnvironment(Container .java:1081)
    at org.jboss.ejb.Container.startService(Container.jav a:824)
    at org.jboss.ejb.SessionContainer.startService(Sessio nContainer.java:397)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:978)



    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
    version="2.1">
    <description>XXXXXXXXX</description>

    <enterprise-beans>
    <session>
    <description>fffffff</description>
    <ejb-name>EntityFinderBean</ejb-name>
    <home>com.XXXXXXXXX.pf.server.ejb.EntityFinderHome </home>
    <remote>com.XXXXXXXXX.pf.server.ejb.EntityFinderRe mote</remote>
    <ejb-class>com.XXXXXXXXX.pf.server.ejb.EntityFinderBean </ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>fffffffffff</description>
    <ejb-name>LifeCycleBean</ejb-name>
    <home>com.XXXXXXXXX.pf.server.ejb.LifeCycleHome</home>
    <remote>com.XXXXXXXXX.pf.server.ejb.LifeCycleRemot e</remote>
    <ejb-class>com.XXXXXXXXX.pf.server.ejb.LifeCycleBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>fffffffffff</description>
    <ejb-name>RefDataProviderBean</ejb-name>
    <home>com.XXXXXXXXX.pf.server.ejb.RefDataProviderH ome</home>
    <remote>com.XXXXXXXXX.pf.server.ejb.RefDataProvide rRemote</remote>
    <ejb-class>com.XXXXXXXXX.pf.server.ejb.RefDataProviderB ean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
Working...
X