0 Replies Latest reply on Dec 14, 2013 1:54 AM by p_gp4342

    Exception while migrating seam 2.1.2 app from jboss4.2.2 application server to jboss 7.1.1

    p_gp4342 Newbie

      hi all,

      i'm new to seam ,currently i'm using seam 2.1.2 and jboss 4.2.2 it is working fine ,but when i tried to migrate my seam application from jboss 4.2.2 to jboss7.1.1 i'm getting exceptions

      ERROR [org.jboss.seam.async.AsynchronousExceptionHandler] (Sched1_Worker-1) Exeception thrown whilst executing asynchronous call: java.lang.UnsupportedOperationException: no transaction

        at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.util.Work.workInTransaction(Work.java:44) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam.jar:2.1.2]

        at com.manam.mobee.fwk.audit.AdminAuditAction_$$_javassist_seam_6.saveAudit(AdminAuditAction_$$_javassist_seam_6.java) [classes:]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_27]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_27]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_27]

        at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_27]

        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.Component.callComponentMethod(Component.java:2253) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.core.Events.raiseEvent(Events.java:85) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.async.AsynchronousEvent$1.process(AsynchronousEvent.java:33) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.async.AsynchronousEvent.execute(AsynchronousEvent.java:27) [jboss-seam.jar:2.1.2]

        at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243) [jboss-seam.jar:2.1.2]

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz.jar:1.6.0]

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) [quartz.jar:1.6.0]

       

      my components.xml is

       

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
        xmlns
      :async="http://jboss.com/products/seam/async" xmlns:core="http://jboss.com/products/seam/core"
        xmlns
      :transaction="http://jboss.com/products/seam/transaction"
        xmlns
      :mail="http://jboss.com/products/seam/mail" xmlns:persistence="http://jboss.com/products/seam/persistence"
        xmlns
      :security="http://jboss.com/products/seam/security" xmlns:web="http://jboss.com/products/seam/web"
        xmlns
      :xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi
      :schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd">
        
      <core:init debug="false" jndi-pattern="@jndiPattern@" transaction-management-enabled="true"/>
        
      <core:manager concurrent-request-timeout="2000"
        conversation
      -id-parameter="cid" conversation-timeout="120000"
        parent
      -conversation-id-parameter="pid" />

        
      <web:hot-deploy-filter url-pattern="/*.myapp" />


        
      <persistence:entity-manager-factory
        installed
      ="@seamBootstrapsPu@" name="entityManagerFactory"
        persistence
      -unit-name="admin" />
        
      <persistence:managed-persistence-context
        
      auto-create="true" entity-manager-factory="@seamEmfRef@" name="entityManager"
        persistence
      -unit-jndi-name="@puJndiName@" />

        
      <async:quartz-dispatcher /> 

        
      <security:identity authenticate-method="#{authenticator.authenticate}" />

        
      <web:rewrite-filter view-mapping="*.myapp" />


        
      <event type="org.jboss.seam.security.notLoggedIn">
        
      <action execute="#{redirect.captureCurrentView}" />
        
      </event>

        
      <event type="org.jboss.seam.security.loginSuccessful">
        
      <action execute="#{redirect.returnToCapturedView}" />
        
      </event>

        
      <mail:mail-session host="localhost" port="25" />

      </components>

       

      i'm using jsf 1.2, hiberante 3, richfaces 3

       

      any help will be appreciated