2 Replies Latest reply on Nov 5, 2007 10:33 AM by taskin.tas

    javassist related exception during Test

    taskin.tas

      Hi to All,
      I have been developing an application with seam for sometime and now I am trying to introduce testing. Everything seems to work ok with the testing environment and configuration. However I am getting the following exception while implementing tests using TestNG.

      Caused by: org.hibernate.MappingException: Unknown entity: Category_$$_javassist_1
       at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
       at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
       at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
       at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
       at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
       at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
       at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
       at org.jboss.seam.persistence.HibernateSessionProxy.saveOrUpdate(HibernateSessionProxy.java:338)
       at CategoryAction.save(CategoryAction.java:142)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
       at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:54)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
       at CategoryAction_$$_javassist_0.save(CategoryAction_$$_javassist_0.java)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:174)


      hibernate.cfg.xml
      <?xml version='1.0' encoding='utf-8'?>
      <!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      
      <hibernate-configuration>
       <session-factory name="session">
      
       <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/dummydatabase</property>
       <property name="hibernate.connection.driver_class">org.postgresql.ds.PGSimpleDataSource</property>
       <property name="hibernate.connection.user">user</property>
       <property name="hibernate.connection.password">password</property>
      
       <property name="hbm2ddl.auto">create-drop</property>
       <property name="show_sql">true</property>
       <property name="transaction.flush_before_completion">true</property>
       <property name="connection.release_mode">after_statement</property>
       <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
       <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
       <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
       <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
      
       <!-- Mapping files -->
       <!--mapping resource="category.hbm.xml"/-->
       <mapping resource="variable.hbm.xml"/>
       <mapping resource="value.hbm.xml"/>
       <mapping resource="item.hbm.xml"/>
       </session-factory>
      </hibernate-configuration>



      components.xml


      <?xml version="1.0" encoding="UTF-8"?>
      
      <components xmlns="http://jboss.com/products/seam/components"
       xmlns:core="http://jboss.com/products/seam/core"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd
      ">
      
      
       <core:init jndi-pattern="java:comp/env/payroll-ejb/#{ejbName}/local" debug="false"/>
      
       <core:manager conversation-timeout="120000"
       concurrent-request-timeout="500"
       conversation-id-parameter="cid"
       conversation-is-long-running-parameter="clr"/>
      
       <core:transactionListener/>
       <core:ejb installed="true"/>
      
      
       <core:hibernate-session-factory name="hibernateSessionFactory"/>
       <core:managed-hibernate-session name="session" auto-create="true" session-factory-jndi-name="session"/>
      </components>


      Test File Source Code


      import datassist.payroll.entity.Category;
      import org.jboss.seam.contexts.Contexts;
      import org.jboss.seam.mock.SeamTest;
      import org.jboss.seam.mock.SeamTest.FacesRequest;
      import org.testng.annotations.Test;
      
      public class TestIntact extends SeamTest {
      
       @Test
       public void facesTestIntact_I() throws Exception {
      
       new FacesRequest() {
      
       @Override
       protected void invokeApplication() throws Exception {
       assert invokeMethod("#{categoryAction.nevv(\"U\")}").equals("categoryDefine");
       }
      
       }.run();
      
       String id = new FacesRequest("/categoryDefine.xhtml") {
      
       @Override
       protected void updateModelValues() throws Exception {
       setValue("#{category.name}","TEST MANIA");
       }
      
       @Override
       protected void invokeApplication() {
       assert invokeMethod("#{categoryAction.save}").equals("categoryTree");
      
       }
      
       @Override
       protected void renderResponse(){
       assert true;
       }
      
       }.run();
       }
      
      }


      CategoryAction.java

      @End
       public String save(){
       category.stripUnusedValues();
       if (isUpdateState())
       category.arrangeValues(lastEffectiveDate);
       session.saveOrUpdate(category);
       Category parent=category.getParentCategory();
       if (parent!=null && !parent.getChildCategories().contains(category))
       parent.addToChildCategories(category);
       session.flush();
       Events.instance().raiseEvent("categoryTreeRefresh");
       category.blur();
       return "categoryTree";
       }


      Version of javassist: 3.6

      I am getting the exception when executing the line session.saveOrUpdate(category) on CategoryAction.java

        • 1. Re: javassist related exception during Test
          pmuir

          Is the entity getting mapped properly by hibernate at startup?

          • 2. Re: javassist related exception during Test
            taskin.tas

            Hi,
            I am sending the full log. Maybe these logs can help you to understand the case. Strange thing is that application is working properly in all cases but I cant run the tests. Another case is Hibernate is deleting the existing tables from database but it does not create the tables on database at startup.

            http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
             [testng] 15:01:47,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
             [testng] 15:01:47,641 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
             [testng] 15:01:47,641 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/payroll-war/build/jboss-seam-ui.jar
             [testng] 15:01:47,642 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/payroll-war/build/jboss-seam-debug.jar
             [testng] 15:01:47,642 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/test/build
             [testng] 15:01:47,647 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/test/build
             [testng] 15:01:47,656 INFO [Initialization] reading /WEB-INF/components.xml
             [testng] 15:01:47,742 INFO [Initialization] reading jar:file:/home/levent/lab/prj/payroll/payroll-war/build/jboss-seam.jar!/META-INF/components.xml
             [testng] 15:01:47,756 INFO [Initialization] reading properties from: /seam.properties
             [testng] 15:01:47,756 INFO [Initialization] reading properties from: /jndi.properties
             [testng] 15:01:47,757 INFO [Initialization] initializing Seam
             [testng] 15:01:47,768 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/payroll-war/build/jboss-seam-ui.jar
             [testng] 15:01:47,928 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/payroll-war/build/jboss-seam-debug.jar
             [testng] 15:01:47,935 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/test/build
             [testng] 15:01:47,993 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/test/build
             [testng] 15:01:48,042 INFO [Scanner] scanning: /home/levent/lab/prj/payroll/payroll-war/build/jboss-seam.jar
             [testng] 15:01:48,498 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
             [testng] 15:01:48,503 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
             [testng] 15:01:48,531 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
             [testng] 15:01:48,559 WARN [Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
             [testng] 15:01:48,559 INFO [Initialization] Installing components...
             [testng] 15:01:48,579 INFO [Component] Component: category, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.entity.Category
             [testng] 15:01:48,604 INFO [Component] Component: categoryAction, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.action.CategoryAction
             [testng] 15:01:48,644 INFO [Component] Component: categoryTree, scope: SESSION, type: JAVA_BEAN, class: datassist.payroll.action.CategoryTree
             [testng] 15:01:48,670 INFO [Component] Component: employee, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.entity.Employee
             [testng] 15:01:48,673 INFO [Component] Component: employeeAction, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.action.EmployeeAction
             [testng] 15:01:48,688 INFO [Component] Component: employment, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.entity.Employment
             [testng] 15:01:48,709 INFO [Component] Component: employmentList, scope: SESSION, type: JAVA_BEAN, class: datassist.payroll.action.EmployeeList
             [testng] 15:01:48,712 INFO [Component] Component: hibernateSessionFactory, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HibernateSessionFactory
             [testng] 15:01:48,717 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
             [testng] 15:01:48,717 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
             [testng] 15:01:48,717 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
             [testng] 15:01:48,718 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
             [testng] 15:01:48,718 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
             [testng] 15:01:48,719 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
             [testng] 15:01:48,720 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
             [testng] 15:01:48,720 INFO [Component] Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
             [testng] 15:01:48,739 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
             [testng] 15:01:48,740 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
             [testng] 15:01:48,741 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
             [testng] 15:01:48,743 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
             [testng] 15:01:48,745 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
             [testng] 15:01:48,745 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
             [testng] 15:01:48,751 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
             [testng] 15:01:48,758 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
             [testng] 15:01:48,759 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
             [testng] 15:01:48,784 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
             [testng] 15:01:48,785 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
             [testng] 15:01:48,785 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
             [testng] 15:01:48,785 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
             [testng] 15:01:48,787 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
             [testng] 15:01:48,790 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
             [testng] 15:01:48,791 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
             [testng] 15:01:48,791 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
             [testng] 15:01:48,792 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
             [testng] 15:01:48,797 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
             [testng] 15:01:48,798 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
             [testng] 15:01:48,799 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
             [testng] 15:01:48,800 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
             [testng] 15:01:48,809 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
             [testng] 15:01:48,809 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
             [testng] 15:01:48,810 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
             [testng] 15:01:48,819 INFO [Component] Component: org.jboss.seam.core.transactionListener, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.core.TransactionListener, JNDI: java:comp/env/payroll-ejb/TransactionListener/local
             [testng] 15:01:48,824 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
             [testng] 15:01:48,825 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
             [testng] 15:01:48,826 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
             [testng] 15:01:48,831 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
             [testng] 15:01:48,831 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
             [testng] 15:01:48,857 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
             [testng] 15:01:48,859 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
             [testng] 15:01:48,860 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
             [testng] 15:01:48,862 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
             [testng] 15:01:48,867 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
             [testng] 15:01:48,871 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
             [testng] 15:01:48,879 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
             [testng] 15:01:48,879 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
             [testng] 15:01:48,880 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
             [testng] 15:01:48,880 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
             [testng] 15:01:48,881 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
             [testng] 15:01:48,884 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverterStore
             [testng] 15:01:48,884 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageResource
             [testng] 15:01:48,885 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageStore
             [testng] 15:01:48,885 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
             [testng] 15:01:48,886 INFO [Component] Component: session, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession
             [testng] 15:01:48,892 INFO [Component] Component: turkishEmployee, scope: SESSION, type: JAVA_BEAN, class: datassist.payroll.action.turkishEmployee
             [testng] 15:01:48,894 INFO [Component] Component: unit, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.entity.Unit
             [testng] 15:01:48,896 INFO [Component] Component: unitAction, scope: CONVERSATION, type: JAVA_BEAN, class: datassist.payroll.action.UnitAction
             [testng] 15:01:48,903 INFO [Component] Component: unitTree, scope: SESSION, type: JAVA_BEAN, class: datassist.payroll.action.UnitTree
             [testng] 15:01:48,907 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
             [testng] 15:01:48,908 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
             [testng] 15:01:48,908 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.dynamicImageResource
             [testng] 15:01:48,908 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
             [testng] 15:01:48,908 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
             [testng] 15:01:48,908 INFO [Lifecycle] starting up: org.jboss.seam.core.ejb
             [testng] 15:01:48,909 INFO [Ejb] starting the embedded EJB container
             [testng] 15:01:49,288 WARN [BeanSchemaBinding] You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
             [testng] 15:01:49,512 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/DefaultDS'
             [testng] 15:01:50,045 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to datassist.util.SilinmemesiGerekenBosBirEJBBean org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@109dc35
             [testng] 15:01:50,053 INFO [Ejb3Deployment] EJB3 deployment time took: 358
             [testng] 15:01:50,414 INFO [Ejb3Deployment] EJB3 deployment time took: 360
             [testng] 15:01:50,418 INFO [Ejb3Deployment] EJB3 deployment time took: 3
             [testng] 15:01:50,476 INFO [Ejb3Deployment] EJB3 deployment time took: 57
             [testng] 15:01:50,492 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=build,name=SilinmemesiGerekenBosBirEJBBean,service=EJB3 with dependencies:
             [testng] 15:01:50,658 INFO [EJBContainer] STARTED EJB: datassist.util.SilinmemesiGerekenBosBirEJBBean ejbName: SilinmemesiGerekenBosBirEJBBean
             [testng] 15:01:50,678 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=jboss-seam,name=Dispatcher,service=EJB3 with dependencies:
             [testng] 15:01:50,714 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.Dispatcher ejbName: Dispatcher
             [testng] 15:01:50,735 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=jboss-seam,name=TransactionListener,service=EJB3 with dependencies:
             [testng] 15:01:50,758 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.TransactionListener ejbName: TransactionListener
             [testng] 15:01:50,768 INFO [Lifecycle] starting up: hibernateSessionFactory
             [testng] 15:01:50,782 INFO [Version] Hibernate Annotations 3.2.0.CR1
             [testng] 15:01:50,789 INFO [Environment] Hibernate 3.2 cr2
             [testng] 15:01:50,791 INFO [Environment] hibernate.properties not found
             [testng] 15:01:50,793 INFO [Environment] Bytecode provider name : cglib
             [testng] 15:01:50,803 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
             [testng] 15:01:50,837 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
             [testng] 15:01:50,837 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
             [testng] 15:01:50,844 INFO [Configuration] Reading mappings from resource: variable.hbm.xml
             [testng] 15:01:50,901 INFO [Configuration] Reading mappings from resource: value.hbm.xml
             [testng] 15:01:50,943 INFO [Configuration] Reading mappings from resource: item.hbm.xml
             [testng] 15:01:50,992 INFO [Configuration] Configured SessionFactory: session
             [testng] 15:01:51,031 INFO [HbmBinder] Mapping class: datassist.payroll.entity.variable.Variable -> Variable
             [testng] 15:01:51,113 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.variable.BigDecimalVariable -> Variable
             [testng] 15:01:51,113 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.variable.DateVariable -> Variable
             [testng] 15:01:51,114 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.variable.StringVariable -> Variable
             [testng] 15:01:51,114 INFO [HbmBinder] Mapping class: datassist.payroll.entity.value.Value -> Value
             [testng] 15:01:51,115 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.value.BigDecimalValue -> Value
             [testng] 15:01:51,115 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.value.DateValue -> Value
             [testng] 15:01:51,116 INFO [HbmBinder] Mapping subclass: datassist.payroll.entity.value.StringValue -> Value
             [testng] 15:01:51,116 INFO [HbmBinder] Mapping class: datassist.payroll.entity.Item -> Item
             [testng] 15:01:51,122 INFO [HbmBinder] Mapping union-subclass: datassist.payroll.entity.Category -> Category
             [testng] 15:01:51,123 INFO [HbmBinder] Mapping union-subclass: datassist.payroll.entity.Unit -> Unit
             [testng] 15:01:51,123 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Unit.categories -> unit_category
             [testng] 15:01:51,123 INFO [HbmBinder] Mapping union-subclass: datassist.payroll.entity.Employment -> Employment
             [testng] 15:01:51,124 INFO [HbmBinder] Mapping union-subclass: datassist.payroll.entity.Employee -> Employee
             [testng] 15:01:51,124 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Employee.categories -> Employee_categories
             [testng] 15:01:51,125 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Item.values -> Value
             [testng] 15:01:51,125 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Category.childCategories -> Category
             [testng] 15:01:51,126 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Category.variables -> Variable
             [testng] 15:01:51,126 INFO [HbmBinder] Mapping collection: datassist.payroll.entity.Employee.employments -> Employment
             [testng] 15:01:51,164 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,165 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,182 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,183 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,212 WARN [ClassValidator] Original type of property public java.lang.Object datassist.payroll.entity.value.Value.getCore() is unbound and has been approximated.
             [testng] 15:01:51,214 WARN [ClassValidator] Original type of property core is unbound and has been approximated.
             [testng] 15:01:51,229 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
             [testng] 15:01:51,229 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
             [testng] 15:01:51,229 INFO [DriverManagerConnectionProvider] autocommit mode: false
             [testng] 15:01:51,271 INFO [DriverManagerConnectionProvider] using driver: org.postgresql.ds.PGSimpleDataSource at URL: jdbc:postgresql://192.168.10.79:5432/bordro_taskin
             [testng] 15:01:51,271 INFO [DriverManagerConnectionProvider] connection properties: {user=postgres, password=****, release_mode=after_statement}
             [testng] 15:01:51,358 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.2.0
             [testng] 15:01:51,359 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.2 JDBC3 with SSL (build 504)
             [testng] 15:01:51,367 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
             [testng] 15:01:51,371 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
             [testng] 15:01:51,373 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
             [testng] 15:01:51,374 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
             [testng] 15:01:51,374 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
             [testng] 15:01:51,374 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
             [testng] 15:01:51,374 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
             [testng] 15:01:51,374 INFO [SettingsFactory] JDBC batch size: 15
             [testng] 15:01:51,374 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
             [testng] 15:01:51,375 INFO [SettingsFactory] Scrollable result sets: enabled
             [testng] 15:01:51,375 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
             [testng] 15:01:51,375 INFO [SettingsFactory] Connection release mode: after_statement
             [testng] 15:01:51,375 WARN [SettingsFactory] Overriding release mode as connection provider does not support 'after_statement'
             [testng] 15:01:51,375 INFO [SettingsFactory] Default batch fetch size: 1
             [testng] 15:01:51,378 INFO [SettingsFactory] Generate SQL with comments: disabled
             [testng] 15:01:51,379 INFO [SettingsFactory] Order SQL updates by primary key: disabled
             [testng] 15:01:51,379 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
             [testng] 15:01:51,380 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
             [testng] 15:01:51,380 INFO [SettingsFactory] Query language substitutions: {}
             [testng] 15:01:51,380 INFO [SettingsFactory] Second-level cache: enabled
             [testng] 15:01:51,380 INFO [SettingsFactory] Query cache: disabled
             [testng] 15:01:51,380 INFO [SettingsFactory] Cache provider: org.hibernate.cache.NoCacheProvider
             [testng] 15:01:51,381 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
             [testng] 15:01:51,381 INFO [SettingsFactory] Structured second-level cache entries: disabled
             [testng] 15:01:51,383 INFO [SettingsFactory] Echoing all SQL to stdout
             [testng] 15:01:51,383 INFO [SettingsFactory] Statistics: disabled
             [testng] 15:01:51,383 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
             [testng] 15:01:51,383 INFO [SettingsFactory] Default entity-mode: pojo
             [testng] 15:01:51,424 INFO [SessionFactoryImpl] building session factory
             [testng] 15:01:51,793 INFO [SessionFactoryObjectFactory] Factory name: session
             [testng] 15:01:51,793 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
             [testng] 15:01:51,794 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: session
             [testng] 15:01:51,794 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
             [testng] 15:01:51,799 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,799 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,800 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,800 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,808 WARN [ClassValidator] Original type of property public java.lang.Object datassist.payroll.entity.value.Value.getCore() is unbound and has been approximated.
             [testng] 15:01:51,808 WARN [ClassValidator] Original type of property core is unbound and has been approximated.
             [testng] 15:01:51,810 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,810 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,812 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:51,812 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:51,820 WARN [ClassValidator] Original type of property public java.lang.Object datassist.payroll.entity.value.Value.getCore() is unbound and has been approximated.
             [testng] 15:01:51,821 WARN [ClassValidator] Original type of property core is unbound and has been approximated.
             [testng] 15:01:51,822 INFO [SchemaExport] Running hbm2ddl schema export
             [testng] 15:01:51,823 INFO [SchemaExport] exporting generated schema to database
             [testng] 15:01:52,803 INFO [SchemaExport] schema export complete
             [testng] 15:01:52,805 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:52,805 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:52,806 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:52,806 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:52,812 WARN [ClassValidator] Original type of property public java.lang.Object datassist.payroll.entity.value.Value.getCore() is unbound and has been approximated.
             [testng] 15:01:52,812 WARN [ClassValidator] Original type of property core is unbound and has been approximated.
             [testng] 15:01:52,814 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:52,814 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:52,815 WARN [ClassValidator] Original type of property public abstract java.lang.Object datassist.payroll.entity.Treeable.getParnt() is unbound and has been approximated.
             [testng] 15:01:52,815 WARN [ClassValidator] Original type of property public abstract java.util.List datassist.payroll.entity.Treeable.getChildren() is unbound and has been approximated.
             [testng] 15:01:52,820 WARN [ClassValidator] Original type of property public java.lang.Object datassist.payroll.entity.value.Value.getCore() is unbound and has been approximated.
             [testng] 15:01:52,820 WARN [ClassValidator] Original type of property core is unbound and has been approximated.
             [testng] 15:01:52,822 INFO [Initialization] done initializing Seam
             [testng] editing on :{name=null}Not already focused
             [testng] focusing on :{name=null}Not already focused
             [testng] Returning allCategories as=[{name=null}]
             [testng] Category.PrimeValues allVariables=[]
             [testng] Returning allCategories as=[{name=null}]
             [testng]
             [testng] invokeApplicationStart
             [testng] categoryAction save method state:null
             [testng] 15:01:53,026 INFO [Ejb] stopping the embedded EJB container
             [testng] 15:01:53,072 INFO [SessionFactoryImpl] closing
             [testng] 15:01:53,072 INFO [DriverManagerConnectionProvider] cleaning up connection pool: jdbc:postgresql://192.168.10.79:5432/bordro_taskin
             [testng] 15:01:53,073 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: session
             [testng] 15:01:53,073 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
             [testng] 15:01:53,074 ERROR [NamingHelper] Could not obtain initial context
             [testng] javax.naming.NamingException: Local server is not initialized
             [testng] at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
             [testng] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
             [testng] at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
             [testng] at javax.naming.InitialContext.init(Unknown Source)
             [testng] at javax.naming.InitialContext.<init>(Unknown Source)
             [testng] at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
             [testng] at org.hibernate.impl.SessionFactoryObjectFactory.removeInstance(SessionFactoryObjectFactory.java:115)
             [testng] at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:803)
             [testng] at org.jboss.seam.core.HibernateSessionFactory.shutdown(HibernateSessionFactory.java:41)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
             [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
             [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
             [testng] at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
             [testng] at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
             [testng] at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:185)
             [testng] at org.jboss.seam.mock.SeamTest.cleanup(SeamTest.java:709)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
             [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
             [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
             [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:97)
             [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
             [testng] at org.testng.TestRunner.run(TestRunner.java:505)
             [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
             [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
             [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
             [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
             [testng] at org.testng.TestNG.run(TestNG.java:316)
             [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
             [testng] at org.testng.TestNG.main(TestNG.java:608)
             [testng] 15:01:53,075 WARN [SessionFactoryObjectFactory] Could not unbind factory from JNDI
             [testng] javax.naming.NamingException: Local server is not initialized
             [testng] at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
             [testng] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
             [testng] at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
             [testng] at javax.naming.InitialContext.init(Unknown Source)
             [testng] at javax.naming.InitialContext.<init>(Unknown Source)
             [testng] at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
             [testng] at org.hibernate.impl.SessionFactoryObjectFactory.removeInstance(SessionFactoryObjectFactory.java:115)
             [testng] at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:803)
             [testng] at org.jboss.seam.core.HibernateSessionFactory.shutdown(HibernateSessionFactory.java:41)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
             [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
             [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
             [testng] at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
             [testng] at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
             [testng] at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:185)
             [testng] at org.jboss.seam.mock.SeamTest.cleanup(SeamTest.java:709)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
             [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
             [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
             [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:97)
             [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
             [testng] at org.testng.TestRunner.run(TestRunner.java:505)
             [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
             [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
             [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
             [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
             [testng] at org.testng.TestNG.run(TestNG.java:316)
             [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
             [testng] at org.testng.TestNG.main(TestNG.java:608)
             [testng] 15:01:53,075 INFO [SchemaExport] Running hbm2ddl schema export
             [testng] 15:01:53,075 INFO [SchemaExport] exporting generated schema to database
             [testng] 15:01:53,242 INFO [SchemaExport] schema export complete
             [testng] Creating /home/levent/lab/prj/payroll/test/out/Test Intact.html
             [testng] PASSED: facesTestIntact
             [testng] FAILED: TestIntact.facesTestIntact_I()
             [testng] javax.el.ELException: org.hibernate.MappingException: Unknown entity: datassist.payroll.entity.Category_$$_javassist_1
             [testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:178)
             [testng] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
             [testng] at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
             [testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
             [testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
             [testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
             [testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
             [testng] at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:401)
             [testng] at TestIntact$3.invokeApplication(TestIntact.java:53)
             [testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:489)
             [testng] at TestIntact.facesTestIntact_I(TestIntact.java:42)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
             [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
             [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
             [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
             [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
             [testng] at org.testng.TestRunner.run(TestRunner.java:505)
             [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
             [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
             [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
             [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
             [testng] at org.testng.TestNG.run(TestNG.java:316)
             [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
             [testng] at org.testng.TestNG.main(TestNG.java:608)
             [testng] Caused by: org.hibernate.MappingException: Unknown entity: datassist.payroll.entity.Category_$$_javassist_1
             [testng] at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:547)
             [testng] at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1331)
             [testng] at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
             [testng] at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:487)
             [testng] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
             [testng] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             [testng] at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:509)
             [testng] at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:501)
             [testng] at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:497)
             [testng] at org.jboss.seam.persistence.HibernateSessionProxy.saveOrUpdate(HibernateSessionProxy.java:338)
             [testng] at datassist.payroll.action.CategoryAction.save(CategoryAction.java:136)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
             [testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
             [testng] at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
             [testng] at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
             [testng] at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
             [testng] at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:54)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
             [testng] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
             [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
             [testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
             [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
             [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
             [testng] at datassist.payroll.action.CategoryAction_$$_javassist_0.save(CategoryAction_$$_javassist_0.java)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
             [testng] ... 27 more