Santosh Kumar

Greenhorn
+ Follow
since Jan 03, 2002
Merit badge: grant badges
For More
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Santosh Kumar

Hi,
I read so many articles but still I am not clear that the Websphere MQ provided with Websphere Application server 6.0 is just the client (I mean just two jar files com.ibm.mq.jar and com.ibm.mqjms.jar) or its a full fledge MQ server where Queue Manager, Queue etc can be created.

I have a situation like this, I have application in that there are different components (bundled in one EAR) that interact with each other through messaging, and in Websphere 5.1, we used Websphere JMS provider for this intra-component messaging, so there we had option of defining queues as well.
Now I am trying to migrate the application to RAD 6.0, and trying to use Websphere MQ provided with RAD 6.0 and getting error. Please suggest what can be done, shall I use Default messaging provided with Websphere app server 6.0?

Error from Log
----------------------
[10/3/06 12:05:32:072 EDT] 0000000a MDBListenerIm W WMSG0019E: Unable to start MDB Listener SystemPushQueue1MDB, JMSDestination jms/com_chordiant_queue_SystemPushQueue1 : javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:147)
at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:182)
at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:271)
at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:70)
at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:96)
at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:582)
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1551)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1343)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:2043)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:807)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:583)
at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:128)
at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:414)
at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:725)
at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:648)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:606)
at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:165)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:829)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:800)
at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:140)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1180)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1050)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:210)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:205)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:763)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003)
at com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:406)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:568)

[10/3/06 12:05:32:112 EDT] 0000000a MDBListenerIm I WMSG0043I: MDB Listener SystemPushQueueListener1 stopped for JMSDestination jms/com_chordiant_queue_SystemPushQueue1
[10/3/06 12:05:32:112 EDT] 0000000a MDBListenerIm I WMSG0058I: Listener Port SystemPushQueueListener1 will attempt to restart in 60 seconds
[10/3/06 12:05:32:122 EDT] 0000000a MsgListenerPo W WMSG0049E: Failed to start MDB SystemPushQueue1MDB against listener port SystemPushQueueListener1
[10/3/06 12:05:32:142 EDT] 0000000a MDBListenerIm W WMSG0019E: Unable to start MDB Listener QueueAdminTopicMDB, JMSDestination jms/com_chordiant_queue_QueueAdminTopic : javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
at com.ibm.mq.jms.MQXATopicConnectionFactory.createXATopicConnection(MQXATopicConnectionFactory.java:166)
at com.ibm.ejs.jms.JMSManagedTopicConnection.createConnection(JMSManagedTopicConnection.java:183)
at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:271)
at com.ibm.ejs.jms.JMSManagedTopicConnection.<init>(JMSManagedTopicConnection.java:72)
at com.ibm.ejs.jms.WSJMSManagedTopicConnectionFactory.createManagedConnection(WSJMSManagedTopicConnectionFactory.java:98)
at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:582)
17 years ago
Hi,
My WebSphere Application Server version details are as follows.
IBM WebSphere Application Server - ND, 6.0.2.9
Build Number: cf90614.22
Build Date: 4/7/06

The app server is running on AIX box.

I have one EAR file which contains two EJB jars (CMT.jar and BMT.jar). There are JMS as well. I am using JMS 1.1 version. One JMS resource type is javax.jms.TopicConnectionFactory and the other one is javax.jms.QueueConnectionFactory.

Now while deployement of EAR at step 6, Warning message is displayed...

---------------------------------------------------------------------------
ADMA8019E: The resources that are assigned to the application are beyond the deployment target scope. Resources are within the deployment target scope if they are defined at the cell, node, server, or application level when the deployment target is a server, or at the cell, cluster, or application level when the deployment target is a cluster. Assign resources that are within the deployment target scope of the application or confirm that these resources assignments are correct as specified.

Step 6 - Map resource references to resources resulted in the following resouce warnings. If application validation is set to fail, you will not be able to continue past.

Module:
Name: CMT
URI: CMT.jar, META-INF/ejb-jar.xml
Target: WebSphere:cell=aaa,node=bbb,server=ccc

Resource Reference:
Name: abcXAtcf_userprofile
Type: javax.jms.TopicConnectionFactory

