Priyadarshan Kelkar

Ranch Hand
+ Follow
since Apr 04, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Priyadarshan Kelkar

Hi Faiz,

Congratulations on your great score !! I am planning to appear for this exam but could not find any ready to use books as per the exam objectives. Please can you let me know which books did you refer, which topics did you concentrate on, how did you go about the preparation. Any pointers would be useful.
Thanks in advance.
5 years ago
Hi Charles,

Eagerly awaiting your 3rd edition for the 1Z0-899 - Oracle Certified Expert, Java EE 6 Web Component Developer exam.
Please can you let us know by when should the new edition be out ? Would it be available in next 1-2 months ?

Thanks in advance.
Is Serialization and wait(),notify() topic included for OCJP 6 ?
As per the certification objectives they are not included, but they are mentioned in K&B book.
Please suggest. Thanks in advance.
I used JTA transaction in my Spring configuration instead of Datasource transaction and the issue was resolved.
6 years ago
Please can someone explain why I get a class cast exception



Thanks in advance.
Hi Mark,

Thanks for replying.
I tried with <tx:jta-transaction-manager id="txManager"/>

But it is giving the same result as before. The transaction name is still being printed "null".
Really strange what is causing it to print null.

Please can you suggest ?
Thanks in advance.
6 years ago
Hello,

I am using Spring Transactions in my project. My Spring version is 3.0.3 and IBM Websphere v6.1.0.35.

If I use JtaTransactionManager then transaction name gets printed properly in logs.

Configuration:



Output of logs for log4j.logger.org.springframework.transaction.jta=DEBUG



But if I use WebsphereUowTransactionManager, then transaction name appears 'null' in the logs.

Configuration:


Logs Output:



If someone has faced this before and managed to resolve it please share your inputs.
Thanks in advance.
6 years ago
This has been resolved after adding a few jmx settings in catalina.bat of Tomcat.
6 years ago
I would like to know the detailed steps - changes to JVM, management.properties file , jar files on classpath etc to enable JMX monitoring on Websphere. Also, how to access the websphere through Jconsole ?

Thanks in advance.
6 years ago
I am running my webapp in Tomcat 6.0. I have declared a very simple MBean as follows:

package com.my.gtw;

import org.springframework.jmx.export.annotation.ManagedA ttribute;
import org.springframework.jmx.export.annotation.ManagedR esource;


@ManagedResource(objectName="bean:name=helloWorldJ MX",description="Hello World Managed Bean")
public class HelloWorldJMX {

private String message;

@ManagedAttribute(defaultValue="hello",description ="Message Attribute")
public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

}


My app-config.xml is as follows:

<context:mbean-export />

<bean id="helloWorldMBean"
class="com.my.gtw.HelloWorldJMX"/>

When I run jconsole I do not see my MBean in the MBeans window.
Please help me .... seems to be a slip in configuration from my side.

Thanks in advance.
6 years ago
I have configured a Sybase 12.x DataSource called 'jdbc/SybaseData' in Websphere 6.1.

The jar used is jtds-1.2.5.jar with following details:

Implementation class name: net.sourceforge.jtds.jdbcx.JtdsDataSource

Data store helper class name: com.ibm.websphere.rsadapter.ConnectJDBCDataStoreHelper


I am using quartz scheduler in my application. It gives the following exception.

[2/14/11 11:02:06:831 EST] 00000030 FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:06:834 EST] 0000002f FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:21:779 EST] 00000032 FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:21:781 EST] 00000032 ErrorLogger E org.quartz.core.ErrorLogger schedulerError An error occured while marking executed job complete (will continue attempts). job= 'DEFAULT.RateServerJob'
org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'MYDS': java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/SybaseData' com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180028 [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/SybaseData' com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180028]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:690)
at org.quartz.impl.jdbcjobstore.JobStoreTX.getNonManagedTXConnection(JobStoreTX.java:69)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3753)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3725)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggeredJobComplete(JobStoreSupport.java:2957)
at org.quartz.core.QuartzScheduler.notifyJobStoreJobComplete(QuartzScheduler.java:1789)
at org.quartz.core.JobRunShell.completeTriggerRetryLoop(JobRunShell.java:416)
at org.quartz.core.JobRunShell.run(JobRunShell.java:293)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/SybaseData' com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180028
at org.quartz.utils.JNDIConnectionProvider.getConnection(JNDIConnectionProvider.java:163)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:109)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:687)
... 8 more

[2/14/11 11:02:26:539 EST] 0000003f FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:26:571 EST] 00000040 FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:44:682 EST] 0000003e FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.
[2/14/11 11:02:53:749 EST] 0000002d FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/SybaseData.


