First off I recently migrated my project from Spring 1 to Spring 2. Everything seems to be working just fine except in the case where I have a need to use REQUIRES_NEW when a tx has already been...
Type: Posts; User: puppetmasta; Keyword(s):
First off I recently migrated my project from Spring 1 to Spring 2. Everything seems to be working just fine except in the case where I have a need to use REQUIRES_NEW when a tx has already been...
I've been doing some digging and this is what I've found.
Here's some rough pseudo code from the Spring class...
You we're right I was missing a following parenthesis after the execution call
execution(* getPrivilegedPersonnel(java.util.List, ..)) && args(privs, ..)
But I'm still getting the same argument...
I upgraded to Spring 2.0.1 and I'm still getting the same errors.
I've gone over the pointcut definition again and it seems to be syntactically correct, so I don't know what I could be missing.
...
I'm trying to use Spring 2.0 and the AspectJ annotations to write an aspect using Spring. I have the following Aspect defined :
@Aspect
public class PersonnelAspect {
...
I'm actually running into something very similar to the above.
I write a Hibernate interceptor that needs to record history on an object. I inject it into the LocalSessionFactoryBean via the...
Ok, I found a solution.
I ended up sub classing the spring JtaTransactionManager and I overrode the 'retrieveTransactionManager' method. The default implementation of this method in...
Thanks for you suggestions.
I think the factoryBean solution is the best, b/c its flexible. I haven't had to customize my build process between JBoss and WebSphere yet so I don't want to start...
Hi,
I have a J2EE app that is required to run on both JBoss and WebSphere.
I use REQUIRES_NEW in a certain piece of functionality and I am aware that you have to do something like the following...
I have the same problem when processing an incoming message from our homegrown message service.
I pulling spring beans out of the factory after receiving the message and then calling a specific...
I was able to solve this issue by removing the classpath:* from the bean ref context path lookup.
Thanks for your replies!!
I have seen a number of different threads in this forum that are a result of people trying to get spring to work under Tomcat.
From what I can see these individuals (including me) have followed...
Your problem might be that Tomcat only puts WEB-INF/classes and WEB-INF/lib on the classpath for any webapp deployed.
So if your context is in WEB-INF/context/ then the error is most likely...
Storing the context via JNDI should do the trick. I have a specific situation where I do this b/c I have to access the context via a non web request intialized process.
Basically a proprietary...
Take note of the location of the applicationContext.xml. It is in WEB-INF/ which is the suggested location. In most application servers this isn't a problem since WEB-INF/ is on the classpath. In...
I had also had my applicationContext.xml in my WEB-INF/ directory and Tomcat was not able to read it b/c only WEB-INF/classes and WEB-INF/lib are on the classpath in a Tomcat deployed app.
This...
You were right! I'm using MyEclipse to start and stop tomcat and all I had to do was add the path of my actual application on the classpath of the startup from within Eclipse.
Thanks for your...
yes, I know what a WAR is :)
Didn't know what you meant by the configuration. I have a context xml file that has all my configuration (datasource, etc.)
I've tried almost every configuration...
What do you mean by war configuration?
Here's the web.xml that loads my app context on startup :
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>...
Hi,
I am getting a BootstrapException when attempting to deploy my app to Tomcat. My current configuration works in both WebSphere and JBoss so I'm not sure if the problem is related to the lack...
I am having the same problem, where certain things are not being rolled back in the database when the actual transaction is rolled back.
I am using JTA, with the spring and hibernate (via...
Just thought I'd let you know that I solved the issue with the suggestions made in the above linked thread.
I created a beanRefContext.xml file which lists the various xml configuration files that...
I am having a similar problem and would be curious to know if anyone has an answer to this question. I'm running into that same exception listed above, but I only get it when I try to load a 2nd...
I'm using Websphere, so I am also using the websphere transaction manager that spring supplies :
<bean id="websphereTransactionManager" ...
Hi,
I'm working on a web application that has somewhat of an interesting architecture. We have our own middleware/messaging layer which transports data via oagi bods (raw xml).
So my web app...