rajiv gupta

+ Follow
since Jan 04, 2007
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rajiv gupta


There are various ways by which we can implement polymorphism.
Refer: https://coderanch.com/t/410123/Java-General-beginner/java/Polymorphism

There are various views of people regarding the type of polymorphism.
Can any one please confirm whether Overloading is a type of polymorphism or not.
If possible, please clarify with any reference link.

I am very much confused about this.

Thanks in advance

14 years ago

This may be a simple thing for you guys.. But I am really confused about the following:

When should I include the external jar files through ' Add External jar Files' option in Java Build Path option of any project properties in Eclipse.

and when should I Put the jar files manually in the Lib folder of the project directory.

Many times I include the jar files with 'add external option', everything works , but in runtimes, it couldnt get the required classes.

So Please clarify what is the difference in both the ways.

Thanks in advance.

Thanks for all your replies.

So , Can I say that we should not use 'null != var' in java as it doesn't make any sense and using 'var != null' is much better and sensible?
14 years ago
I have one doubt regarding the checking of null for a variable/object.
Whether checking against null "null!=myVariable" is more efficient than checking like this "myVariable!=null" will make any difference in java or Both are same.
Can anyone let me know the reason for this.

Thanks in advance
14 years ago
I have an application that is working fine in WAS 5.1.
But when I tried to deploy it in WAS 6.1, it is giving the following error :

[6/9/08 13:15:18:096 IST] 00001359 ServletWrappe I SRVE0242I: [MIntel] [/MIntel] [startServlet]: Initialization successful.
[6/9/08 13:19:05:738 IST] 00001359 ServletWrappe E Deregister the mbean because of uncaught init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1010)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:316)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1119)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:149)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:741)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:421)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:274)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:271)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:653)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:606)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1295)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:567)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814).................

I tried to google a lot.But I couldnt find any solution.

Can any one please help in rectifying this exception.

Thanks in advance.

15 years ago

I am a novice to websphere.Can any one tell me from where(any website/tutorial link/files) I should start my way towards websphere.

Thanks in Advance
16 years ago

I have been told to store user id in cookie. Based on cookie users attribute preferences are fetched from database and top level and Left hand side menu is built in background and stored in cache for improved performance. There is a thread running which refreshes the public cache and per user cache.

I am new to java. Can any one tell me in detail,how cache works and how to do the coding for that as mentioned above.

Thnkx in Advance
16 years ago