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. On

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

2008-01-04 Thread Pascal SEREMES-DAMAL
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 is on the struts

Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-04 Thread Pascal SEREMES-DAMAL
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 is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE: Context initialization failed

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

2008-01-04 Thread Musachy Barroso
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 is on the struts page and when I deployed

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

2008-01-04 Thread Pascal SEREMES-DAMAL
2007 and I wish you a happy new year. I tried the Struts 2 + Spring 2 + JPA + AJAX tutorial that is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE: Context initialization failed

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

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

2008-01-04 Thread Musachy Barroso
the end of year 2007 and I wish you a happy new year. I tried the Struts 2 + Spring 2 + JPA + AJAX tutorial that is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE: Context initialization failed

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

2008-01-04 Thread Pascal SEREMES-DAMAL
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 is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE

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

2008-01-04 Thread Pascal SEREMES-DAMAL
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 is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE: Context

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

2008-01-04 Thread Laurie Harper
Barroso [EMAIL PROTECTED]: 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

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

2008-01-04 Thread Pascal SEREMES-DAMAL
new year. I tried the Struts 2 + Spring 2 + JPA + AJAX tutorial that is on the struts page and when I deployed it on my server I had the following exceptions. GRAVE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name

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
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

Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-20 Thread Musachy Barroso
Do you have a quickstart schema in your db? musachy On Nov 20, 2007 12:43 AM, Lewis Li [EMAIL PROTECTED] wrote: Hi! I'm doing the tutorial Struts 2 + Spring 2 + JPA + AJAX located at http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html. I have installed and configured MySQL

Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-20 Thread Lewis Li
: Tuesday, November 20, 2007 9:59 PM Subject: Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial Do you have a quickstart schema in your db? musachy On Nov 20, 2007 12:43 AM, Lewis Li [EMAIL PROTECTED] wrote: Hi! I'm doing the tutorial Struts 2 + Spring 2 + JPA

Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-20 Thread Dave Newton
you successfully run the script with your MySql? Lewis - Original Message - From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, November 20, 2007 9:59 PM Subject: Re: Problem running the MySQL script in Struts 2 + Spring 2

Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-20 Thread Lewis Li
@struts.apache.org Sent: Wednesday, November 21, 2007 11:12 AM Subject: Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial Remove all the single quotes and try; it works for me fine that way. MySQL documentation is available http://dev.mysql.com/doc/#manual. d

Re: Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-20 Thread Dave Newton
--- Lewis Li [EMAIL PROTECTED] wrote: I can't believe the officical Struts 2 tutorial has such a silly error. Did the tutorial authors ever try running the script themselves? Everybody runs under different environments, different settings, different toolchains, etc. The framework and its

Problem running the MySQL script in Struts 2 + Spring 2 + JPA + AJAX tutorial

2007-11-19 Thread Lewis Li
Hi! I'm doing the tutorial Struts 2 + Spring 2 + JPA + AJAX located at http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html. I have installed and configured MySQL and created a database named quickstart. But I get a syntax error when running this script: CREATE TABLE

[s2]struts-2-spring-2-jpa-ajax tutorial

2007-09-27 Thread Eugen Stoianovici
I've started learning struts based on this tutorial which (from my limited experience) is a good starting point. There's on problem for me though. It gets frustrating implementing all my persistence related calls in a service class. Is there a way to instantiate my action classes with an

Re: [s2]struts-2-spring-2-jpa-ajax tutorial

2007-09-27 Thread Musachy Barroso
You can just inject your entity manager in your actions and do all the persistence stuff in there. JPA/Hibernate are not related or tied to struts in anyway. Just be advised that doing that will make your actions harder to test/maintain/extend and your code won't be reusable. regards musachy On

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 code org.springframework.beans.factory.BeanCreationException: Error creating bean with name

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

2007-07-18 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

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:--- ?xml version=1.0 encoding=UTF-8? beans default-autowire=autodetect xmlns=http://www.springframework.org/schema/beans;

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 are

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

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

2007-07-13 Thread LucaLuca
2 + Spring 2 + JPA + AJAX tutorial and found it is a great example to start Struts 2. So, I setup a Eclipse and Tomcat environment to run the tutorial and everything works fine. However, when I tried to add something more, I encountered a problem: Apr 7, 2007 1:47:30 PM

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

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 listener

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 user@struts.apache.org 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

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: I'm getting