-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: Transaction Management in Managed Environment
PostPosted: Mon Oct 11, 2004 8:55 am 
Newbie

Joined: Sat Oct 09, 2004 9:56 am
Posts: 4
Currently i'm using;

1) Websphere Application developer 5.1.2 edition
2) Hibernate version: 2.1.6
3) Oracle 10g
4) Driver Oracle 10g XA thin driver (Managed Connection)

I'm trying to use Hibernate's transaction interface to lookup and use WebsphereTransactionManager.

In my hibernate config files (at the moment i have two) ;
i configured to initializeHibernateSessionFactories (both)

there is a session facade calling a dao which are both SLSB's

I'm using CMT
SessionFacade : RequiresNew
DAO: Mandatory


during startup i have a HibernateException:
(Could not obtain WebSphere JTSXA instance)

Everthing else seems to be ok with my Wsad Server.


Another question :
i have suspects about my HibernateHelperBase class, currently i have two SessionFactories but there is onely one Sesssion and Transaction in ThreadLocal . Should i seperate HibernateHelperBase for both of my SessionFactories ?


Thxs for your help




I also coppied my
Hibernate-account.xml
,Hibernate-security.xml
,SessionFacade
,DAO
,ejb deployment descriptor
,HibernateConfig
,HibernateHelper
,HibernateHelperBase classes ...
and
wsad startup trace


................................................................................................

Hibernate-account.xml ;

<session-factory name="hibernate/AccountFactory">

<property name="connection.datasource">
jdbc/isbankCUSTOMER
</property>

<property name="show_sql">true</property>

<property name="transaction.manager_lookup_class"> net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
</property>

<property name="dialect">
net.sf.hibernate.dialect.Oracle9Dialect
</property>

<mapping resource="Account.xml" />
<mapping resource="AccountType.xml" />

</session-factory>

................................................................................................

................................................................................................

Hibernate-security.xml ;

<session-factory name="hibernate/SecurityFactory">

<property name="connection.datasource">
jdbc/isbankSECURITY
</property>

<property name="transaction.manager_lookup_class">
net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
</property>

<property name="dialect">
net.sf.hibernate.dialect.Oracle9Dialect
</property>

<!-- Mapping files -->
<mapping resource="Applications.xml" />
.
.
.

</session-factory>
</hibernate-configuration>

................................................................................................

........................................................................................................

in my session facade



public IResult queryAccounts(
IQuery account)
throws BaseCheckedException
{

....

try
{
accountQueryResult =
SessionLocator
.getInstance()
.getAccountDAO()
.getAccounts(
accountQueryData);

HibernateHelper.commitTransaction();

}
catch (DataAccessException e)
{
HibernateHelper.rollbackTransaction();
}
finally
{
HibernateHelper.closeSession();
}

log.info(
TrxLogHelper.buildOutputLog(new Object[] { accountQueryResult }));

return accountQueryResult;
}


........................................................................................................

........................................................................................................

in my dao ;


public IResult getAccounts(IQuery account)
throws BaseCheckedException
{
try
{
Session hSession = HibernateHelper.getSession();

....
some bussiness code goes here
...


}
catch (HibernateException he)
{
throw new DataAccessException(he.getMessage(), he);
}
finally
{
HibernateHelper.closeSession();
}
ret.setAccounts(results);
return ret;
}

........................................................................................................


........................................................................................................

In my ejb deployment descriptor ;

<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>AccountFacade</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>RequiresNew</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>AccountDAO</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Mandatory</trans-attribute>
</container-transaction>
</assembly-descriptor>


........................................................................................................


........................................................................................................


