1 2 Previous Next 16 Replies Latest reply on Feb 28, 2008 5:43 AM by Ales Justin

    Jboss 5 Beta 4 Spring Problems

    Ragav Gomatam Novice

      Hi all,

      I successfully deployed spring injection in Ejb's 3.0 with Jboss 5 Beta 3 but in Jboss 5 Beta 4 it seems broken. Not sure where the problem lies.

      I have downloaded latest spring deployer and put it under $JBOSS_HOME/server/default/deployer.

      My ejb3-interceptors.xml is as follows :-

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE aop PUBLIC
       "-//JBoss//DTD JBOSS AOP 1.0//EN"
       "http://labs.jboss.com/portal/jbossaop/dtd/jboss-aop_1_0.dtd">
      
      <aop>
       <interceptor class="org.jboss.aspects.remoting.InvokeRemoteInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.aspects.security.SecurityClientInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.aspects.tx.ClientTxPropagationInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.remoting.IsLocalInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.aspects.remoting.ClusterChooserInterceptor" scope="PER_VM"/>
      
       <interceptor class="org.jboss.aspects.tx.TxPropagationInterceptor" scope="PER_VM"/>
      
       <stack name="ServiceClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="AsynchronousStatelessSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="AsynchronousStatefulSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="StatelessSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="StatefulSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="ClusteredStatelessSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <stack name="ClusteredStatefulSessionClientInterceptors">
       <interceptor-ref name="org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
       </stack>
      
       <interceptor class="org.jboss.ejb3.asynchronous.AsynchronousInterceptor" scope="PER_CLASS"/>
       <interceptor class="org.jboss.ejb3.ENCPropagationInterceptor" scope="PER_VM"/>
       <interceptor name="Basic Authorization" factory="org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorFactory" scope="PER_CLASS"/>
       <interceptor name="JACC Authorization" factory="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory" scope="PER_CLASS"/>
       <interceptor factory="org.jboss.ejb3.security.AuthenticationInterceptorFactory" scope="PER_CLASS"/>
       <interceptor factory="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory" scope="PER_CLASS"/>
       <interceptor class="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.stateless.StatelessInstanceInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.stateful.StatefulInstanceInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.service.ServiceSingletonInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.ejb3.cache.StatefulReplicationInterceptor" scope="PER_VM"/>
       <interceptor factory="org.jboss.ejb3.stateful.StatefulRemoveFactory" scope="PER_CLASS_JOINPOINT"/>
       <interceptor factory="org.jboss.ejb3.tx.TxInterceptorFactory" scope="PER_CLASS_JOINPOINT"/>
       <interceptor factory="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory" scope="PER_CLASS_JOINPOINT"/>
       <interceptor factory="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory" scope="PER_CLASS"/>
       <interceptor class="org.jboss.ejb3.AllowedOperationsInterceptor" scope="PER_VM"/>
       <interceptor class="org.jboss.spring.interceptor.SpringInjectionInterceptor" scope="PER_VM"/>
       <interceptor factory="org.jboss.ejb3.mdb.CurrentMessageInjectorInterceptorFactory" scope="PER_CLASS"/>
       <interceptor class="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor" scope="PER_VM"/>
      
       <domain name="Stateless Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="Basic Authorization"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
       <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="JACC Stateless Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="JACC Authorization"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
       <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="Base Stateful Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="Basic Authorization"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
       <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->@javax.ejb.Remove(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.StatefulRemoveFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.StatefulInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       </bind>
       <bind pointcut="execution(public * $instanceof{javax.ejb.SessionSynchronization}->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor"/>
       </bind>
      
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
       <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
       </bind>
      
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
      
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
       <!-- NON Clustered cache configuration -->
       <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.Cache ("SimpleStatefulCache")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.PersistenceManager) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.PersistenceManager ("StatefulSessionFilePersistenceManager")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.CacheConfig (maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
       </annotation>
      
       <!-- Clustered cache configuration -->
       <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.Cache ("StatefulTreeCache")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
       </annotation>
       </domain>
      
       <domain name="JACC Stateful Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="JACC Authorization"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
       <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->@javax.ejb.Remove(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.StatefulRemoveFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.StatefulInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       </bind>
       <bind pointcut="execution(public * $instanceof{javax.ejb.SessionSynchronization}->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
      
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
       <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
      
       <!-- NON Clustered cache configuration -->
       <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.Cache ("SimpleStatefulCache")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.PersistenceManager) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.PersistenceManager ("StatefulSessionFilePersistenceManager")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND !class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.CacheConfig (maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
       </annotation>
      
       <!-- Clustered cache configuration -->
       <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.Cache ("StatefulTreeCache")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND class(@org.jboss.ejb3.annotation.Clustered)">
       @org.jboss.ejb3.annotation.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
       </annotation>
       </domain>
      
       <domain name="Embedded Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
       <!-- NON Clustered cache configuration -->
       <annotation expr="!class(@org.jboss.ejb3.annotation.Cache)">
       @org.jboss.ejb3.annotation.Cache ("NoPassivationCache")
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
      
       </domain>
      
       <domain name="Message Driven Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <!-- TODO: Authorization? -->
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="Consumer Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..)) AND (has(* *->@org.jboss.ejb3.annotation.CurrentMessage(..)) OR hasfield(* *->@org.jboss.ejb3.annotation.CurrentMessage))">
       <interceptor-ref name="org.jboss.ejb3.mdb.CurrentMessageInjectorInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
       @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="Service Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       </bind>
       <bind pointcut="!execution(* *->create()) AND !execution(* *->start()) AND !execution(*->new(..))">
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="Basic Authorization"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..)) AND !execution(* *->create()) AND !execution(* *->start())">
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
       <domain name="JACC Service Bean">
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
       </bind>
       <bind pointcut="!execution(* *->create()) AND !execution(* *->start()) AND !execution(*->new(..))">
       <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(*->new(..))">
       <interceptor-ref name="org.jboss.spring.interceptor.SpringInjectionInterceptor"/>
       </bind>
       <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
       <interceptor-ref name="Basic Authorization"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
       </bind>
       <bind pointcut="execution(public * *->*(..))">
       <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
       <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
       <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
       </bind>
       <bind pointcut="execution(public * *->*(..)) AND !execution(* *->create()) AND !execution(* *->start())">
       <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
       <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
       @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
       </annotation>
       </domain>
      
      </aop>


      I am using Spring 2.5 and when I start the jboss 5 beta 4 with a Spring WAR file I get the following error :-



      10:52:52,672 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      10:52:53,766 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      10:52:53,766 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      10:52:54,125 INFO [TransactionManagerService] Starting recovery manager
      10:52:54,312 INFO [TransactionManagerService] Recovery manager started
      10:52:54,312 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      10:53:13,312 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@4c63e2 for BaseClassLoader@2216ef{vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/ejb3-interceptors-aop.xml}
      10:53:14,016 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.framework.ProxyCreatorSupport
      java.lang.VerifyError: org/springframework/aop/framework/ProxyCreatorSupport: attempting to override final method org/springframework/aop/framework/AdvisedSupport.adviceChanged()V
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
       at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
       at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
       at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
       at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
       at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
       at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
       at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
       at org.jboss.virtual.VFS.visit(VFS.java:336)
       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
      10:53:14,156 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.support.MethodMatchers$ClassFilterAwareUnionMethodMatcher
      java.lang.IllegalAccessError: org/springframework/aop/support/MethodMatchers$ClassFilterAwareUnionMethodMatcher : org/springframework/aop/support/MethodMatchers$UnionMethodMatcher
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
       at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
       at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
       at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
       at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
       at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)


        • 1. Re: Jboss 5 Beta 4 Spring Problems
          Ragav Gomatam Novice

          Forgot to add...I am running it on Jrockit 1.6.02

          • 2. Re: Jboss 5 Beta 4 Spring Problems
            Ales Justin Master

            Can you check if the info that exceptions describe hold:

            10:53:14,016 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.framework.ProxyCreatorSupport
            java.lang.VerifyError: org/springframework/aop/framework/ProxyCreatorSupport: attempting to override final method org/springframework/aop/framework/AdvisedSupport.adviceChanged()V
            

            attempting to override final method
            10:53:14,156 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.support.MethodMatchers$ClassFilterAwareUnionMethodMatcher
            java.lang.IllegalAccessError: org/springframework/aop/support/MethodMatchers$ClassFilterAwareUnionMethodMatcher : org/springframework/aop/support/MethodMatchers$UnionMethodMatcher
            

            IllegalAccessError

            It could be that beta3 didn't output this at warn level, perhaps only at trace or debug.

            • 3. Re: Jboss 5 Beta 4 Spring Problems
              Ragav Gomatam Novice

              Checked it...Beta 3 did not have these errors...Also the application deployed beautifully with spring-deployer & spring injection.....Makes me wonder if this is something very specific to Beta 4 ?

              I am going to re-install Beta 4 once again & try it out...I'll post back after reinstall & try

              • 4. Re: Jboss 5 Beta 4 Spring Problems
                Ragav Gomatam Novice

                Tried again...Actually this happens only with one WAR file in Beta 4.
                I am using OracleRowSet there . My spring-context.xml is as follows :-

                <?xml version="1.0" encoding="UTF-8"?>
                <beans xmlns="http://www.springframework.org/schema/beans"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:jee="http://www.springframework.org/schema/jee"
                 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                 http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">
                 <jee:jndi-lookup id="jndiDs" jndi-name="jdbc/TestDs" resource-ref="true"/>
                 <bean name="/home" class="com.myapp.struts.action.SpringStrutsAction"
                 autowire="byName">
                 <property name="dao" ref="intf" />
                 </bean>
                 <bean name="intf" class="com.myapp.db.DAOImpl">
                 <property name="rowSet" ref="oracleRowSet" />
                 <property name="dataSource" ref="jndiDs" />
                 </bean>
                 <bean name="oracleRowSet" class="oracle.jdbc.rowset.OracleCachedRowSet">
                 <property name="type" value="1004" /><!--ResultSet.TYPE_SCROLL_INSENSITIVE-->
                 <property name="concurrency" value="1008" /><!--ResultSet.CONCUR_UPDATABLE-->
                 </bean>
                </beans>
                


                My bean code is as follows :-

                /
                *
                 * DAOImpl.java
                 *
                 * To change this template, choose Tools | Template Manager
                 * and open the template in the editor.
                 */
                
                package com.myapp.db;
                
                import java.sql.Connection;
                import java.sql.SQLException;
                import javax.sql.DataSource;
                import javax.sql.RowSet;
                import javax.sql.rowset.CachedRowSet;
                import org.springframework.jdbc.support.JdbcUtils;
                import javax.sql.rowset.spi.SyncProviderException;
                import oracle.jdbc.rowset.OracleCachedRowSet;
                import org.apache.struts.action.ActionForm;
                import org.apache.struts.action.DynaActionForm;
                
                public class DAOImpl implements DAOIntf{
                
                 //Spring Injected
                 private DataSource ds;
                 private CachedRowSet rowSet;
                
                 public Connection getConnection() throws SQLException {
                 return this.ds.getConnection();
                 }
                
                
                 public void setDataSource(DataSource datasrc) {
                 this.ds = datasrc;
                 }
                
                 public DataSource getDataSource() {
                 return this.ds;
                 }
                
                 public CachedRowSet getRowSet() {
                 return this.rowSet;
                 }
                
                 public void setRowSet(CachedRowSet r) {
                 this.rowSet = r;
                 }
                
                 public RowSet getBooks(int isbn) {
                
                 Connection conn = null;
                
                 try {
                 conn = getConnection();
                 rowSet.setCommand("select ISBN,TITLE,AUTHOR,RATING,PRICE from BOOKROWSET where isbn = " + isbn);
                 rowSet.execute(conn);
                 } catch (SQLException ex) {
                 ex.printStackTrace();
                 } finally {
                 JdbcUtils.closeConnection(conn);
                 }
                 return rowSet;
                 }
                
                
                 public RowSet getAllBooks() {
                
                 Connection conn = null;
                
                 try {
                 conn = getConnection();
                 rowSet.setCommand("select ISBN,TITLE,AUTHOR,RATING,PRICE from BOOKROWSET ");
                 rowSet.execute(conn);
                 } catch (SQLException ex) {
                 ex.printStackTrace();
                 } finally {
                 JdbcUtils.closeConnection(conn);
                 }
                 return rowSet;
                 }
                
                 public RowSet addBooks(ActionForm form) {
                
                 rowSet = getRowSet();
                
                 try {
                 rowSet.setReadOnly(false);
                 rowSet.afterLast();
                 rowSet.moveToInsertRow();
                 rowSet.updateDouble(1,(Double)(((DynaActionForm)form).get("isbn")));
                 rowSet.updateString(2,(String)(((DynaActionForm)form).get("title")));
                 rowSet.updateString(3,(String)(((DynaActionForm)form).get("author")));
                 rowSet.updateString(4,(String)(((DynaActionForm)form).get("rating")));
                 rowSet.updateDouble(5,(Double)(((DynaActionForm)form).get("price")));
                 rowSet.insertRow();
                 rowSet.setReadOnly(true);
                 rowSet.beforeFirst();
                 commit(rowSet);
                 } catch(SQLException sqe) {
                 sqe.printStackTrace();
                 }
                
                 return rowSet;
                
                 }
                
                 public RowSet deleteBook(ActionForm form) {
                
                 rowSet = getRowSet();
                 try {
                 rowSet.setReadOnly(false);
                 rowSet.absolute(Integer.parseInt((String) (((DynaActionForm)form).get("rowNo"))));
                 rowSet.deleteRow();
                 rowSet.setReadOnly(true);
                 rowSet.beforeFirst();
                 commit(rowSet);
                 } catch(SQLException sqe) {
                 sqe.printStackTrace();
                 }
                 return rowSet;
                
                 }
                
                 private void commit(RowSet r) {
                
                 Connection conn = null;
                
                 try {
                 conn = getConnection();
                 OracleCachedRowSet rowSet = (OracleCachedRowSet)r;
                 rowSet.acceptChanges(conn);
                 } catch (SyncProviderException ex) {
                 ex.printStackTrace();
                 } catch(SQLException sqe) {
                 sqe.printStackTrace();
                 } finally {
                 JdbcUtils.closeConnection(conn);
                 }
                
                 }
                
                
                }
                


                Error from jboss 5 beta 4 is :- If I remove this WAR file, everything appears fine....Surprising this was that this was working with spring 2.0...Moment I upgraded to spring 2.5 I started to get this error....Checked out the spring forums & they say it is becos spring is returning a proxy instead of OracleCachedRowSet...Question is why should spring 2.5 do this ? OracleCachedRowSet implements javax.sql.rowset.CachedRowset & jdk proxy should be ok ...Else jboss 5 beta 4 seems to be ok....Guess this is something with spring 2.5....To be sure I deployed this WAR in tc 6 and had the same error



                16:35:55,625 INFO [TransactionAttributeClassProcessor] org.jboss.metadata.ejb.spec.ContainerTransactionMetaData@1f
                16:35:58,078 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.framework.ProxyCreatorSupport
                java.lang.VerifyError: org/springframework/aop/framework/ProxyCreatorSupport: attempting to override final method org/springfram
                 at java.lang.ClassLoader.defineClass1(Native Method)
                 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                 at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
                 at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
                 at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
                 at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
                 at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
                 at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
                 at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                 at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
                 at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
                 at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
                 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                 at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
                 at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
                 at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
                 at org.jboss.virtual.VFS.visit(VFS.java:336)
                 at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
                 at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
                 at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                16:35:58,125 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.support.MethodMatchers$ClassFilt
                java.lang.IllegalAccessError: org/springframework/aop/support/MethodMatchers$ClassFilterAwareUnionMethodMatcher : org/springfram
                 at java.lang.ClassLoader.defineClass1(Native Method)
                 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                 at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
                 at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
                 at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
                 at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
                 at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
                 at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
                 at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                 at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
                 at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
                 at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
                 at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
                 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                 at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
                 at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
                 at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                 at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
                 at org.jboss.virtual.VFS.visit(VFS.java:336)
                 at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
                 at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
                 at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)


                • 5. Re: Jboss 5 Beta 4 Spring Problems
                  Ales Justin Master

                   

                  "ragavgomatam" wrote:

                  Error from jboss 5 beta 4 is :- If I remove this WAR file, everything appears fine....Surprising this was that this was working with spring 2.0...Moment I upgraded to spring 2.5 I started to get this error....Checked out the spring forums & they say it is becos spring is returning a proxy instead of OracleCachedRowSet...Question is why should spring 2.5 do this ? OracleCachedRowSet implements javax.sql.rowset.CachedRowset & jdk proxy should be ok ...Else jboss 5 beta 4 seems to be ok....Guess this is something with spring 2.5....To be sure I deployed this WAR in tc 6 and had the same error

                  OK, so this is clearly Spring problem, and not of JBoss SpringDeployer.
                  I'll leave this post here, so anyone else who also stumbles will be able to identify this.
                  But make sure you post any findings.

                  • 6. Re: Jboss 5 Beta 4 Spring Problems
                    Ragav Gomatam Novice

                    Sure...I checked it out in tomcat 6...Had same issues....Will keep forum posted if i run into anything

                    • 7. Re: Jboss 5 Beta 4 Spring Problems
                      Ragav Gomatam Novice

                      OK Ales....I think the problem is with the spring deployer...I did the following
                      (1) I installed twice jboss 5 beta 4 with and without spring deployer.
                      (2) In the jboss 5 beta 4 without spring deployer, I installed a WAR file ( spring 2.5 + struts + ibatis ) ....This installed fine and worked without any problem.
                      (3) I installed this same WAR in tomcat 6.0.1.4 and it installed fine without errors and worked fine.....
                      (4) I installed the same WAR file in jboss 5 beta 4 WITH spring deployer ( deployer + change in ejb3-aop-interceptors.xml) ....
                      (5) Problems started top appear......
                      (6) Removed the WAR (spring 2.5 + struts 1.2.9 + ibatis ) ....
                      (7) Installed JUST my Ejb 3 EAR with spring injection ....( Ejb 3 + Spring injection into ejb 3) ...Worked fine.....

                      Guess problem is ONLY when you have a Spring WAR with a Spring deployer...Errors start to appear and application does not install....
                      Using spring deployer 3.0

                      Error trace :-

                      18:50:01,562 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 42s:0ms
                      18:50:20,578 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.framework.ProxyCreatorSupport
                      java.lang.VerifyError: org/springframework/aop/framework/ProxyCreatorSupport: attempting to override final method org/springframework/aop/framework/AdvisedSupport.adviceChanged()V
                       at java.lang.ClassLoader.defineClass1(Native Method)
                       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                       at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
                       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
                       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
                       at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
                       at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
                       at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
                       at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                       at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
                       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
                       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
                       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                       at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
                       at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
                       at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
                       at org.jboss.virtual.VFS.visit(VFS.java:336)
                       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
                       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
                       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
                       at 18:50:20,609 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.support.MethodMatchers$ClassFilterAwareUnionMethodMatcher
                      java.lang.IllegalAccessError: org/springframework/aop/support/MethodMatchers$ClassFilterAwareUnionMethodMatcher : org/springframework/aop/support/MethodMatchers$UnionMethodMatcher
                       at java.lang.ClassLoader.defineClass1(Native Method)
                       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                       at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
                       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
                       at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
                       at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
                       at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
                       at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
                       at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                       at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
                       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
                       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
                       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
                       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                       at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
                       at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
                       at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
                       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
                       at org.jboss.virtual.VFS.visit(VFS.java:336)
                       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
                       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
                       at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                      18:50:21,781 INFO [TomcatDeployment] deploy, ctxPath=/SpringIBatis, vfsUrl=SpringIBatis.war
                      18:50:22,125 INFO [[/SpringIBatis]] Initializing Spring root WebApplicationContext
                      18:50:22,125 INFO [ContextLoader] Root WebApplicationContext: initialization started
                      18:50:23,781 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-dao.xml]
                      18:50:26,031 INFO [XmlWebApplicationContext] Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy
                      18:50:26,031 INFO [XmlWebApplicationContext] 4 beans defined in application context [Root WebApplicationContext]
                      18:50:26,031 INFO [XmlWebApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@d236ce]
                      18:50:26,031 INFO [XmlWebApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@d238cc]
                      18:50:26,031 INFO [UiApplicationContextUtils] Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@d32604]
                      18:50:26,031 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy]
                      18:50:26,234 INFO [DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy}
                      18:50:26,234 ERROR [ContextLoader] Context initialization failed
                      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addrIntf' defined in ServletContext resource [/WEB-INF/spring-dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.myapp.db.AddressImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
                      Caused by:
                      org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.myapp.db.AddressImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
                      Caused by:
                      java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
                       at java.lang.Class.getConstructor0(Class.java:2706)
                       at java.lang.Class.getDeclaredConstructor(Class.java:1985)
                       at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
                       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
                       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
                       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
                       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
                       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
                       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
                       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
                       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
                       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
                       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
                       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
                       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
                       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
                       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3860)
                       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)


                      • 8. Re: Jboss 5 Beta 4 Spring Problems
                        Ales Justin Master

                        Do you also have spring.jar in your war file?

                        • 9. Re: Jboss 5 Beta 4 Spring Problems
                          Ragav Gomatam Novice

                          Yes I do......Is that an issue ?

                          • 10. Re: Jboss 5 Beta 4 Spring Problems
                            Ales Justin Master

                             

                            "ragavgomatam" wrote:
                            Yes I do......Is that an issue ?

                            Could be.
                            War libs and similar global libs never play nicely. ;-)

                            Can you just remove the one from war and see if you still get the same problem?

                            btw: what's the version of Spring lib in SpringDeployer and in your war? The same?

                            • 11. Re: Jboss 5 Beta 4 Spring Problems
                              Ragav Gomatam Novice

                               

                              Can you just remove the one from war and see if you still get the same problem?


                              But will the WAR run ? Becos the global spring lib (deployer) should be in the jboss 5 Class loader hierachy. Hmmm...But then how does this work for EAR ? I have the spring jar's in the
                              <lib>
                              directory in the EAR file.

                              btw: what's the version of Spring lib in SpringDeployer and in your war? The same?


                              Version of Spring lib in the Spring deployer is spring 2.0...I checkd this in the manifest file. Version in the WAR is spring 2.5. No they are not same...

                              • 12. Re: Jboss 5 Beta 4 Spring Problems
                                Ales Justin Master

                                Put a single Spring 2.5 in JBOSS_HOME/server/(your_config)/lib.
                                That should do the trick.
                                Once we have full OSGi classloading impl in JBoss5, then we'll be able to have 2 diff version in the same 'space' w/o any problems.

                                • 13. Re: Jboss 5 Beta 4 Spring Problems
                                  Ragav Gomatam Novice

                                  sure i will try & get back...You will have to wait till i reach home from work & try this out before posting back

                                  • 14. Re: Jboss 5 Beta 4 Spring Problems
                                    Ales Justin Master

                                     

                                    "ragavgomatam" wrote:
                                    sure i will try & get back...You will have to wait till i reach home from work & try this out before posting back

                                    Take your time. :-)

                                    1 2 Previous Next