[Seasar-user:7283] COOL deployにするとOgnlRuntimeException

加藤 潤一 [E-MAIL ADDRESS DELETED]
2007年 4月 13日 (金) 19:27:02 JST


加藤です.

お世話になります.

HOT deployでは問題ないのですが,env.txtをproductに変更しCOOL deployにすると以下のようにOgnlRuntimeExceptionが発生してしまいます.
ちなみに,currentUserDtoとLoginInterceptorは,SMART deployの規約に沿ったパッケージに配置しています.

ちょっと,原因がわからないのでアドバイスいただけると幸いです.


2007-04-13 19:07:56,895 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxxxx] - StandardWrapper.Throwable
org.seasar.framework.exception.OgnlRuntimeException: [ESSR0073]OGNLで例外が発生しました。理由は[ESSR0059]クラス(xx.xx.xx.xxxxx.interceptor.LoginInterceptor)のプロパティ(currentUserDto)の設定に失敗しました。理由はjava.lang.NullPointerException: request is null.
        at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:62)
        at org.seasar.framework.container.ognl.OgnlExpression.evaluate(OgnlExpression.java:61)
        at org.seasar.framework.container.impl.ArgDefImpl.getValue(ArgDefImpl.java:50)
        at org.seasar.framework.container.impl.AspectDefImpl.getAspect(AspectDefImpl.java:60)
        at org.seasar.framework.container.util.AopProxyUtil.getAspects(AopProxyUtil.java:53)
        at org.seasar.framework.container.util.AopProxyUtil.getConcreteClass(AopProxyUtil.java:43)
        at org.seasar.framework.container.impl.ComponentDefImpl.getConcreteClass(ComponentDefImpl.java:142)
        at org.seasar.framework.container.impl.ComponentDefImpl.init(ComponentDefImpl.java:298)
        at org.seasar.framework.container.impl.S2ContainerImpl.init(S2ContainerImpl.java:499)
        at org.seasar.framework.container.factory.SingletonS2ContainerFactory.init(SingletonS2ContainerFactory.java:150)
        at org.seasar.framework.container.servlet.SingletonS2ContainerInitializer.initialize(SingletonS2ContainerInitializer.java:50)
        at org.seasar.framework.container.servlet.S2ContainerServlet.initializeContainer(S2ContainerServlet.java:99)
        at org.seasar.framework.container.servlet.S2ContainerServlet.init(S2ContainerServlet.java:92)
        at org.seasar.teeda.core.webapp.TeedaServlet.init(TeedaServlet.java:41)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.seasar.framework.beans.IllegalPropertyRuntimeException: [ESSR0059]クラス(xx.xx.xx.xxxxx.interceptor.LoginInterceptor)のプロパティ(currentUserDto)の設定に失敗しました。理由はjava.lang.NullPointerException: request is null.
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.getValue(AbstractBindingTypeDef.java:218)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bindAuto(AbstractBindingTypeDef.java:165)
        at org.seasar.framework.container.assembler.BindingTypeShouldDef.doBind(BindingTypeShouldDef.java:53)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bind(AbstractBindingTypeDef.java:73)
        at org.seasar.framework.container.assembler.AutoPropertyAssembler.assemble(AutoPropertyAssembler.java:65)
        at org.seasar.framework.container.deployer.PrototypeComponentDeployer.deploy(PrototypeComponentDeployer.java:38)
        at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(ComponentDefImpl.java:98)
        at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:124)
        at org.seasar.framework.container.ognl.S2ContainerPropertyAccessor.getProperty(S2ContainerPropertyAccessor.java:36)
        at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
        at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
        at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
        at ognl.SimpleNode.getValue(SimpleNode.java:210)
        at ognl.Ognl.getValue(Ognl.java:333)
        at ognl.Ognl.getValue(Ognl.java:310)
        at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:54)
        ... 31 more
Caused by: java.lang.NullPointerException: request is null.
        at org.seasar.framework.util.AssertionUtil.assertNotNull(AssertionUtil.java:30)
        at org.seasar.framework.container.external.servlet.HttpSessionMap.<init>(HttpSessionMap.java:39)
        at org.seasar.framework.container.external.servlet.HttpServletExternalContext.getSessionMap(HttpServletExternalContext.java:115)
        at org.seasar.framework.container.deployer.SessionComponentDeployer.deploy(SessionComponentDeployer.java:47)
        at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(ComponentDefImpl.java:98)
        at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:124)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.getValue(AbstractBindingTypeDef.java:216)
        ... 46 more
