-->
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.  [ 3 posts ] 
Author Message
 Post subject: Unable to run hibernate when using JNDI with websphere
PostPosted: Sat Feb 04, 2006 6:49 pm 
Newbie

Joined: Sat Feb 04, 2006 6:31 pm
Posts: 3
Location: india
hi,

I am not able to run the hibernate using websphere 5.1 test server with JNDI ...

i am using following in my sample proj

    struts 1.1
    websphere test server 5.1
    hibernate 3.0.5
    IBM db2 (data base serevr).


act, the error starts from

org.hibernate.HibernateException: java.lang.NoSuchMethodException: com.ibm.websphere.jtaextensions.ExtendedJTATransaction.registerSynchronizationCallbackForCurrentTran(com.ibm.websphere.jtaextensions.SynchronizationCallback)

but this method is there in the tx.jar .. i checked also , i don't know why it's saying that method not able found and throw exception ...


This is my hibernate.cfg.xml file ,

<?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>

<!-- Data Source properties -->
<property name="connection.datasource">jdbc/WROX</property>
<property name="transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
<property name="jndi.url">iiop://9.182.90.164:2809/</property>
<property name="jndi.class">com.ibm.websphere.naming.WsnInitialContextFactory</property>
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.default_schema">WROX</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="show_sql">true</property>
<!-- Use EHCache but not the query cache. -->
<!-- >property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property-->


<mapping resource="Roles.hbm.xml" />
<mapping resource="Departments.hbm.xml" />
<mapping resource="Employees.hbm.xml" />
</session-factory>
</hibernate-configuration>


This my console output from websphere...