public class HibernateConfig {

static SessionFactory _sessionFactory;
public static void init() throws Exception {
System.out.println("Before configuring Hibernate");
String[] configFiles = loadFactoryPaths("");
initializeHibernateSessionFactories(configFiles);
System.out.println("After Hibernate is configured");
}

/*
* Loads locations of Hibernate-config files.
*/
private static String[] loadFactoryPaths(String fileName) {
String[] myConfigs = new String[2];
myConfigs[0] = "/Hibernate-security.xml";
myConfigs[1] = "/Hibernate-account.xml";
return myConfigs;
}

/*
* Loads Configuration and initializes SessionFactory for each given config file location.
*/
private static void initializeHibernateSessionFactories(String[] configFiles)
throws HibernateException {
//
for (int i = 0; i < configFiles.length; i++) {
try {

Configuration cfg = new Configuration();
cfg.configure(configFiles[i]);
SessionFactory sf = cfg.buildSessionFactory();

} catch (Throwable e) {

throw new ExceptionInInitializerError(e);
}

}
}

}

........................................................................................................


........................................................................................................

i have two helpers both calling a HibernateHelperBase ...


public class HibernateHelper
{
private static final String jNDIName = "hibernate/AccountFactory";

public static Session getSession() throws BaseCheckedException
{
return HibernateHelperBase.getSession(jNDIName);
}
public static void closeSession() throws BaseCheckedException
{
HibernateHelperBase.closeSession();
}
public static void beginTransaction() throws BaseCheckedException
{
HibernateHelperBase.beginTransaction(jNDIName);
}
public static void commitTransaction() throws BaseCheckedException
{
HibernateHelperBase.commitTransaction();
}
public static void rollbackTransaction() throws BaseCheckedException
{
HibernateHelperBase.rollbackTransaction();
}
}


........................................................................................................

i removed some the methods (it is very similiar to the one in CaveatEmptor example just an extra String jndiName passed into some of the methods)


public class HibernateHelperBase
{

private static Log log = LogFactory.getLog(HibernateHelperBase.class);

private static Configuration configuration;
private static SessionFactory sessionFactory;
private static final ThreadLocal threadSession = new ThreadLocal();
private static final ThreadLocal threadTransaction = new ThreadLocal();


static {
try
{
HibernateConfig.init();
}
catch (Throwable ex)
{
log.error("Building SessionFactory failed.", ex);
}
}


/**
* Returns the SessionFactory used for this static class.
*
* @param jndiName of the sessionFactory
* @return SessionFactory
*/
public static SessionFactory getSessionFactory(String jndiName)
throws BaseCheckedException
{
SessionFactory sessions = null;
try
{
Context ctx = new InitialContext();
sessions = (SessionFactory) ctx.lookup(jndiName);
}
catch (NamingException ex)
{
throw new BaseCheckedException(
"Unable to find Hibernate Factory in JNDI",
"error.hibernate.sessionFactory",
ex);
}
return sessions;
}



/**
* Retrieves the current Session local to the thread.
* <p/>
* If no Session is open, opens a new Session for the running thread.
*
* @return Session
*/
public static Session getSession(String jndiName)
throws BaseCheckedException
{
Session s = (Session) threadSession.get();
try
{
if (s == null)
{
log.debug("Opening new Session for this thread.");
if (getInterceptor() != null)
{
log.debug(
"Using interceptor: " + getInterceptor().getClass());
s =
getSessionFactory(jndiName).openSession(
getInterceptor());
}
else
{
s = getSessionFactory(jndiName).openSession();
}
threadSession.set(s);
}
}
catch (HibernateException ex)
{
throw new BaseCheckedException(
"Unable to get Hibernate Session from Factory" + jndiName,
"error.hibernate.session",
ex);
}
return s;
}


/**
* Start a new database transaction.
*
* @param jndiName of the sessionFactory
*/
public static void beginTransaction(String jndiName)
throws BaseCheckedException
{
Transaction tx = (Transaction) threadTransaction.get();
try
{
if (tx == null)
{
log.debug("Starting new database transaction in this thread.");
tx = getSession(jndiName).beginTransaction();
threadTransaction.set(tx);
}
}
catch (HibernateException ex)
{
throw new BaseCheckedException(
"Unable to begin Hibernate Transaction " + jndiName,
"error.hibernate.transaction",
ex);
}
}


/**
* Commit the database transaction.
*/
public static void commitTransaction() throws BaseCheckedException
{
Transaction tx = (Transaction) threadTransaction.get();
try
{
if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack())
{
log.debug("Committing database transaction of this thread.");
tx.commit();
}
threadTransaction.set(null);
}
catch (HibernateException ex)
{
rollbackTransaction();
throw new BaseCheckedException(
"Unable to commit Hibernate Transaction ",
"error.hibernate.transaction",
ex);
}
}


}

