Hi all,
I'm trying to deploy a web application to Tomcat 5.5, Windows XP SP2.
Spring version is 2.5.4.
The spring XML configuration is working perfectly when running unit tests in Eclipse....
Type: Posts; User: assaf; Keyword(s):
Hi all,
I'm trying to deploy a web application to Tomcat 5.5, Windows XP SP2.
Spring version is 2.5.4.
The spring XML configuration is working perfectly when running unit tests in Eclipse....
Yes, I'm using Spring transactions.
Here's the spring configuration xml for transactions & the like.
First, I create a HibernateTransactionManager.
<!-- Transaction manager for a single...
Hi all,
I'm just trying to come back to Java/Spring after about a year when I couldn't touch it.
It's a different laptop, so I loaded the source code, but am now running it against Java 1.5.0,...
Indeed, it turned out to be a previous build I had made of the spring sandbox higher up in the classpath than spring.jar!
Thanks!
Hi all,
Getting back to Spring/Java after a long foray into the .Net world.
Because I'm using a new laptop, I've tried to rebuild my old project with the latest libaries (including Spring 2.0.7)....
Thanks, that did the trick!
Hi all,
I have a web application working on Resin 3.0.19.
When I port to Tomcat 5.5 I get the following error:
java.lang.IllegalStateException: No WebApplicationContext found: no...
Please see http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html
To quote:
" [The MD5 algorithm] takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint"...
I'm not sure I understand, being a newbie with Acegi.
I assume what you mean is that when the users navigate to the system, they either
include a "customer" querystring parameter in the request:...
Hi all,
In my previous Spring web apps, I used the URL to determine which customer database to go to.
Thus, https://www.mydomain.com/appName/customer1/login.action
would authenticate and then...
Done. See:
http://opensource.atlassian.com/projects/spring/browse/SEC-246
Regards,
I've started trying to use Acegi for the last couple of days, but have run into circular dependency problems.
Setup:
I'm using DependencyInjectionInterceptorFactoryBean from the sandbox to allow...
Answering a bit late, but maybe it'll help somebody. Just started with Acegi yesterday.
This is what I did (using Java 5).
First, an enum class to represent the authorities.
import...
FYI - The class has already been ported for Hibernate 3 and currently resides in the sandbox : .../orm/hibernate3/support/DependencyInjectionInterceptorFactoryBean.[/quote]
I tried using this but...
Hi Ben - just wondering how your Validators delegate to child object Validators. The ideal would seem to walk through collections and call:
childObject.validate();
However, validate throws a...
Answering myself, with my latest thoughts on the subject, having attempted to Springify one of my most complex UI forms:
1. Binding generally involves translating HTML-specific data...
This is fine within the View, if you're loading a fresh object first.
But in the controller, if you're using Hibernate anyway, you can easily run into an error saying something like "attempt to...
Hi all,
It'll probably come home to me one of these days that if I want an answer I should post a straightforward question rather than first posting tons of code (as in my previous posting)...
Oh, I think I get it.
Why do you create a new (empty) object after the submit? That's where your problem is. You should be loading the existing object from the database using the ID, and then...
Did you test this? I haven't yet come across a situation where spring binding actually causes Hibernate to delete the entire collection.
Can you post the code where this is happening?
Vjeran, I agree, I've become allergic to OSIV in all its forms...
I've usually implemented my getUser methods as you mentioned above, with a flag stating whether I should load all collections or...
Hi Rexxe,
Well, I've been avoiding session forms (I've never much liked keeping domain objects lying around in the session - what if the session times out?), the main cost of which seems to be...
I don't much like OSIV, nor singleSession="true"...
But it seems to me like you could add a method in your DAO that says something like:
public void reconnect(Object entity) {
...
Thanks for your help! Works like a charm now...
Hi all,
Following on from a mailing list thread about transactional boundaries (more or less):
I'm still struggling with the same issue, and haven't found any simple answer. In the case of...