#10 Config lookup fails gracelessly in TC 5.5

closed-fixed
nobody
5
2009-01-29
2009-01-29
Jim Downing
No

If workspace config isn't done in JNDI, TC5.5 throws an exception rather than returning null (as 5.0.xx did). NameNotFoundException needs to be handled specifically

0 [Thread-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spectra] - Exception sending context initialized event to listener instance of class uk.ac.cam.spectra.spectrasub.servlet.ConfigurationListener
java.lang.RuntimeException: javax.naming.NameNotFoundException: Name workspace is not bound in thisContext
at uk.ac.cam.spectra.spectrasub.servlet.ConfigurationListener.jndiLookup(ConfigurationListener.java:51)
at uk.ac.cam.spectra.spectrasub.servlet.ConfigurationListener.contextInitialized(ConfigurationListener.java:30)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.naming.NameNotFoundException: Name workspace is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(Unknown Source)
at uk.ac.cam.spectra.spectrasub.servlet.ConfigurationListener.jndiLookup(ConfigurationListener.java:43)
... 25 more
31 [Thread-1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
31 [Thread-1] INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spectra] - Loading Spring root WebApplicationContext

Discussion

  • Jim Downing
    Jim Downing
    2009-01-29

    Fixed in revision 324

     
  • Jim Downing
    Jim Downing
    2009-01-29

    • status: open --> closed-fixed