From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

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

From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

gilbertoca
Hi everyone,

I'm on 1.4.0-RC2 version. Today I've changed to 1.4.0, but the app doesn't start throwing the exception ClassNotFoundException:

[INFO] Started Ejb(deployment-id=JasperReportsService, ejb-name=JasperReportsService, container=Default Stateless Container)
[INFO] using context file /home/gilberto.andrade/tmp/gace/target/gace/META-INF/context.xml
[INFO] Deployed Application(path=/home/gilberto.andrade/tmp/gace/target/gace)
jun 09, 2017 1:03:43 PM org.omnifaces.ApplicationInitializer logOmniFacesVersion
INFORMAÇÕES: Using OmniFaces version 2.2
[INFO] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO] Initializing Shiro environment
13:03 [main] INFO   o.a.shiro.web.env.EnvironmentLoader.initEnvironment 133  - Starting Shiro environment initialization.
13:03 [main] ERROR  o.a.shiro.web.env.EnvironmentLoader.initEnvironment 156  - Shiro environment initialization failed
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector
        at org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:64)
        at org.apache.shiro.web.config.WebIniSecurityManagerFactory.<init>(WebIniSecurityManagerFactory.java:45)
        at org.apache.shiro.web.env.IniWebEnvironment.<init>(IniWebEnvironment.java:60)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:181)
        at org.apache.shiro.web.env.EnvironmentLoader.determineWebEnvironment(EnvironmentLoader.java:265)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:287)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:139)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:651)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:591)
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:47)
        at org.apache.tomee.embedded.Container.deploy(Container.java:883)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.doDeploy(TomEEEmbeddedMojo.java:529)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.execute(TomEEEmbeddedMojo.java:445)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.BeanIntrospector
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
        at org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:204)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
        ... 47 common frames omitted
[ERROR] Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector
        at org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:64)
        at org.apache.shiro.web.config.WebIniSecurityManagerFactory.<init>(WebIniSecurityManagerFactory.java:45)
        at org.apache.shiro.web.env.IniWebEnvironment.<init>(IniWebEnvironment.java:60)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:181)
        at org.apache.shiro.web.env.EnvironmentLoader.determineWebEnvironment(EnvironmentLoader.java:265)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:287)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:139)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:651)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:591)
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:47)
        at org.apache.tomee.embedded.Container.deploy(Container.java:883)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.doDeploy(TomEEEmbeddedMojo.java:529)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.execute(TomEEEmbeddedMojo.java:445)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.BeanIntrospector
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
        at org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:204)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
        ... 47 more
jun 09, 2017 1:03:44 PM com.sun.faces.config.ConfigureListener contextInitialized
INFORMAÇÕES: Inicializando Mojarra 2.2.13 ( 20160203-1910 unable to get svn info) para o contexto '/gace'
jun 09, 2017 1:03:45 PM com.sun.faces.application.annotation.ConverterConfigHandler collect
ADVERTÊNCIA: @FacesConverter is using both value and forClass, only value will be applied.
jun 09, 2017 1:03:45 PM com.sun.faces.application.annotation.ConverterConfigHandler collect
ADVERTÊNCIA: @FacesConverter is using both value and forClass, only value will be applied.
jun 09, 2017 1:03:46 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
INFORMAÇÕES: Monitoring file:/home/gilberto.andrade/tmp/gace/target/gace/WEB-INF/faces-config.xml for modifications
jun 09, 2017 1:03:46 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFORMAÇÕES: Running on PrimeFaces 6.0
[ERROR] One or more listeners failed to start. Full details will be found in the appropriate container log file
[ERROR] Context [/gace] startup failed due to previous errors
[INFO] Cleaning up Shiro Environment
[INFO] Undeploying app: /home/gilberto.andrade/tmp/gace/target/gace
[INFO] Closing DataSource: gace/gaceDS
[WARNING] The web application [gace] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[ERROR] Can't find of appInfo for /home/gilberto.andrade/tmp/gace/target/gace, availables: []
[INFO] TomEE embedded started on localhost:8080


I have not change anything on my part.
I could no find anything different in the issues with tag 1.4.0 as well.
Regard,
Gilberto
Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

Brian Demers
Which version of BeanUtils are you using?

