Naveen Kumar

Ranch Hand
+ Follow
since May 29, 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 Naveen Kumar

Hi Guys,

Thanks a lot for your help.
Well my requirement is not to display the DATE in some specfig format.
The main concern over here is the Calendar.
Persian Calendar is not supported in by Sun JDK, we need to develop this calendar functionality.

My application requires the following. The users are allowed to access the application based on a locale. Here the DB is by default configured for Persian Calender. So the persian users should be able to see the date in Persian calendar and English using Gregorian.

By default Oracle stores the date in a standard format. Where the data retrieved depends on the Calender format choosen by the client. So by default the JDBC client is retrieving the date in Gregorian Calender.

What I need is to customize this based on the locale. Might be the connection to be initialized with some parameters etc.

Please do let me know what i can do to override Gergorian and get the data in specific calender based.

Thanks & Regards

Naveen
HI,

I want to read the date from Oracle as stored in Oracle.

From settings of Oracle the data format & calender are as follows.

NLS_CALENDAR=PERSIAN
NLS_DATE_FORMAT=DD MONTH YYYY

On my OS side i have also set the same parameters. (When my JVM is running)
Now when i connect to oracle using sqlplus and run the following query,
"select sysdate from dual"
the result is
SYSDATE
------------------
25 Dei 1383

But then I use JDBC java program and run the same query i get the following.
------------------
2005-01-14

These two results are based on two different calendars. The first result in sqlplus is based on PERSIAN Calender, but the result using JDBC is based on GREGORIAN.

Can any one suggest me the setting that I need to use in JDBC, so that I get the date from oracle is Persian Calender date into the java object, using JDBC.
Hi,

Everytime I stop serverA (either script or adminconsole), following errors filled in the log files.

*************
14a3da8 AdminHelper A ADMN1021I: Attempt made to stop the serverA server.
19bf7d0 HttpTransport A SRVE0172I: Stopped transport http on port 9,187.
19bf7d0 HttpTransport A SRVE0172I: Stopped transport https on port 9,546.
19bf7d0 HttpTransport A SRVE0172I: Stopped transport http on port 9,193.
19bf7d0 HttpTransport A SRVE0172I: Stopped transport https on port 9,146.
19bf7d0 HttpTransport A SRVE0172I: Stopped transport http on port 101.
19bf7d0 Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
Context method: unbind
Context name: sinusun5Cell/nodes/sinusun5/servers/serverA
Target name: RMIConnector
Other data:
Exception stack trace: javax.naming.NamingException: org.omg.CORBA.COMM_FAILURE:

Trace from server: 2134275406 at host sinusun5 >>
org.omg.CORBA.COMM_FAILURE: vmcid: 0x49421000 minor code: 64 completed: No
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.getException(OrbWorkloadRegulator.java:814)
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.handleRequestForQuiesceRequestedMode(OrbWorkloadRegulator.java:464)
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.handleRequest(OrbWorkloadRegulator.java:348)
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor.receive_request(OrbWorkloadRequestInterceptor.java:44)
at com.ibm.rmi.pi.InterceptorManager.iterateReceiveRequest(InterceptorManager.java:747)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:591)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:455)
at com.ibm.rmi.iiop.ORB.process(ORB.java:402)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1685)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2173)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:64)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
<< END server: 2134275406 at host sinusun5

vmcid: 0x49421000 minor code: 64 completed: No. Root exception is org.omg.CORBA.COMM_FAILURE:

***********

Can any one suggest what could be reason, my log file grows from 100k to 3MB with these errors.

Thanks & Regards
19 years ago
Hi,

Started preparing for test 340 & 341, had a basic question.

Are these tests based on version 5.0 or 5.1, these two base versions are having quite few differences, and are two different releases.
[ October 13, 2004: Message edited by: Naveen Kumar ]
19 years ago
Hi,

What happens to the virtuals hosts defined in the node which is deferated on to network deployment.

In the admin console atleast they are not accessable.

