プロジェクトで openid4java ライブラリを使用しています。
私は例を使用しようとしました:
http://communitygrids.blogspot.com/2009/12/quick-guide-to-using-googles-openid.html
と
http://crisdev.wordpress.com/2011/03/23/openid4java-login-example/
しかし、Googleまたはmyopenidを介してログインしようとすると、常に次のエラーが発生します。
SEVERE: サーブレット jsp の Servlet.service() が例外 java.lang.IllegalArgumentException をスローしました: http://java.sun.com/xml/jaxp/properties/schemaSource org.openid4java.discovery.xrds.XrdsParserImpl.parseXmlInput(XrdsParserImpl.java:169) で org.openid4java.discovery.xrds.XrdsParserImpl.parseXrds で(XrdsParserImpl.java:50) org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:448) org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:252) org.openid4java. discovery.yadis.YadisResolver.discover(YadisResolver.java:232) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166) at org.openid4java.discovery.Discovery.discover(Discovery.java:147) org.openid4java.discovery.Discovery.discover(Discovery.java:129) で、org.openid4java.consumer.ConsumerManager で。org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) で org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) で org.apache.jasper.consumer_005fredirect_jsp._jspService(consumer_005fredirect_jsp.java:108) .servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java) :390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) で javax.servlet.http.HttpServlet.service(HttpServlet.java:722) で org.apache.catalina.core.ApplicationFilterChain. org.apache.catalina.core の internalDoFilter(ApplicationFilterChain.java:305)。org.apache.catalina.core の ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)。ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471) org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402) org .apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329) で photoGallery.EnterOpenIdServlet.doGet(EnterOpenIdServlet.java:17) で javax.servlet.http.HttpServlet.service(HttpServlet.java:621) で javax. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) の servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) で org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) で org.apache.catalina.core.StandardHostValve .invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) org. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor. java:987) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) で org.apache.tomcat で。util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) で java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 603) java.lang.Thread.run(Thread.java:722) で
org.apache.jasper.JasperException: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaSource org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549) で org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) で org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) で javax.servlet.http.HttpServlet.service(HttpServlet.java:722) で org.apache.catalina. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) の core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471) で org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402) org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329) photoGallery.EnterOpenIdServlet.doGet(EnterOpenIdServlet.java:17) でorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) の javax.servlet.http.HttpServlet.service(HttpServlet.java:722) の .service(HttpServlet.java:621)。 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 169) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) で org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) で org.apache.catalina.valves.AccessLogValve .invoke(AccessLogValve.java:927) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor. java.util.concurrent で java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) で (JIoEndpoint.java:307) を実行します。java.lang.Thread.run(Thread.java:722) での ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 原因: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaSource org.openid4java.discovery.xrds.XrdsParserImpl.parseXmlInput(XrdsParserImpl.java:169) で org.openid4java.discovery.xrds.XrdsParserImpl.parseXrds で(XrdsParserImpl.java:50) org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:448) org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:252) org.openid4java. discovery.yadis.YadisResolver.discover(YadisResolver.java:232) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166) at org.openid4java.discovery.Discovery.discover(Discovery.java:147) org.openid4java.discovery.Discovery.discover(Discovery.java:129) で、org.openid4java.consumer.ConsumerManager で。org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) で org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) で org.apache.jasper.consumer_005fredirect_jsp._jspService(consumer_005fredirect_jsp.java:108) .servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ... 28 もっと見る
私はそれをEclipseでコンパイルし、Eclipseでも実行しています(サーバーオプションで実行)。warファイルをTomcatサーバーにデプロイしていません。