Thanks Marten, It worked after after closing the response stream.
Earlier I was receiving the error page as response XML but now I receive my custom xml after closing the stream.
Type: Posts; User: kapilgupta; Keyword(s):
Thanks Marten, It worked after after closing the response stream.
Earlier I was receiving the error page as response XML but now I receive my custom xml after closing the stream.
I had already tried returning null but in this case, the response is not received at UI layer and following exception is logged.
ModelAndView [ModelAndView: materialized View is [null]; model is...
Hi,
Am using Spring's HandleExceptionResolver for exception handling. There are just two pages in my webapp and most of the data is fetched using Ajax calls.
Since most of the requests are ajax...
Hi,
My webapp mostly handles Ajax request and I have to return XML to My front-end (jsp) page in case of error but there are some cases where I would like to show an error page. Currently there is...
Hi,
Am developing a web app based on Spring Web-MVC. The basic design is like this:
1) The request goes to multiActionController.
2) The controller extracts the request parameters and passes it...
Hi,
My application consists of two webapps dependent on common services (spring beans) running in tomcat server. I have put all the shared libraries in the Tomcat/Shared/lib folder so that they are...
Anyone having an idea abt this issue?
Thanks,
kapil
Thanks for your quick reply mdeinum.
If complete url is need for redirect then I won't be able to keep my jsp in Web-Inf directory.
Is there a way to avoid redirect and also to avoid hitting the...
Hi,
Am facing problem with viewResolver while redirecting to a jsp.
The scenario is as follows:
1. User logins from a login.jsp. Authentication is done in a controller and the control is forwarded...
Actually earlier I was using BeanNameAutoProxyCreator and thought replacing it with ProxyFactoryBean will work.
As you have suggested by replacing the regex from .* to com...*Service+.*(..) gave...
On further debugging I found that the advice is not working for my methods also
<beans>
<bean id="allBeanProxyCreator" class="org.springframework.aop.framework.ProxyFactoryBean">
...
Thanks for your reply. Actually I want to intercept all methods of my interface so using regular expression does not make much sense.
I found org.springframework.aop.framework.ProxyFactoryBean that...
Hi,
Am using MethodBeforeAdvice to validate calls to my services from Spring RMI clients. Basically, I check that the call contains a valid sessionId passed from client to Server using Acegi...
Hi,
My application is starting embedded tomcat to provide support for SOAP and to load a small WebMVC based webApp. The startup process includes
1) Load application context from...
Could you please elaborate a bit on how context is passed from one JVM to other? :confused:
Thanks,
Kapil
Yes, am using the remoteInvocationFactory property of RmiProxyFactoryBean and assigning it an instance of ContextPropagatingRemoteInvocation Factory.
My question was how the context is propagated?...
Am using acegi's ContextPropagatingRemoteInvocationFactory to propagate context from client to server. Just out of curiosity I would like to know how this context is propagated? Basically the...
Finally I figured out the problem. Its because my service is not a pojo, it implements Remote interface and am using RmiServiceExporter to export it as RMI service since my clients could be non...
My requirement is that user has to first call logon api which returns a sessionId and for further calls client has to send sessionId with each request.
To achieve this, i implemented the...
Hi,
I would like to use acegi to pass security context between my RMI clients and server. The documentation says that ContextPropagatingRemoteInvocationFactory class can be used to pass context from...
Can someone help me on this issue?
Thanks,
Kapil
Hi,
Is it possible to intercept method calls using Spring AOP for remote beans which are binded to JNDI? When I try to intercept methods of my remote bean I receive java.rmi.StubNotFoundException:...
Thanks for your help Andreas. Adding the parent attribute solved my problem.
Regards.
Kapil
My XML contains following entries
<bean id="baseDaoRdbms" class="com.abc.common.dao.rdbms.BaseDaoRdbms" abstract="true" destroy-method="shutdown">
<property name="jdbcTemplate"...
Hi Andreas,
The real scenario is that my DAO implementation classes extends an abstract DAO class which contains reference to JdbcTemplate. This has been done to avoid injecting jdbcTemplate in each...