Click "More >>" right below the latest GA release for Spring Framework.
Type: Posts; User: Bron; Keyword(s):
Click "More >>" right below the latest GA release for Spring Framework.
First, remove schema.xsd from your @ContextConfiguration annotation. The annotation is for Spring configuration files. The XSD is for something else.
That should get rid of the error. I don't know...
Please use [CODE ][/ CODE] tags in the future. :)
Hibernate-based data source? Java/JBoss/Spring can be a bit picky about multiple versions of Hibernate (one in server lib, another in application...
Is this a NoClassDefFoundError? If so, could you provide the first few lines of the stack trace?
It sounds to me like it probably has more to do with JBoss's classpath than Spring. What version of JBoss are you using? Is the application deployed as a WAR? Is the class for bean B from a class...
Yes, Apache Commons Logging is required for Spring. It is a Java classpath dependency because the Spring code directly calls the commons logging API's. Your code may not need to use logging, but...
Yep. It's working now. Thanks.
The 3.0.6 and 3.0.7 downloads do not seem to be working from the download page. However, I can download 3.0.5 just fine.
Firefox 6.0.2 shows me errors like the following:
<Error>
...
I am having the same issue under JBoss, and the above solution did not work for me. It just gave me a bigger stack trace.
Recently our DBA set the database to QUIESCE mode (closes all user...
Wow, this is very strange. I just tried this in one of my applications, and it did the same thing. It forwarded to the home page instead of the page linked to. My app is behind CAS authentication....
Is the second capture one that works?
To detect when the HTTP session is destroyed, see http://forums.java.net/jive/thread.jspa?messageID=237010.
If I understand correctly, you want to simultaneously support multiple authentication mechanisms. See http://forum.springsource.org/showthread.php?t=73194 for more information.
To invalidate the entire HTTP session use:
request.getSession().invalidate();
The PDF is included with the project.
Yeah, I ran into that problem too. In my case I was able to get around it because empty string worked as a valid "null" case for me, and I just wrote my code to interpret empty string the same way...
I set up my PropertyPlaceholderConfigurer like so:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
...
You could use a normal class for storing your GrantedAuthorities while storing those objects as instances of your enum if you merely want a single place which "lists" them.
That is correct.
You don't have to duplicate the pages, just the servlet mappings. You can map to URL's to the same controller.
Your wording was a bit confusing to me, but I think you're getting there. Allow me to clarify one of your points.
You are exactly correct in that A needs to use B, but A doesn't create B. ...
Using different paths for different authentication types smells fishy to me, but I'm not sure if there is a much better idea. Are the pages all unique to a single type of authentication? For...
The sample applications just use core, taglibs, and acl (and one of them uses tiger for Java 5 features). Most of the other library are for specific features or application servers.
In the 2.0.4...
Sledgehammer for a nail? Depends on how important security is for you. Spring Security certainly simplifies things.
Simpler Java solutions? Probably. I haven't pursued this.
Free? Yes ......
Session expiration should happen automatically. You can configure the session timeout in minutes in web.xml like so:
<session-config>
<session-timeout>30</session-timeout>
...