Search:

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

Search: Search took 0.02 seconds.

  1. Nested Tx Hanging in Spring 2.0.2 w/ JBoss; worked fine prior to migration to Spring2

    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...
  2. I've been doing some digging and this is what...

    I've been doing some digging and this is what I've found.

    Here's some rough pseudo code from the Spring class...
  3. You we're right I was missing a following...

    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...
  4. I upgraded to Spring 2.0.1 and I'm still getting...

    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.
    ...
  5. argument binding failure when passing parameter to advice

    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 {

    ...
  6. Replies
    12
    Views
    3,022

    I'm actually running into something very similar...

    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...
  7. Ok, I found a solution. I ended up sub...

    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...
  8. Thanks for you suggestions. I think the...

    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...
  9. Configure transaction manager for use with both JBoss and WebSphere

    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...
  10. I have the same problem when processing an...

    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...
  11. I was able to solve this issue by removing the...

    I was able to solve this issue by removing the classpath:* from the bean ref context path lookup.

    Thanks for your replies!!
  12. Is there a current solution to ApplicationContext classpath issues with Tomcat??

    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...
  13. Your problem might be that Tomcat only puts...

    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...
  14. Storing the context via JNDI should do the trick....

    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...
  15. Replies
    6
    Views
    5,726

    Take note of the location of the...

    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...
  16. Replies
    8
    Views
    2,130

    I had also had my applicationContext.xml in my...

    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...
  17. You were right! I'm using MyEclipse to start and...

    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...
  18. yes, I know what a WAR is :) Didn't know what...

    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...
  19. What do you mean by war configuration? Here's...

    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>...
  20. Unable to return specified BeanFactory instance

    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...
  21. I am having the same problem, where certain...

    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...
  22. Just thought I'd let you know that I solved the...

    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...
  23. I am having a similar problem and would be...

    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...
  24. I'm using Websphere, so I am also using the...

    I'm using Websphere, so I am also using the websphere transaction manager that spring supplies :


    <bean id="websphereTransactionManager" ...
  25. Multiple application contexts causing JTA issues

    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...
Results 1 to 25 of 25