Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

ramesh kancherla

Ranch Hand
+ Follow
since May 01, 2008
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 kancherla

5 years ago
Hi,

By mistakenly i copied wrong expression to post.

I am validating using String patternRgx ="^[0-9A-Za-z\\s]+$"; this expression. But still getting LDAP INJECTION.

can you please help me regarding this

Thanks & Regards
Ramesh
5 years ago
Hi team,

when we are running my source code with security scan tool then getting LDAP INJECTION.

We tried to fix LDAP INJECTION like "Validated input string (not allowing special characters in input) before calling LDAP"

But still we are getting LDAP INJECTION.

Can any one please help on my LDAP INJECTION issue.

my java code: here I am validating "username" while passing it to LDAP

5 years ago
Hi team,

when we are running my source code with security scan tool then getting LDAP INJECTION.

We tried to fix LDAP INJECTION like "Validated input (not allowing special characters in input) string before calling LDAP"

But still we are getting LDAP INJECTION.

Can any one please help regarding this fix

5 years ago
hi team,

In my Web application We are using Hibernate with EHcache.

How to ON or OFF Second level cache (EhCahe) for Webapplication.

What configuration we have to use for OFF the cache when user want to take result with out second level cache

-------------Dynamically have to change second level cache ON OFF modes-----------

can any one please suggest

Thanks & Regards
Ramesh
6 years ago
Hi team,

I have to implement x-cache in my application.

I am using spring framework and oracle data base in my application.

can any one please suggest how to implement x-cache or else

please provide documentation for x-cache

Thanks & Regards
Ramesh
6 years ago
Hi team,

I am getting error when redirecting page from external context.

error :

SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException
at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
at com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:357)
at com.tneb.service.PrintOnMap.highliteResults(PrintOnMap.java:85)
at org.apache.jsp.mapservice_jsp._jspService(mapservice_jsp.java:107)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.esri.adf.web.util.ADFFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.esri.adf.web.util.ADFSessionTimeoutFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Feb 16, 2012 4:27:10 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException



can any one please help me regarding this

Thanks & Regards
Ramesh
7 years ago
JSF
Hi Michael,
Thanks for your reply.

I have one query.

from manage bean how can we redirect url (like url http://www.google.co.in/ ) into new window


Thanks & Regards
Ramesh

8 years ago
JSF
Hi deLyonesse,
I am calling web service in managebean.
I will get one url in web service response.

so I have to open that url in new window from managebean.

& I have to display some data in alert message from manage bean.

can you please tell me how can i do it


Thanks & Regards
Ramesh
8 years ago
JSF
Hi team,
I am using JSF 1.1 in my project. I am new to JSF

1) I want to disply alert message (part of server response)

2) I want to open new window with specified url from manage bean

how can I do it. can any one please suggest me.

Thanks in Advance


Regards
Ramesh
8 years ago
JSF
Hi team,
I am using jaxB and jax-ws in my application.

I am calling service with request xml prepared by jaxb code.
but request xml is not generating correctly.

i have given xml schema as elementFormDefault="qualified" value.
so parent and all child elements needs to display xmlns.

like :name space "sch" is in parent and child elements




using jaxb request xml is generating with out name space "sch" in child elements




jaxb code is :





can any one please suggest me how can i generate request xml with parent and child having namespace using jaxb


Regards
Ramesh
Hi team,
I am using metro 2.0.
for customizing exception handling i am using webFault annotation.

when i am deploying to tomcat i am getting Nosuch method error.



i have searched in google, somebody saying endorsed folder in jdk lib.
still also i getting same exception.

can any one please suggest me how can i resolve my problem..


Thanks & Regards
Ramesh k
8 years ago
Hi team,
I have implemented jax-ws web service in my application
i have to implement security for that web service

independent of application server

how can i implement this.

can any one please suggestion me

Regards
Ramesh
8 years ago
HI Ulf,

Thanks for your reply...

I have created jboss-wsse-server.xml & jboss-wsse-client.xml files . and i configured <jboss-ws-security>.
but it is not reflecting to my application.

can you please provide sample application


Thanks in advance.....


Regards
Ramesh
8 years ago