*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.1 [BASE 5.1.1 a0426.01] [JDK 1.4.2 cn1420-20040626] running with process name localhost\localhost\server1 and process id 3236
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.2 IBM Windows 32 build cn1420-20040626 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51
user.install.root = C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51
Java Home = C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v51\java\jre
ws.ext.dirs = C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/java/lib;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/classes;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/classes;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib/ext;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/web/help;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/Rational/SDP/6.0/rwd/eclipse/plugins/com.ibm.etools.webservice.consumption.soap_6.0.2/runtime/worf.jar
Classpath = C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/properties;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/properties;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib/bootstrap.jar;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib/j2ee.jar;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib/lmproxy.jar;C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v51/lib/urlprotocols.jar;C:/Program Files/IBM/Rational/SDP/6.0/rwd/eclipse/plugins/com.ibm.etools.websphere.tools.common_6.0.2/wteServers.jar;C:/Program Files/IBM/Rational/SDP/6.0/rwd/eclipse/plugins/com.ibm.etools.websphere.tools.common_6.0.2/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v51\bin;C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v51\java/bin;C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v51\java/jre/bin;C:\Program Files\IBM\Rational\SDP\6.0\eclipse\jre\bin;.;C:\Program Files\IBM\Rational\SDP\6.0\eclipse\jre\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint Select;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\IBMTOOLS\Python22;C:\WINDOWS\Downloaded Program Files;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\jdk1.3.1_16\bin;C:\jakarta-jmeter-2.0.3\jakarta-jmeter-2.0.3\bin
************* End Display Current Environment *************
[2/5/06 3:52:12:660 IST] 3093d7f7 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[2/5/06 3:52:12:910 IST] 3093d7f7 AdminInitiali A ADMN0015I: AdminService initialized
[2/5/06 3:52:13:260 IST] 3093d7f7 ConfigInfoBui A NMSV0819I: No name server custom properties were found.
[2/5/06 3:52:13:371 IST] 3093d7f7 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
[2/5/06 3:52:13:441 IST] 3093d7f7 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
[2/5/06 3:52:13:541 IST] 3093d7f7 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
[2/5/06 3:52:13:541 IST] 3093d7f7 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
[2/5/06 3:52:13:551 IST] 3093d7f7 SecurityCompo I SECJ0240I: Security service initialization completed successfully
[2/5/06 3:52:13:551 IST] 3093d7f7 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
[2/5/06 3:52:15:103 IST] 3093d7f7 ResourceMgrIm I WSVR0049I: Binding DS1_CF as eis/jdbc/WROX_CMP
[2/5/06 3:52:15:173 IST] 3093d7f7 ResourceMgrIm I WSVR0049I: Binding DS1 as jdbc/WROX
[2/5/06 3:52:15:343 IST] 3093d7f7 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
[2/5/06 3:52:16:325 IST] 3093d7f7 JMXSoapAdapte A ADMC0013I: SOAP connector available at port 8880
[2/5/06 3:52:16:335 IST] 3093d7f7 SecurityCompo I SECJ0243I: Security service started successfully
[2/5/06 3:52:16:335 IST] 3093d7f7 SecurityCompo I SECJ0210I: Security enabled false
[2/5/06 3:52:16:655 IST] 3093d7f7 ApplicationMg A WSVR0200I: Starting application: IBMUTC
[2/5/06 3:52:16:866 IST] 3093d7f7 WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002
[2/5/06 3:52:16:876 IST] 3093d7f7 WebContainer A SRVE0162I: Servlet Specification Level: 2.3
[2/5/06 3:52:16:876 IST] 3093d7f7 WebContainer A SRVE0163I: Supported JSP Specification Level: 1.2
[2/5/06 3:52:16:926 IST] 3093d7f7 WebContainer A SRVE0169I: Loading Web Module: Universal Test Client.
[2/5/06 3:52:17:056 IST] 3093d7f7 WebGroup I SRVE0180I: [Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init
[2/5/06 3:52:17:126 IST] 3093d7f7 WebGroup I SRVE0180I: [Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init
[2/5/06 3:52:17:146 IST] 3093d7f7 ApplicationMg A WSVR0221I: Application started: IBMUTC
[2/5/06 3:52:17:156 IST] 3093d7f7 ApplicationMg A WSVR0200I: Starting application: Wrox
[2/5/06 3:52:17:336 IST] 3093d7f7 WebContainer A SRVE0169I: Loading Web Module: WroxWeb.
[2/5/06 3:52:17:697 IST] 3093d7f7 WebGroup I SRVE0180I: [WroxWeb] [/WroxWeb] [Servlet.LOG]: JSP 1.2 Processor: init
[2/5/06 3:52:18:157 IST] 3093d7f7 WebGroup I SRVE0180I: [WroxWeb] [/WroxWeb] [Servlet.LOG]: SimpleFileServlet: init
[2/5/06 3:52:18:157 IST] 3093d7f7 WebGroup I SRVE0180I: [WroxWeb] [/WroxWeb] [Servlet.LOG]: InvokerServlet: init
[2/5/06 3:52:18:218 IST] 3093d7f7 WebGroup I SRVE0180I: [WroxWeb] [/WroxWeb] [Servlet.LOG]: action: init
[2/5/06 3:52:18:248 IST] 3093d7f7 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[2/5/06 3:52:18:258 IST] 3093d7f7 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[2/5/06 3:52:18:628 IST] 3093d7f7 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='com.subu.struts.resources.ApplicationResources', returnNull=true
[2/5/06 3:52:18:628 IST] 3093d7f7 ApplicationMg A WSVR0221I: Application started: Wrox
[2/5/06 3:52:18:668 IST] 3093d7f7 HttpTransport A SRVE0171I: Transport http is listening on port 9,080.
[2/5/06 3:52:19:960 IST] 3093d7f7 HttpTransport A SRVE0171I: Transport https is listening on port 9,443.
[2/5/06 3:52:19:980 IST] 3093d7f7 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
[2/5/06 3:52:20:010 IST] 3093d7f7 WsServer A WSVR0001I: Server server1 open for e-business
[2/5/06 3:52:25:668 IST] 772b97f6 WebGroup I SRVE0180I: [WroxWeb] [/WroxWeb] [Servlet.LOG]: /index.jsp: init
[2/5/06 3:52:25:678 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
[2/5/06 3:52:25:738 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[2/5/06 3:52:25:748 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:758 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:758 IST] 772b97f6 SystemOut O hi i am Login Form >>>>>>>>>>
[2/5/06 3:52:25:778 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:778 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:808 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:808 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:25:818 IST] 772b97f6 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[2/5/06 3:52:34:431 IST] 772b97f6 SystemOut O hi i am Login Form >>>>>>>>>>
[2/5/06 3:52:34:451 IST] 772b97f6 SystemOut O Hi i am from Login Action --------->
[2/5/06 3:52:34:461 IST] 772b97f6 SystemOut O password --->iam
[2/5/06 3:52:34:461 IST] 772b97f6 SystemOut O @@@@@@@@@ 0 @@@@@
[2/5/06 3:52:34:561 IST] 772b97f6 Environment I org.hibernate.cfg.Environment Hibernate 3.0.5
[2/5/06 3:52:34:561 IST] 772b97f6 Environment I org.hibernate.cfg.Environment hibernate.properties not found
[2/5/06 3:52:34:571 IST] 772b97f6 Environment I org.hibernate.cfg.Environment using CGLIB reflection optimizer
[2/5/06 3:52:34:581 IST] 772b97f6 Environment I org.hibernate.cfg.Environment using JDK 1.4 java.sql.Timestamp handling
[2/5/06 3:52:34:841 IST] 772b97f6 SystemOut O ------->org.hibernate.cfg.Configuration@4f457f4
[2/5/06 3:52:34:841 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration configuring from resource: /hibernate.cfg.xml
[2/5/06 3:52:34:841 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration Configuration resource: /hibernate.cfg.xml
[2/5/06 3:52:35:042 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration Mapping resource: Roles.hbm.xml
[2/5/06 3:52:35:342 IST] 772b97f6 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.subu.shared.domain.RolesDO -> WROX.ROLES
[2/5/06 3:52:35:402 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration Mapping resource: Departments.hbm.xml
[2/5/06 3:52:35:452 IST] 772b97f6 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.subu.shared.domain.DepartmentsDO -> WROX.DEPARTMENTS
[2/5/06 3:52:35:452 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration Mapping resource: Employees.hbm.xml
[2/5/06 3:52:35:492 IST] 772b97f6 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.subu.shared.domain.EmployeesDO -> WROX.EMPLOYEES
[2/5/06 3:52:35:673 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration Configured SessionFactory: null
[2/5/06 3:52:35:673 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration processing extends queue
[2/5/06 3:52:35:673 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration processing collection mappings
[2/5/06 3:52:35:673 IST] 772b97f6 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.subu.shared.domain.RolesDO.employee -> WROX.EMPLOYEES
[2/5/06 3:52:35:683 IST] 772b97f6 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.subu.shared.domain.DepartmentsDO.employee -> WROX.EMPLOYEES
[2/5/06 3:52:35:683 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration processing association property references
[2/5/06 3:52:35:683 IST] 772b97f6 Configuration I org.hibernate.cfg.Configuration processing foreign key constraints
[2/5/06 3:52:35:703 IST] 772b97f6 NamingHelper I org.hibernate.util.NamingHelper JNDI InitialContext properties:{java.naming.provider.url=iiop://9.182.90.164:2809/, java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory}
[2/5/06 3:52:36:183 IST] 772b97f6 DatasourceCon I org.hibernate.connection.DatasourceConnectionProvider Using datasource: jdbc/WROX
[2/5/06 3:52:36:964 IST] 772b97f6 WSRdbDataSour I DSRA8203I: Database product name : DB2/NT
[2/5/06 3:52:36:975 IST] 772b97f6 WSRdbDataSour I DSRA8204I: Database product version : SQL08020
[2/5/06 3:52:36:985 IST] 772b97f6 WSRdbDataSour I DSRA8205I: JDBC driver name : IBM DB2 JDBC Universal Driver Architecture
[2/5/06 3:52:36:985 IST] 772b97f6 WSRdbDataSour I DSRA8206I: JDBC driver version : 2.3.63
[2/5/06 3:52:37:065 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory RDBMS: DB2/NT, version: SQL08020
[2/5/06 3:52:37:065 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC driver: IBM DB2 JDBC Universal Driver Architecture, version: 2.3.63
[2/5/06 3:52:37:165 IST] 772b97f6 Dialect I org.hibernate.dialect.Dialect Using dialect: org.hibernate.dialect.DB2Dialect
[2/5/06 3:52:37:195 IST] 772b97f6 TransactionFa I org.hibernate.transaction.TransactionFactoryFactory Transaction strategy: org.hibernate.transaction.CMTTransactionFactory
[2/5/06 3:52:37:205 IST] 772b97f6 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiating TransactionManagerLookup: org.hibernate.transaction.WebSphereExtendedJTATransactionLookup
[2/5/06 3:52:37:215 IST] 772b97f6 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiated TransactionManagerLookup
[2/5/06 3:52:37:215 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic flush during beforeCompletion(): disabled
[2/5/06 3:52:37:215 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic session close at end of transaction: disabled
[2/5/06 3:52:37:215 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Scrollable result sets: enabled
[2/5/06 3:52:37:215 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC3 getGeneratedKeys(): disabled
[2/5/06 3:52:37:215 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Connection release mode: null
[2/5/06 3:52:37:225 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Default schema: WROX
[2/5/06 3:52:37:225 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Default batch fetch size: 1
[2/5/06 3:52:37:225 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Generate SQL with comments: disabled
[2/5/06 3:52:37:225 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Order SQL updates by primary key: disabled
[2/5/06 3:52:37:225 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[2/5/06 3:52:37:245 IST] 772b97f6 ASTQueryTrans I org.hibernate.hql.ast.ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
[2/5/06 3:52:37:245 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Query language substitutions: {}
[2/5/06 3:52:37:245 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Second-level cache: enabled
[2/5/06 3:52:37:245 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Query cache: disabled
[2/5/06 3:52:37:245 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Cache provider: org.hibernate.cache.EhCacheProvider
[2/5/06 3:52:37:255 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Optimize cache for minimal puts: disabled
[2/5/06 3:52:37:265 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Structured second-level cache entries: disabled
[2/5/06 3:52:37:325 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Echoing all SQL to stdout
[2/5/06 3:52:37:325 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Statistics: disabled
[2/5/06 3:52:37:325 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Deleted entity synthetic identifier rollback: disabled
[2/5/06 3:52:37:325 IST] 772b97f6 SettingsFacto I org.hibernate.cfg.SettingsFactory Default entity-mode: pojo
[2/5/06 3:52:37:625 IST] 772b97f6 SessionFactor I org.hibernate.impl.SessionFactoryImpl building session factory
[2/5/06 3:52:37:645 IST] 772b97f6 Configurator W net.sf.ehcache.config.Configurator No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: wsjar:file:/C:/workspace/learn/WroxWeb/WebContent/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
[2/5/06 3:52:38:787 IST] 772b97f6 SessionFactor I org.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
[2/5/06 3:52:38:797 IST] 772b97f6 SystemOut O -------->org.hibernate.HibernateException: java.lang.NoSuchMethodException: com.ibm.websphere.jtaextensions.ExtendedJTATransaction.registerSynchronizationCallbackForCurrentTran(com.ibm.websphere.jtaextensions.SynchronizationCallback)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemOut O @@@@@@@@@ 1 @@@@@
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R java.lang.NullPointerException
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at com.subu.struts.hiber.db.EmployeeData.checkLogin(EmployeeData.java:88)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at com.subu.struts.hiber.tutorial.action.LoginAction.execute(LoginAction.java:47)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
[2/5/06 3:52:38:797 IST] 772b97f6 SystemErr R at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[2/5/06 3:52:38:807 IST] 772b97f6 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)
[2/5/06 3:52:38:817 IST] 772b97f6 RequestProces W org.apache.struts.action.RequestProcessor Unhandled Exception thrown: class java.lang.NullPointerException
[2/5/06 3:52:39:228 IST] 772b97f6 WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
at com.subu.struts.hiber.db.EmployeeData.checkLogin(EmployeeData.java:88)
at com.subu.struts.hiber.tutorial.action.LoginAction.execute(LoginAction.java:47)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)



could anyone solve my problem...
i am waiting for your valuable comment ....

thanx for your time,

regards,

Subramanian T from india.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 8:41 pm 
Newbie

Joined: Tue Jan 25, 2005 1:58 am
Posts: 3
Hi Subramanian,

Is tx.jar in your app's path?

Because you are getting method not found rather than class not found, perhaps there are two versions of that class being loaded, and the one with the missing method is getting loaded last?

Good luck!

Rob
:)


Top
 Profile  
 
 Post subject: Hi Robert
PostPosted: Mon Feb 06, 2006 2:35 am 
Newbie

Joined: Sat Feb 04, 2006 6:31 pm
Posts: 3
Location: india
Hi Robert,

Thx for quick response. May be that way. i added tx.jar in my classpath. websphere have one more tx.jar which is not have that method.

so i renamed my tx.jar file to tx1.jar file which is have that method.it's not working throwing same expception ....

how i overwrite my tx.jar file.

ok

thanks for time,

With Regards,
Subramanain
india


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.