Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
I did that , unfortunetly the same error remains.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294268.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
I did that, unfortunetly the same error remains.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294267.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: First Tapestry app with Hibernate

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 13:46:19 -0200, robnangle wrote: /hibernate.cfg.xml not found Go to the project properties, Java build path, click on Excluded inside src/main/resources, then click Remove. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, d

RE: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
Errors on console in ide: 06 15:42:32.556::INFO: Logging to STDERR via org.mortbay.log.StdErrLog ProjectClassLoader: entry=C:\Users\Rob\tutorial\target\classes ProjectClassLoader: entry=C:\Users\Rob\tutorial\target\test-classes ProjectClassLoader: entry=C:\Users\Rob\.m2\repository\org\apache\tap

RE: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
The problem consists in one of these two classes I think: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> Hibernate example app ${current.message} add package tutorial.pages; import Entities.Hello; impor

RE: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
Ye seen that cheers got the artifact installed and dependencies all up to date.. But with no success as the error remains.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294065.html Sent from the Tapestry - User mailing list a

RE: First Tapestry app with Hibernate

2010-12-06 Thread Jens Reufsteck
This is what helped me at this point: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Jens > -Original Message- > From: robnangle [mailto:robnan...@gmail.com] > Sent: Monday, December 06, 2010 1:50 PM > To: users@tapestry.apache.org > Subject: Re: Fir

Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
I have and now there is an error in pom.xml: missing artifact javax.transaction:jta.jar Do I need to add dependency? -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293951.html Sent from the Tapestry - User mailing list archiv

Re: First Tapestry app with Hibernate

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 10:44:37 -0200, robnangle wrote: I am now using m2eclipse but the error remains the same. Have you enabled dependency management on your project? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Ow

Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
I am now using m2eclipse but the error remains the same. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293941.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: First Tapestry app with Hibernate

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 10:21:54 -0200, robnangle wrote: No what I did was install apache maven and then tell eclipse about the classpath m2. Do yourself a favor and use m2eclipse. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and ins

Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
No what I did was install apache maven and then tell eclipse about the classpath m2. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293929.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: First Tapestry app with Hibernate

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 09:39:06 -0200, robnangle wrote: Apologies for that. Yes I am using maven with eclipse. Are you using the m2eclipse Eclipse plugin? It works way better than the Eclipse Maven plugin (eclipse:eclipse). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5

Re: First Tapestry app with Hibernate

2010-12-06 Thread robnangle
Apologies for that. Yes I am using maven with eclipse. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293887.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: First Tapestry app with Hibernate

2010-12-03 Thread Everton Agner
He meant the Maven Plugin for Eclipse : m2eclipse ___ Everton Agner Ramos 2010/12/3 robnangle > > No i am using the normal eclipse ide. > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3291024.html > Se

Re: First Tapestry app with Hibernate

2010-12-03 Thread robnangle
No i am using the normal eclipse ide. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3291024.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: First Tapestry app with Hibernate

2010-12-02 Thread Thiago H. de Paula Figueiredo
On Thu, 02 Dec 2010 16:40:29 -0200, robnangle wrote: Hi, I switched to using jetty and unfortunetly the project still will not work. I get a different error by the looks of it though: Are you using m2eclipse? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernat

Re: First Tapestry app with Hibernate

2010-12-02 Thread robnangle
Hi, I switched to using jetty and unfortunetly the project still will not work. I get a different error by the looks of it though: HTTP Error 500: Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEnco

Re: First Tapestry app with Hibernate

2010-12-02 Thread Andreas Andreou
Also, because you import th project this way, if you change your pom, you have to reimport the project again On Thu, Dec 2, 2010 at 17:30, Thiago H. de Paula Figueiredo wrote: > On Thu, 02 Dec 2010 13:26:48 -0200, robnangle wrote: > >> I create my project through the command: >> mvn archetype:ge

Re: First Tapestry app with Hibernate

2010-12-02 Thread Thiago H. de Paula Figueiredo
On Thu, 02 Dec 2010 13:26:48 -0200, robnangle wrote: I create my project through the command: mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository It should be http://tapestry.apache.org. You're probably getting a very old version, as that repository isn't u

Re: First Tapestry app with Hibernate

2010-12-02 Thread robnangle
I create my project through the command: mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository then to import it into eclipse: mvn eclipse:eclipse sysdeo-tomcat:generate i also start the server in eclipse -- View this message in context: http://tapestry.1045711.

