Vani Sreedharan

Greenhorn
+ Follow
since May 11, 2006
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 Vani Sreedharan

Hi,
I have a j2ee application which has a login servlet which creates a session and redirects to a JSP. This JSP submits to an action and when trying to read the session gives a new HTTP session object. New session is created for every action class submission basically for each request. I found with the help of a listener class and when the session ids in the servlet and action are different. I doubt this is because there is no session information in the cookie and thus the container creates a new session even before reading the session in the action class. But i'm not sure if this is the eroblem and the possible fix for this. Can anyone help me fixing this problem?

Thanks in advance,
Vani
9 years ago
Have not included any JARS as this was a ready made EAR. I tried importing it in a workspace in WSAD 5.1.2.
This error goes off when that DTD was imported to local and that path was given in faces-config.xml.But cant proceed with this option as the EAR has to be deployed in different websphere boxes and local path cant be extended or placing the dtd in all machines is unnecessary.

It will be of great help if you can tell what are the jars to be placed in classpath?
11 years ago
JSF
I have an EAR which has a web project developed using JSF. When i import the EAR in WSAD 5.1.2 error occurs in the following line of faces-config.xml,

<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

Application fails to deploy. Reason - Connection refused: connect.

Any ideas?

Thanks,
Vani
11 years ago
JSF
hi,
When i tried installing a RAR file (jrules-bres-xu-WAS5.rar) in WAS 5.1 following error is thrown,