Will be happy to provide any more information required.
Please help me ..... this is urgent ...
Thanks !
6 years ago
I have WAS 6.1 installed on my machine. My workspace is in Eclipse. I have not integrated Eclipse with WAS 6.1. I want to create and EAR file and deploy on WAS 6.1. Currently I am deploying on Tomcat 6.0 server.
I have created JMS Administered objects such as ConnectionFactory, Queue etc. in WAS 6.1. Now in my servlet code I want to access these object through JNDI lookup. My lookup code is:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL,"iiop://localhost:2809");
Context jndiContext = null;
try {
jndiContext = new InitialContext(env);
} catch (NamingException e) {
System.out.println("Could not create JNDI API context: " + e.toString());
}


But I keep on getting the exception:

java.lang.NoClassDefFoundError: com/ibm/ws/bootstrap/RASWsLoggerFactory
com.ibm.websphere.naming.WsnInitialContextFactory.<clinit>(WsnInitialContextFactory.java:70)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
javax.naming.InitialContext.init(Unknown Source)
javax.naming.InitialContext.<init>(Unknown Source)
com.bnymellon.jms.MyJMSServlet.doGet(MyJMSServlet.java:39)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.ClassNotFoundException: com.ibm.ws.bootstrap.RASWsLoggerFactory
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
com.ibm.websphere.naming.WsnInitialContextFactory.<clinit>(WsnInitialContextFactory.java:70)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
javax.naming.InitialContext.init(Unknown Source)
javax.naming.InitialContext.<init>(Unknown Source)
com.bnymellon.jms.MyJMSServlet.doGet(MyJMSServlet.java:39)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)



I have following jars in my WEB-INF/lib

1) com.ibm.mq.jar
2) com.ibm.mqjms.jar
3) com.ibm.ws.admin.client_6.1.0.jar
4) com.ibm.ws.runtime_6.1.0.jar
5) com.ibm.ws.webservices.thinclient_6.1.0.jar
6) dhbcore.jar
7) ibmorb.jar
8) jms.jar
9) ws_runtime.jar
10) servlet-api.jar
7 years ago
hi ,

Please can anyone help me with why I am getting the following exception on Server Logs? The application flow is working properly but it seems to throw these exceptions. The server used for deployment is a WAS 6 Server. What could be the cause for it ?
Your help is highly appreciated.

[9/27/07 2:13:20:903 EDT] 0000005f SystemErr R com.hi.esolutions.xml.translator.exceptions.TranslatorWrapperException: Unknown: java.net.UnknownHostException

java.net.UnknownHostException: ist.apply.us.hsbc.btctest.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:464)
at java.net.Socket.connect(Socket.java:414)
at com.ibm.net.ssl.www2.protocol.http.x.b(x.java:26)
at com.ibm.net.ssl.www2.protocol.http.y.a(y.java:211)
at com.ibm.net.ssl.www2.protocol.http.y.p(y.java:159)
at com.ibm.net.ssl.www2.protocol.http.y.(y.java:44)
at com.ibm.net.ssl.www2.protocol.http.y.(y.java)
at com.ibm.net.ssl.www2.protocol.http.y.a(y.java:6)
at com.ibm.net.ssl.www2.protocol.http.y.a(y.java:319)
at com.ibm.net.ssl.www2.protocol.http.y.a(y.java:29)
at com.ibm.net.ssl.www2.protocol.http.bc.c(bc.java:424)
at com.ibm.net.ssl.www2.protocol.http.bc.connect(bc.java:124)
at com.ibm.net.ssl.www2.protocol.http.bc.getInputStream(bc.java:548)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.hi.esolutions.xml.validation.SAXValidator.validate(SAXValidator.java:58)
at com.hi.esolutions.xml.validation.SAXValidator.validate(SAXValidator.java:42)
at com.hi.esolutions.xml.translator.HttpXMLTranslator.translate(HttpXMLTranslator.java:137)
at com.hi.ehouse.loanservice.partnerportal.servlet.PartnerServlet.processRequest(PartnerServlet.java:193)
at com.hi.ehouse.arch.webclient.HIServlet.doExecute(Unknown Source)
at com.hi.ehouse.arch.webclient.HIServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:255)
at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:427)
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:242)
at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:237)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1577)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1924)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
10 years ago
hello,
I need to install 6.0.2.3-WS-WAS-IFPK19526.pak fixpack on WAS v6 Test Environment. Following are some details about my installation environment:

1) WAS 6 Test Environment - Version 6.0.2.5
2) JDK Version - one that comes with RAD 6 i.e JDK 1.4.2
3) All latest Interim Fixes installed through IBM Rational Product Updater.

But when I run the installation wizard for this fixpack it gives me an error 'Prerequisite checking has failed.
'Unable to find IBM Websphere Application Server at a version that is greater than or equal to 6.0.2.3 and less than or equal to 6.0.2.7'

Has anyone faced this problem before ? If yes , please guide me as to why I must be getting this error. As per my understanding I have all the necesaary updates installed in RAD for this fixpack to get installed.

Thanks in advance.
10 years ago