Search:

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

Search: Search took 0.02 seconds.

  1. SpringJunit4ClassRunner and ActiveMQ brokers

    Running into an issue with junit tests using the SpringJunit4ClassRunner and an application context that contains an ActiveMQ broker.

    I have multiple unit tests that are meant to exercise my...
  2. Replies
    0
    Views
    713

    Cost of new ProxyFactory()?

    (title is incorrect, should read "Cost of Proxies")

    I have an ExecutorService that I submit jobs to. The jobs need to access a hibernate loaded domain object with lazily loaded attributes so I...
  3. Replies
    3
    Views
    4,354

    make sure you have the following in your...

    make sure you have the following in your applicationContext.xml/equivalent


    <beans
    xmlns=“http://www.springframework.org/schema/beans”
    xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”...
  4. Thread: GroovyFlow

    by cmose
    Replies
    2
    Views
    1,094

    Fantastic! I was just going to start...

    Fantastic! I was just going to start investigating doing this in spring. Hopefully this saves me rolling my own!
  5. Replies
    1
    Views
    785

    looking at the schema, I daresay i've answered my...

    looking at the schema, I daresay i've answered my own question:
    <xs:attributeGroup name="intercept-url.attlist">

    <xs:attribute name="pattern" use="required" type="xs:string">

    <xs:annotation>...
  6. Replies
    1
    Views
    785

    Request Method based url protection?

    Is there any facility in spring security to protect url's based on the request method? e.g., allow users with roles xyz to access a url using POST, but all users to access the url using GET? I...
  7. Replies
    1
    Views
    1,438

    HashMap @ModelAttribute?

    I did a few brief searches but didn't really turn up anything conclusive. Are there any examples floating about of using a HashMap as one's ModelAttribute? I've got a rather large form whose fields...
  8. You can use OpenSessionInView filter (may have...

    You can use OpenSessionInView filter (may have the name a it off) declared in web.xml and mapped to the relevant urls so that you don't have to explicitly open a session.
  9. Replies
    14
    Views
    15,430

    that's true - to address that, my controller...

    that's true - to address that, my controller responsible for actually handling the password change, removes the ROLE_PASSWORD_CHANGE from the user's granted authorities and then redirects the user to...
  10. Replies
    14
    Views
    15,430

    I ended up with a similar requirement recently. I...

    I ended up with a similar requirement recently. I had to create my own UserDetailsService implementation anyway and needed to provide several custom checks. For password changing my...
  11. AuthenticationFailureBadCredentialsEvents for IS_AUTHENTICATED_ANONYMOUSLY resources

    I've finally gotten most of my acegi implementation up and running successfully, however, I still have one outstanding issue.

    For my acegi role mapping I have my secure urls mapped with the...
  12. did a search in jira and didn't see anything but...

    did a search in jira and didn't see anything but browsing the roadmap for 2.0.0 M2 it looks like SEC-539 directly addresses this.
  13. X509Provider doesn't check UserDetails for expired, locked, or disabled?

    Checking through the source code for the X509Provider I noticed that it does not check if the UserDetails object loaded in authenticate is expired, locked, or disabled (and obviously does not throw...
  14. Replies
    3
    Views
    1,018

    anyone ever resolve this, I have a similar issue....

    anyone ever resolve this, I have a similar issue. I have a service bean in a separate application context referenced in my contextlistener in web.xml that I'd like to reference from my acegi config...
  15. Replies
    1
    Views
    837

    Design question - mulitpart authentication

    All,
    I have a bit of an unusual requirement. I have a situation where a user might present an x509 certificate as well as a username and password. Their roles are determined by combining the roles...
  16. Ibatis SqlMapClientFactoryBean & AspectJ style annotated aspect

    --Please completely ignore this. The problem is completely unrelated to SqlMapClientFactoryBean and Ibatis and is a result of a lack of proper investigation on my part.--

    Hey folks,
    I'm using...
  17. mark - thanks much! I'll check that out, I think...

    mark - thanks much! I'll check that out, I think I had started to stumble down that path yesterday but got side tracked with something else before completing my investigation.

    Thanks
  18. Access to errors from postHandle() on HandlerInterceptor?

    In all likelihood I'm missing something obvious but it's early yet for me and I haven't had me coffee ;-)

    I have a simple form controller that handles some functionality. A validator rejects...
  19. Thread: AJAX and Spring

    by cmose
    Replies
    3
    Views
    1,085

    If all you're trying to do is just replace some...

    If all you're trying to do is just replace some content in a div/etc., why not take a look at ajaxtags? It's fairly rudimentary but does offer a quick and dirty way of "ajaxifying" areas of your page...
  20. well sonofagun, I guess I'll wear the dunce cap...

    well sonofagun, I guess I'll wear the dunce cap for today - that was a typo in the actual xml file and it appears to have solved that problem. Thanks much, good eyes (better then mine at least ;-) )...
  21. if only it were that simple ;-) that's just a...

    if only it were that simple ;-)

    that's just a typo as I had to type the portion of the config file and the error message in (it's on a different system so I couldn't copy and paste). Good catch...
  22. cvc-elt.1: Cannot find the declaration of element 'beans'

    Hello all,
    I just pulled down Spring 2.0.1 and created a quick application context file. Unfortunately, whenever I attempt to run my test application, I receive the following error:

    Line 6 in XML...
Results 1 to 22 of 22