[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R com.ibm.websphere.management.exception.ConfigServiceException
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.WorkspaceHelper.getTemplate(WorkspaceHelper.java:274)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.WorkspaceHelper.getTemplate(WorkspaceHelper.java:208)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.newRefObject(MOFUtil.java:78)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.createRefObject(MOFUtil.java:1053)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.createRefObject(MOFUtil.java:314)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.DocAccessor.createRootConfigObject(DocAccessor.java:137)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.RootObjectDelegator.createConfigObject(RootObjectDelegator.java:230)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigObjectDelegator.createConfigData(ConfigObjectDelegator.java:139)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigServiceImpl.createConfigDataByTemplate(ConfigServiceImpl.java:688)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigServiceImpl.createConfigData(ConfigServiceImpl.java:720)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.websphere.management.configservice.tasks.InstallRARTask.installResourceAdapter(InstallRARTask.java:109)
[11/14/06 14:26:12:137 IST] 6d6f0462 SystemErr R at com.ibm.ws.console.resources.j2c.J2CResourceAdapterDetailAction.perform(J2CResourceAdapterDetailAction.java:387)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R Caused by: java.lang.NullPointerException
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.WorkspaceHelper.getTemplate(WorkspaceHelper.java:239)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R ... 35 more
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R ---- Begin backtrace for nested exception
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R java.lang.NullPointerException
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.WorkspaceHelper.getTemplate(WorkspaceHelper.java:239)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.WorkspaceHelper.getTemplate(WorkspaceHelper.java:208)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.newRefObject(MOFUtil.java:78)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.createRefObject(MOFUtil.java:1053)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.MOFUtil.createRefObject(MOFUtil.java:314)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.DocAccessor.createRootConfigObject(DocAccessor.java:137)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.RootObjectDelegator.createConfigObject(RootObjectDelegator.java:230)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigObjectDelegator.createConfigData(ConfigObjectDelegator.java:139)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigServiceImpl.createConfigDataByTemplate(ConfigServiceImpl.java:688)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.management.configservice.ConfigServiceImpl.createConfigData(ConfigServiceImpl.java:720)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.websphere.management.configservice.tasks.InstallRARTask.installResourceAdapter(InstallRARTask.java:109)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.console.resources.j2c.J2CResourceAdapterDetailAction.perform(J2CResourceAdapterDetailAction.java:387)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[11/14/06 14:26:12:152 IST] 6d6f0462 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[11/14/06 14:26:12:168 IST] 6d6f0462 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[11/14/06 14:26:12:168 IST] 6d6f0462 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[11/14/06 14:26:12:168 IST] 6d6f0462 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[11/14/06 14:27:38:675 IST] 6d6f0462 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /com.ibm.ws.console.events/runtime_messages.jsp: init

Any idea, how to solve this?


Thanks,
Vani
11 years ago
hi,
I have a JSP which has an iframe where dynamic loading of jsps happen ,a static left menu and top menu. I want to set the target of the jsps to the frame in servlet.I use RequestDispatcher to load these jsps, any idea how to set the target to the iframe when dispatching?

Thanks,
Vani
11 years ago
hi,
Im a java developer fulfilling all requirements for the job. But im working from India and dont have a visa to travel.
Please confirm if im eligible to apply.

Thanks,
Vani
11 years ago
hi,
Im getting the following exception when trying to configure a MQ server with my App server.

[7/10/06 17:38:42:942 IST] 7e436419 ResourceMgrIm E WSVR0017E: Error encountered binding the J2EE resource, PlantsByWebSphereConnectionFactory, as plantsby/InvQCF from file:/C:/Program Files/WebSphere/AppServer/config/cells/pciib09646/nodes/pciib09646/resources.xml
com.ibm.ws.runtime.component.binder.ResourceBindingException: invalid configuration passed to resource binding logic. REASON: java.lang.NoClassDefFoundError: com/ibm/disthub2/spi/ClientTranslate
at com.ibm.ws.runtime.component.binder.WASQueueConnectionFactoryBinder.getBindingObject(WASQueueConnectionFactoryBinder.java:193)
at com.ibm.ws.runtime.component.ResourceMgrImpl.bind(ResourceMgrImpl.java:285)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResourceProvider(ResourceMgrImpl.java:792)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResource(ResourceMgrImpl.java:717)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResources(ResourceMgrImpl.java:663)
at com.ibm.ws.runtime.component.ResourceMgrImpl.loadResources(ResourceMgrImpl.java:505)
at com.ibm.ws.runtime.component.ResourceMgrImpl.start(ResourceMgrImpl.java:440)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

Can any one help me out in solving this problem?

Thanks in Advance,
Vani
11 years ago
I use tiles-defs.xml to map jsps. This has been mentioned in plug-in declaration of struts-config.xml.But in struts-config.xml when a forward path is given to a mapping present in this xml (tiles-defs), a broken link warning message is thrown, but it works fine when executed. This also happens when a global forward path is given. Any idea, how to get rid of these warning messages?
11 years ago
i have a j2ee 1.3 Enterprise Application project which has 2 ejb projects, 3 web projects and 3 java projects inside it. When i deploy this project in WSAD 5.1.1 in Websphere 5.1 test environment with SQL as database, server gets started properly but throws HTTP 404 Not Found when i try to access the URL. Any idea why this happens?
12 years ago
Thanks a lot!... i got the problem solved.
12 years ago
Also,that is not working out.
12 years ago
import java.text.ParseException;

public class test2
{

public static void main(String[] args)
{
String formattedTime = "";
String unformatedTime = "2004-12-14 12:53:03.857 pm";
try {

java.text.DateFormat dateTimeFormat =
new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
java.text.DateFormat timeFormat =
new java.text.SimpleDateFormat("hh:mm:ss a");
/*java.text.DateFormat timeFormat =
new java.text.SimpleDateFormat("yyyyy.MMMMM.dd GGG hh:mm aaa");*/


if (unformatedTime != null && unformatedTime.trim().length() > 0) {
formattedTime =
timeFormat.format(dateTimeFormat.parse(unformatedTime));
System.out.println(formattedTime);
}

} catch (ParseException eParserException) {
System.out.println("In");
}
}

}


This was the program I tried. Please confirm if "timeFormat" is correct.
12 years ago
Also in case of 2004-12-14 12:53:03.857 its AM and not PM.
12 years ago
When "2004-12-14 00:53:03.857" is parsed to "hh:mm:ss a" format using java.text.DateFormat, result is "12:53:03 AM" but it should be "12:53:03 PM". This happens only for any time between 12 - 13 hrs.
12 years ago