Search:

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

Search: Search took 0.01 seconds.

  1. For some reason I wasn't able to get...

    For some reason I wasn't able to get constructor-injection to work in this case. However, setter-injections worked just fine. Thanks

    FYI, I am using Spring 2.5.6.
  2. Injecting a collection of @Service-annotated classes

    Hello,

    I am trying to implement a "pluggable" architecture and would like my Service class to get injected with a collection of beans that implement Handler interface each of which has a @Service...
  3. Serialization problems with Spring injected dependencies using @Configurable

    I am using Wicket 1.4.2, Spring 2.5.6 and Tomcat 6.0.

    I am trying to get Spring @Configurable annotation to work with load-time-weaving (LTW) in Tomcat.

    Consider the following class:
    ...
  4. I don't think so. In my case some tests test...

    I don't think so.

    In my case some tests test production beans and other tests need to mock those production beans so that they can target-test other production beans. So, the test creates Mockito...
  5. Is there a way to do this programmatically? ...

    Is there a way to do this programmatically?

    Note that some of the production beans that I would like to replace with mocks are injected using @Configurable aspect.

    Thanks.
  6. How to replace ApplicationContext in Spring 2.5.6?

    I have a web app which uses XML and annotations to configure Spring beans.

    I also have tests where I need to replace production bean implementations with mock services. XML and annotation-based...
  7. Replies
    16
    Views
    3,229

    Hi abhihebbar, I had a similar problem and...

    Hi abhihebbar,

    I had a similar problem and your post helped me narrow it down. I fixed it by doing a database look up in the form onSubmit method. I think the right way to do this is by wrapping...
  8. Replies
    16
    Views
    3,229

    Hi abhihebbar, I am running into the same...

    Hi abhihebbar,

    I am running into the same problem with LazyInitializationException when submitting a wicket form. I have OpenSessionInViewFilter configured and transaction manager configured as...
  9. Another thought is that some DataAccessExceptions...

    Another thought is that some DataAccessExceptions should be prevented by validating the model before updating the database. For example, the model should check object properties for null before...
  10. Here are some thoughts. DataAccessExceptions,...

    Here are some thoughts.

    DataAccessExceptions, e.g. DataIntegrityViolationException, are unchecked exceptions. So, to me it makes sense that the DAO layer would catch them and wrap in exceptions...
  11. Best Practices: Where to catch persistence exceptions

    Hi, I am using Spring 1.2.8 MVC and have a "best practices" question.

    Suppose I have an HTML page with a form, which allows the user to create a new product. However, the database enforces unique...
  12. Replies
    0
    Views
    1,264

    URL mapping: from ../css/ to /css

    Hi,

    I am developing a web site in a WYSIWYG editor and all my HTML files reference CSS files using relative paths (e.g. ../css/Styles.css). This causes problems when I package and deploy the site...
  13. Replies
    4
    Views
    1,163

    gmatthews, your advice was right on the target! ...

    gmatthews, your advice was right on the target!

    I didn't switch to the folder structure you recommended, but I started thinking that maybe it was a problem with JBOSS configuration. So, it turned...
  14. Replies
    4
    Views
    1,163

    Thanks for the advice, I will try it out. One...

    Thanks for the advice, I will try it out.

    One problem that I have is that I generated the EAR using AndroMDA and I am trying to figure why it doesn't get deployed correctly with the current...
  15. Replies
    4
    Views
    1,163

    Spring, JBoss EAR and bean loading

    I have an EAR with nested JAR and WAR files. JARs contain business and application code, and WARs contain webservices and servlets. Both JARs and WARs have dependencies on spring.jar.

    I placed...
  16. Solved

    I solved my problem by overriding getSession() method as described in this thread http://forum.springframework.org/showthread.php?t=10328

    Spring API for OpenSessionInViewFilter only mentions...
  17. OpenSessionInViewFilter and write permission

    I am using OpenSessionInViewFilter with "Open In View" pattern. In order to allow the filter to flush the data to the database I overrode its closeSession() method to flush the session before...
  18. Replies
    20
    Views
    12,138

    After several hours of trying I still can't get...

    After several hours of trying I still can't get my Axis client to work with my web service unsing WRAPPED style. Once I switched to rpc/encoded it started working.

    Has anyone gotten an Axis client...
  19. Replies
    20
    Views
    12,138

    Axis deserializer cannot be found

    Greetings.

    I've just spent several hours trying to solve the problem with not being able to deserialize an XML response on the client side.

    I successfully deployed an Axis service, and am able...
  20. Replies
    0
    Views
    2,210

    Sping, Hibernate, and XML marshalling

    Greetings everybody.

    I just posted the following message on the Hibernate forum, but then decided that it may better fit here.

    I am working on a project architecture, which uses Hibernate, Axis...
  21. Replies
    4
    Views
    1,427

    Thanks katentim, ...

    Thanks katentim, AbstractDependencyInjectionSpringContextTests worked for me.

    Scraly, I was just following jpetstore example, which is distributed with Spring Framework. Take a look at their...
  22. Replies
    4
    Views
    1,427

    Loading application context

    Greetings.

    I've heard a lot of good about the Spring framework and finally decided to try it out myself. I have created a simple Axis web service, which extends ServletEndpointSupport class and...
Results 1 to 22 of 22