Resource Assignment:
Name: USERPROFILE_TOPIC_CONNECTION_FACTORY
Scope: WebSphere:cell=abc,node=bbb,server=ccc

Type: JMSProvider
JNDI: jms/USERPROFILE_TOPIC_CONNECTION_FACTORY

Module:
Name: BMT
URI: BMT.jar,META-INF/ejb-jar.xml
Target: WebSphere:cell=aaa,node=bbb,server=ccc

Resource Reference:
Name: abcXAtcf_userprofile
Type: javax.jms.TopicConnectionFactory

Resource Assignment:
Name: FOUNDATION_SERVER_TOPIC_CONNECTION_FACTORY
Scope: WebSphere:cell=abc,node=bbb,server=ccc

Type: JMSProvider
JNDI: jms/FOUNDATION_SERVER_TOPIC_CONNECTION_FACTORY
-----------------------------------------------------------------------

In the summary page of the deployment it shows these warnings...

-----------------------------------------------------------------
ADMA0139W: Resource Assignment of name chordiantXAtcf_userprofile and type javax.jms.TopicConnectionFactory, with JNDI name jms/USERPROFILE_TOPIC_CONNECTION_FACTORY is found within scope of module CMT with URI CMT.jar, META-INF/ejb.jar.xml deployed to target WebSphere:cell=aaa,node=bbb,server=ccc, but of wrong resource type JMS. The expected resource type is JMSProvider.

ADMA0139W: Resource Assignment of name chordiantXAtcf_userprofile and type javax.jms.TopicConnectionFactory, with JNDI name jms/FOUNDATION_SERVER_TOPIC_CONNECTION_FACTORY is found within scope of module BMT with URI BMT.jar, META-INF/ejb.jar.xml deployed to target WebSphere:cell=aaa,node=bbb,server=ccc, but of wrong resource type JMS. The expected resource type is JMSProvider.
---------------------------------------------------------------------

I tried to find the solution but no success. Though in book WebSphere for z-OS V6 Connectivity Handbook.pdf page number 418 says something about resource type in this regard. But I dont think this is the solution. Can anybody please let me know the solution for this?
17 years ago
Hi
Thanks Satou kurinosuke for your detailed explanation. I went through the URL provided you and I found that Tomcat this statment "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file.". And this was the mistake I made. Now its working thanks.

17 years ago
Hi All,
Thanks for your reply, I tried even making war file chapter02.war and chapter04.war and using the cross webapplication forward. But it did not work. I hope this is the problem with tomcat web server only, bacause specification says that its possible.
Allthough sendRedirect("/chapter02/index.html") worked.

Thanks once again all your suggestion...

Now this thread can be closed.
17 years ago
Hi,
I tried both removing leading slash from getServletContext() and changing the properties "docbase" of context element in server.xml file, but nothing worked same error NullpointerException. The "chapter02Context" object is null, it means getServletContext is not working for across application.

Any body having any idea, what else can be done?

17 years ago
Hi,
I am not able to forward the request to another Web Application running on my tomcat server. I am facing one problem related to ServletContext's getContext() method and getting NullPointerException. chapter02Context at line number 3 is null.

1. ServletContext context = getServletConfig().getServletContext();
2. System.out.println("context="+context);
3. ServletContext chapter02Context = context.getContext("/chapter02");
4. System.out.println("chapter02Context="+chapter02Context);
5. RequestDispatcher chapter02RD = chapter02Context.getRequestDispatcher("/index.html");

6. System.out.println("chapter01RD="+chapter02RD);
7. chapter02RD.forward(req, res);

Here is the brief description I am trying to run this servlet on jakarta-tomcat-5.0.30. I have two web applications "chapter02" and "chapter04" and I am trying to forward the request from web application "chapter04" to "chapter02" index.html page using above code.

In jakarta-tomcat-5.0.30\conf\server.xml I have made these changes (refer line 1 and 2 below)..

<?xml version='1.0' encoding='utf-8'?>
<Server debug="1">
...
<Service debug="1" name="Catalina">
...
</Service>

1. <Context path="/chapter02" docBase="C:\jakarta-tomcat-5.0.30\webapps\chapter02" crossContext="true" debug="0" reloadable="true" privileged="true"/>
2. <Context path="/chapter04" docBase="C:\jakarta-tomcat-5.0.30\webapps\chapter04" crossContext="true" debug="0" reloadable="true" privileged="true"/>

