Exception in spring example

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception in spring example

jameswhetstone
Howdy,
 
I'm trying to learn how to integrate with SpringMVC.
 
First I downloaded the shiro-root-1.1.0-srouce-release.zip and unpacked.  
 
mvn --version returns the following:
 
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: C:\apache-maven-3.0.3-bin\apache-maven-3.0.3\bin\..
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_26\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
 
 
So I execute
 
mvn clean compile
mvn jetty:run
 
and I get the following output:
 
[INFO] Configuring Jetty for project: Apache Shiro :: Samples :: Spring
[INFO] Webapp source directory = C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\classes
2011-08-15 12:03:07.312::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /shiro
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
[INFO] Starting jetty 6.1.21 ...
2011-08-15 12:03:07.453::INFO:  jetty-6.1.21
2011-08-15 12:03:07.671::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
2011-08-15 12:03:07.906:/shiro:INFO:  Set web app root system property: 'spring-sample.webapp.root' = [C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp]
2011-08-15 12:03:08.062:/shiro:INFO:  Initializing Spring root WebApplicationContext
2011-08-15 12:03:08,734 INFO [org.apache.shiro.web.mgt.DefaultWebSecurityManager] - native mode - enabling DefaultWebSessionManager (HTTP + heterogeneous-client sessions)
2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] - No authorizationCache instance set.  Checking for a cacheManager...
2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] - CacheManager [org.apache.shiro.cache.ehcache.EhCacheManager@ed262] has been configured.  Building authorization cache named [jdbcRealm.a
uthorizationCache]
2011-08-15 12:03:08,734 TRACE [org.apache.shiro.cache.ehcache.EhCacheManager] - Acquiring EhCache instance named [jdbcRealm.authorizationCache]
2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.cache.ehcache.EhCacheManager] - cacheManager property not set.  Constructing CacheManager instance...
2011-08-15 12:03:08,750 DEBUG [org.apache.shiro.io.ResourceUtils] - Opening resource from class path [org/apache/shiro/cache/ehcache/ehcache.xml]
2011-08-15 12:03:08,875 TRACE [org.apache.shiro.cache.ehcache.EhCacheManager] - instantiated Ehcache CacheManager instance.
2011-08-15 12:03:08,875 DEBUG [org.apache.shiro.cache.ehcache.EhCacheManager] - implicit cacheManager created successfully.
2011-08-15 12:03:08,875 INFO [org.apache.shiro.cache.ehcache.EhCacheManager] - Cache with name 'jdbcRealm.authorizationCache' does not yet exist.  Creating now.
2011-08-15 12:03:08,875 INFO [org.apache.shiro.cache.ehcache.EhCacheManager] - Added EhCache named [jdbcRealm.authorizationCache]
2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered key/value pair: /s/index=authc
2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered key/value pair: /s/shiro.jnlp=authc, user
2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Specified name was null or empty.  Defaulting to the default section (name = "")
2011-08-15 12:03:08,921 TRACE [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter bean 'bootstrapDataPopulator'
2011-08-15 12:03:09,296 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user1.
2011-08-15 12:03:09,296 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user2.
2011-08-15 12:03:09,296 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role1
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role2
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created permission 1 for role 1
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created permission 2 for role 1
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created permission 1 for role 2
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user1 roles role1 and role2
2011-08-15 12:03:09,312 DEBUG [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user2 role role2
2011-08-15 12:03:09,312 TRACE [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter bean 'sampleManager'
2011-08-15 12:03:09,343 TRACE [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter bean 'secureRemoteInvocationExecutor'
2011-08-15 12:03:09,359 DEBUG [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Creating Shiro Filter instance.
2011-08-15 12:03:09,375 TRACE [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login url to applied paths.
2011-08-15 12:03:09,375 TRACE [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login url to applied paths.
2011-08-15 12:03:09,375 DEBUG [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating chain [/s/index] from String definition [authc]
2011-08-15 12:03:09,375 DEBUG [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to apply path [/s/index] to filter [authc] with config [null]
2011-08-15 12:03:09,375 DEBUG [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating chain [/s/shiro.jnlp] from String definition [authc, user]
2011-08-15 12:03:09,375 DEBUG [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to apply path [/s/shiro.jnlp] to filter [authc] with config [null]
2011-08-15 12:03:09,375 DEBUG [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to apply path [/s/shiro.jnlp] to filter [user] with config [null]
2011-08-15 12:03:09,390 TRACE [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login url to applied paths.
2011-08-15 12:03:09.484:/shiro:INFO:  Initializing Spring FrameworkServlet 'remoting'
2011-08-15 12:03:09.484::WARN:  failed remoting: java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
2011-08-15 12:03:09.484:/shiro:INFO:  Initializing Spring FrameworkServlet 'sample'
2011-08-15 12:03:09.484::WARN:  failed sample: java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
2011-08-15 12:03:09.484::WARN:  Failed startup of context [hidden email]}
org.mortbay.util.MultiException[java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX, java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX]
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-08-15 12:03:09.640::INFO:  Opened C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\2011_08_15.request.log
2011-08-15 12:03:09.687::INFO:  Started [hidden email]
[INFO] Started Jetty Server
 
 
Anybody know what's going on here?
 
Thank you!
James
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Exception in spring example

Les Hazlewood
Administrator
Hi James,

I believe there was a bug in the sample application itself (not in
Shiro used by the sample app).  I'd try this sample app against the
current trunk snapshot - it works there.

HTH,

Les

On Mon, Aug 15, 2011 at 12:09 PM, James Whetstone
<[hidden email]> wrote:

> Howdy,
>
> I'm trying to learn how to integrate with SpringMVC.
>
> First I downloaded the shiro-root-1.1.0-srouce-release.zip and unpacked.
>
> mvn --version returns the following:
>
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: C:\apache-maven-3.0.3-bin\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_26\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
>
>
> So I execute
>
> mvn clean compile
> mvn jetty:run
>
> and I get the following output:
>
> [INFO] Configuring Jetty for project: Apache Shiro :: Samples :: Spring
> [INFO] Webapp source directory =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
> [INFO] Reload Mechanic: automatic
> [INFO] Classes =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\classes
> 2011-08-15 12:03:07.312::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog
> [INFO] Context path = /shiro
> [INFO] Tmp directory =  determined at runtime
> [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
> [INFO] Web overrides =  none
> [INFO] web.xml file =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp\WEB-INF\web.xml
> [INFO] Webapp directory =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
> [INFO] Starting jetty 6.1.21 ...
> 2011-08-15 12:03:07.453::INFO:  jetty-6.1.21
> 2011-08-15 12:03:07.671::INFO:  No Transaction manager found - if your
> webapp requires one, please configure one.
> 2011-08-15 12:03:07.906:/shiro:INFO:  Set web app root system property:
> 'spring-sample.webapp.root' =
> [C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp]
> 2011-08-15 12:03:08.062:/shiro:INFO:  Initializing Spring root
> WebApplicationContext
> 2011-08-15 12:03:08,734 INFO
> [org.apache.shiro.web.mgt.DefaultWebSecurityManager] - native mode -
> enabling DefaultWebSessionManager (HTTP + heterogeneous-client sessions)
> 2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] - No
> authorizationCache instance set.  Checking for a cacheManager...
> 2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] -
> CacheManager [org.apache.shiro.cache.ehcache.EhCacheManager@ed262] has been
> configured.  Building authorization cache named [jdbcRealm.a
> uthorizationCache]
> 2011-08-15 12:03:08,734 TRACE
> [org.apache.shiro.cache.ehcache.EhCacheManager] - Acquiring EhCache instance
> named [jdbcRealm.authorizationCache]
> 2011-08-15 12:03:08,734 DEBUG
> [org.apache.shiro.cache.ehcache.EhCacheManager] - cacheManager property not
> set.  Constructing CacheManager instance...
> 2011-08-15 12:03:08,750 DEBUG [org.apache.shiro.io.ResourceUtils] - Opening
> resource from class path [org/apache/shiro/cache/ehcache/ehcache.xml]
> 2011-08-15 12:03:08,875 TRACE
> [org.apache.shiro.cache.ehcache.EhCacheManager] - instantiated Ehcache
> CacheManager instance.
> 2011-08-15 12:03:08,875 DEBUG
> [org.apache.shiro.cache.ehcache.EhCacheManager] - implicit cacheManager
> created successfully.
> 2011-08-15 12:03:08,875 INFO [org.apache.shiro.cache.ehcache.EhCacheManager]
> - Cache with name 'jdbcRealm.authorizationCache' does not yet exist.
> Creating now.
> 2011-08-15 12:03:08,875 INFO [org.apache.shiro.cache.ehcache.EhCacheManager]
> - Added EhCache named [jdbcRealm.authorizationCache]
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered
> key/value pair: /s/index=authc
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered
> key/value pair: /s/shiro.jnlp=authc, user
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Specified name
> was null or empty.  Defaulting to the default section (name = "")
> 2011-08-15 12:03:08,921 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'bootstrapDataPopulator'
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user1.
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user2.
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 1 for role 1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 2 for role 1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 1 for role 2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user1
> roles role1 and role2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user2
> role role2
> 2011-08-15 12:03:09,312 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'sampleManager'
> 2011-08-15 12:03:09,343 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'secureRemoteInvocationExecutor'
> 2011-08-15 12:03:09,359 DEBUG
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Creating Shiro Filter
> instance.
> 2011-08-15 12:03:09,375 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login
> url to applied paths.
> 2011-08-15 12:03:09,375 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login
> url to applied paths.
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating chain
> [/s/index] from String definition [authc]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to
> apply path [/s/index] to filter [authc] with config [null]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating chain
> [/s/shiro.jnlp] from String definition [authc, user]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to
> apply path [/s/shiro.jnlp] to filter [authc] with config [null]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting to
> apply path [/s/shiro.jnlp] to filter [user] with config [null]
> 2011-08-15 12:03:09,390 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding login
> url to applied paths.
> 2011-08-15 12:03:09.484:/shiro:INFO:  Initializing Spring FrameworkServlet
> 'remoting'
> 2011-08-15 12:03:09.484::WARN:  failed remoting: java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX
> 2011-08-15 12:03:09.484:/shiro:INFO:  Initializing Spring FrameworkServlet
> 'sample'
> 2011-08-15 12:03:09.484::WARN:  failed sample: java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX
> 2011-08-15 12:03:09.484::WARN:  Failed startup of context
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1767553{/shiro,C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp}
> org.mortbay.util.MultiException[java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX, java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX]
>         at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>         at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>         at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>         at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
>         at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
>         at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
>         at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>         at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
>         at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>         at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>         at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>         at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
>         at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
>         at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
>         at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>         at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
>         at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>         at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>         at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>         at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
>         at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
>         at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
>         at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>         at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
>         at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>         at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>         at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>         at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
>         at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
>         at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
>         at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
>         at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>         at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
>         at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>         at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>         at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>         at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>         at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> 2011-08-15 12:03:09.640::INFO:  Opened
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\2011_08_15.request.log
> 2011-08-15 12:03:09.687::INFO:  Started SelectChannelConnector@0.0.0.0:9080
> [INFO] Started Jetty Server
>
>
> Anybody know what's going on here?
>
> Thank you!
> James
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Exception in spring example

jameswhetstone
Thank you!  I should have done that earlier.  Works great.


----- Original Message -----
From: "Les Hazlewood" <[hidden email]>
To: <[hidden email]>
Sent: Monday, August 15, 2011 3:19 PM
Subject: Re: Exception in spring example


Hi James,

I believe there was a bug in the sample application itself (not in
Shiro used by the sample app).  I'd try this sample app against the
current trunk snapshot - it works there.

HTH,

Les

On Mon, Aug 15, 2011 at 12:09 PM, James Whetstone
<[hidden email]> wrote:

> Howdy,
>
> I'm trying to learn how to integrate with SpringMVC.
>
> First I downloaded the shiro-root-1.1.0-srouce-release.zip and unpacked.
>
> mvn --version returns the following:
>
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: C:\apache-maven-3.0.3-bin\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_26\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
>
>
> So I execute
>
> mvn clean compile
> mvn jetty:run
>
> and I get the following output:
>
> [INFO] Configuring Jetty for project: Apache Shiro :: Samples :: Spring
> [INFO] Webapp source directory =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
> [INFO] Reload Mechanic: automatic
> [INFO] Classes =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\classes
> 2011-08-15 12:03:07.312::INFO: Logging to STDERR via
> org.mortbay.log.StdErrLog
> [INFO] Context path = /shiro
> [INFO] Tmp directory = determined at runtime
> [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
> [INFO] Web overrides = none
> [INFO] web.xml file =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp\WEB-INF\web.xml
> [INFO] Webapp directory =
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp
> [INFO] Starting jetty 6.1.21 ...
> 2011-08-15 12:03:07.453::INFO: jetty-6.1.21
> 2011-08-15 12:03:07.671::INFO: No Transaction manager found - if your
> webapp requires one, please configure one.
> 2011-08-15 12:03:07.906:/shiro:INFO: Set web app root system property:
> 'spring-sample.webapp.root' =
> [C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp]
> 2011-08-15 12:03:08.062:/shiro:INFO: Initializing Spring root
> WebApplicationContext
> 2011-08-15 12:03:08,734 INFO
> [org.apache.shiro.web.mgt.DefaultWebSecurityManager] - native mode -
> enabling DefaultWebSessionManager (HTTP + heterogeneous-client sessions)
> 2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] -
> No
> authorizationCache instance set. Checking for a cacheManager...
> 2011-08-15 12:03:08,734 DEBUG [org.apache.shiro.realm.AuthorizingRealm] -
> CacheManager [org.apache.shiro.cache.ehcache.EhCacheManager@ed262] has
> been
> configured. Building authorization cache named [jdbcRealm.a
> uthorizationCache]
> 2011-08-15 12:03:08,734 TRACE
> [org.apache.shiro.cache.ehcache.EhCacheManager] - Acquiring EhCache
> instance
> named [jdbcRealm.authorizationCache]
> 2011-08-15 12:03:08,734 DEBUG
> [org.apache.shiro.cache.ehcache.EhCacheManager] - cacheManager property
> not
> set. Constructing CacheManager instance...
> 2011-08-15 12:03:08,750 DEBUG [org.apache.shiro.io.ResourceUtils] -
> Opening
> resource from class path [org/apache/shiro/cache/ehcache/ehcache.xml]
> 2011-08-15 12:03:08,875 TRACE
> [org.apache.shiro.cache.ehcache.EhCacheManager] - instantiated Ehcache
> CacheManager instance.
> 2011-08-15 12:03:08,875 DEBUG
> [org.apache.shiro.cache.ehcache.EhCacheManager] - implicit cacheManager
> created successfully.
> 2011-08-15 12:03:08,875 INFO
> [org.apache.shiro.cache.ehcache.EhCacheManager]
> - Cache with name 'jdbcRealm.authorizationCache' does not yet exist.
> Creating now.
> 2011-08-15 12:03:08,875 INFO
> [org.apache.shiro.cache.ehcache.EhCacheManager]
> - Added EhCache named [jdbcRealm.authorizationCache]
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered
> key/value pair: /s/index=authc
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Discovered
> key/value pair: /s/shiro.jnlp=authc, user
> 2011-08-15 12:03:08,890 TRACE [org.apache.shiro.config.Ini] - Specified
> name
> was null or empty. Defaulting to the default section (name = "")
> 2011-08-15 12:03:08,921 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'bootstrapDataPopulator'
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user1.
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created user2.
> 2011-08-15 12:03:09,296 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created role2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 1 for role 1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 2 for role 1
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Created
> permission 1 for role 2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user1
> roles role1 and role2
> 2011-08-15 12:03:09,312 DEBUG
> [org.apache.shiro.samples.spring.BootstrapDataPopulator] - Assigned user2
> role role2
> 2011-08-15 12:03:09,312 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'sampleManager'
> 2011-08-15 12:03:09,343 TRACE
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Ignoring non-Filter
> bean 'secureRemoteInvocationExecutor'
> 2011-08-15 12:03:09,359 DEBUG
> [org.apache.shiro.spring.web.ShiroFilterFactoryBean] - Creating Shiro
> Filter
> instance.
> 2011-08-15 12:03:09,375 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding
> login
> url to applied paths.
> 2011-08-15 12:03:09,375 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding
> login
> url to applied paths.
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating
> chain
> [/s/index] from String definition [authc]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting
> to
> apply path [/s/index] to filter [authc] with config [null]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Creating
> chain
> [/s/shiro.jnlp] from String definition [authc, user]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting
> to
> apply path [/s/shiro.jnlp] to filter [authc] with config [null]
> 2011-08-15 12:03:09,375 DEBUG
> [org.apache.shiro.web.filter.mgt.DefaultFilterChainManager] - Attempting
> to
> apply path [/s/shiro.jnlp] to filter [user] with config [null]
> 2011-08-15 12:03:09,390 TRACE
> [org.apache.shiro.web.filter.authc.FormAuthenticationFilter] - Adding
> login
> url to applied paths.
> 2011-08-15 12:03:09.484:/shiro:INFO: Initializing Spring FrameworkServlet
> 'remoting'
> 2011-08-15 12:03:09.484::WARN: failed remoting:
> java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX
> 2011-08-15 12:03:09.484:/shiro:INFO: Initializing Spring FrameworkServlet
> 'sample'
> 2011-08-15 12:03:09.484::WARN: failed sample: java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX
> 2011-08-15 12:03:09.484::WARN: Failed startup of context
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1767553{/shiro,C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\src\main\webapp}
> org.mortbay.util.MultiException[java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX, java.lang.NoSuchFieldError:
> APPLICATION_CONTEXT_ID_PREFIX]
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
> at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
> at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
> at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
> at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
> at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
> at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
> at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
> at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
> at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
> at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
> at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
> at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
> at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
> at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
> at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
> at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> 2011-08-15 12:03:09.640::INFO: Opened
> C:\shiro-root-1.1.0-source-release\shiro-root-1.1.0\samples\spring\target\2011_08_15.request.log
> 2011-08-15 12:03:09.687::INFO: Started SelectChannelConnector@0.0.0.0:9080
> [INFO] Started Jetty Server
>
>
> Anybody know what's going on here?
>
> Thank you!
> James
>
>