Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-05 Thread Alvaro Sanchez-Mariscal
Quoting: "1. Create a folder named "META-INF" under the "src" folder. 2. Create a file named "persistence.xml" under the "META-INF" folder and set its content to..." Content within src should be compiled into WEB-INF/classes. Doing the maven way, this file should be in src/main/resources Alvaro

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
All the code is there : http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html But I had a problem to deploy the application on my tomcat server. Musachy and Laurie suggested to move the file persistence.xml from /META-INF (where indicated in the tutorial) to /WEB-INF/classes/META-I

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Frans Thamura
can we have the code also? F

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
How can I be sure that it is deployed? The file was in /META-INF/persistence.xml as described in the tutorial. I put it in WEB-INF/classes/META-INF/persistence.xml and it works. Thank both of you very much! Pascal 2008/1/4, Laurie Harper <[EMAIL PROTECTED]>: > Musachy is suggesting that the

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Laurie Harper
Musachy is suggesting that the persistence.xml file is not in your classpath (or not in the right place). Make sure that the file is really being deployed and that it is in the correct directory (WEB-INF/classes/META-INF/persistence.xml). L. Pascal SEREMES-DAMAL wrote: Do you mean it can com

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
Did some one else encountered the same problem as mine when following the tutorial http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html ? 2008/1/4, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]>: > Do you mean it can come from a bad classpath..? Or maybe should I > specify somewhere tha

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
Do you mean it can come from a bad classpath..? Or maybe should I specify somewhere that the spring framework is used for the persistence... But I don't know where. I thought that the setting "struts.objectFactory" to "spring" in struts.xml would be enough. 2008/1/4, Musachy Barroso <[EMAIL PROTE

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Musachy Barroso
well, somehow the file is not getting there at runtime I guess, this is from your stacktrace: "java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml}" musachy On Jan 4, 2008 11:35 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote: > That's exactl

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
That's exactly what I have. I've followed all the instructions in the tuto. 2008/1/4, Musachy Barroso <[EMAIL PROTECTED]>: > Indeed. But the file needs to be there, even if it is empty, which I > found quite annoying (at least I don't know how to avoid having the > file there), like: > > http://ja

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Musachy Barroso
Indeed. But the file needs to be there, even if it is empty, which I found quite annoying (at least I don't know how to avoid having the file there), like: http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.co

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
In fact in the tutorial (http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html ) they say that there no need to specify the JPA configuration in this file because the datasource will be on spring configuration file. 2008/1/4, Musachy Barroso <[EMAIL PROTECTED]>: > Spring couldn't fi

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Musachy Barroso
Spring couldn't find META-INF/persistence.xml musachy On Jan 4, 2008 11:12 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote: > Hello everyone!!! > > I hope you had fun during the end of year 2007 and I wish you a happy new > year. > > I tried the Struts 2 + Spring 2 + JPA + AJAX tutorial that

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-08-14 Thread Ajax
Hi! I've been following this tutorial too, and think it serves as a great starting point. However, like some other users, I have encountered the problem with org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.Tran

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread LucaLuca
Hi, It was in the right place, but didn't work. So, i've tried to put the "hilbernate-all.jar" in the build path, and it worked. I don't know the reason, but probably i was using the latest version of the requested libraries and it need something older.. Thank you everybody for the time you spe

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread cilquirm
By the looks of it, your classpath is messed up. Is the hibernate3 jar in the right place? I can't think of any other reason it wouldn't be able to find org.hibernate.MappingNotFoundException LucaLuca wrote: > > Hi, > > I've tried to make some changes to make it work..But nothing!. These ar

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread LucaLuca
Hi, I've tried to make some changes to make it work..But nothing!. These are my configuration files: ---"ApplicationContext.xml":--- http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop="http://www.springframework.org/schema/aop

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-16 Thread LucaLuca
Hi, yes, it is.. I dont' know why it gives me this error. However this is full stacktrace... : 16-lug-2007 15.43.54 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.8. 16-lug-2007 15.43.54 org.apache.coyote.http11.Http11AprProtocol init INFO: Init

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-16 Thread Musachy Barroso
Can you paste the full stacktrace? (if it is the same one posted before, the cause was a missing dependency) musachy On 7/16/07, LucaLuca <[EMAIL PROTECTED]> wrote: Hi, I've followed the steps in your article, but i have the following exception: GRAVE: Context initialization failed org.spr

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-16 Thread LucaLuca
Hi, I've followed the steps in your article, but i have the following exception: GRAVE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot cr

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-16 Thread Musachy Barroso
You mean the hibernate class that it is complaining about? You shouldn't need to change anything in the tomcat config. musachy On 7/16/07, LucaLuca <[EMAIL PROTECTED]> wrote: Hi, I think so too. But i've observed that the class called is correctly in the Jar and his path in ApplicationContex

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-16 Thread LucaLuca
Hi, I think so too. But i've observed that the class called is correctly in the Jar and his path in ApplicationContext.xml is right. I really don't know what is the problem.. It's necessary to configure Tomcat 6 too ? Musachy Barroso in his article doesn't say nothing about it.. Thank you LucaLu

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-13 Thread Ted Husted
The Struts2-api.jar is obsolete. The error seems to be related to hibernate. It looks like the class needed to instantiate "entityManagerFactory" is missing. Like as not, the only JARs you need for Struts are commons-logging-api, freemarker, ognl, struts2-core, and xwork, plus the stuts2-spring p

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-13 Thread LucaLuca
Hi, I read that tutorial too and i've follewed all the steps. My problem is that i don't know which are the Jar requested. I was not able to find the strtus2-api.jar. Where i can find it? I've tried to add all the Hibernate 3.2, Spring 2.0.6, Struts 2.0.8 jar, but it did not work. It gives the f

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-04-07 Thread Minerva CC
-:) Willa - Original Message From: Piero Sartini <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Saturday, April 7, 2007 3:20:23 PM Subject: Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial > Apr 7, 2007 1:47:30 PM org.apache.catalina.core.StandardContext start > S

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-04-07 Thread Piero Sartini
> Apr 7, 2007 1:47:30 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Apr 7, 2007 1:47:30 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/person] startup failed due to previous errors looks like there is a problem with a liste

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial Issue

2007-04-05 Thread Peter Milne
On Wed, 2007-04-04 at 20:12 -0400, Musachy Barroso wrote: > oopsI had to upload a new one, overwriting the old one doesn't fix it: > > http://cwiki.apache.org/confluence/download/attachments/33168/quickstart_maven2.zip > > musachy > > On 4/4/07, Peter Milne <[EMAIL PROTECTED]> wrote: > > > >

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial Issue

2007-04-04 Thread Musachy Barroso
oopsI had to upload a new one, overwriting the old one doesn't fix it: http://cwiki.apache.org/confluence/download/attachments/33168/quickstart_maven2.zip musachy On 4/4/07, Peter Milne <[EMAIL PROTECTED]> wrote: I'm getting the following error when I try to unzip the maven zipped project