Search:

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

Search: Search took 0.02 seconds.

  1. Spring Security is present. What's missing is the...

    Spring Security is present. What's missing is the servlet api.
  2. Replies
    5
    Views
    727

    The most common cause is that the filter of your...

    The most common cause is that the filter of your web framework is declared before the spring security delegating filter. If this is the case just change the order in your web.xml.

    An other cause...
  3. You configuration seems good to me. I use similar...

    You configuration seems good to me. I use similar configuration (however I don't use dispatcher servlet). That makes me think that there might be a possibility that the dispatcher servlet gets loaded...
  4. It's good that you managed to solve it. One...

    It's good that you managed to solve it.

    One comment. By "Its role is not to open the EM" I didn't mean that it is not opening it itself, but that it is used to keep it open after the transaction...
  5. Replies
    3
    Views
    1,083

    Here are some thoughts You can use compile...

    Here are some thoughts


    You can use compile time weaving.
    You can try tune it by switching between dynamic proxies and cglib proxies
    Try VM options such as -Xmn that might affect (not sure...
  6. You don't !!! :)

    You don't !!! :)
  7. In order to have spring inject the entity manager...

    In order to have spring inject the entity manager into a bean, the bean has to be managed by spring. You can't inject it to a bean that it has not been created inside a spring context.

    However,...
  8. Hi, If you want to test the DAO without a...

    Hi,

    If you want to test the DAO without a database then your best shot is to mock the entity manager (assuming you are using jpa).

    In some cases I do it using EasyMock like this:


    ...
  9. I am glad to be of assistance :)

    I am glad to be of assistance :)
  10. It sounds like you are getting connections to...

    It sounds like you are getting connections to your database form somewhere else (you see more connections in the manager and after you destroy not all connections close).

    I am using the basic...
  11. Spring Securities RoleVoter & AclEntryVoter are 2...

    Spring Securities RoleVoter & AclEntryVoter are 2 things that are totally different.

    You can use roles to secure presentation, ws calls & business methods (You don't need ACL to do this).

    I...
  12. Replies
    1
    Views
    1,139

    The error you have is clearly due to incompatible...

    The error you have is clearly due to incompatible versions.
    However, ActiveMQ 5.3.x works fine with Spring 2.5.6.

    A full stack trace would help
  13. This error message means that you are trying to...

    This error message means that you are trying to use Hibernate out of a Hibernate Session.

    You might not be doing this directly yourself, but it may occur due to lazy loading (e.g. you are trying...
  14. Hi Johaness, You don't describe what exactly...

    Hi Johaness,

    You don't describe what exactly is the problem (you only state that the OpenEntityManagerInViewFilter is not working).

    Your configuration looks good.

    The role...
  15. I am not sure of what the problem is. However, I...

    I am not sure of what the problem is.
    However, I am doing something similar with you without problems. The only difference is that instead of using ClassPathXmlApplicationContext I am directly...
  16. Replies
    1
    Views
    580

    Hi Marco, you will need to do the following...

    Hi Marco,

    you will need to do the following steps:


    Add a FilterChainProxy inside your context
    Add an authentication filter in the chain (e.g. UsernamePasswordAuthenticationFilter)
    Set...
  17. Replies
    2
    Views
    603

    The error message you posted indicates that...

    The error message you posted indicates that MarcaCarroServiceImpl does not have a setMarcaCarroDAO(MarcaCarroDAO dao) method. So either add such method or rename the property marcaCarroDAO to the...
  18. Hi Andriy, In the stack trace that you have...

    Hi Andriy,

    In the stack trace that you have attached, I see a NullPointException in the register method of the RegistrationAction.

    I don't have the full source of RegistrationAction, but I am...
  19. Hi all, I run into the exact same problem, but...

    Hi all,

    I run into the exact same problem, but the solution proposed did not solve my problem.

    In my case I kept the spring context and the tests in a separate jar, so that I can include it in...
Results 1 to 19 of 19