Here is the stack trace:
Code:
org.hibernate.MappingException: Unknown entity: com.nationsholding.xOps.common.model.Entity
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:489)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:64)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:561)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:556)
at com.nationsholding.xOps.common.domain.EntityDAO.getEntityByID(EntityDAO.java:64)
at com.nationsholding.xOps.common.facade.ejb.TempestOrderFacadeBean.createOrder(TempestOrderFacadeBean.java:103)
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:324)
at jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerInterceptor.java:153)
at jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeRequired(ContainerManagedTransactionInterceptor.java:304)
at jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(ContainerManagedTransactionInterceptor.java:140)
at jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(TransactionInterceptor.java:130)
at jrun.ejb.interceptors.StatelessSessionInstanceInterceptor.invokeObjectMethod(StatelessSessionInstanceInterceptor.java:49)
at jrun.ejb.interceptors.EJBSecurityInterceptor.invokeObjectMethod(EJBSecurityInterceptor.java:81)
at jrun.ejb.interceptors.LoggerInterceptor.invokeObjectMethod(LoggerInterceptor.java:72)
at jrun.ejb.EJBContainer.invokeObjectMethod(EJBContainer.java:193)
at jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocationProxyImpl.java:109)
at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:235)
at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:142)
at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:98)
at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:80)
at jrunx.rmi.Invocation.invoke(Invocation.java:304)
at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:177)
at jrun.ejb.invocation.ClientInvocationHandlerImpl.invoke(ClientInvocationHandlerImpl.java:215)
at $Proxy2.createOrder(Unknown Source)
at com.nationsholding.xOps.request.biz.XOpsRequestBD.createOrder(XOpsRequestBD.java:76)
at com.nationsholding.xOps.request.control.ProcessAction.execute(ProcessAction.java:75)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:449)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:418)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:175)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:449)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:418)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:175)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
I am running multiple session factories. I access the other before this one and that runs fine. I make sure I close the session on all my calls.
How do I change the debug log level for the session factory? In a previous post I pasted the debug log that I curently get. Here is the full debug code from start to error.
Code:
4/01 10:06:13 debug EJB container for xOpsEJB.jar#XOpsLoginFacade: invocation of Object method getCustomerByLogin beginning
- Hibernate 3.0rc1
- hibernate.properties not found
- using CGLIB reflection optimizer
- using JDK 1.4 java.sql.Timestamp handling
- configuring from XML document
- Mapping resource: com/nationsholding/xOps/common/model/ApplicationProducts.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.ApplicationProducts -> APPLICATION_PRODUCTS
- Mapping resource: com/nationsholding/xOps/common/model/CustomerOrder.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.CustomerOrder -> CUSTOMER_ORDER
- Mapping resource: com/nationsholding/xOps/common/model/EntityType.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.EntityType -> ENTITY_TYPE
- Mapping resource: com/nationsholding/xOps/common/model/OrderActivty.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.OrderActivty -> ORDER_ACTIVTY
- Mapping resource: com/nationsholding/xOps/common/model/SubProducts.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.SubProducts -> SUB_PRODUCTS
- Mapping resource: com/nationsholding/xOps/common/model/XopsCustomer.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.XOpsCustomer -> XOPS_CUSTOMER
- Configured SessionFactory: java:hibernate/xOps
- processing extends queue
- processing collection mappings
- processing association property references
- processing foreign key constraints
- Using dialect: org.hibernate.dialect.SQLServerDialect
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- Using Hibernate built-in connection pool (not for production use!)
- Hibernate connection pool size: 20
- autocommit mode: false
- using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://sqldev:1433;DatabaseName=xOps
- connection properties: {user=WebUserNLS, password=****}
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): disabled
- Using default transaction strategy (direct JDBC transactions)
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- Cache provider: org.hibernate.cache.EhCacheProvider
- Second-level cache: enabled
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: enabled
- Query cache: disabled
- Echoing all SQL to stdout
- Statistics: disabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- building session factory
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/JRun4/servers/xOps/SERVER-INF/temp/xOpsWeb.war1407583564/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
- Factory name: java:hibernate/xOps
- JNDI InitialContext properties:{}
- Creating subcontext: hibernate
- Bound factory to JNDI name: java:hibernate/xOps
- InitialContext did not implement EventContext
- Checking 0 named queries
Hibernate: select this_.CUSTOMER_ID as CUSTOMER1_0_, this_.ORIGINATION_NAME as ORIGINAT2_5_0_, this_.ADDRESS_ONE as ADDRESS3_5_0_, this_.ADDRESS_TWO as ADDRESS4_5_0_, this_.CITY as CITY5_0_, this_.ZIP as ZIP5_0_, this_.ZIP_EXT as ZIP7_5_0_, this_.REQUEST_ACCOUNT_NUMBER as REQUEST8_5_0_, this_.REQUEST_USERNAME as REQUEST9_5_0_, this_.REQUEST_PASSWORD as REQUEST10_5_0_, this_.RESPONSE_USERNAME as RESPONSE11_5_0_, this_.RESPONE_PASSWORD as RESPONE12_5_0_, this_.CERTIFICATE as CERTIFI13_5_0_, this_.NATIONS_FORMAT as NATIONS14_5_0_, this_.REQUEST_XSD as REQUEST15_5_0_, this_.RESPONSE_XSD as RESPONSE16_5_0_, this_.ENTITY_VENDOR_ID as ENTITY17_5_0_, this_.EXECUTER_ENTITY_ID as EXECUTER18_5_0_, this_.EXECUTER_ENTITY_HIERARCHY_ID as EXECUTER19_5_0_, this_.EXECUTER_COMPANY_ID as EXECUTER20_5_0_, this_.PARENT_ORDER_NAME as PARENT21_5_0_, this_.CHILD_ORDER_NAME as CHILD22_5_0_, this_.CUSTOMER_NAME as CUSTOMER23_5_0_ from XOPS_CUSTOMER this_ where this_.REQUEST_USERNAME like ?
- SQL Warning: 0, SQLState:
- [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to xOps
- SQL Warning: 0, SQLState:
- [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'xOps'.
- SQL Warning: 0, SQLState:
- [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
- SQL Warning: 0, SQLState:
- [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
04/01 10:06:20 debug EJB container for xOpsEJB.jar#XOpsLoginFacade: invocation of Object method getCustomerByLogin completed in 7060 milliseconds
IOException upon attempt to marshall 0 argument of type com.nationsholding.xOps.request.model.impl.NationsOrderImpl.
04/01 10:06:21 debug EJB container for xOpsEJB.jar#TempestOrderFacade: invocation of Object method createOrder beginning
- configuring from XML document
- Mapping resource: com/nationsholding/xOps/common/model/OrderNumber.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.OrderNumber -> order_number
- Mapping resource: com/nationsholding/xOps/common/model/Entity.hbm.xml
- Mapping class: com.nationsholding.xOps.common.model.Entity -> ENTITY
- Configured SessionFactory: java:hibernate/Nations
- processing extends queue
- processing collection mappings
- processing association property references
- processing foreign key constraints
- Using dialect: org.hibernate.dialect.SQLServerDialect
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- Using Hibernate built-in connection pool (not for production use!)
- Hibernate connection pool size: 20
- autocommit mode: false
- using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://sqldev:1433;DatabaseName=nations_robin
- connection properties: {user=WebUserNLS, password=****}
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): disabled
- Using default transaction strategy (direct JDBC transactions)
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- Cache provider: org.hibernate.cache.EhCacheProvider
- Second-level cache: enabled
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: enabled
- Query cache: disabled
- Echoing all SQL to stdout
- Statistics: disabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- building session factory
- Factory name: java:hibernate/Nations
- JNDI InitialContext properties:{}
- Bound factory to JNDI name: java:hibernate/Nations
- InitialContext did not implement EventContext
- Checking 0 named queries
- org.hibernate.MappingException: Unknown entity: com.nationsholding.xOps.common.model.Entity