Sanjeev Kaushik

Ranch Hand
+ Follow
since Aug 01, 2002
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 Sanjeev Kaushik

Depending upon the unsubscription event, do the required business and invalidate the session, if you think it is a session issue. After that you can show the page which is required after this step.
[ December 04, 2005: Message edited by: Sanjeev Kaushik ]
Someone please tell me if query string parameters are encrypted if GET request is made using HTTPS.

Thanks
My application is running in Websphere 5.0.
It has one part which is available in intranet and secure(https) part which is available from internet.
I have seen many times that non-secure part is working smoothly but when we access from internet it gives internal server error.

I am not sure what happens on server side as I don't have any control on server. When my web administrator restart the application, it works fine.

any clue please!!!
13 years ago
Here is the exception message, when I start server in WSAD test environment.


[5/31/05 14:13:40:469 CDT] 4fd68c82 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
[5/31/05 14:13:43:625 CDT] 4fd68c82 JMSEmbeddedPr A MSGS0050I: Starting the Queue Manager
[5/31/05 14:13:44:406 CDT] 4fd68c82 QueueManagerM W MSGS0117W: End Queue Manager trace failed with exception: com.ibm.ws.process.exception.InvalidExecutableException: The system cannot find the file specified.
002: No such file or directory
at com.ibm.ws.process.Win32ProcessGlue.create(Native Method)
at com.ibm.ws.process.Win32ProcessImpl.create(Win32ProcessImpl.java:90)
at com.ibm.ws.process.ProcessFactory.create(Unknown Source)
at com.ibm.ws.messaging.QueueManagerManager.setTraceNone(QueueManagerManager.java:748)
at com.ibm.ws.messaging.QueueManagerTraceListener.traceStateChanged(QueueManagerTraceListener.java:76)
at com.ibm.ws.messaging.QueueManagerManager.startQueueManager(QueueManagerManager.java:348)
at com.ibm.ws.messaging.JMSEmbeddedProviderImpl.start(JMSEmbeddedProviderImpl.java:182)
at com.ibm.ws.messaging.JMSService.start(JMSService.java:288)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
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 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)

[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R com.ibm.ws.process.exception.InvalidExecutableException: The system cannot find the file specified.
002: No such file or directory
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.Win32ProcessGlue.create(Native Method)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.Win32ProcessImpl.create(Win32ProcessImpl.java:90)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.ProcessFactory.create(Unknown Source)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.QueueManagerManager.setTraceNone(QueueManagerManager.java:748)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.QueueManagerTraceListener.traceStateChanged(QueueManagerTraceListener.java:76)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.QueueManagerManager.startQueueManager(QueueManagerManager.java:348)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.JMSEmbeddedProviderImpl.start(JMSEmbeddedProviderImpl.java:182)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.JMSService.start(JMSService.java:288)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at java.lang.reflect.Method.invoke(Native Method)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
[5/31/05 14:13:44:422 CDT] 4fd68c82 SystemErr R at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
[5/31/05 14:13:44:641 CDT] 4fd68c82 QueueManagerM E MSGS0153E: The Queue Manager process strmqm could not be started - error: com.ibm.ws.process.exception.InvalidExecutableException: The system cannot find the file specified.
002: No such file or directory
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R com.ibm.ws.process.exception.InvalidExecutableException: The system cannot find the file specified.
002: No such file or directory
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.Win32ProcessGlue.create(Native Method)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.Win32ProcessImpl.create(Win32ProcessImpl.java:90)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.process.ProcessFactory.create(Unknown Source)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.QueueManagerManager.startQueueManager(QueueManagerManager.java:363)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.JMSEmbeddedProviderImpl.start(JMSEmbeddedProviderImpl.java:182)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.messaging.JMSService.start(JMSService.java:288)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at java.lang.reflect.Method.invoke(Native Method)
[5/31/05 14:13:44:641 CDT] 4fd68c82 SystemErr R at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
[5/31/05 14:13:44:656 CDT] 4fd68c82 SystemErr R at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
[5/31/05 14:13:44:812 CDT] 4fd68c82 JMSService E MSGS0001E: Starting the JMS Server failed with exception: com.ibm.ws.process.exception.InvalidExecutableException: The system cannot find the file specified.
002: No such file or directory
at com.ibm.ws.process.Win32ProcessGlue.create(Native Method)
at com.ibm.ws.process.Win32ProcessImpl.create(Win32ProcessImpl.java:90)
at com.ibm.ws.process.ProcessFactory.create(Unknown Source)
at com.ibm.ws.messaging.QueueManagerManager.startQueueManager(QueueManagerManager.java:363)
at com.ibm.ws.messaging.JMSEmbeddedProviderImpl.start(JMSEmbeddedProviderImpl.java:182)
at com.ibm.ws.messaging.JMSService.start(JMSService.java:288)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
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 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)
14 years ago
How can I know if JMS Provided Embedded Messaging is installed in Websphere studio or not?
I am trying one example but it is giving exception while starting server.
14 years ago
I want to invoke a method which look like shown below

public void setFontAndSize(Font f, float size)


to find a "Method" object from the "Class" following method needs to be called

getMethod(String name, Class[] parameterTypes)

I am having problem passing array of class for premitive type float. If I pass Float, it gives NoSuchMethodException.

Class types [] = {Font.class, Float.class}
This gives error

Any idea???
14 years ago
Has the JSF been included in any of the application server?
Is is avaialble in tomcat which is indeed free?
14 years ago
Sorry. Here is little correction

if(text1 == null) {
return;//it will not process
}
String sqlText = "Select * from employee Where ";
sqlText += " column1 = '" + text1 + "'";

if(text2 != null) {
sqlText == " and column2 = '" + text2 + "'"; //and/or will depend on your requirement
}
...
...
...
But in this you have to ensure in your front end that if there is only one input then it should be text1 only.
String sqlText = "Select * from employee Where ";
if(text1 != null) {
sqlText += " column1 = 1 ";

if(text2 != null) {
sqlText == " and column2 = 2 "; //and/or will depend on your requirement
}
...
...
...
But in this you have to ensure in your front end that if there is only one input then it should be text1 only.

Hope it may help you.
Defining, creating, accessing a bean, all these statements will become a part of jspService method.
In one method you can define only one variable with a particular name. If you use the already defined variable, it will fail to compile.

From your JSP it appears that if this JSP is statically included in some another time at the time of compilation, and "bean" variable is also used there, then this error can come.

In static inclusion, contents of included JSP and including JSP will come in one translation unit.

Just check your code, if such scenario is occuring. Or try change the variable name e.g. "bean" to "employeeBean".
14 years ago
Seeing the exception, it appears that problem is with SQL query u are using. Can you show me the code?
14 years ago
ServletContext is an object, which is passed to Servlets by the Servlet Container. So source is servlets. I think you can try following ways.

You can pass servlet reference to the Class which is going to use ServletConext. Once servlet reference has come you get ServletContext also.

Another way is to implement ServletContextListener interface by this class. Whenever ServletContext is created this class will get notification and from the event ServletContextEvent you can get ServletContext.

Actual scenario is not clear to me, so I am just throwing ideas. But I think above ideas should be able to help you.
14 years ago
Simple Funda - each thread has their own copy of local variables, hence threadsafe
14 years ago