Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-05-01 Thread Dmitry Gusev
On Wed, May 1, 2013 at 12:03 AM, George Christman wrote: > I'm still not having any success :-/ I've followed all your instructions > plus attempted in both Tomcat6 and 7. > > I just want to verify this is the correct spot for resource-ref and that > it's written correctly. > > That is correct.

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-30 Thread George Christman
I'm still not having any success :-/ I've followed all your instructions plus attempted in both Tomcat6 and 7. I just want to verify this is the correct spot for resource-ref and that it's written correctly. http://java.sun.com/dtd/web-app_2_3.dtd";> rolemanager Tapestry 5 Application

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-30 Thread Dmitry Gusev
I don't have anything related to this datasource in TOMCAT_HOME/conf/context.xml nor in TOMCAT_HOME/conf/server.xml Note that context file name will be ROOT.xml only if you deploy to root context, that is your application url will be http://localhost:8080/ If you deploy to custom context, then co

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-30 Thread George Christman
Well I thought I was using ROOT.xml, but it was overwritten during deployment. "I created the file manually on the server", I guess the question is where should I be creating ROOT.xml? should this be done in app? After manually creating it, I still have the same error. What I had after manually cr

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-30 Thread Dmitry Gusev
I don't use tapestry-hibernate, I use tapestry-jpa with Hibernate as JPA implementation. persistence.xml -- is a JPA specific file, I don't think you need it for tapestry-hibernate. Looking at your exception: > javax.naming.NameNotFoundException: Name [jdbc/rolemanager] is not bound in this Conte

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-30 Thread George Christman
Thanks Dmitry, it sounds like we are at the tail end of this issue. :) My only question left is in regards to your persistence.xml file. I use tapestry-hibernate, however I do not have a persistence.xml file present in my app. I'm not really sure what it's purpose is, but without it and changing my

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Dmitry Gusev
On Mon, Apr 29, 2013 at 11:33 PM, George Christman wrote: > So as it turns out, the issue was caused by tapestry-test adding an older > tomcat files to the class path. I'll need to somehow figure out how to > exclude them from the class path. > > > org.apache.tapestry >

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread George Christman
So as it turns out, the issue was caused by tapestry-test adding an older tomcat files to the class path. I'll need to somehow figure out how to exclude them from the class path. org.apache.tapestry tapestry-test 5.3.6

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Lenny Primak
Netbeans runs just under plane maven, just like from the command line. There maybe stale files in WEB-INF/lib, but if you run mvn clean, they will be gone. maven directive is your friend here On Apr 29, 2013, at 2:38 PM, Dmitry Gusev wrote: > They will be present in classpath if you won't excl

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Dmitry Gusev
They will be present in classpath if you won't exclude them. I'm not familiar with Netbeans, but in Eclipse Sysdeo Plugin I have to manually remove them, so you should check your runtime classpath. You can also try to build a war and look at WEB-INF/lib folder to check if these files not there. O

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread George Christman
I was wondering the same thing about those files, but as you said they shouldn't. On Mon, Apr 29, 2013 at 2:23 PM, George Christman wrote: > I run my project from Netbeans, locally with jetty, and deployed as a war. > > > On Mon, Apr 29, 2013 at 2:21 PM, Dmitry Gusev wrote: > >> How do you run y

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread George Christman
I run my project from Netbeans, locally with jetty, and deployed as a war. On Mon, Apr 29, 2013 at 2:21 PM, Dmitry Gusev wrote: > How do you run your project? Is it from within eclipse? Or you're deploying > a *.war file? > > Could it be that these files getting into classpath? > > [INFO] +- org

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Dmitry Gusev
How do you run your project? Is it from within eclipse? Or you're deploying a *.war file? Could it be that these files getting into classpath? [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile ... [INFO] | +- org.apache.tomcat:dbcp:jar:6.0.30:compile [INFO] | +- org.apache.tomcat:co

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Michael Prescott
You could also (if you're using Eclipse) use Ctrl-Shift-T to see what jar(s) might be containing the org.apache.catalina.deploy.WebXml class (which seems to be the offending duplicate). On 29 April 2013 14:10, George Christman wrote: > Here's my mvn dependency tree, thanks for your help. > > [W

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Lenny Primak
Not sure (I don't use hibernate) but hibernate-jta and geronimo-jta stuff may conflict. On Apr 29, 2013, at 2:10 PM, George Christman wrote: > Here's my mvn dependency tree, thanks for your help. > > [WARNING] Failed to retrieve plugin descriptor for > org.codehaus.mojo:hibernate3- > maven-plugi

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread George Christman
Here's my mvn dependency tree, thanks for your help. [WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:hibernate3- maven-plugin:2.2: Failed to parse plugin descriptor for org.codehaus.mojo:hibern ate3-maven-plugin:2.2 (C:\Users\gmc07\.m2\repository\org\codehaus\mojo\hibernate 3-

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Dmitry Gusev
Lenny is right, you have some jars in your classpath that conflicting with tomcat's libraries. Can you show output of "mvn dependency:tree" or "gradle dependencies" ? On Mon, Apr 29, 2013 at 9:04 PM, Lenny Primak wrote: > Sounds like you are mixing up your dependencies. Perhaps an incompatible

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Lenny Primak
Sounds like you are mixing up your dependencies. Perhaps an incompatible or duplicated version of some JARs somewhere. Sorry I can't be anymore specific. On Apr 29, 2013, at 1:00 PM, George Christman wrote: > Hi everyone, I'm now getting back to this issue and I'd like to say I > honestly stil

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread George Christman
Hi everyone, I'm now getting back to this issue and I'd like to say I honestly still don't understand it. I posted my config on stack overflow with a little more detail. If any tapestry tomcat users would like to take a look at it and tell me what I might be doing wrong, I'd appreciate it. Thanks

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-26 Thread Dmitry Gusev
I don't like to use server.xml for JNDI configuration for several reasons, but the main is that JDBC driver classes should be on server classpath, which means you have to manually put them there. Which personally I don't like because driver jar usually specified at pom.xml/build.gradle and this is

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-26 Thread Barry Books
I also host on Amazon with Tomcat and develop with Jetty. Hibernate just gets the datasource from the container. When running locally that's Jetty and Jetty reads the jetty-web.xml file to build the connection. When deployed under Tomcat that would most likely be the server.xml file in the Tomcat

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread George Christman
Hi Lenny, I don't really want to detrail this topic, but I'm very interested. Would you mind sending me a brief email describing your experiences with Jelastic, cost etc. Thanks. On Mon, Mar 25, 2013 at 1:08 PM, Lenny Primak wrote: > Have you considered Jelastic? We are using it with great succ

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread Thiago H de Paula Figueiredo
On Mon, 25 Mar 2013 13:13:56 -0300, George Christman wrote: My question is if I use this configuration, how does Hibernate know to use Jetty locally? I'm not a server expert by any means, so please forgive my ignorance. Does Tapestry tell Hibernate about the local environment and know to

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread Lenny Primak
Have you considered Jelastic? We are using it with great success. On Mar 25, 2013, at 12:39 PM, George Christman wrote: > I like Glassfish much better do to my limited linux knowledge and it's nice > gui, but I would like to try and use bean stalk with amazon and I haven't > seen much docume

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread George Christman
I like Glassfish much better do to my limited linux knowledge and it's nice gui, but I would like to try and use bean stalk with amazon and I haven't seen much documentation on setting it up with Glassfish. Seems as if everything points towards Tomcat which is the only reason I would consider the s

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread Lenny Primak
Why? Glassfish is a superset of tomcat and 1000% better IMHO On Mar 25, 2013, at 12:13 PM, George Christman wrote: > Hello, I'm currently moving my Tapestry5.3 app away from Glassfish in favor > of Tomcat7 on the amazon cloud for my production env. As for my development > env, I'd like to c

Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-25 Thread George Christman
Hello, I'm currently moving my Tapestry5.3 app away from Glassfish in favor of Tomcat7 on the amazon cloud for my production env. As for my development env, I'd like to continue using Jetty. Currently my Glassfish server JNDI in configured to my JDBC connection pool and my hibernate.cfg.xml datasou