2007-04-13 19:07:56,900 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxxxx] - サーブレット /xxxxx がload()例外を投げました
org.seasar.framework.exception.OgnlRuntimeException: [ESSR0073]OGNLで例外が発生しました。理由は[ESSR0059]クラス(xx.xx.xx.xxxxx.interceptor.LoginInterceptor)のプロパティ(currentUserDto)の設定に失敗しました。理由はjava.lang.NullPointerException: request is null.
        at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:62)
        at org.seasar.framework.container.ognl.OgnlExpression.evaluate(OgnlExpression.java:61)
        at org.seasar.framework.container.impl.ArgDefImpl.getValue(ArgDefImpl.java:50)
        at org.seasar.framework.container.impl.AspectDefImpl.getAspect(AspectDefImpl.java:60)
        at org.seasar.framework.container.util.AopProxyUtil.getAspects(AopProxyUtil.java:53)
        at org.seasar.framework.container.util.AopProxyUtil.getConcreteClass(AopProxyUtil.java:43)
        at org.seasar.framework.container.impl.ComponentDefImpl.getConcreteClass(ComponentDefImpl.java:142)
        at org.seasar.framework.container.impl.ComponentDefImpl.init(ComponentDefImpl.java:298)
        at org.seasar.framework.container.impl.S2ContainerImpl.init(S2ContainerImpl.java:499)
        at org.seasar.framework.container.factory.SingletonS2ContainerFactory.init(SingletonS2ContainerFactory.java:150)
        at org.seasar.framework.container.servlet.SingletonS2ContainerInitializer.initialize(SingletonS2ContainerInitializer.java:50)
        at org.seasar.framework.container.servlet.S2ContainerServlet.initializeContainer(S2ContainerServlet.java:99)
        at org.seasar.framework.container.servlet.S2ContainerServlet.init(S2ContainerServlet.java:92)
        at org.seasar.teeda.core.webapp.TeedaServlet.init(TeedaServlet.java:41)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.seasar.framework.beans.IllegalPropertyRuntimeException: [ESSR0059]クラス(xx.xx.xx.xxxxx.interceptor.LoginInterceptor)のプロパティ(currentUserDto)の設定に失敗しました。理由はjava.lang.NullPointerException: request is null.
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.getValue(AbstractBindingTypeDef.java:218)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bindAuto(AbstractBindingTypeDef.java:165)
        at org.seasar.framework.container.assembler.BindingTypeShouldDef.doBind(BindingTypeShouldDef.java:53)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bind(AbstractBindingTypeDef.java:73)
        at org.seasar.framework.container.assembler.AutoPropertyAssembler.assemble(AutoPropertyAssembler.java:65)
        at org.seasar.framework.container.deployer.PrototypeComponentDeployer.deploy(PrototypeComponentDeployer.java:38)
        at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(ComponentDefImpl.java:98)
        at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:124)
        at org.seasar.framework.container.ognl.S2ContainerPropertyAccessor.getProperty(S2ContainerPropertyAccessor.java:36)
        at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
        at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
        at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
        at ognl.SimpleNode.getValue(SimpleNode.java:210)
        at ognl.Ognl.getValue(Ognl.java:333)
        at ognl.Ognl.getValue(Ognl.java:310)
        at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:54)
        ... 31 more
Caused by: java.lang.NullPointerException: request is null.
        at org.seasar.framework.util.AssertionUtil.assertNotNull(AssertionUtil.java:30)
        at org.seasar.framework.container.external.servlet.HttpSessionMap.<init>(HttpSessionMap.java:39)
        at org.seasar.framework.container.external.servlet.HttpServletExternalContext.getSessionMap(HttpServletExternalContext.java:115)
        at org.seasar.framework.container.deployer.SessionComponentDeployer.deploy(SessionComponentDeployer.java:47)
        at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(ComponentDefImpl.java:98)
        at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:124)
        at org.seasar.framework.container.assembler.AbstractBindingTypeDef.getValue(AbstractBindingTypeDef.java:216)
        ... 46 more
2007-04-13 19:07:56,932 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxxxx] - StandardWrapper.Throwable
java.lang.IllegalStateException: no factory javax.faces.context.FacesContextFactory configured for this appliction
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:48)
        at javax.faces.internal.WebAppUtil.getFactory(WebAppUtil.java:142)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:67)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-04-13 19:07:56,933 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxxxx] - サーブレット /xxxxx がload()例外を投げました
java.lang.IllegalStateException: no factory javax.faces.context.FacesContextFactory configured for this appliction
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:48)
        at javax.faces.internal.WebAppUtil.getFactory(WebAppUtil.java:142)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:67)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007/04/13 19:07:57 org.apache.coyote.http11.Http11BaseProtocol start
情報: Coyote HTTP/1.1を http-8080 で起動します
2007/04/13 19:07:57 org.apache.jk.common.ChannelSocket init
情報: JK: ajp13 listening on /0.0.0.0:8009
2007/04/13 19:07:57 org.apache.jk.server.JkMain start
情報: Jk running ID=0 time=0/118  config=null
2007/04/13 19:07:57 org.apache.catalina.storeconfig.StoreLoader load
情報: Find registry server-registry.xml at classpath resource
2007/04/13 19:07:57 org.apache.catalina.startup.Catalina start
情報: Server startup in 7751 ms


Seasar-user メーリングリストの案内