[Seasar-user:4142] Re: [S2Struts] jarからの無設定Struts環境の構築

Katsuhiko Nagashima [E-MAIL ADDRESS DELETED]
2006年 7月 20日 (木) 22:48:51 JST


永島です。

enableJar=trueとしたときに読み込むjarファイル名を正規表現で
指定するように修正しました。

以下のように、jarFilePatternに読み込むjarファイル名を指定してください。
<plug-in className="org.seasar.struts.plugin.AutoStrutsConfigRegisterPlugIn">
    <set-property property="enableJar" value="true"/>
    <set-property property="jarFilePattern" value="^myApplication.*\.jar$"/>
</plug-in>

https://www.seasar.org/svn/s2struts/branches/s2struts-1.2.3-branch/
にコミット済みです。次回リリースに反映されます。

よろしくお願いします。


06/07/19 に Katsuhiko Nagashima<[E-MAIL ADDRESS DELETED]> さんは書きました:
> 永島です。
>
> ご指摘ありがとうございます。
>
> 修正方法を検討中です。
> 修正が完了しましたら、別途メールします。
> ご迷惑をおかけしますが、よろしくお願いします。
>
> 06/07/18 に 内田 淳一<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > 内田と申します。
> >
> > Tomcat5.0.28
> > S2Struts1.2.3
> > Struts1.2.9
> > Java1.4.10
> > 環境において、無設定Strutsを使用しております。
> >
> > 開発環境においては、普通に動作するのですが、
> > 下記の設定を使用した場合、例外が発生します。
> >
> > <plug-in className="org.seasar.struts.plugin.AutoStrutsConfigRegisterPlugIn">
> >   <set-property property="enableJar" value="true"/>
> > </plug-in>
> >
> > 最終的には、開発したクラスはjarファイルにして使用するので、
> > 上記の設定を使用したのですが、エラーが発生します。
> > エラーは次の通りです。
> >
> > 2006-07-18 10:50:40,229 ERROR [main] org.apache.struts.action.ActionServlet (ActionServlet.java:364)
> > - Unable to initial
> > ize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as
> > unavailable.  Most li
> > kely, this is due to an incorrect or missing library dependency.
> > java.lang.IncompatibleClassChangeError: Implementing class
> >         at java.lang.ClassLoader.defineClass0(Native Method)
> >         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> >         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> >         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> >         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> >         at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:485)
> >         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:820)
> >         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
> >         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:803)
> >         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
> >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:219)
> >         at org.seasar.framework.util.ClassUtil.forName(ClassUtil.java:71)
> >         at org.seasar.struts.util.ClassFinderImpl.forResourceName(ClassFinderImpl.java:180)
> >         at org.seasar.struts.util.ClassFinderImpl.loadFromJar(ClassFinderImpl.java:134)
> >         at org.seasar.struts.util.ClassFinderImpl.loadAllClass(ClassFinderImpl.java:120)
> >         at org.seasar.struts.util.ClassFinderImpl.find(ClassFinderImpl.java:87)
> >         at org.seasar.struts.util.ClassFinderImpl.find(ClassFinderImpl.java:106)
> >         at org.seasar.struts.util.ClassFinderImpl.find(ClassFinderImpl.java:95)
> >         at jp.UchidaPlugIn.init(UchidaPlugIn.java:35)
> >         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
> >         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
> >         at org.seasar.struts.servlet.S2ActionServlet.init(S2ActionServlet.java:61)
> >         at javax.servlet.GenericServlet.init(GenericServlet.java:168)
> >         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
> >         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
> >         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
> >         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
> >         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
> >         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> >         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> >         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
> >         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:324)
> >         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> >         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
> >         at org.apache.commons.digester.Rule.end(Rule.java:276)
> >         at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
> >         at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
> >         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> >         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> >         at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> >         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> >         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> >         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
> >         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
> >         at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> >         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
> >         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
> >         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
> >         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
> >         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
> >         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> >         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> >         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> >         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
> >         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> >         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> >         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:324)
> >         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> >         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> > javax.servlet.UnavailableException: Implementing class
> >         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
> >         at org.seasar.struts.servlet.S2ActionServlet.init(S2ActionServlet.java:61)
> >         at javax.servlet.GenericServlet.init(GenericServlet.java:168)
> >         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
> >         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
> >         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
> >         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
> >         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
> >         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> >         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> >         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
> >         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:324)
> >         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> >         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
> >         at org.apache.commons.digester.Rule.end(Rule.java:276)
> >         at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
> >         at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
> >         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> >         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> >         at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> >         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> >         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> >         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
> >         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
> >         at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> >         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
> >         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
> >         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
> >         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
> >         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
> >         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> >         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> >         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> >         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
> >         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> >         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> >         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:324)
> >         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> >         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> >
> > エラーから、Commons Launcherのライブラリがないと思ったのですが、
> > commons-launcher.jarを配備しても、上記のエラーがなくなりません。
> >
> > お忙しいところを申し訳ありませんが、
> > ご回答をいただきたく思います。
> > 以上です。
> >
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://www.seasar.org/mailman/listinfo/seasar-user
> >
>
>
> --
> Katsuhiko Nagashima
>


-- 
Katsuhiko Nagashima



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