Does it mean all the applications installed earlier or newly will have to be mapped with the virtual hosts in the ND?

19 years ago
Hi,

I am not able to lookup JNDI when I deploy my application through ND.

When I deploy the same application on the Base version (without ND), the application works very fine.

The setup is as described below.
ND is installed on Machine A
Base version as well is installed on Machine A (It is a solaris). - Node1

A new Server "SERVER1" is created through adminconsole of ND on Node1

Application "APP1" is installed on SERVER1 using Deployment Manager.

When Application APP1 is started, it fails during startup, following erros is thrown,

57e787 SystemErr R [null][com.app.common.Service_Exception][[en_US]EJB Not Found:ejb.MyEJBHome]

JNDI URL specified for lookup is iiop://localhost:2809

changed the URL to iiop://localhost:2809/cell/nodes/Node1/servers/SERVER1/APP1

Still throws the same error.

The port in the above URL was the BOOTSTRAP_ADDRESS from SERVER1

Then tried with BOOTSTRAP_ADDRESS of nodeagent.

Still error remains the same.

Can anyone please help out, what us the right JNDI URL or is there anything else that is missing.

Regards
[ October 13, 2004: Message edited by: Naveen Kumar ]
19 years ago
Hi

Does this code work in WebSphere 4.0.7

I am facing problem in using request.getRequestDispatcher() from a JSP.

The code goes like this, (from a JSP),

***
request.getRequestDispatcher("./content.jsp").include(request, response);
***

This code works very fine in Weblogic 6.1, but I dont see it wroking in WebSphere, There are no error in the log files, even during run time.

Can any one throw some light on this aspect.

[ August 11, 2004: Message edited by: Naveen Kumar ]

[ August 11, 2004: Message edited by: Naveen Kumar ]
[ August 11, 2004: Message edited by: Naveen Kumar ]
19 years ago
I have installed WebSphere Application Server 5.1 (WAS)
I have also installed Websphere Application Server 5.1 Network deployment manager (WAS ND)

I have created two new servers on WAS 5.1 (SER1 & SER2). Further APP1 was installed on SER1 and APP2 was installed n SER2. (APP1 & APP2 are the same identical applications). These two applications started on the individual servers are running fine.

I added the cell from this WAS 5.1 to the WAS ND 5.1

I realise that two applications APP1 & APP2 are added to the ND, and can see both of them.

Now when I try starting the server SER1 and SER2 only one server SER1 is started and not the server SER2.

Can anyone explain why this is happening?

Can any one explain briefly how to create a cluster of these applucations APP1 & APP2?

Further if I start APP1 on the ND, and if it starts, How do I access the application. will it be the same virtual host etc or will it be the virual host on the ND?

[ July 22, 2004: Message edited by: Naveen Kumar ]
[ July 22, 2004: Message edited by: Naveen Kumar ]
19 years ago
I Suppose there was some problem which you might have not noticed while uninstalling the application.

If this is a test environment or development environment, and if you are ready to forgo all the configurations that you had made earlier, there is a simple way to get along, just recreate the admin database, afresh, and start with creating of resources and install the application.

in bin/admin.config, there is a flag which indicates to recreate the admin database, this option can be used and recreate the database.

If this is a production environment or you have other applications installed which you dont want to loose, then it is better you analyse what the problem is.

Hope this helps solve your problem.
[ July 22, 2004: Message edited by: Naveen Kumar ]
19 years ago
Hi, Can anyone clear this apsect of Websphere