On Fri, Jun 9, 2017 at 12:12 PM, gilbertoca <[hidden email]> wrote:
Hi everyone,

I'm on 1.4.0-RC2 version. Today I've changed to 1.4.0, but the app doesn't
start throwing the exception ClassNotFoundException:



I have not change anything on my part.
I could no find anything different in the issues with tag 1.4.0 as well.
Regard,
Gilberto



--
View this message in context: http://shiro-user.582556.n2.nabble.com/From-1-4-0-RC2-to-1-4-0-java-lang-NoClassDefFoundError-org-apache-commons-beanutils-BeanIntrospector-tp7581637.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

gilbertoca
1.8.0

[INFO] +- org.apache.shiro:shiro-core:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-lang:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-cache:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-crypto-hash:jar:1.4.0:compile
[INFO] |  |  \- org.apache.shiro:shiro-crypto-core:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-crypto-cipher:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-config-core:jar:1.4.0:compile
[INFO] |  +- org.apache.shiro:shiro-config-ogdl:jar:1.4.0:compile
[INFO] |  \- org.apache.shiro:shiro-event:jar:1.4.0:compile
[INFO] +- org.apache.shiro:shiro-web:jar:1.4.0:compile
[INFO] +- org.apache.deltaspike.core:deltaspike-core-api:jar:1.7.2:compile
[INFO] +- org.apache.deltaspike.core:deltaspike-core-impl:jar:1.7.2:runtime
[INFO] +- org.apache.deltaspike.modules:deltaspike-data-module-api:jar:1.7.2:compile
[INFO] |  \- org.apache.deltaspike.modules:deltaspike-partial-bean-module-api:jar:1.7.2:compile
[INFO] +- org.apache.deltaspike.modules:deltaspike-data-module-impl:jar:1.7.2:compile
[INFO] |  +- org.apache.deltaspike.modules:deltaspike-partial-bean-module-impl:jar:1.7.2:runtime
[INFO] |  |  +- org.apache.deltaspike.modules:deltaspike-proxy-module-api:jar:1.7.2:runtime
[INFO] |  |  \- org.apache.deltaspike.modules:deltaspike-proxy-module-impl-asm5:jar:1.7.2:runtime
[INFO] |  \- org.apache.deltaspike.modules:deltaspike-jpa-module-impl:jar:1.7.2:compile
[INFO] |     \- org.apache.deltaspike.modules:deltaspike-jpa-module-api:jar:1.7.2:compile
[INFO] +- net.sf.jasperreports:jasperreports:jar:5.6.0:compile
[INFO] |  +- commons-beanutils:commons-beanutils:jar:1.8.0:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] |  +- commons-digester:commons-digester:jar:2.1:compile
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] |  +- com.lowagie:itext:jar:2.1.7.js2:compile
[INFO] |  |  +- bouncycastle:bcmail-jdk14:jar:138:compile
[INFO] |  |  +- bouncycastle:bcprov-jdk14:jar:138:compile
[INFO] |  |  \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] |  |     +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] |  |     \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] |  +- jfree:jcommon:jar:1.0.15:compile

Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

gilbertoca
Prioritizing the shiro-config's commons-beanutils-1.9.3.jar didn't help either:

16:22 [main] INFO   o.a.shiro.web.env.EnvironmentLoader.initEnvironment 133  - Starting Shiro environment initialization.
16:22 [main] ERROR  o.a.shiro.web.env.EnvironmentLoader.initEnvironment 156  - Shiro environment initialization failed
java.lang.NoSuchMethodError: org.apache.commons.beanutils.PropertyUtilsBean.addBeanIntrospector(Lorg/apache/commons/beanutils/BeanIntrospector;)V
        at org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:127)
        at org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:120)
        at org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:64)
        at org.apache.shiro.web.config.WebIniSecurityManagerFactory.<init>(WebIniSecurityManagerFactory.java:45)
        at org.apache.shiro.web.env.IniWebEnvironment.<init>(IniWebEnvironment.java:60)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:181)
        at org.apache.shiro.web.env.EnvironmentLoader.determineWebEnvironment(EnvironmentLoader.java:265)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:287)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:139)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:651)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:591)
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:47)
        at org.apache.tomee.embedded.Container.deploy(Container.java:883)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.doDeploy(TomEEEmbeddedMojo.java:529)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.execute(TomEEEmbeddedMojo.java:445)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener
