SecurityException: Signer information does not match signer information of other classes

2,873 views
Skip to first unread message

Christian

unread,
Feb 15, 2013, 2:26:49 PM2/15/13
to lif...@googlegroups.com
hi!
switching to squeryl-record unfortunaltely created some dependency problems. I'm getting this Exception when running "RunWebApp":

Exception in thread "main" java.lang.SecurityException: class "javax.servlet.FilterRegistration"'s signer information does not match signer information of other classes in the same package

These are my dependencies in build.sbt:

    "net.liftweb"               %% "lift-webkit"              % liftVersion                   % "compile",
    "net.liftmodules"           %% "textile"                  % "2.5-SNAPSHOT-1.1-SNAPSHOT"   % "compile",
    "net.liftweb"               %% "lift-squeryl-record"      % liftVersion                   % "compile",
    "net.liftmodules"           %% "lift-jquery-module"       % (liftVersion + "-1.0"),
    "com.jolbox"                % "bonecp"                    % "0.7.1.RELEASE",
    "org.eclipse.jetty"         % "jetty-webapp"              % "8.1.7.v20120910"             % "container,test",
    "org.eclipse.jetty.orbit"   % "javax.servlet"             % "3.0.0.v201112011016"         % "container,test" artifacts Artifact("javax.servlet", "jar", "jar"),
    "org.specs2"                %% "specs2"                   % "1.12.1"                      % "test",
    "javax.servlet"             % "servlet-api"               % "2.4"                         % "provided",
    "mysql"                     % "mysql-connector-java"      % "5.1.+",
    "eu.getintheloop"           %% "lift-shiro"               % "0.0.5",
    "commons-collections"       % "commons-collections"       % "3.0"

Some research showed that this might be caused by two conflicting versions. After trying for a few hours without a result, I thought I might get some hints here.

David Whittaker

unread,
Feb 15, 2013, 2:39:41 PM2/15/13
to liftweb
Hi Christian,

What is the value of liftVersion?  What version of Scala?  I wonder if this is related to https://groups.google.com/d/topic/liftweb/--YVOew4t1M/discussion


--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Christian

unread,
Feb 15, 2013, 2:44:53 PM2/15/13
to lif...@googlegroups.com
Scala version is 2.9.1. For some reason I can't open that discussion, getting some error all the time.

David Pollak

unread,
Feb 15, 2013, 2:49:23 PM2/15/13
to lif...@googlegroups.com
Please try deleting your ~/.ivy directory and all the target project/target project/project/target directories and try again.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net

Christian

unread,
Feb 15, 2013, 3:14:23 PM2/15/13
to lif...@googlegroups.com
Now I get these errors on top of the old problem, I'm not sure if they are related to the problem:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation

Christian

unread,
Feb 15, 2013, 3:22:43 PM2/15/13
to lif...@googlegroups.com
Ok that logger error was because I removed a dependency for testing purposes, that is now fixed, the main problem still exists.

David Whittaker

unread,
Feb 15, 2013, 5:45:36 PM2/15/13
to liftweb

Hmm... from the error, I would think the issue is related to how you're referencing Jetty. I don't have a project set up with Jetty 8 myself, but try removing these

    "org.eclipse.jetty"         % "jetty-webapp"              % "8.1.7.v20120910"             % "container,test",
    "org.eclipse.jetty.orbit"   % "javax.servlet"             % "3.0.0.v201112011016"         % "container,test" artifacts Artifact("javax.servlet", "jar", "jar")

And replace them with

"org.eclipse.jetty.aggregate" % "jetty-all" % "7.6.0.v20120127" % "container"

If that doesn't fix it, post it to github and I'll take a look.

Christian

unread,
Feb 15, 2013, 8:12:10 PM2/15/13
to lif...@googlegroups.com
When I run it from sbt I get a different error than running "RunWebApp" in Eclipse. Here is the full stacktrace:

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.apache.commons.beanutils.BeanUtils.<clinit>(BeanUtils.java:111)
        at org.apache.shiro.config.ReflectionBuilder.setProperty(ReflectionBuilder.java:440)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:397)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:508)
        at org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:203)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:164)
        at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:124)
        at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170)
        at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:119)
        at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:97)
        at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:83)
        at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:41)
        at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
        at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)
        at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203)
        at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99)
        at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92)
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:226)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:138)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:277)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.github.siasia.Jetty7Runner.start(JettyRunner.scala:95)
        at com.github.siasia.Container$$anonfun$containerSettings$7.apply(Container.scala:65)
        at com.github.siasia.Container$$anonfun$containerSettings$7.apply(Container.scala:59)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:583)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:583)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
        at sbt.std.Transform$$anon$5.work(System.scala:71)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:238)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.commons.beanutils.BeanUtils.<clinit>(BeanUtils.java:111)
        at org.apache.shiro.config.ReflectionBuilder.setProperty(ReflectionBuilder.java:440)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:397)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:508)
        at org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:203)
        at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:164)
        at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:124)
        at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170)
        at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:119)
        at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:97)
        at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:83)
        at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:41)
        at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
        at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)
        at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203)
        at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99)
        at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92)
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:226)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:138)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:277)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.github.siasia.Jetty7Runner.start(JettyRunner.scala:95)
        at com.github.siasia.Container$$anonfun$containerSettings$7.apply(Container.scala:65)
        at com.github.siasia.Container$$anonfun$containerSettings$7.apply(Container.scala:59)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:583)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:583)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
        at sbt.std.Transform$$anon$5.work(System.scala:71)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:238)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[error] (container:start) java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Seems like lift-shiro is missing a dependency, but even if I add commons-logging, the error persists. I try to get a small sample app going. I don't want to post the entire thing.

Christian

unread,
Feb 16, 2013, 8:19:11 AM2/16/13
to lif...@googlegroups.com
Ok, I think I was finally able to fix this by simply using lift-shiro 0.0.6 instead of 0.0.5. No clue why this is a issue, but it works now. Dependencies can be a real pain sometimes.
Reply all
Reply to author
Forward
0 new messages