我在我的項目中使用庫openid4java。錯誤在openid for java
我曾嘗試使用示例:
http://communitygrids.blogspot.com/2009/12/quick-guide-to-using-googles-openid.html
和
http://crisdev.wordpress.com/2011/03/23/openid4java-login-example/
但始終我收到的時候我試圖通過谷歌或通過者myOpenID登錄下一個錯誤:
SEVERE:Servlet.service()fo [R servlet和jsp拋出異常 java.lang.IllegalArgumentException異常: http://java.sun.com/xml/jaxp/properties/schemaSource在 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:128) 在 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) at org.openid4java.discovery.yadis.Ya disResolver.discover(YadisResolver.java:232) 在 org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166) 在org.openid4java.discovery.Discovery.discover(Discovery.java:147) 在org.openid4java.discovery.Discovery.discover(Discovery.java:129) 在 org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542) 在 org.apache.jsp.WEB_002dINF.jsps.consumer_005fredirect_jsp ._jspService(consumer_005fredirect_jsp.java:108) 在org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:722)在 組織.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.internalDoFilter(ApplicationFilterChain.java:305) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:210) 在 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) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)at org.apache.catalina。 core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at 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) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) 在 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) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)at org.apache.catalina.core.Appl icationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) 在 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) at photoGallery.EnterOpenIdServlet.doGet(EnterOpenIdServlet.java:17) at javax.s ervlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 305) 在 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.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) 在 org.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.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)引起的: java.lang.IllegalArgumentException異常: http://java.sun.com/xml/jaxp/properties/schemaSource在 org.apache.xerces.jaxp .DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:128) 在 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) 在 org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166) 在org.openid4java。 discovery.discovery.discover(Discovery.java:147) at org.openid4java.discovery.Discovery.discover(Discovery.java:129) at org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542) 在 org.apache.jsp.WEB_002dINF.jsps.consumer_005fredirect_jsp._jspService(consumer_005fredirect_jsp.java:108) 在org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 在javax.servlet.http包.HttpServlet.service(HttpServlet.java:722)在 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ...... 28多個
我eclipse下編譯它並在eclipse下運行(在服務器上運行選項),我沒有將war文件部署到tomcat服務器。