java.lang.NoSuchMethodError: org.apache.commons.beanutils.PropertyUtilsBean.addBeanIntrospector(Lorg/apache/commons/beanutils/BeanIntrospector;)V
        at org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:127)
        at org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:120)
        at org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:64)
        at org.apache.shiro.web.config.WebIniSecurityManagerFactory.<init>(WebIniSecurityManagerFactory.java:45)
        at org.apache.shiro.web.env.IniWebEnvironment.<init>(IniWebEnvironment.java:60)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:181)
        at org.apache.shiro.web.env.EnvironmentLoader.determineWebEnvironment(EnvironmentLoader.java:265)
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:287)
        at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:139)
        at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:651)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:591)
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:47)
        at org.apache.tomee.embedded.Container.deploy(Container.java:883)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.doDeploy(TomEEEmbeddedMojo.java:529)
        at org.apache.openejb.maven.plugins.TomEEEmbeddedMojo.execute(TomEEEmbeddedMojo.java:445)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

 
Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

Brian Demers
In reply to this post by gilbertoca
That is likely the issue, update, and make sure that is the only version on the classpath

On Fri, Jun 9, 2017 at 1:00 PM, gilbertoca <[hidden email]> wrote:
1.8.0





--
View this message in context: http://shiro-user.582556.n2.nabble.com/From-1-4-0-RC2-to-1-4-0-java-lang-NoClassDefFoundError-org-apache-commons-beanutils-BeanIntrospector-tp7581637p7581640.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

gilbertoca
Brian,

I found the problem:

./target/apache-tomee/lib/commons-beanutils-core-1.8.3.jar
./target/gace/WEB-INF/lib/commons-beanutils-1.9.3.jar

We use TomEE 7.0.2 which comes with commons-beanutils-core-1.8.3.
But I don't understand why the 1.4.0-RC2 version doesn't have the problem - it works with all commons-beanutils versions.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

Brian Demers
There was a slight usage change after 1.4.0-RC2 to ensure a private instance of BeanUtilsBean was used.

On Mon, Jun 12, 2017 at 1:16 PM, gilbertoca <[hidden email]> wrote:
Brian,

I found the problem:

./target/apache-tomee/lib/commons-beanutils-core-1.8.3.jar
./target/gace/WEB-INF/lib/commons-beanutils-1.9.3.jar

We use TomEE 7.0.2 which comes with commons-beanutils-core-1.8.3.
But I don't understand why the 1.4.0-RC2 version doesn't have the problem -
it works with all commons-beanutils versions.

Regards



--
View this message in context: http://shiro-user.582556.n2.nabble.com/From-1-4-0-RC2-to-1-4-0-java-lang-NoClassDefFoundError-org-apache-commons-beanutils-BeanIntrospector-tp7581637p7581646.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: From 1.4.0-RC2 to 1.4.0 - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector

gilbertoca
Thanks Brian!

I will request the TomEE team to update their version as well[1]

Regards,

Gilberto

[1] http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-2-and-Shiro-1-4-0-commons-beanutils-error-td4681858.html
Brian Demers wrote
There was a slight usage change after 1.4.0-RC2 to ensure a private
instance of BeanUtilsBean was used.

On Mon, Jun 12, 2017 at 1:16 PM, gilbertoca <[hidden email]> wrote:

> Brian,
>
> I found the problem:
>
> ./target/apache-tomee/lib/commons-beanutils-core-1.8.3.jar
> ./target/gace/WEB-INF/lib/commons-beanutils-1.9.3.jar
>
> We use TomEE 7.0.2 which comes with commons-beanutils-core-1.8.3.
> But I don't understand why the 1.4.0-RC2 version doesn't have the problem -
> it works with all commons-beanutils versions.
>
> Regards
>
>
>
> --
> View this message in context: http://shiro-user.582556.n2.
> nabble.com/From-1-4-0-RC2-to-1-4-0-java-lang-NoClassDefFoundError-org-
> apache-commons-beanutils-BeanIntrospector-tp7581637p7581646.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>