Ramesh Kumar

Ranch Hand
+ Follow
since Dec 28, 2004
Merit badge: grant badges
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 Ramesh Kumar

Hello,

I have a web service which is secured with message level security.

I have used Websphere Message Level Security example for creating the Webservice provider and client. I am successfully able to test the secured web service using the IDE.

Now I want to test as a standard java client.

1. Can I test secured web service using standard java client?.

2. Some body told me this can be done by packaging as a jar and updating Manifest file. Any Ideas on this?.

Please assist me.
11 years ago
Hi,

I have a question regarding message level security to the Webservices.

We have a webservice running with message level security implemented and working on Websphere application server.

I have generated a client for that webservice and now i want to implement message level security at client side also such that I can talk to the service.

Webservice provider has given me policyset, bindings and certificatess to me.

I have the following questions.

1. How can i attach the policset to the client. Copying the policyset in META-INF is enough?.

2. I assume provider given bindings are useless for me and I need to generate myself. Please correct me if I am wrong.

I am struggling a lot for implementing this. . Please help me.

Thanks,
Ramesh
12 years ago
Thanks for the reply.

I solved my issue using h:message at each form and setting for attribute of that to Form Name.

In the controller I am using the componentId of the form to assign messages to respective form message.

- Ramesh
13 years ago
JSF
Hello,

I am looking for form based error message in JSF. I have different 3 different <h:form> tags in a single jsp for 3 different sections. (I am using 3 forms becuase all three forms are independent. And having individual save functionality which checks for JSF validations if click on Save. If I use single form when i click on Save of fisrt form fires Rrquired Validations of Second Form, which is not desirable).

My form structure is like following.
<f:view>
  <h:form
   SECTION1>
  </h:form>

  <h:form
   SECTION2>
  </h:form>

  <h:form
   SECTION3>
  </h:form>
</f:view>

I Have some form level messages to show (HTML form level not page level). I am using following code to show message

FacesContext context = FacesContext.getCurrentInstance();
FacesMessage msg = new FacesMessage();
msg.setSummary(pSummary);
msg.setDetail(pDetail);
msg.setSeverity(pSeverity);
context.addMessage(null, msg);

Error message is showing in all the forms. In any way can I show form level mesages?.


13 years ago
JSF
Hello,

I have different divisions in my JSF page like (Patient Info one divison, Surgery info one division). Both divisions are there on the same form. I want to validate only one division at a time while sumbit.

What I mean is
1) Validate Pation Info Section only when user clicks save on patient Info
2) Validate Surgery Info only when user clicks save on Surgery Info

Now it is showing errors related to both sections.

Please help me.
13 years ago
JSF
I am sorry for that. Please remove this topic.
13 years ago
JSF
Hello,

We have a requirement of making the whole form ReadOnly after user enters data and clicks on submit. Same data ented by user need to be shown in read only way.

Is there a way I can do at the form level?.

- Ramesh
13 years ago
JSF
Manish,

If there is no business functionality other than delegating in other classes (Delegates,Facade,....) We can go ahead and write testcases for only controllers and DAOImpl classes.

Yes. If we test the whole functionality they will be integration test cases. For example

If the flow is like this
Controller->Delegate->Facade->DAO->DAOImpl...We write test cases for Controllers. But for running them we need testing frameworks like..JUnitEE, Cactus.......
13 years ago
Hello

Any body is working on JunitEE in RAD 7.5? I want to know which version you are working.

- Ramesh
14 years ago
Hello,

I am using JunitEE for running unit test cases in RAD 7.5. I am getting null pointer exception.

This is the complete list of things I have done for execting the test case. Please correct me If I am doing anything wrong.

1. Created a dynamic project in RAD 7.5.
2. Copied the down loaded jars of JunitEE 1.11 (junitee.jar, junitee-anttask) and Junit4.5.jar in to WEB-INF/lib of the dynamic web project
3. Copied following content into web.xml of the dynamic web project
<servlet>
<servlet-name>JUnitEETestServlet</servlet-name>
<servlet-class>org.junitee.servlet.JUnitEEServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>JUnitEETestServlet</servlet-name>
<url-pattern>/TestServlet/*</url-pattern>
</servlet-mapping>
3. Created the package and Written a sample test case.
4. Created a file named testCase.txt under WEB-INF folder contating the entry com.emomed.enews.controllers.TestNewsController
5. Build and deployed on the server Websphere 7.0 server
6. Now I am running the JunitEE Servlet.

I used the same steps in previous versions it used to show me TestClasses and testCases in a Web Page when i run the JUnitEETestServlet. But now I am getting following error. Please help me I am in terribble need of this.

12/3/08 10:47:09:738 CST] 0000001a servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet JUnitEETestServlet in application TestProjectEAR. Exception created : java.lang.NullPointerException
at org.junitee.servlet.JUnitEEServlet.streamResource(JUnitEEServlet.java:251)
at org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

[12/3/08 10:47:09:785 CST] 0000001a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[12/3/08 10:47:09:785 CST] 0000001a webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[JUnitEETestServlet]: java.lang.NullPointerException
at org.junitee.servlet.JUnitEEServlet.streamResource(JUnitEEServlet.java:251)
at org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[ December 03, 2008: Message edited by: Ramesh Kumar ]
14 years ago
Hello,

I have a select many list box. in that list box i have some user names and some department names. I need to send mails to the selected. Let us say if 2 users and one department is selected then i need to send the mails to all users of selected department and selected users (2 users).

For the requirement i am careting the list like following

listOfUsers.add(new SelectItem("1", "Ramesh", "User"));
listOfUsers.add(new SelectItem("2", "Suresh", "User"));
listOfUsers.add(new SelectItem("3", "Accounting", "Department"));

And i have coded my jsp like the following.

<t:selectManyListbox id="mailRecieversList" size="3"
value="#{internalMessageDataBean.selectedUsersList}">
<f:selectItems id="listOfUsers"
value="#{internalMessageDataBean.listOfUsers}" />
</t:selectManyListbox>

I am able to get the list of selected things in my controller. But what i am getting is only id of selected item. From that again i need to process the list for determing whether selected thing is actually a user or depatrment.

Can i get the description in any way back?. Or in any way can i accomplish this?.

Such that i need not process again?.

- Ramesh
15 years ago
JSF
Hi Friends,

I ahve a requirement of showing two images in the same cell. In that one image is tranparent image. How can do this using HTML?.

Thanks in advance
Ramesh Kumar
Hi,

I have a peculiar problem. From the browser window, when I click on back button, the data is not returning it from cache but it is hitting the action classes and getting the results. This has become a performance issue.

If you have any idea, please help me out as its very urgent for me to fix this bug.

Thanks in advance,

Ramesh Kumar
16 years ago
Hi Friends,

I am trying to install Apache and i want to make it ssl aware. My apache version is 2.2. Do i need to download any ssl software like Apache ssl or Mod_ssl?. Or Apache itself supports?.

Any one having the idea of this?. Please let me know.

Thanks
Ramesh
16 years ago
Hi Friends,

Thanks for your Reply. My Requirement is i have a project specific varable.eing it is a singl variable i can not use properties file. Being the file where i want to read that variable is not a servlet i can not use Servlet Context or Servlet Config. If i want put at a place where server reads and provides when i request for that, that solves my problem.

Please let me know if any solution.


Thanks
Ramesh
16 years ago