Re: First Tapestry app with Hibernate

2010-12-02 Thread robnangle
Hi Juan, I run tomcat through my eclipse plugin. Start the server in eclipse. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289532.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: First Tapestry app with Hibernate

2010-12-02 Thread Richard Hill
nt) and b) also means your session doesn't keep getting trashed every time tomcat restarts to effect a change. -Original Message- From: Juan E. Maya Reply-to: "Tapestry users" To: Tapestry users Subject: Re: First Tapestry app with Hibernate Date: Thu, 2 Dec 2010 15:3

Re: First Tapestry app with Hibernate

2010-12-02 Thread Andreas Andreou
Can you compile/run the project from the command line? What happens when you do mvn jetty:run ? On Thu, Dec 2, 2010 at 16:06, robnangle wrote: > > Thanks for that angelo but no luck. > > Same two errors as from the begining. > -- > View this message in context: > http://tapestry.1045711.n5.nabb

Re: First Tapestry app with Hibernate

2010-12-02 Thread Juan E. Maya
Rob, the problem u have is because tomcat is not finding those classes in the classpath. How do u launch ur tomcat? if u want to work with tomcat u might want to follow Kalle's guide so u r sure that there r no problems in ur development environment. Here is the guide: http://tynamo.org/Developing+

Re: First Tapestry app with Hibernate

2010-12-02 Thread robnangle
Thanks for that angelo but no luck. Same two errors as from the begining. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289417.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: First Tapestry app with Hibernate

2010-12-02 Thread Angelo C.
try Tapestry 5.1.0.5, here is pom file to test: http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://maven.apache.org/POM/4.0.0";> 4.0.0 learning tutorial1 1.0-SNAPSHOT war

Re: First Tapestry app with Hibernate

2010-12-02 Thread robnangle
Hi Angelo, Unfortunetly adding that in failed to fix or progress the error im receiving. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289356.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: First Tapestry app with Hibernate

2010-12-01 Thread Angelo C.
I wrote that tutorial when I was a newbie:) try to add this to your pom, works? < dependency> commons-collections commons-collections 3.1 < /dependency> -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3287397.ht

Re: First Tapestry app with Hibernate

2010-12-01 Thread Michal Gruca
That is probably not the answer that you would excpect but please review that small app of mine. I created that for JUG and it has working hibernate support for T5 with in memory h2 db running. It's not cleanest, but should be easy to understand. http://bitbucket.org/mgruca/tjug_tapestry_30.09.10/

Re: First Tapestry app with Hibernate

2010-11-30 Thread Werner Keil
Hi, In a large T5 environment we also used Hibernate, but the team was used to its XML form using DAO classes. This may not be as modern as "sexy" as some of the new options, but it worked for us. Sad to see, you still need to use the "unsexy" org.apache.tapestry5.ioc.annotations.Inject instead o

Re: First Tapestry app with Hibernate

2010-11-30 Thread robnangle
Hi, Thats how I created the project originally through the mvn command and then imported it into eclipse and run it on tomcat, but it keeps leading to them errors. -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3286011.html Sent

Re: First Tapestry app with Hibernate

2010-11-30 Thread Michal Gruca
Hi, are you using eclipse for that project? I had some issues due to .m2 plugin. If it is the case then try to take out pom.xml and create new project using mvn command line. Then import project to eclipse and check if it will start working. I was doing a lot of this kind of magic tricks to get ec

Re: First Tapestry app with Hibernate

2010-11-30 Thread robnangle
Sorry if im seeming stupid but adding it to the classpath? Does that mean adding the dependency to the pom.xml or adding the annotation jar? The pom.xml dependencies is as follows: org.apache.tapestry tapestry-core ${tapestry-release-version}

Re: First Tapestry app with Hibernate

2010-11-30 Thread Everton Agner
Hey! > public class HbAction { Just a tip... I've seen you named your page Class as "HbAction"... it seems you've come from Struts, right? If you did, keep in mind that Tapestry is not Action Oriented (like Struts), it is "Component Events Oriented" (like wicket or sorta like jsf). It means you c

Re: First Tapestry app with Hibernate

2010-11-30 Thread Kristian Marinkovic
you have to add the tapestry-hibernate-core dependency to your classpath as well... it contains the annotation CommitAfter g, kris Von:robnangle An: users@tapestry.apache.org Datum: 30.11.2010 11:27 Betreff:First Tapestry app with Hibernate Hi all, Sorry if this has been