tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditya Anand <adi...@yahoo.com>
Subject read-only initial context
Date Mon, 16 Jul 2001 15:32:37 GMT
Hi i'm trying to bind an object to "java:comp/env"
using initial context and i get the attached exception
message. I am using tomcat-4.0-b5, Clearly the message
says the context is read-only, how do i change this.
The same code executes fine over resin and jrun.

TIA

Aditya
-------> The Exception <-------
javax.naming.NamingException: Context is read only
        at
org.apache.naming.NamingContext.checkWritable(NamingContext.java:935)
        at
org.apache.naming.NamingContext.bind(NamingContext.java:863)
        at
org.apache.naming.NamingContext.rebind(NamingContext.java:249)
        at
org.apache.naming.NamingContext.rebind(NamingContext.java:264)
        at
org.apache.naming.SelectorContext.rebind(SelectorContext.java:253)
        at
javax.naming.InitialContext.rebind(InitialContext.java:366)
        at
com.casewerks.web.controller.Controller.init(Controller.java:34)
        at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3277)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:641)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:353)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
        at
org.apache.catalina.startup.Catalina.process(Catalina.java:177)
        at java.lang.reflect.Method.invoke(Native
Method)
        at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message