................................................................................................


................................................................................................

wsad startup log


*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 4408
Host Operating System is Windows 2000, version 5.0
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51
user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51
Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:\src\IsbankLibrary\commons\commons-lang.jar;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;\C:\src\IsbankLibrary\commons\commons-validator.jar;\C:\src\IsbankLibrary\commons\commons-collections.jar;\C:\src\IsbankLibrary\commons\commons-dbcp.jar;\C:\src\IsbankLibrary\commons\commons-digester.jar;\C:\src\IsbankLibrary\commons\commons-el.jar;\C:\src\IsbankLibrary\commons\commons-el-ext.jar;\C:\src\IsbankLibrary\commons\commons-fileupload.jar;\C:\src\IsbankLibrary\commons\commons-lang.jar;\C:\src\IsbankLibrary\commons\commons-logging.jar;\C:\src\IsbankLibrary\commons\commons-pool.jar;\C:\src\IsbankLibrary\commons\commons-resources.jar;\C:\src\IsbankLibrary\commons\commons-beanutils.jar;\C:\src\IsbankLibrary\ecs-1.4.2\ecs-1.4.2.jar;\C:\src\IsbankLibrary\hibernate\xalan.jar;\C:\src\IsbankLibrary\hibernate\dom4j.jar;\C:\src\IsbankLibrary\hibernate\hibernate2.jar;\C:\src\IsbankLibrary\hibernate\odmg.jar;\C:\src\IsbankLibrary\hibernate\cglib2.jar;\C:\src\IsbankLibrary\j2ee-1.3\j2ee.jar;\C:\src\IsbankLibrary\jakarta\jakarta-oro.jar;\C:\src\IsbankLibrary\jakarta\jakarta-regexp-1.2.jar;\C:\src\IsbankLibrary\jakarta\poi-2.5.jar;\C:\src\IsbankLibrary\jdbc\sqlserver\microsoft\msbase.jar;\C:\src\IsbankLibrary\jdbc\sqlserver\microsoft\mssqlserver.jar;\C:\src\IsbankLibrary\jdbc\sqlserver\microsoft\msutil.jar;\C:\src\IsbankLibrary\log4j-1.2.8\log4j.jar;\C:\src\IsbankLibrary\struts 1.1\struts.jar;\C:\src\IsbankLibrary\xerces\xml-apis.jar;\C:\src\IsbankLibrary\Junit 3.8.1\junit.jar;\C:\src\IsbankLibrary\cactus 1.6.1;\C:\src\IsbankLibrary\cactus 1.6.1\aspectjrt-1.1.1.jar;\C:\src\IsbankLibrary\cactus 1.6.1\cactus-1.6.1.jar;\C:\src\IsbankLibrary\cactus 1.6.1\commons-httpclient-2.0.jar;\C:\src\IsbankLibrary\jdbc\db2\db2jcc.jar;C:\src\IsbankCommon\logging;C:\src\HibernateDB\config;C:\src\IsbankLibrary\hibernate\ehcache-0.9.jar;C:\src\IsbankLibrary\hibernate\jta.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib;D:\Oracle\product\10.1.0\Client_1\bin;D:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;D:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\MERANT\ODBC;C:\Program Files\Rational\common;C:\Sybase\DLL;C:\Sybase\BIN;C:\Program Files\Sybase\Sybase Central\win32;C:\Sybase\ASEP;C:\Program Files\cvsnt;C:\firestorm-2.1\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib;D:\Oracle\product\10.1.0\Client_1\bin;D:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;D:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLL
************* End Display Current Environment *************
[11/10/04 15:11:20:375 EEST] 3cc3bf91 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[11/10/04 15:11:21:375 EEST] 3cc3bf91 AdminInitiali A ADMN0015I: AdminService initialized
[11/10/04 15:11:22:812 EEST] 3cc3bf91 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
[11/10/04 15:11:22:875 EEST] 3cc3bf91 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
[11/10/04 15:11:23:297 EEST] 3cc3bf91 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
[11/10/04 15:11:23:297 EEST] 3cc3bf91 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
[11/10/04 15:11:23:328 EEST] 3cc3bf91 SecurityCompo I SECJ0240I: Security service initialization completed successfully
[11/10/04 15:11:23:328 EEST] 3cc3bf91 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
[11/10/04 15:11:27:906 EEST] 3cc3bf91 ResourceMgrIm I WSVR0049I: Binding Data source 3 as jdbc/isbankSECURITY
[11/10/04 15:11:27:922 EEST] 3cc3bf91 ResourceMgrIm I WSVR0049I: Binding Data source 4 as jdbc/isbankCUSTOMER
[11/10/04 15:11:28:953 EEST] 3cc3bf91 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
[11/10/04 15:11:33:484 EEST] 3cc3bf91 ApplicationMg A WSVR0200I: Starting application: IBMUTC
[11/10/04 15:11:33:672 EEST] 3cc3bf91 WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002
[11/10/04 15:11:33:703 EEST] 3cc3bf91 WebContainer A SRVE0162I: Servlet Specification Level: 2.3
[11/10/04 15:11:33:719 EEST] 3cc3bf91 WebContainer A SRVE0163I: Supported JSP Specification Level: 1.2
[11/10/04 15:11:33:875 EEST] 3cc3bf91 WebContainer A SRVE0169I: Loading Web Module: IBM Universal Test Client.
[11/10/04 15:11:34:297 EEST] 3cc3bf91 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init
[11/10/04 15:11:34:453 EEST] 3cc3bf91 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init
[11/10/04 15:11:34:562 EEST] 3cc3bf91 ApplicationMg A WSVR0221I: Application started: IBMUTC
[11/10/04 15:11:34:562 EEST] 3cc3bf91 ApplicationMg A WSVR0200I: Starting application: IsbankEAR
[11/10/04 15:11:34:688 EEST] 3cc3bf91 EJBContainerI I WSVR0207I: Preparing to start EJB jar: IsbankCoreEJB.jar
[11/10/04 15:11:35:328 EEST] 3cc3bf91 EJBContainerI I WSVR0037I: Starting EJB jar: IsbankCoreEJB.jar
[11/10/04 15:11:35:469 EEST] 3cc3bf91 SystemOut O Before configuring Hibernate
[11/10/04 15:11:35:484 EEST] 3cc3bf91 Environment I net.sf.hibernate.cfg.Environment Hibernate 2.1.6
[11/10/04 15:11:35:484 EEST] 3cc3bf91 Environment I net.sf.hibernate.cfg.Environment loaded properties from resource hibernate.properties: {hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, hibernate.cglib.use_reflection_optimizer=true, hibernate.jdbc.batch_size=0, hibernate.cache.use_query_cache=true, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N'}
[11/10/04 15:11:35:484 EEST] 3cc3bf91 Environment I net.sf.hibernate.cfg.Environment using CGLIB reflection optimizer
[11/10/04 15:11:35:500 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration configuring from resource: /Hibernate-security.xml
[11/10/04 15:11:35:500 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Configuration resource: /Hibernate-security.xml
[11/10/04 15:11:35:578 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Applications.xml
[11/10/04 15:11:35:734 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Application -> APPLICATIONS
[11/10/04 15:11:35:812 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Application.roles -> APPLICATION_ROLES
[11/10/04 15:11:35:844 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Group.xml
[11/10/04 15:11:35:938 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Group -> GROUPS
[11/10/04 15:11:35:938 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Group.applications -> APPLICATION_ROLES
[11/10/04 15:11:35:938 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Menu.xml
[11/10/04 15:11:35:969 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Menu -> MENU
[11/10/04 15:11:35:984 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Menu.menuItems -> MENU_MENUITEMS
[11/10/04 15:11:35:984 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: MenuItem.xml
[11/10/04 15:11:36:109 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.MenuItem -> MENUITEM
[11/10/04 15:11:36:125 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: MenuItemDefinition.xml
[11/10/04 15:11:36:234 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.MenuItemDefinition -> MENUITEMDFN
[11/10/04 15:11:36:234 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.MenuItemDefinition.permissions -> MENUITEMDFN_PERMISSION
[11/10/04 15:11:36:234 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: MenuType.xml
[11/10/04 15:11:36:312 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.MenuType -> MENUTYPE
[11/10/04 15:11:36:312 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Permission.xml
[11/10/04 15:11:36:344 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Permission -> PERMISSIONS
[11/10/04 15:11:36:344 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Preference.xml
[11/10/04 15:11:36:359 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Preference -> PREFERENCE
[11/10/04 15:11:36:359 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: Role.xml
[11/10/04 15:11:36:406 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.Role -> ROLE
[11/10/04 15:11:36:406 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Role.permissions -> ROLE_PERMISSION
[11/10/04 15:11:36:406 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: SecureUser.xml
[11/10/04 15:11:36:438 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.SecureUser -> SECURE_USER
[11/10/04 15:11:36:453 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: User.xml
[11/10/04 15:11:36:484 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping class: com.isbank.model.security.vo.User -> USERS
[11/10/04 15:11:36:484 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.User.userPreferences -> USER_PREFERENCES
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.User.groups -> USER_GROUPS
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration Configured SessionFactory: hibernate/SecurityFactory
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration processing one-to-many association mappings
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Application.menus -> MENU
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.Application.permissions -> PERMISSIONS
[11/10/04 15:11:36:500 EEST] 3cc3bf91 Binder I net.sf.hibernate.cfg.Binder Mapping collection: com.isbank.model.security.vo.MenuItem.menuItems -> MENUITEM
[11/10/04 15:11:36:672 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration processing one-to-one association property references
[11/10/04 15:11:36:672 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration processing foreign key constraints
[11/10/04 15:11:36:688 EEST] 3cc3bf91 Dialect I net.sf.hibernate.dialect.Dialect Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
[11/10/04 15:11:36:703 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use outer join fetching: true
[11/10/04 15:11:36:703 EEST] 3cc3bf91 NamingHelper I net.sf.hibernate.util.NamingHelper JNDI InitialContext properties:{}
[11/10/04 15:11:36:734 EEST] 3cc3bf91 ConnectionFac I J2CA0122I: Resource reference jdbc/isbankSECURITY could not be located, so default values of the following are used: [Resource-ref settings]

res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]

isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)

[11/10/04 15:11:36:766 EEST] 3cc3bf91 DatasourceCon I net.sf.hibernate.connection.DatasourceConnectionProvider Using datasource: jdbc/isbankSECURITY
[11/10/04 15:11:36:766 EEST] 3cc3bf91 TransactionMa I net.sf.hibernate.transaction.TransactionManagerLookupFactory instantiating TransactionManagerLookup: net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
[11/10/04 15:11:36:781 EEST] 3cc3bf91 TransactionMa I net.sf.hibernate.transaction.TransactionManagerLookupFactory instantiated TransactionManagerLookup
[11/10/04 15:11:36:781 EEST] 3cc3bf91 ConnectionMan W J2CA0075W: An active transaction should be present while processing method allocateMCWrapper.
[11/10/04 15:11:36:859 EEST] 3cc3bf91 WSRdbDataSour I DSRA8203I: Database product name : Oracle
[11/10/04 15:11:36:859 EEST] 3cc3bf91 WSRdbDataSour I DSRA8204I: Database product version : Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining Scoring Engine options
[11/10/04 15:11:36:859 EEST] 3cc3bf91 WSRdbDataSour I DSRA8205I: JDBC driver name : Oracle JDBC driver
[11/10/04 15:11:36:859 EEST] 3cc3bf91 WSRdbDataSour I DSRA8206I: JDBC driver version : 10.1.0.2.0
[11/10/04 15:11:36:922 EEST] 3cc3bf91 ConnectionMan W J2CA0075W: An active transaction should be present while processing method initializeForUOW.
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use scrollable result sets: true
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use JDBC3 getGeneratedKeys(): false
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Optimize cache for minimal puts: false
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory echoing all SQL to stdout
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Query language substitutions: {no='N', true=1, yes='Y', false=0}
[11/10/04 15:11:36:969 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory cache provider: net.sf.ehcache.hibernate.Provider
[11/10/04 15:11:36:984 EEST] 3cc3bf91 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory query cache factory: net.sf.hibernate.cache.StandardQueryCacheFactory
[11/10/04 15:11:36:984 EEST] 3cc3bf91 Configuration I net.sf.hibernate.cfg.Configuration instantiating and configuring caches
[11/10/04 15:11:37:016 EEST] 3cc3bf91 SessionFactor I net.sf.hibernate.impl.SessionFactoryImpl building session factory
[11/10/04 15:11:37:703 EEST] 3cc3bf91 SessionFactor I net.sf.hibernate.impl.SessionFactoryObjectFactory Factory name: hibernate/SecurityFactory
[11/10/04 15:11:37:703 EEST] 3cc3bf91 NamingHelper I net.sf.hibernate.util.NamingHelper JNDI InitialContext properties:{}
[11/10/04 15:11:38:203 EEST] 3cc3bf91 NamingHelper I net.sf.hibernate.util.NamingHelper Creating subcontext: hibernate
[11/10/04 15:11:38:203 EEST] 3cc3bf91 SessionFactor I net.sf.hibernate.impl.SessionFactoryObjectFactory Bound factory to JNDI name: hibernate/SecurityFactory
[11/10/04 15:11:38:203 EEST] 3cc3bf91 SessionFactor W net.sf.hibernate.impl.SessionFactoryObjectFactory InitialContext did not implement EventContext
[11/10/04 15:11:38:219 EEST] 3cc3bf91 HibernateHelp E com.isbank.hibernate.HibernateHelperBase Building SessionFactory failed.
[11/10/04 15:11:38:234 EEST] 3cc3bf91 HibernateHelp E com.isbank.hibernate.HibernateHelperBase TRAS0014I: The following exception was logged java.lang.ExceptionInInitializerError
at com.isbank.hibernate.test.HibernateConfig.initializeHibernateSessionFactories(HibernateConfig.java:52)
at com.isbank.hibernate.test.HibernateConfig.init(HibernateConfig.java:22)
at at com.isbank.hibernate.HibernateHelperBase.<clinit>(HibernateHelperBase.java:45).null(Unknown Source)
at com.isbank.ejb.account.dao.hibernateImpl.HibernateHelper.beginTransaction(HibernateHelper.java:31)
at com.isbank.ejb.account.dao.hibernateImpl.AccountDAOBean.<init>(AccountDAOBean.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at java.lang.Class.newInstance3(Class.java:363)
at java.lang.Class.newInstance(Class.java:301)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1349)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1012)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:934)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913)
at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1301)
at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:1034)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1508)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
Caused by: net.sf.hibernate.HibernateException: Could not obtain WebSphere JTSXA instance
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:49)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:203)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
at com.isbank.hibernate.test.HibernateConfig.initializeHibernateSessionFactories(HibernateConfig.java:48)
... 37 more
Caused by: java.lang.ClassNotFoundException: com.ibm.ejs.jts.jta.JTSXA
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:40)
... 40 more
.
java.lang.ExceptionInInitializerError
at com.isbank.hibernate.test.HibernateConfig.initializeHibernateSessionFactories(HibernateConfig.java:52)
at com.isbank.hibernate.test.HibernateConfig.init(HibernateConfig.java:22)
at at com.isbank.hibernate.HibernateHelperBase.<clinit>(HibernateHelperBase.java:45).null(Unknown Source)
at com.isbank.ejb.account.dao.hibernateImpl.HibernateHelper.beginTransaction(HibernateHelper.java:31)
at com.isbank.ejb.account.dao.hibernateImpl.AccountDAOBean.<init>(AccountDAOBean.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at java.lang.Class.newInstance3(Class.java:363)
at java.lang.Class.newInstance(Class.java:301)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1349)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1012)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:934)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913)
at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1301)
at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:1034)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1508)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
Caused by: net.sf.hibernate.HibernateException: Could not obtain WebSphere JTSXA instance
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:49)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:203)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
at com.isbank.hibernate.test.HibernateConfig.initializeHibernateSessionFactories(HibernateConfig.java:48)
... 37 more
Caused by: java.lang.ClassNotFoundException: com.ibm.ejs.jts.jta.JTSXA
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:40)
... 40 more

[11/10/04 15:11:38:484 EEST] 3cc3bf91 EJBContainerI E WSVR0062E: Unable to start EJB, IsbankEAR#IsbankCoreEJB.jar#AccountDAO: com.isbank.framework.exception.BaseCheckedException: Unable to find Hibernate Factory in JNDI; nested exception is:
javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: hibernate/AccountFactory: First component in name AccountFactory not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0] unique exception id: null, error codeerror.hibernate.sessionFactory
javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: hibernate/AccountFactory: First component in name AccountFactory not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1399)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.isbank.hibernate.HibernateHelperBase.getSessionFactory(HibernateHelperBase.java:66)
at com.isbank.hibernate.HibernateHelperBase.getSession(HibernateHelperBase.java:162)
at com.isbank.hibernate.HibernateHelperBase.beginTransaction(HibernateHelperBase.java:215)
at com.isbank.ejb.account.dao.hibernateImpl.HibernateHelper.beginTransaction(HibernateHelper.java:31)
at com.isbank.ejb.account.dao.hibernateImpl.AccountDAOBean.<init>(AccountDAOBean.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at java.lang.Class.newInstance3(Class.java:363)
at java.lang.Class.newInstance(Class.java:301)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1349)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1012)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:934)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913)
at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1301)
at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:1034)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1508)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[11/10/04 15:11:38:531 EEST] 3cc3bf91 EJBContainerI I WSVR0041I: Stopping EJB jar: IsbankCoreEJB.jar
[11/10/04 15:11:38:688 EEST] 3cc3bf91 EJBContainerI E WSVR0042E: Unable to stop IsbankEAR#IsbankCoreEJB.jar#AccountDAO: unknown bean home name - IsbankEAR#IsbankCoreEJB.jar#AccountDAO
[11/10/04 15:11:38:922 EEST] 3cc3bf91 EJBContainerI E WSVR0043E: Unbind failed for IsbankEAR#IsbankCoreEJB.jar#AccountDAO: Name ejb/com/isbank/ejb/account/dao not found in context "local:ejb".
[11/10/04 15:11:38:938 EEST] 3cc3bf91 DeployedAppli W WSVR0206E: Module, IsbankCoreEJB.jar, of application, IsbankEAR.ear/deployments/IsbankEAR, failed to start
[11/10/04 15:11:38:953 EEST] 3cc3bf91 ApplicationMg W WSVR0101W: An error occurred starting, IsbankEAR
[11/10/04 15:11:38:969 EEST] 3cc3bf91 ApplicationMg A WSVR0217I: Stopping application: IsbankEAR
[11/10/04 15:11:38:984 EEST] 3cc3bf91 ApplicationMg A WSVR0220I: Application stopped: IsbankEAR
[11/10/04 15:11:39:125 EEST] 3cc3bf91 HttpTransport A SRVE0171I: Transport http is listening on port 9,080.
[11/10/04 15:11:41:172 EEST] 3cc3bf91 HttpTransport A SRVE0171I: Transport https is listening on port 9,443.
[11/10/04 15:11:41:328 EEST] 3cc3bf91 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
[11/10/04 15:11:41:344 EEST] 3cc3bf91 WsServer A WSVR0001I: Server server1 open for e-business


................................................................................................


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 22, 2004 1:47 am 
Newbie

Joined: Sat Oct 09, 2004 9:56 am
Posts: 4
is there any body out there, it has been 11 days and no replies from hibernate team ...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 22, 2004 2:45 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
hmm ... i'm far away from expert and i sure can be wrong, but when i'm looking at your stacktrace and finding "Caused by: java.lang.ClassNotFoundException: com.ibm.ejs.jts.jta.JTSXA" ... i would say that has nothing to do with hibernate ;)

gtx
curio


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 12:40 am 
Newbie

Joined: Sat Oct 09, 2004 9:56 am
Posts: 4
I received following message from an IBM WAS Developers ;

"The Hibernate code does not work on WebSphere Application Server 5.1.0.3 which you are running. It is using undocumented API and it is accessing the old 5.0 classes which are not present in 5.1 of WebSphere. It is trying to access a class JTSXA which does not exist in 5.1 You need to go back to the open source provider for a solution on this as this is not using the new classes in this undocumented internal api. "

In Hibernate WebSphereTransactionManagerLookup class, there are three trials but in my case non of them is successfull.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 3:06 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Yes, IBM likes to make it difficult to access their transaction manager, because this allows you to use tools you haven't paid them for.

Open a JIRA issue and someone might look into it, or better, provide a patch. It should be trivial to change the lookup for their new "internal" API.

P.S. Everyone else on the planet doesn't consider access to the TM "internal", because there is just no other way to fully integrate with CMT.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 02, 2004 6:17 pm 
Newbie

Joined: Fri Nov 05, 2004 2:13 pm
Posts: 7
I'm getting the same exception with WASD 5.1.2 (and WAS 5.1 and above). It's bugging me enough that I just might look into writing a patch.

Cem, did IBM give you the name(s) of the new class(es)? (Somehow I can't imagine they did...)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 3:01 am 
Newbie

Joined: Sat Oct 09, 2004 9:56 am
Posts: 4
this issue is also being tracked in a JIRA

http://opensource.atlassian.com/project ... tion_15447


Top
 Profile  
 
 Post subject: Hibernate in in WebSphere in MDB
PostPosted: Fri Jan 07, 2005 4:18 am 
Newbie

Joined: Thu Jan 06, 2005 11:13 am
Posts: 2
I had similar problems with an MDB.
If I enable JATTransactionManagerFactor I get the exception listed below.
If I leave the default JDBCTransactionManager then the container rolls back the transaction.

I have tried the MDB with CMT NotSupported and Required as well as no CMT and all the permutations of Hibernate TransactionManager.

The only solution is to have NO Hibernate Transactions and let the MDB should have CMT with Required.

In a Web Service I have a single Hibernate Transaction in die service implementation.


Top
 Profile  
 
 Post subject: SessionFactory in J2C
PostPosted: Fri Jan 07, 2005 6:01 am 
Newbie

Joined: Thu Jan 06, 2005 11:13 am
Posts: 2
I have a feeling that by developing a J2C Resource Adapter for Hibernate and have the sessionfactory use it when appropriate may solve a lot of TransactionManager issues.
It seems to be the only clear way to interact with the transaction manager.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.