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...
Type: Posts; User: cmose; Keyword(s):
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...
(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...
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”...
Fantastic! I was just going to start investigating doing this in spring. Hopefully this saves me rolling my own!
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>...
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...
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...
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.
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...
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...
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...
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.
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...
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...
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...
--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...
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
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...
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...
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 ;-) )...
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...
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...