users@glassfish.java.net

javax.naming.NamingException: java:comp namespace cannot be modified

From: <glassfish_at_javadesktop.org>
Date: Mon, 18 Oct 2010 03:31:19 PDT

Hi,

I have one problem while deploying one sample enterprise application(One session bean) in glassfish cluster environment. I have created one instance under my cluster and the sample application provided with the glassfish(cluserjsp) is working fine.
While deploying the following ejb, in the log file i can see the following messages.
Is there anything additional i should provide for the JNDI name?.
Or is there any other syntax i shold follow ?.
Please help me .......


@Remote
public interface SampleBeanInterface {
        public void testing();
}

@Stateless(name="ejb/SampleEjb",mappedName="ejb/SampleEjb")
public class SampleEjb implements SampleBeanInterface{
        public void testing() {
                System.out.println("hai testing ----");
        }
}




[#|2010-10-18T12:50:25.272+0300|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=39;_ThreadName=RMI TCP Connection(482)-192.168.4.20;_RequestID=f73a2471-1628-4c54-aa72-8baee418a6c9;|appId=TestEnterprice moduleName=TestEnterpriceEJB_jar ejbName=java:global/TestEnterprice/TestEnterpriceEJB/ejb/SampleEjb|#]

[#|2010-10-18T12:50:25.272+0300|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=39;_ThreadName=RMI TCP Connection(482)-192.168.4.20;_RequestID=f73a2471-1628-4c54-aa72-8baee418a6c9;|LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException: java:comp namespace cannot be modified
        at com.sun.enterprise.naming.java.javaURLContext.bind(javaURLContext.java:244)
        at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:458)
        at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:476)
        at javax.naming.InitialContext.bind(InitialContext.java:404)
        at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:237)
        at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:190)
        at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:1015)
        at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:232)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:654)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)


Thanks and Regards

Anish
[Message sent by forum member 'anishpissac']

http://forums.java.net/jive/thread.jspa?messageID=485433