[Seasar-user:18277] Re: プロトコルの切替について

Yusuke Ito [E-MAIL ADDRESS DELETED]
2009年 8月 13日 (木) 19:04:23 JST


伊藤です。

> しつこいようですが念のため.
> Eclipse のクラスパスに設定しているだけで
> WEB-INF/lib にない (あるいは古い Jar がある)
> というケースがよくあります.
> 本当に WEB-INF/lib に teeda-tiger の Jar が
> ありますか?
確認しましたが、あります。

> ちなみに,アノテーションの付けられた doLogin() は
> 間違いなく呼び出されているのでしょうか?
> できれば RequestDumpFilter のログを見せてください.
以下、ログです。
ちなみに、Tomcat以外では使用できないなどありますでしょうか?

  Request class=org.apache.coyote.tomcat5.CoyoteRequestFacade,
instance=[E-MAIL ADDRESS DELETED]
  RequestedSessionId=32a64cb1a7f57aeb4a731e16cc3c
  REQUEST_URI=/xxxx/view/top/top.html, SERVLET_PATH=/view/top/top.html
  CharacterEncoding=UTF-8, ContentLength=-1, ContentType=null,
Locale=ja, Locales=ja, Scheme=http, isSecure=false
  SERVER_PROTOCOL=HTTP/1.1, REMOTE_ADDR=127.0.0.1,
REMOTE_HOST=127.0.0.1, SERVER_NAME=localhost, SERVER_PORT=80
  ContextPath=/xxxx, REQUEST_METHOD=GET,
QUERY_STRING=te-uniquekey=123132a80d2, PathInfo=null, RemoteUser=null
  Session SessionId=32a64cb1a7f57aeb4a731e16cc3c
  Session :: CreationTime=1250157028555,
LastAccessedTime=1250157035535, MaxInactiveInterval=3600
  [param]te-uniquekey=123132a80d2
  [request]com.sun.enterprise.http.sessionTracker=[E-MAIL ADDRESS DELETED]
  [request]org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilterCalled=true
  [cookie]JSESSIONID=32a64cb1a7f57aeb4a731e16cc3c
  [header]accept=image/gif, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
  [header]accept-encoding=gzip, deflate
  [header]accept-language=ja
  [header]cache-control=no-cache
  [header]connection=Keep-Alive
  [header]cookie=JSESSIONID=32a64cb1a7f57aeb4a731e16cc3c
  [header]host=localhost
  [header]referer=http://localhost/xxxx/view/
  [header]user-agent=Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET
