1 2 Previous Next 15 Replies Latest reply on Apr 11, 2011 2:28 PM by rhinmass

    JBoss AS 6 deployment error: AnnotationTypeMismatchException

    Anders Åberg Newbie

      Hi all

      Just tried to deploy our application on JBoss AS 6, it runs fine on GlassFish 3.0.1. I get this deployment error:

       

      Deployment "vfs:///C:/Dev/jboss-6.0.0.Final/server/default/deploy/admin-backend-0.7.2-SNAPSHOT.war" is in error due to the following reason(s): java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract javax.xml.bind.annotation.XmlNsForm org.jboss.xb.annotations.JBossXmlSchema.elementFormDefault() (Found data of type Ljavax/xml/bind/annotation/XmlNsForm;.QUALIFIED)

       

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]
              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]
              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
              at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]
              at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
              at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
              at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
              at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
              at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
              at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
              at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
              at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
              at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
              at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
              at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_20]
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_20]
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_20]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_20]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_20]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_20]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
              at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

       

      Any ideas? There are probably lots of stuff that need to be tweaked to get it to work, I just don't know where to start with this error..

       

      Regards,

       

      Anders

       

      Message was edited by: Anders Åberg, attached log files

        • 1. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
          jaikiran pai Master

          Do you have any jar file(s) containing javax.xml.* classes in your .war file? If yes, try removing those jars.

          • 2. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
            Anders Åberg Newbie

            Great!! Turns out I had 4 jars:

            jaxb-api
            jaxb-impl
            stax-api

            xml-apis

             

            Removing the first 3 did the trick.. Thanks a bunch for helping!

            • 3. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
              Anders Åberg Newbie

              Got another error now, anyone know what it means?

               

              17:09:54,236 INFO  [org.jboss.weld.Version] WELD-000900 1.1.0 (CR3)
              17:09:56,223 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfs:///C:/Dev/jboss-6.0.0.Final/server/default/deploy/admin-backend-0.7.2-SNAPSHOT.war_WeldBootstrapBean state=Create: java.lang.ClassCastException: org.jboss.weld.security.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$Dev$jboss-6$0$0$Final$server$default$deployers$resteasy$deployer"-Built-in-Principal_$$_WeldProxy cannot be cast to javassist.util.proxy.ProxyObject
                      at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:248) [:6.0.0.Final]
                      at org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:46) [:6.0.0.Final]
                      at org.jboss.weld.bean.builtin.ee.PrincipalBean.<init>(PrincipalBean.java:60) [:6.0.0.Final]
                      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:201) [:6.0.0.Final]
                      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:363) [:6.0.0.Final]
                      at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:92) [:6.0.0.Final]
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
                      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
                      at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
                      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
                      at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)[jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                      at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                      at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                      at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                      at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

               

                      at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                      at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                      at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                      at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                      at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_20]
                      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_20]
                      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_20]
                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_20]
                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_20]
                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_20]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
                      at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

               

              -Anders

              • 4. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                jaikiran pai Master

                Any javassist related jars in your application package? If yes, try removing those jars.

                • 5. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                  Anders Åberg Newbie

                  That was it, removed javassist and that got me one step further. Thanks a bunch.

                   

                  Now I get this error:

                   

                  09:42:28,015 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                   

                  DEPLOYMENTS MISSING DEPENDENCIES:
                    Deployment "jboss-injector:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT" is missing the following dependencies:
                      Dependency "<UNKNOWN jboss-injector:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT' **")
                    Deployment "jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService" is missing the following dependencies:
                      Dependency "<UNKNOWN jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT' **")
                    Deployment "jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=no.evote.service.security.SecurityInterceptor" is missing the following dependencies:
                      Dependency "<UNKNOWN jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=no.evote.service.security.SecurityInterceptor>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT' **")
                    Deployment "jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor" is missing the following dependencies:
                      Dependency "<UNKNOWN jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT' **")
                    Deployment "jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor" is missing the following dependencies:
                      Dependency "<UNKNOWN jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AccessService,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=admin-backend-0.7.2-SNAPSHOT,module=admin-backend-0.7.2-SNAPSHOT' **")
                    Deployment "jboss-injector:topLevelUnit=admin-backend-0.7.2-SNAPSHOT.war,unit=admin-backend-0.7.2-SNAPSHOT.war,bean=AffiliationService" is missing the following dependencies:

                   

                  The list continues and is about 3000 lines long (we have ~80 EJB's).

                   

                  There are a couple of warnings earlier in the log though:

                   

                  09:41:17,527 WARN  [org.jboss.weld.integration.deployer.metadata.WeldEjbInterceptorMetadataDeployer] The Web Beans SessionnBeanInterceptor is not the inner most EJB interceptor in this deployment. JSR299 injection may not work correctly. Specify org.jboss.weld.integration.ejb.SessionBeanInterceptor as the first interceptor in the interceptor ordering for *

                   

                  Will try to fix this one now, seems self-explanatory.

                   

                  09:41:18,100 WARN  [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.

                   

                  09:41:18,969 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext

                   

                  09:41:20,023 WARN  [org.jboss.ejb3.interceptor.InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated

                   

                  The last 3 I don't know what to do about.

                   

                  When I get this up and running I will try to summarize the changes I've done, must be more people wanting to try out Glassfish apps on JBoss

                   

                  -Anders

                  • 6. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                    Anders Åberg Newbie

                    Adding SessionBeanInterceptor to ejb-jar.xml seems to resolve the other warnings, so now I am left with the incomplete deployment error.

                    • 7. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                      jaikiran pai Master

                      Please attach the entire deployment failure log.

                      • 8. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                        Anders Åberg Newbie

                        Done. Hmm, looks like I still get the other warnings though.

                        • 9. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                          jaikiran pai Master
                          Deployment "persistence.unit:unitName=admin-backend-0.7.2-SNAPSHOT.war#evotePU" is missing the following dependencies:
                              Dependency "jboss.jca:name=jdbc/evote,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=jdbc/evote,service=DataSourceBinding' **")

                          What does your persistence.xml and *-ds.xml file look like? Where have you placed those?

                          • 10. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                            Anders Åberg Newbie

                            Ah.. must be something wrong there.

                             

                            evote-ds.xml, which is in server/default/deploy:

                            <?xml version="1.0" encoding="UTF-8"?>
                            <datasources>
                               <local-tx-datasource>
                                  <jndi-name>evote</jndi-name>
                                  <connection-url>jdbc:postgresql://localhost/evote</connection-url>
                                  <driver-class>org.postgresql.Driver</driver-class>
                                  <user-name>xxx</user-name>
                                  <password>xxx</password>
                                  <min-pool-size>5</min-pool-size>
                                  <max-pool-size>20</max-pool-size>
                               </local-tx-datasource>
                            </datasources>

                             

                            persistence.xml, which is in myapp.war/WEB-INF/classes/META-INF:

                            <?xml version="1.0" encoding="UTF-8"?>
                            <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
                                <persistence-unit name="evotePU">
                                    <provider>org.hibernate.ejb.HibernatePersistence</provider>
                                    <jta-data-source>jdbc/evote</jta-data-source>
                                    <properties>
                                        <property name="hibernate.show_sql" value="false"/>
                                        <property name="hibernate.cache.use_second_level_cache" value="false" />
                                        <property name="hibernate.cache.use_query_cache" value="false" />
                                        <property name="hibernate.cache.use_minimal_puts" value="true" />
                                        <property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider" />
                                        <property name="hibernate.cache.provider_configuration_file_resource_path" value="META-INF/ehcache.xml" />
                                        <property name="hibernate.generate_statistics" value="true"/>
                                        <property name="hibernate.jdbc.batch_size" value="1000"/>
                                        <property name="hibernate.order_inserts" value="true"/>
                                        <property name="hibernate.order_updates" value="true"/>
                                    </properties>
                                </persistence-unit>
                            </persistence>

                             

                            -Anders

                            • 11. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                              jaikiran pai Master
                              <jta-data-source>jdbc/evote</jta-data-source>

                              That piece in persistence.xml should be:

                               

                              <jta-data-source>java:evote</jta-data-source>

                               

                              The jndi-name in the *-ds.xml by default binds to java: namespace.

                              • 12. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                                Anders Åberg Newbie

                                After changing that I get:

                                 

                                2011-01-05 13:57:31,293 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=admin-backend-0.7.2-SNAPSHOT.war#evotePU
                                2011-01-05 13:57:31,330 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start: name=persistence.unit:unitName=admin-backend-0.7.2-SNAPSHOT.war#evotePU state=Create: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
                                    at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:46) [:1.0.2-alpha-3]
                                    at org.jboss.as.jpa.scanner.HackCEMFBuilder.build(HackCEMFBuilder.java:49) [:6.0.0.Final]
                                    at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275) [:1.0.2-alpha-3]
                                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
                                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]
                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
                                    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
                                    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
                                    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
                                    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]
                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                                    at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                                    at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                                    at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                                    at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                                    at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                                    at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                                    at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                                    at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                                    at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                                    at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                                    at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                                    at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_20]
                                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_20]
                                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_20]
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_20]
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_20]
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_20]
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

                                • 13. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                                  jaikiran pai Master

                                  Don't package jar file(s) containing javax.persistence.* in your application.

                                  • 14. Re: JBoss AS 6 deployment error: AnnotationTypeMismatchException
                                    Anders Åberg Newbie

                                    Great I excluded hibernate-entitymanager from the webapp, I guess it is included inn JBoss and this is the right way to do it. And I managed to deploy the application. Thanks for helping Jaikiran!

                                     

                                    There is a @Schedule'd ejb that is failing though.. It throws this exception when triggered:

                                     

                                    2011-01-05 16:45:00,116 ERROR [org.jboss.ejb3.timerservice.mk2.task.TimerTask] (pool-39-thread-1) Error invoking timeout for timer: [id=4cf3bdc0-99a3-47f9-89ad-5cfed3a52c4d timedObjectId=jboss.j2ee:jar=admin-backend-0.7.2-SNAPSHOT.war,name=ProposerListImport,service=EJB3 auto-timer?:true persistent?:true timerService=org.jboss.ejb3.timerservice.mk2.TimerServiceImpl@115146f initialExpiration=Wed Jan 05 00:00:00 CET 2011 intervalDuration(in milli sec)=0 nextExpiration=Wed Jan 05 16:50:00 CET 2011 timerState=IN_TIMEOUT: javax.ejb.EJBException: java.lang.IllegalArgumentException: No interceptor found for class no.evote.service.util.LoggingInterceptor in org.jboss.ejb3.singleton.aop.impl.context.LegacySingletonBeanContext@ab1c2d
                                        at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:183) [:0.0.1]
                                        at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251) [:0.0.1]
                                        at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349) [:0.0.1]
                                        at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209) [:0.0.1]
                                        at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52) [:0.0.1]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) [:1.0.0.GA]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67) [:1.0.1]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.singleton.aop.impl.AOPBasedInterceptorRegistry.intercept(AOPBasedInterceptorRegistry.java:110) [:1.0.0-alpha-28]
                                        at org.jboss.ejb3.singleton.impl.container.SingletonContainer.invoke(SingletonContainer.java:206) [:1.0.0-alpha-28]
                                        at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.callTimeout(AOPBasedSingletonContainer.java:886) [:1.0.0-alpha-28]
                                        at org.jboss.ejb3.timerservice.mk2.task.CalendarTimerTask.callTimeout(CalendarTimerTask.java:80) [:1.0.0-alpha-13]
                                        at org.jboss.ejb3.timerservice.mk2.task.TimerTask.run(TimerTask.java:127) [:1.0.0-alpha-13]
                                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_20]
                                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_20]
                                        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_20]
                                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [:1.6.0_20]
                                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) [:1.6.0_20]
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
                                        at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
                                    Caused by: java.lang.IllegalArgumentException: No interceptor found for class no.evote.service.util.LoggingInterceptor in org.jboss.ejb3.singleton.aop.impl.context.LegacySingletonBeanContext@ab1c2d
                                        at org.jboss.ejb3.BaseContext.getInterceptor(BaseContext.java:146) [:1.7.17]
                                        at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:62) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor$InvocationContext.proceed(InvocationContextInterceptor.java:127) [:1.1.3]
                                        at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:57) [:6.0.0.Final]
                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]
                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
                                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
                                        at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:80) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:71) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:62) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76) [:1.1.3]
                                        at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62) [:1.1.3]
                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]
                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
                                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
                                        at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74) [:1.1.3]
                                        at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_23410111.invoke(InvocationContextInterceptor_z_fillMethod_23410111.java) [:]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90) [:1.1.3]
                                        at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_23410111.invoke(InvocationContextInterceptor_z_setup_23410111.java) [:]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.concurrency.aop.interceptor.ContainerManagedConcurrencyInterceptor.invoke(ContainerManagedConcurrencyInterceptor.java:181) [:1.0.0-alpha-4]
                                        at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) [:1.7.17]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) [:1.0.3]
                                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]
                                        at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95) [:1.7.17]
                                        at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247) [:0.0.1]
                                        ... 29 more

                                     

                                    Our interceptors are defined like this in myapp.war/WEB-INF/ejb-jar.xml:

                                     

                                       <interceptors>
                                            <interceptor>
                                                <interceptor-class>org.jboss.weld.integration.ejb.SessionBeanInterceptor</interceptor-class>
                                            </interceptor>
                                            <interceptor>
                                                <interceptor-class>no.evote.service.util.LoggingInterceptor</interceptor-class>
                                            </interceptor>
                                            <interceptor>
                                                <interceptor-class>no.evote.service.security.SecurityInterceptor</interceptor-class>
                                            </interceptor>
                                            <interceptor>
                                                <interceptor-class>no.evote.service.util.ErrorInterceptor</interceptor-class>
                                            </interceptor>
                                        </interceptors>
                                        <assembly-descriptor>
                                            <interceptor-binding>
                                                <ejb-name>*</ejb-name>
                                                <interceptor-order>
                                                    <interceptor-class>org.jboss.weld.integration.ejb.SessionBeanInterceptor</interceptor-class>
                                                    <interceptor-class>no.evote.service.util.LoggingInterceptor</interceptor-class>
                                                    <interceptor-class>no.evote.service.security.SecurityInterceptor</interceptor-class>
                                                    <interceptor-class>no.evote.service.util.ErrorInterceptor</interceptor-class>
                                                </interceptor-order>
                                            </interceptor-binding>
                                            <application-exception>
                                                <exception-class>no.evote.exception.BaseException</exception-class>
                                                <rollback>true</rollback>
                                            </application-exception>
                                        </assembly-descriptor>

                                     

                                    -Anders

                                    1 2 Previous Next