After isntalling the network deployment of Websphere 5.1, Can we create a server (not add), and install an application on that server?
[ July 22, 2004: Message edited by: Naveen Kumar ]
19 years ago
Hi,
Yes it is possible to automate the process of creating an EAR, using ant script. (The EAR created by this way can be deployed in any app server).
Below provided is a sample ant target in the build_abc.xml for crating an EAR.
< target if="module.ear" name="ear" depends="prepare">
< ear earfile="${target_ejb.dir}/myapp.ear" appxml="${source.dir}/meta-inf/application.xml">
< fileset dir="${target_ejb.dir}">
< include name="ejb_${product.name}_abc.jar"/>
< include name="ejb_${product.name}_xyz.jar"/>
< include name="abc.war"/>
< include name="xyz.war"/>
< /fileset>
< /ear>
< /target>
Hope this can solve the problem of building the EAR file.
Regards
Naveen Kumar
20 years ago
Hi
If the JVM is going for a GC, since you have enabled -verbose, you should be able to see some entries like below.
[GC 30464K->2597K(523136K), 0.0684625 secs]
[Full GC 16189K->2703K(523136K), 0.2983244 secs]
This indicates that JVM is performing a GC.
But "starting collection" etc, I have never seen in the logs, I suppose they might not be related to GC.
But you can consider GC running for every 2 minutes to be normal. But again why dont you increase the heap size (initial & max) allocated and then check.
Regards
Naveen Kumar
[ February 03, 2004: Message edited by: Naveen Kumar ]
20 years ago
Hi,
Can anyone suggest the documents or links that I can use to understand ant with websphere.
I would like to use ant for compilation and deployment.
Regards
Naveen Kumar
20 years ago
Hi Jaideep,
Did you find a solution for your question.
Can you share it with us, it would be useful to everyone I suppose.
Regards
Naveen Kumar
20 years ago
HI,
Can anyone help me generate deployment code using ant for EJB's in WAS 5.0
I have used WAS 4.0.x and I had the following ant script working from quite some time for generating deployment code.
***** Build Script ******
< target name="ServiceManager.DeployWebsphereEJBJar">
< java fork="yes" classname="com.ibm.etools.ejbdeploy.EJBDeploy">
< arg value="${build.dir}/ejb_ServiceManager/ejb_${product.name}_ServiceManager.jar"/>
< arg value="${target_ejb.dir}">
< arg value="${target_ejb.dir}/ejb_${product.name}_ServiceManager.jar"/>
< arg value="-cp"/>
< arg value="${lib.path.os}"/>
< arg value="-dbvendor"/>
< arg value="ORACLE_V8"/>
< arg value="-trace"/>
< classpath refid="lib.path"/>
< sysproperty value="${appl.server.home}/lib" key="websphere.lib.dir"/>
< jvmarg value="-Xms64m -Xmx512m"/>
< /java>
< /target>
***** Build Script ******
But when I use the same script for WAS 5.0, I get the following error.
******** Errors *********
[java] (85 problems found) Build done.
[java] Invoking Validation on /ejb_netSymbols_ServiceManager.
[java] Invoking Library Copying Builder on /ejb_netSymbols_ServiceManager.
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): Class must implement the inherited abstract method javax.ejb.EJBObject.remove()
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): Class must implement the inherited abstract method javax.ejb.EJBObject.isIdentical(EJBObject)
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): The hierarchy of the type EJSRemoteStatelessServiceManager is inconsistent
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): Class must implement the inherited abstract method javax.ejb.EJBObject.getEJBHome()
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): Class must implement the inherited abstract method javax.ejb.EJBObject.getHandle()
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManager.java(6): Class must implement the inherited abstract method javax.ejb.EJBObject.getPrimaryKey()
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManagerHome.java(6): The hierarchy of the type EJSRemoteStatelessServiceManagerHome is inconsistent
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManagerHome_341f8ef6.java(10): EJSWrapper cannot be resolved or is not a valid superclass
[java] [*Error] ejbModule/symbols/framework/ekernel/service/manager/EJSRemoteStatelessServiceManagerHome_341f8ef6.java(26): EJSDeployedSupport cannot be resolved or is not a type
******** Errors ********* and the list goes on..
Can any one please help me in this regard.
I am clueless as to what is the problem.
Thanks & Regards
Naveen Kumar
[ January 27, 2004: Message edited by: Naveen Kumar ]
[ January 27, 2004: Message edited by: Naveen Kumar ]
[ January 27, 2004: Message edited by: Naveen Kumar ]
20 years ago