CLR 3.5.30729; .NET CLR 3.0.30729)
  [session]javax.faces.internal.scope.PageScope={null={org.seasar.teeda.extension.Condition={form:isShowNoticeBorad=true}}}
  [session]javax.faces.internal.scope.RedirectScope={null={javax.faces.internal.scope.RedirectScope=/xxxx/view/top/top.html,
org.seasar.teeda.extension.html.PagePersistence.REDIRECT={}}}
  [session]javax.faces.internal.scope.SubApplicationScope={null={org.seasar.teeda.extension.html.PagePersistence.SUBAPPLICATION={tansNoticeBoardDetailOnclick=null,
title=null, showNoticeBorad=false, date=null,
noticeBoardItems=[[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED]],
tansNoticeBoardDetailHref=null}}}
  [session]javax.faces.request.charset=UTF-8
  [session]loginInfo=[E-MAIL ADDRESS DELETED]
  [session]org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.VIEW_ID_LRU={null=/view/login/login.html}
  [context]com.sun.appserv.jsp.resource.injector=[E-MAIL ADDRESS DELETED]
  [context]com.sun.faces.useMyFaces=true
  [context]com.sun.jsp.propertyGroups=[]
  [context]com.sun.jsp.tagFileJarUrlsCache={}
  [context]com.sun.jsp.taglibraryCache={}
  [context]com.sun.jsp.tldUriToLocationMap={http://java.sun.com/jsf/html=[Ljava.lang.String;@1b6da8b,
http://java.sun.com/jsf/core=[Ljava.lang.String;@1c609b0,
http://www.seasar.org/teeda/extension=[Ljava.lang.String;@a63d31}
  [context]com.sun.servlet.webxml.version=2.3
  [context]javax.servlet.context.tempdir=C:\glassfish\domains\domain1\generated\jsp\j2ee-modules\xxxx
  [context]org.apache.catalina.WELCOME_FILES=[Ljava.lang.String;@1fb844e
  [context]org.apache.catalina.jsp_classpath=/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/classes/;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/aopalliance-1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/commons-collections-3.1.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/commons-el-1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/commons-fileupload-1.2.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/commons-io-1.3.2.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/commons-logging-1.1.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/geronimo-annotation_1.0_spec-1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/geronimo-jpa_3.0_spec-1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/geronimo-jta_1.1_spec-1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/h2-1.0.69.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/javassist-3.4.ga.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/jsonic-1.1.0.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/jstl-1.1.2.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/log4j-1.2.13.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/ognl-2.6.9-patch-20070908.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/ojdbc6.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/poi-3.0-FINAL.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/s2-extension-2.4.34.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/s2-framework-2.4.34.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/s2-tiger-2.4.34.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/svfrclient.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/teeda-ajax-1.0.13-sp6.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/teeda-core-1.0.13-sp6.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/teeda-extension-1.0.13-sp6.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/teeda-tiger-1.0.13-sp6.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/xercesImpl-2.6.2.jar;/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/xxxx/WEB-INF/lib/xmlParserAPIs-2.6.2.jar;C:/glassfish/domains/domain1/generated/ejb/j2ee-modules/xxxx/;/C:/glassfish/domains/domain1/lib/classes/;/C:/glassfish/lib/javaee.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/../lib/tools.jar;/C:/glassfish/lib/install/applications/jmsra/imqjmsra.jar;/C:/glassfish/lib/com-sun-commons-launcher.jar;/C:/glassfish/lib/com-sun-commons-logging.jar;/C:/glassfish/imq/lib/jaxm-api.jar;/C:/glassfish/imq/lib/fscontext.jar;/C:/glassfish/imq/lib/imqbroker.jar;/C:/glassfish/imq/lib/imqjmx.jar;/C:/glassfish/imq/lib/imqxm.jar;/C:/glassfish/lib/webservices-rt.jar;/C:/glassfish/lib/webservices-tools.jar;/C:/glassfish/lib/mail.jar;/C:/glassfish/lib/appserv-jstl.jar;/C:/glassfish/lib/jmxremote_optional.jar;/C:/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar;/C:/glassfish/lib/activation.jar;/C:/glassfish/lib/appserv-rt.jar;/C:/glassfish/lib/appserv-admin.jar;/C:/glassfish/lib/appserv-cmp.jar;/C:/glassfish/updatecenter/lib/updatecenter.jar;/C:/glassfish/jbi/lib/jbi.jar;/C:/glassfish/imq/lib/imqjmx.jar;/C:/glassfish/lib/ant/lib/ant.jar;/C:/glassfish/lib/dbschema.jar;/C:/glassfish/lib/activation.jar;/C:/glassfish/lib/admin-cli-ee.jar;/C:/glassfish/lib/admin-cli.jar;/C:/glassfish/lib/appserv-admin.jar;/C:/glassfish/lib/appserv-cmp.jar;/C:/glassfish/lib/appserv-deployment-client.jar;/C:/glassfish/lib/appserv-ee.jar;/C:/glassfish/lib/appserv-ext.jar;/C:/glassfish/lib/appserv-jstl.jar;/C:/glassfish/lib/appserv-jwsacc.jar;/C:/glassfish/lib/appserv-launch.jar;/C:/glassfish/lib/appserv-rt.jar;/C:/glassfish/lib/appserv-rt_l10n.jar;/C:/glassfish/lib/appserv-se.jar;/C:/glassfish/lib/appserv-tags.jar;/C:/glassfish/lib/appserv-upgrade.jar;/C:/glassfish/lib/appserv-ws.jar;/C:/glassfish/lib/com-sun-commons-launcher.jar;/C:/glassfish/lib/com-sun-commons-logging.jar;/C:/glassfish/lib/dbschema.jar;/C:/glassfish/lib/j2ee-svc.jar;/C:/glassfish/lib/j2ee.jar;/C:/glassfish/lib/javaee.jar;/C:/glassfish/lib/jesmf-plugin.jar;/C:/glassfish/lib/jhall.jar;/C:/glassfish/lib/jmac-api.jar;/C:/glassfish/lib/jmxremote_optional.jar;/C:/glassfish/lib/jsf-impl.jar;/C:/glassfish/lib/jxta.jar;/C:/glassfish/lib/mail.jar;/C:/glassfish/lib/Pack200Task.jar;/C:/glassfish/lib/shoal-gms.jar;/C:/glassfish/lib/sun-appserv-ant.jar;/C:/glassfish/lib/toplink-essentials-agent.jar;/C:/glassfish/lib/toplink-essentials.jar;/C:/glassfish/lib/webservices-rt.jar;/C:/glassfish/lib/webservices-rt_l10n.jar;/C:/glassfish/lib/webservices-tools.jar;/C:/glassfish/lib/webservices-tools_l10n.jar;/C:/glassfish/;/C:/glassfish/lib/jhall.jar;/C:/glassfish/lib/appserv-launch.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/lib/ext/dnsns.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/lib/ext/localedata.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/lib/ext/sunjce_provider.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/lib/ext/sunmscapi.jar;/C:/Program%20Files/Java/jdk1.6.0_13/jre/lib/ext/sunpkcs11.jar;/C:/glassfish/javadb/lib/derby.jar;/C:/glassfish/javadb/lib/derby.war;/C:/glassfish/javadb/lib/derbyclient.jar;/C:/glassfish/javadb/lib/derbyLocale_cs.jar;/C:/glassfish/javadb/lib/derbyLocale_de_DE.jar;/C:/glassfish/javadb/lib/derbyLocale_es.jar;/C:/glassfish/javadb/lib/derbyLocale_fr.jar;/C:/glassfish/javadb/lib/derbyLocale_hu.jar;/C:/glassfish/javadb/lib/derbyLocale_it.jar;/C:/glassfish/javadb/lib/derbyLocale_ja_JP.jar;/C:/glassfish/javadb/lib/derbyLocale_ko_KR.jar;/C:/glassfish/javadb/lib/derbyLocale_pl.jar;/C:/glassfish/javadb/lib/derbyLocale_pt_BR.jar;/C:/glassfish/javadb/lib/derbyLocale_ru.jar;/C:/glassfish/javadb/lib/derbyLocale_zh_CN.jar;/C:/glassfish/javadb/lib/derbyLocale_zh_TW.jar;/C:/glassfish/javadb/lib/derbynet.jar;/C:/glassfish/javadb/lib/derbyrun.jar;/C:/glassfish/javadb/lib/derbytools.jar
  [context]org.apache.catalina.resources=[E-MAIL ADDRESS DELETED]
  [context]org.seasar.teeda.core.config.webapp.element.WebappConfig=[E-MAIL ADDRESS DELETED]


2009/08/13 18:00 に Koichi Kobayashi<[E-MAIL ADDRESS DELETED]> さんは書きました:
> 小林 (koichik) です.
>
> Date:    Thu, 13 Aug 2009 10:27:32 +0900
> From:    Yusuke Ito <[E-MAIL ADDRESS DELETED]>
> To:      [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:18274] Re: プロトコルの切替について
>
>> > 実行環境の WEB-INF/lib に teeda-tiger の Jar は
>> > ありますか?
>> teeda-tiger-1.0.13-sp6.jarを使用しております。
>
> しつこいようですが念のため.
> Eclipse のクラスパスに設定しているだけで
> WEB-INF/lib にない (あるいは古い Jar がある)
> というケースがよくあります.
> 本当に WEB-INF/lib に teeda-tiger の Jar が
> ありますか?
>
>> 最初からHTTPで通信した方が良さそうですね。
>
> HTTP ではなく HTTPS の間違いだと思いますが,
> 普通は,ログイン画面自体が HTTPS になっていないと
> パスワードが暗号化されずにネットを流れるので
> 問題だと思います.
>
>> でも、何故切り替わらないのでしょう??
>
> Teeda HTML Example の適当なページクラスに
> [Seasar-user:18258] と同じ
>
> @Redirect(protocol = ProtocolType.HTTPS)
>
> を指定してみましたが,HTTPS にリダイレクト
> されました.
> # Tomcat に HTTPS の設定をしていないので画面は
> # 表示されませんが.
> アノテーションには問題ありません.
>
> ちなみに,アノテーションの付けられた doLogin() は
> 間違いなく呼び出されているのでしょうか?
> できれば RequestDumpFilter のログを見せてください.
>
>
> --
> <component name="koichik">
>    <property name="fullName">"Koichi Kobayashi"</property>
>    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
>    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
> </component>
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>



-- 
--Yusuke Ito<[E-MAIL ADDRESS DELETED]>


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