Search:

Type: Posts; User: rgladwell; Keyword(s):

Search: Search took 0.03 seconds.

  1. Problem injecting dependencies into @Configuration class

    Hi Guys

    I'm trying to create a custom exception resolver chain as follows:

    Code:


    @Configuration
    @EnableWebMvc
    @ComponentScan(basePackages = "web.client")
  2. Please ignore the base package, I redacted the...

    Please ignore the base package, I redacted the rest of it so-as not to display personal information (now fixed above)

    As for @Autowired, I already tried that and that didn't work either.
  3. Problem injecting dependencies into @Configuration class

    Hi Guys

    I'm trying to create a custom exception resolver chain as follows:


    @Configuration
    @EnableWebMvc
    @ComponentScan(basePackages = "web.client")
    public class WebApplicationConfiguration...
  4. How do I create a custom JSON 401 page for my Spring MVC web service?

    I'm trying to create a secured restful web service using Spring MVC and Spring Security. I'd like to return som JSON message on a 401 instead of the default HTML message returned by Spring.

    I've...
  5. Hi Rob, Thanks for the info, I am aware of the...

    Hi Rob,

    Thanks for the info, I am aware of the difference and I've got proxy based AOP to work with Spring MVC before, just not with spring-security and never with a "no-xml" spring application....
  6. Hi Rob, I was specifically trying to avoid...

    Hi Rob,

    I was specifically trying to avoid compile/load time weaving by using the proxy-target-class="true" directive.

    Does this mean I have to use weaving to recompile my classes to get...
  7. I'm not sure that the issue with the application...

    I'm not sure that the issue with the application contexts from the FAQ is the problem. I only create one application context for the whole of my application. Please see my WebInitializer instance:
    ...
  8. Hi Martin Thanks for the response. You are...

    Hi Martin

    Thanks for the response.

    You are incorrect though: I did search, exhaustively for the keywords in the code above but couldn't find a single solution until you responded here.
  9. Secured annotations not working in AspectJ Mode with Autoproxy

    I'm trying to get my Spring MVC app to play nice with Spring @Secured annotations and ASpectj autoproxying but it doesn't seem to be proxying or recognising my @Secured annotations. I have a...
  10. I've created a project which allow you to inject...

    I've created a project which allow you to inject properties like components into your Spring objects for Spring 2.5.*:

    http://code.google.com/p/spring-property-annotations/

    For Spring 3 you can...
  11. Replies
    3
    Views
    826

    Would it be possible to write a servlet Filter...

    Would it be possible to write a servlet Filter that calls the handler interceptors for non-dispatcher servlets?
  12. Replies
    3
    Views
    826

    How can I intercept all requests?

    Is it possible to configure Spring MVC to filter all requests through HandlerInterceptors even if they don't go through the DispatcherServlet? In the same way that ServletFilters can filter all...
  13. Hi Marten Thanks for the tip, that fixed it....

    Hi Marten

    Thanks for the tip, that fixed it. Much appreciated.
  14. Error using AnnotationMethodHandlerAdapter and SimpleUrlHandlerMapping

    I'm trying to combine MVC annotations like @Controller with old-style controllers. I have something like the following in my application context for my dispatcher servlet:


    <bean...
  15. Thanks so much, that worked a treat! :)

    Thanks so much, that worked a treat! :)
  16. How do I write StoredProcedure sub-classes to call Oracle functions?

    I've written the following Spring JDBC API StoredProcedure sub-class:


    class GetLdapPropertiesStoredProcedure extends StoredProcedure {

    protected...
  17. JaxWsPortProxyFactoryBean complaining that JAX-WS wrapper class not found

    I need to access a SOAP web service and I used the JaxWsPortProxyFactoryBean component based on section 17.5.8: "Accessing web services using JAX-WS" of the Spring docs. I use a shared interface for...
  18. Replies
    2
    Views
    775

    Hi jonnio I'm using Struts2, but I can't see a...

    Hi jonnio

    I'm using Struts2, but I can't see a clear design pattern to explictly inject beans I craete in Struts2 back into my application context.
  19. Replies
    2
    Views
    775

    Accessing Servlet API

    Is there anyway to access the servlet API in Spring say, for example, to inject an HttpServletRequest reference into session and request scope beans. I need to assemble a bean based on values in the...
  20. Problem setting session scope properties on request scope beans

    Hi,

    I'm having problems using my session/request scope beans using Spring 2 with Struts2 and the RequestContextListener. When I attempt to set properties on my request scope beans, nothing seems...
  21. Replies
    1
    Views
    1,168

    Problem getting auto proxy to work.

    I'm trying to automatically trace the method calls for my Spring configuration but I need some help finding the right config. I'm using the following application context XML fragment, but for some...
Results 1 to 21 of 21