つっこみSSP


シーサーサンプルプロジェクト(SSP)のサブページ
SSPのソースについて良く分からない、ここはどういう意図でこういうソースなのかなどの突っ込みを入れてみようというコーナーです。
ソースを貼り付けてコメントしたり、ご自由にどうぞ。

初心者の質問ですが、お答え願えますか?

tanitani? (2005-09-26 00:49:33 (月))

Java関係の勉強を始めようと思い、最近始めたものです。
Seaserなら、いろいろとメリットがあると考え、サンプルにKazuyaさんのssp_kazuya_20040831を動かしてみようと思ったのですが、Tomcatを動かすと以下のようなエラーになってしまいます。
ログを見ても原因を追究する力もなく、すがる思いでここに投稿させていただきました。

2005/09/25 19:46:58 org.apache.catalina.core.StandardPipeline? registerValve
情報: Can't register valve org.apache.catalina.core.StandardContextValve?@6833f2
org.apache.commons.logging.LogConfigurationException?: org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger) (Caused by org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger))

	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
	at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
	at org.apache.catalina.valves.ValveBase.createObjectName(ValveBase.java:242)
	at org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:296)
	at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:233)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4045)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	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:683)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	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:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Caused by: org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger)

	at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
	... 20 more

Caused by: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger

	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
	at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
	... 21 more

java.lang.reflect.InvocationTargetException?

	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:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Caused by: java.lang.ExceptionInInitializerError?

	at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4172)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4049)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	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:683)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	... 6 more

Caused by: org.apache.commons.logging.LogConfigurationException?: org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger) (Caused by org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger))

	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
	at org.apache.catalina.startup.TldConfig.<clinit>(TldConfig.java:66)
	... 15 more

Caused by: org.apache.commons.logging.LogConfigurationException?: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger)

	at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
	... 19 more

Caused by: java.lang.ClassNotFoundException?: org.apache.commons.logging.impl.Log4JLogger

	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
	at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
	... 20 more


環境は以下のとおりです。
Eclipse3.0
Tomcat5
S2プロダクトは以下のものをインポートしています。
s2-axis
s2dao
s2jsf
s2-remoting
s2struts
seaser2
大変お手数ですが、よろしくお願いいたします。

ssp_kazuya_20040831.zipのapp.dicon

shot? (2004-09-03 (金) 00:57:42)

Kazuyaさんのssp_kazuya_20040831.zipのapp.diconで
component属性が無いので、DTDに怒られてる気がするのですが・・・
(何か間違ってたらすみません(^^;))

[ssp_kazuya_20040831.zip] diconファイルのエンコード

kazuya? (2004-09-01 (水) 08:44:44)

diconファイルが実際には UTF-8 なのに

?xml version="1.0" encoding="Shift_JIS"?>
と、Shift_JIS で宣言してました。m(_ _)m