Hi Julio,
apologies but I never got the details I required for this task. In the end with project deadlines and changing requirements I didn't need to implement the complex authorization.
sorry I...
Type: Posts; User: urckle; Keyword(s):
Hi Julio,
apologies but I never got the details I required for this task. In the end with project deadlines and changing requirements I didn't need to implement the complex authorization.
sorry I...
Hi,
i am posting here as I cannot find the reason behind my app problem and I would appreciate any input. I am sure I am just missing some small change somewhere!
I have an app usiing Spring, JPA...
Hi,
I am trying to find the src code for the ContactSecurityVoter. I would like to see how to implement some specific logic relating to domain objects I have in my app. I cannot find this class in...
Hi,
I am getting the following exception while working with Spring and JMS:
Caused by: javax.jms.IllegalStateException: The Session is closed
I can't figure out why. I have a JPA application...
Hi,
as soon as things quieten down here I will do that. I am under a bit of pressure now and playing catch up as a result of the delays with this.
cheers
Yes that is strange!
However, I can reproduce this problem at will! Simply add entries to the application.xml and deploy in ear (outside war). I see the EMF getting created for each persistence...
Hi All,
Ok guys, I have discovered the cause of the problem I've been having with JBoss, Spring and JPA (or at least managed to get things working!).
When I inherited my application it was...
I'll have a look over it...
Hi Fox,
quick question - what tx manager are you using in your example? Is it the JPA implementation? Are you deployed in an app server env?
cheers
Ok I've configured the JTA tx handler. still no joy but at least I have a more detailed error message:
2007-04-30 15:17:26,214 DEBUG [org.hibernate.impl.SessionImpl] <init>() | opened session at...
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
Hi there,
yes, I can't figure out why.
I have tried using both LocalEntityManagerFactoryBean and LocalContainerEntityManagerFactoryBean with specific properties set. Still no joy. Only other...
Hi there, thanks for getting back guys.
The log attached was the hibernate log. I have included the Spring log in one of the earlier replies.
cheers
Hi there,
something else I've just noticed is that the JPA event listener is not invoked!? Perhaps this might add some extra info to the mix!...
There is some basic logging info in the...
Ok, here's hibernate debug log snap shot from the attempted insert. The Object I am creating is type Filter and you can see that it gets assigned a new id of 80 etc.. I have attached file as it's too...
Just to be clear the flow is:
Action <-> business layer <-> dao <-> EM <-> DB
So action calls business, which calls dao...
Hi,
yes my intention is to wrap the business method in the tx. Obviuosly there are (in some cases) multiple calls to the dao within a single business method. So my assumption is that the tx will...
Hi guys and thanks for replies.
Here is sample of my DAO (which extends spring JpaDaoSupport) code:
public Filter saveOrUpdate(Filter filter)
{
if(filter.getId() == 0)
...
Hi all,
I cannot figure out what is missing in my solution and would appreciate ANY suggestions!
I have tried almost every combination of settings and even replaced oracle instance with HSQLDB....
My working example/unit test is a simple junit test case extending org.springframework.test.jpa.AbstractJpaTests so the ctx is loaded from classpath and test kicked off in eclipse.
The error is...
I am not sure what you mean by test driver?
A bit of history in this issue: I was originally using:
<aop:config>
<aop:aspect ref="loggingAspect">
<aop:pointcut...
I get an exception saying that the DebugInterceptor class is not instance of Advice??
As you can see this is a simple test for a debug output. Just wanted to try out the Spring aop.
public class DebugInterceptor implements MethodInterceptor
{
private static Log log =...
Also, the "No transaction available" statement is coming from the last part of the workflow, i.e. the retrieve() method on the viewAction. The tx propagation is set to SUPPORTS so tx not required by...
I am getting following error:
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'debuggingAspect' must be of type [org.aopalliance.aop.Advice],
but was actually of...