</Server>

Please let me know where I am making mitake, the correct format of string parameter of context.getContext(String URI). Because when I am trying to call context.getContext("/chapter02"), its returning null.

Thanks
Santosh Kumar
17 years ago
Hi Vivek,
Please send me the Mikalai Zaikin SCWCD notes in PDF format. My email id is santosh_k19@yahoo.com.
Hi
I have SCWCD Study kit by Hunmath Deshmukh, I will refer JAVA API as well. Please let me know if need to refer some other book or some other matierial?
Sorry for replying late. Here is my tips for SCJP1.4 exam.
There were some 3-4 questions which were very confusing but other than that every thing was fine. I read Khalid Moghal and Kathy Siera book. The mock exam by http://www.danchisholm.net and Wizlab are great, read solutions as well. Went through Javaranch site. Taken some mock exams for 4-5 days before actual test.
One thing I will tell that in the exam take complete time of 2 hours and review each and every question second time, you may find some mistake while answering first time which you can correct while reviewing.
Best of luck.

Thanks
Santosh Kumar
18 years ago
Hi
I have cleared SCJP 1.4 with 93%. There were some 3-4 questions which was very confusing but other than that every thing was fine. I read Khalid Moghal and Kathy Siera book. Taken some mock exams for 4-5 days before actual test.
One thing I will tell that in the exam take complete time of 2 hours and review each and every question second time, you may find some mistake while answering first time which you can correct while reviewing.

Thanks
Santosh
18 years ago
Hi Gouri this SCWCD voucher is valid till next year August. so if you are interested please call me. Where r u located?
send me mail on santoshk19@gmail.com with complete address.

Thanks
Santosh
Hi,
I have bought discounted voucher of SUN SCWCD exam in approx 5600/-. but due to project work I am not able to concetrate on study so willing to sell my voucher.

I am located Bangalore, India.

If anybody interested please call on my Mobile no - 98458 15623.

Thanks
Santosh
Hi
I am preparing for WAS 5.0 basic administration certification (No-340) and looking for good material. Can any body provide me the mock test and documentation for this?
Even I wanted to know what is the cost of this certification?

Thanks for your help.
18 years ago
Hi
Please have a look on the error shown below while starting the server.

[6/30/04 11:42:13:645 GMT-05:00] 6f2ade69 ApplicationMg A WSVR0200I: Starting application: res_ear
[6/30/04 11:42:13:725 GMT-05:00] 6f2ade69 WebContainer A SRVE0169I: Loading Web Module: res.
[6/30/04 11:42:13:735 GMT-05:00] 6f2ade69 WebApp E SRVE0015E: Failure to initialize Web application res
[6/30/04 11:42:13:755 GMT-05:00] 6f2ade69 TraceNLS u No message text associated with key Error.Loading.Session.Context.and.Web.Application.{0} in bundle com.ibm.ejs.resources.seriousMessages
[6/30/04 11:42:13:755 GMT-05:00] 6f2ade69 WebGroup E Error.Loading.Session.Context.and.Web Application java.lang.NullPointerException
at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:587)
at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:276)
at com.ibm.ws.webcontainer.webapp.WebApp.populateJavaNameSpace(WebApp.java:1154)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:243)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:950)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:743)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:531)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[6/30/04 11:42:13:775 GMT-05:00] 6f2ade69 DeployedAppli W WSVR0206E: Module, res.war, of application, res_ear.ear/deployments/res_ear, failed to start
[6/30/04 11:42:13:785 GMT-05:00] 6f2ade69 ApplicationMg W WSVR0101W: An error occurred starting, res_ear
[6/30/04 11:42:13:805 GMT-05:00] 6f2ade69 ApplicationMg A WSVR0217I: Stopping application: res_ear
[6/30/04 11:42:13:875 GMT-05:00] 6f2ade69 ApplicationMg A WSVR0220I: Application stopped: res_ear
19 years ago
There is a term downcasting in java then when it is allowed.I know it is allowed in primitive data types but where else it is not.
Can you tell me ?
Thank you
20 years ago