java.lang.VerifyError when deploying the new version of my Java EE web application
04:37 24 Jun 2013
I modified some code in my current web project to add Spring transaction management. Everything works just fine when I deploy it in Eclipse or even when I call a "Maven clean" and a "Maven install" in my workspace. However when my continuous integration server (jenkins) tries to redeploy it on my distant server I get a java.lang.VerifyError and it fails:
maven-glassfish-plugin:2.1:deploy (default-cli) @ myApp --- [INFO] asadmin --host localhost --port 4848 --user admin --passwordfile C:\Windows\TEMP\mgfp2047875868831547735.tmp --interactive=false --echo=true --terse=true deploy --name myApp --force=false --precompilejsp=false --verify=false --enabled=true --generatermistubs=false --availabilityenabled=false --keepreposdir=false --keepfailedstubs=false --logReportedErrors=true --upload=false --help=false C:\.jenkins\workspace\First_deploy\target\myApp-0.0.1.war
[ERROR] com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'analysisDAO': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory': Post-processing of the FactoryBean's object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.methodSecurityMetadataSourceAdvisor': Cannot resolve reference to bean 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.access.prepost.PrePostAnnotationSecurityMetadataSource] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.security.access.expression.method.ExpressionBasedAnnotationAttributeFactory] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'expressionHandler' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expressionHandler' defined in ServletContext resource [/WEB-INF/spring/security-config.xml]: Cannot resolve reference to bean 'projectPermissionEvaluator' while setting bean property 'permissionEvaluator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectPermissionEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public fr.services.interfaces.IProjectService fr.services.security.ProjectPermissionEvaluator.projectService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public fr.services.interfaces.IProjectRightsService fr.services.impl.ProjectService.projectRightService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectRightService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public fr.dao.IDAOFactory fr.services.impl.ProjectRightService.daoFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myAppDAOFactory': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agriculturalToolDao' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.VerifyError: Expecting a stackmap frame at branch target 43 in method fr.model.application.Projet.equals(Ljava/lang/Object;)Z at offset 4
I use a jdk1.7 (I checked on my server and it's still the right JDK which is in the environment variables), maven and Glassfish. Here is my pom.xml:
4.0.0meansmeans0.0.1warmavenplugin-serverenvironmentserverC:\MEANS\Glassfish\glassfish484880808443mavenplugin-server-productionenvironmentserver-productionC:\MEANS\Glassfish\glassfish494982828553mavenplugin-localtrueC:\MEANS\Glassfish\glassfish4848808084433.0.5.RELEASE2.4.0EclipseLink Repohttp://download.eclipse.org/rt/eclipselink/maven.repocom.springsource.repository.bundles.releaseEBR Spring Release Repositoryhttp:// repository.springsource.com/maven/bundles/releasecom.springsource.repository.bundles.externalEBR External Release Repositoryhttp:// repository.springsource.com/maven/bundles/externalsrcbuild2src/testorg.apache.maven.pluginsmaven-war-plugin2.1${basedir}\WebContent\WEB-INF\web.xml${basedir}\WebContent\*${basedir}/WebContent**/*.java${basedir}\src\frWEB-INF\classes\fr**/*.java${basedir}\build2\frWEB-INF\classes\fr${basedir}/WebContent/WEB-INF/WEB-INF/dispatcher-servlet.xmllog4j.properties${basedir}/WebContent/WEB-INF/WEB-INF/dispatcher-servlet.xml${basedir}/WebContent/WEB-INF/WEB-INF/classes/log4j.properties${basedir}/src/META-INFWEB-INF/classes/META-INF/persistence.xml${basedir}/WebContent/maven-surefire-plugin2.1-XX:-UseSplitVerifiermaven-compiler-plugin2.3.21.71.7org.glassfish.maven.pluginmaven-glassfish-plugin2.1admintruemeans2012!${glassfish.home}${project.artifactId}${project.build.directory}/${project.build.finalName}.war${project.artifactId}${glassfish.adminPort}${glassfish.httpPort}${glassfish.httpsPort}log4jlog4j1.2.15compilejavax.mailmailjavax.jmsjmscom.sun.jdmkjmxtoolscom.sun.jmxjmxriorg.aspectjaspectjrt1.6.11org.aspectjaspectjweaver1.6.11org.eclipse.persistenceeclipselink${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.core${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.jpa${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.jpa.modelgen${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.moxy${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.sdo${eclipselink.version}compileorg.eclipse.persistenceorg.eclipse.persistence.oracle${eclipselink.version}compileorg.springframeworkspring-orm3.1.2.RELEASEorg.springframeworkspring-aop3.1.2.RELEASEorg.springframeworkspring-beans3.1.2.RELEASEorg.springframeworkspring-context3.1.2.RELEASEorg.springframeworkspring-context-support3.1.2.RELEASEorg.springframeworkspring-core3.1.2.RELEASEorg.springframeworkspring-expression3.1.2.RELEASEorg.springframeworkspring-jdbc3.1.2.RELEASEorg.springframeworkspring-jms3.1.2.RELEASEorg.springframeworkspring-tx3.1.2.RELEASEorg.springframeworkspring-web3.1.2.RELEASEorg.springframeworkspring-webmvc3.1.2.RELEASEcommons-loggingcommons-logging1.1.1jstljstl1.2javax.validationvalidation-api1.1.0.Alpha1org.glassfishmaven-glassfish-plugin1.0-alpha-4maven-plugincom.google.code.gsongson2.2.2org.springframework.securityspring-security-core3.1.3.RELEASEorg.springframework.securityspring-security-aspects3.1.3.RELEASEorg.springframework.securityspring-security-config3.1.3.RELEASEorg.springframework.securityspring-security-web3.1.3.RELEASEorg.springframework.securityspring-security-taglibs3.1.3.RELEASEorg.springframeworkspring-test3.2.0.RELEASEnet.sf.opencsvopencsv2.3org.apache.commonscommons-io1.3.2commons-fileuploadcommons-fileupload1.3joda-timejoda-time2.2
We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.
By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.