问题描述
哪位大神把springoauth2sparklr2和tonr2的例子在自己的eclipse中配置成功并成功运行了啊?求指教啊都整了一天了,各种奇葩错误。。。2012-11-2816:22:46org.apache.catalina.core.StandardContextfilterStart严重:ExceptionstartingfilterspringSecurityFilterChainjava.lang.ClassNotFoundException:org.springframework.web.filter.DelegatingFilterProxyatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4726)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)atorg.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:616)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2012-11-2816:22:46org.apache.catalina.core.StandardContextstart
解决方案
解决方案二:
就木有人吗
解决方案三:
我还在学习oauth1,网上下了sparklr和tonr例子,运行也没问题,但是没看懂。这个地方跳转<ahref="<c:urlvalue="/sparklr/photos.jsp"/>"class="selected">sparklrpics</a>在xml里面对应的是:<beanid="urlMapping"class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"><propertyname="mappings"><props><propkey="/sparklr/photos.jsp">sparklrController</prop><propkey="/sparklr/photo/*">photoController</prop></props></property><propertyname="alwaysUseFullPath"value="true"/></bean><beanid="sparklrController"class="org.springframework.security.oauth.examples.tonr.mvc.SparklrController"><propertyname="sparklrService"ref="sparklrService"/></bean>按道理说应该跳到SparklrController里面了,但是debug却不是这样。。。实际跳转到了http://localhost:8080/sparklr/oauth/confirm_access?oauth_token=8c1c73fe-3c88-4557-8b17-f785956e8d7e不知道如何跳到这个url的,目前相当郁闷。。。
解决方案四:
classNotFoundException,类没找着异常!
解决方案五:
查查springweb的jar包少了哪些
解决方案六:
关键字:marven
解决方案七:
运行成功没有,求分享!!
解决方案八:
额,sparklr2跟tonr2我跑起来了。