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
> tapestry-test
> 5.3.6
> 
> 
> 
> 
>
>
Just add test here, no need to use exclusions here. You
don't need tapestry-test for runtime classpath.


> The other question I have has to do with my hibernate.cfg.xml file. I use
> to use something like this to establish my database connection with jetty
> using jetty-env.xml
>
>  name="hibernate.connection.datasource">jdbc/rolemanager
>
> 
>   
> jdbc/rolemanager
> 
> 
> localhost
> 3306
> rolemanager
> root
> test
> 
> 
>   
> 
>
> but with tomcat I need to use something like this,
>
> 
> name="hibernate.connection.datasource">java:comp/env/jdbc/rolemanager
>
>
You can use "jdbc/rolemanager" for tomcat also.

I use hibernate with JPA, and here's what I have in my persistence.xml:



org.hibernate.ejb.HibernatePersistence

jdbc/projectX-db

 Then in my web.xml:



DB Reference

jdbc/projectX-db

javax.sql.DataSource

Container





And in my context definition:




> I'm not sure how get this to dynamically work for both servers.
>
> Thanks for all the help everyone.
>
>
> On Mon, Apr 29, 2013 at 2:41 PM, Lenny Primak  >wrote:
>
> > 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 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.
> > >
> > > On Mon, Apr 29, 2013 at 10:25 PM, George Christman
> > > wrote:
> > >
> > >> 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 <
> dmitry.gu...@gmail.com
> > >>> 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.apache.tapestry:tapestry-test:jar:5.3.6:compile
> >  ...
> >  [INFO] |  +- org.apache.tomcat:dbcp:jar:6.0.30:compile
> >  [INFO] |  +- org.apache.tomcat:coyote:jar:6.0.30:compile
> >  [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
> >  [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
> >  [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
> >  [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
> > 
> >  They shouldn't, as well as any transitive dependencies
> >  of org.apache.tapestry:tapestry-test
> > 
> > 
> >  On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in
> opening
> >  zip
> > > file
> > > [INFO]
> > > [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @
> > >> RoleManager
> >  ---
> > > [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> > > [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> > > [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> > > [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> > > [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> > > [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> > > [INFO] |  |  +-
> >  org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> > > [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> > > [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> > > [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> > > [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6

Re: problem with jumpstart protecting pages code

2013-04-29 Thread Geoff Callender
Yep, I, too, avoid session persistence like the plague. But in this case I
figure that it's fair enough because we're about to use the session anyway
when they log in (it creates a "Visit" and stores it with @SessionState).
We remove the link from Login afterwards with
discardPersistentFieldChanges() .


On 30 April 2013 08:43, John  wrote:

> Bingo! You are right, @Persist was missing from my login page nextPageLink
> member. I'm not much a fan of putting data in session and probably ignored
> or junked that essential @Persist!
>
> thanks,
> John
>   - Original Message -
>   From: Geoff Callender
>   To: Tapestry users
>   Sent: Monday, April 29, 2013 10:35 PM
>   Subject: Re: problem with jumpstart protecting pages code
>
>
>   Hi John,
>
>   It works because LoginPage persists the link in your session:
>
>  @Persist
>   private Link nextPageLink;
>
>   Have you really seen it fail? Try for yourself - try user 2 (login with
> admin, admin):
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/2
>
>   then log out, then try user 3:
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/3
>
>   then log out, then try role 1:
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/roleview/1
>
>   Does it ever not work? If it needs fixing then I'd really like to know.
>
>   Geoff
>
>
>   On 29/04/2013, at 6:47 PM, John wrote:
>
>   > I don't think the following code works, it doesn't when I run my
> version of it.
>   >
>   > The loginPage has it's nextPageLink property set, but then the
> loginPageLink is returned by using the Login.class which presumably just
> redirects to a fresh login page without the nextPageLink set.
>   >
>   > So the nextPageLink is null in the Login page so the nextPageLink
> cannot be used.
>   >
>   > John
>   >
>   >
> http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages
>   >
>   >
>   >// Get the Login page, give it a link to the requested
> page, and redirect to Login
>   >
>   >IIntermediatePage loginPage = (IIntermediatePage)
> componentSource.getPage(Login.class);
>   >
>   >Link requestedPageLink =
> makeLinkToRequestedPage(requestedPageName, eventContext);
>   >loginPage.setNextPageLink(requestedPageLink);
>   >
>   >Link loginPageLink =
> pageRenderLinkSource.createPageRenderLink(Login.class);
>   >response.sendRedirect(loginPageLink);
>   >
>   >return false;
>
>


Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-04-29 Thread Barry Books
yes I'm running under Tomcat


On Mon, Apr 29, 2013 at 7:55 AM, George Christman
wrote:

> Barry, are running your app on Tomcat?
>
>
> On Sat, Apr 27, 2013 at 9:10 AM, Barry Books  wrote:
>
> > I've run several sites on an Amazon EC2 micro instances which have about
> > 600meg of memory and cost about $10 per month
> >
> >
> > On Fri, Apr 26, 2013 at 9:01 PM, Kalle Korhonen
> > wrote:
> >
> > > Tektonic's VPS systems have consistently had most amount of memory for
> > the
> > > buck and the lowest tier (1GB/$15/month) is nowadays good enough for
> > > running small T5 apps: http://tektonic.net/virtual-servers.html
> > >
> > > Kalle
> > >
> > >
> > > On Fri, Apr 26, 2013 at 3:08 PM, Jon Williams
> > > wrote:
> > >
> > > > Weill I went from $9/mo all the way up to $30/mo. Tapestry is now
> > costing
> > > > me $21 a month. Ok, so if I make $30 a month off tapestry work, my
> work
> > > > terrarium will thrive!
> > > >
> > > > Thanks Howard
> > > >
> > > >
> > > > On Fri, Apr 26, 2013 at 3:02 PM, Howard Lewis Ship  >
> > > > wrote:
> > > >
> > > > > Well, you can measure this kind of thing with VisualVM.  I'd say
> you
> > > want
> > > > > at least 256MB, with 128MB of PermGen.
> > > > >
> > > > >
> > > > > On Fri, Apr 26, 2013 at 3:04 PM, Jon Williams
> > > > > wrote:
> > > > >
> > > > > > I'd like to know the Minimum Heap Size req'd to run the basic
> > > Tapestry
> > > > 5
> > > > > > archetype example smoothly.
> > > > > > I am running my war on Jetty in a hosted environment.
> > > > > >
> > > > > > Currently I'm running in to issues with 64MB of heap.
> > > > > > I don't have plans to make this app behave much beyond a static
> > > > website.
> > > > > > And I'd like to keep my hosting plan cheap as it's only
> $9/month. (
> > > > > > http://jvmhost.com)
> > > > > > What would you suggest?
> > > > > >
> > > > > > Thanks
> > > > > > Jon
> > > > > >
> > > > > > HTTP ERROR 500
> > > > > >
> > > > > > Problem accessing /site/. Reason:
> > > > > >
> > > > > > GC overhead limit exceeded
> > > > > >
> > > > > > Caused by:
> > > > > >
> > > > > > java.lang.OutOfMemoryError: GC overhead limit exceeded
> > > > > >
> > > > > > --
> > > > > > *Powered by Jetty://*
> > > > > > *
> > > > > > *
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Howard M. Lewis Ship
> > > > >
> > > > > Creator of Apache Tapestry
> > > > >
> > > > > The source for Tapestry training, mentoring and support. Contact me
> > to
> > > > > learn how I can get you up and productive in Tapestry fast!
> > > > >
> > > > > (971) 678-5210
> > > > > http://howardlewisship.com
> > > > >
> > > >
> > >
> >
>
>
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>


Re: problem with jumpstart protecting pages code

2013-04-29 Thread John
Bingo! You are right, @Persist was missing from my login page nextPageLink 
member. I'm not much a fan of putting data in session and probably ignored or 
junked that essential @Persist!

thanks,
John
  - Original Message - 
  From: Geoff Callender 
  To: Tapestry users 
  Sent: Monday, April 29, 2013 10:35 PM
  Subject: Re: problem with jumpstart protecting pages code


  Hi John,

  It works because LoginPage persists the link in your session:

 @Persist
  private Link nextPageLink;

  Have you really seen it fail? Try for yourself - try user 2 (login with 
admin, admin):

  http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/2

  then log out, then try user 3:

  http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/3

  then log out, then try role 1:

  http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/roleview/1

  Does it ever not work? If it needs fixing then I'd really like to know.

  Geoff


  On 29/04/2013, at 6:47 PM, John wrote:

  > I don't think the following code works, it doesn't when I run my version of 
it.
  > 
  > The loginPage has it's nextPageLink property set, but then the 
loginPageLink is returned by using the Login.class which presumably just 
redirects to a fresh login page without the nextPageLink set.
  > 
  > So the nextPageLink is null in the Login page so the nextPageLink cannot be 
used.
  > 
  > John
  > 
  > 
http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages
  > 
  > 
  >// Get the Login page, give it a link to the requested page, and 
redirect to Login
  > 
  >IIntermediatePage loginPage = (IIntermediatePage) 
componentSource.getPage(Login.class);
  > 
  >Link requestedPageLink = 
makeLinkToRequestedPage(requestedPageName, eventContext);
  >loginPage.setNextPageLink(requestedPageLink);
  > 
  >Link loginPageLink = 
pageRenderLinkSource.createPageRenderLink(Login.class);
  >response.sendRedirect(loginPageLink);
  > 
  >return false;



Re: problem with jumpstart protecting pages code

2013-04-29 Thread Geoff Callender
Hi John,

It works because LoginPage persists the link in your session:

   @Persist
private Link nextPageLink;

Have you really seen it fail? Try for yourself - try user 2 (login with admin, 
admin):


http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/2

then log out, then try user 3:


http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/userview/3

then log out, then try role 1:


http://jumpstart.doublenegative.com.au/jumpstart/theapp/security/roleview/1

Does it ever not work? If it needs fixing then I'd really like to know.

Geoff


On 29/04/2013, at 6:47 PM, John wrote:

> I don't think the following code works, it doesn't when I run my version of 
> it.
> 
> The loginPage has it's nextPageLink property set, but then the loginPageLink 
> is returned by using the Login.class which presumably just redirects to a 
> fresh login page without the nextPageLink set.
> 
> So the nextPageLink is null in the Login page so the nextPageLink cannot be 
> used.
> 
> John
> 
> http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages
> 
> 
>// Get the Login page, give it a link to the requested page, and 
> redirect to Login
> 
>IIntermediatePage loginPage = (IIntermediatePage) 
> componentSource.getPage(Login.class);
> 
>Link requestedPageLink = 
> makeLinkToRequestedPage(requestedPageName, eventContext);
>loginPage.setNextPageLink(requestedPageLink);
> 
>Link loginPageLink = 
> pageRenderLinkSource.createPageRenderLink(Login.class);
>response.sendRedirect(loginPageLink);
> 
>return false;



RE: cant do if clause within a div - help

2013-04-29 Thread nhhockeyplayer nashua
Thanks friend... that worked out fine.
  

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





The other question I have has to do with my hibernate.cfg.xml file. I use
to use something like this to establish my database connection with jetty
using jetty-env.xml

jdbc/rolemanager


  
jdbc/rolemanager


localhost
3306
rolemanager
root
test


  


but with tomcat I need to use something like this,

java:comp/env/jdbc/rolemanager

I'm not sure how get this to dynamically work for both servers.

Thanks for all the help everyone.


On Mon, Apr 29, 2013 at 2:41 PM, Lenny Primak wrote:

> 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 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.
> >
> > On Mon, Apr 29, 2013 at 10:25 PM, George Christman
> > wrote:
> >
> >> 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 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:coyote:jar:6.0.30:compile
>  [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
>  [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
>  [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
>  [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
> 
>  They shouldn't, as well as any transitive dependencies
>  of org.apache.tapestry:tapestry-test
> 
> 
>  On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening
>  zip
> > file
> > [INFO]
> > [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @
> >> RoleManager
>  ---
> > [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> > [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> > [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> > [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> > [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> > [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> > [INFO] |  |  +-
>  org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> > [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> > [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> > [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> > [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> > [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> > [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> > [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> > [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> > [INFO] |  +-
> >> org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> > [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> > [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> > [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> > [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> > [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> > [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> > [INFO] |  |  \-
> > org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> > e
> > [INFO] |  +- org.seleniumhq.s

Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-04-29 Thread Dmitry Gusev
I host some of our T5 apps on OpenShift.

It has free plan with 512MB RAM and 1GB storage, works good so far, though
I haven't tried it with heavy load yet.

https://www.openshift.com/faq#t6n11275


On Mon, Apr 29, 2013 at 10:49 PM, Howard Lewis Ship wrote:

> The only problem with GAE is that GAE expects application launch to be
> cheap, and will often shut down your app until a request comes in.
>  Tapestry assumes a long-running application server, so it can be
> relatively slow to start up: about a second give or take on ordinary
> hardware (not sure about GAE), and possibly a bit longer depending on if
> you are doing anything else expensive at startup, such as using Hibernate.
>
>
> On Mon, Apr 29, 2013 at 8:55 AM, George Christman
> wrote:
>
> > Barry, are running your app on Tomcat?
> >
> >
> > On Sat, Apr 27, 2013 at 9:10 AM, Barry Books  wrote:
> >
> > > I've run several sites on an Amazon EC2 micro instances which have
> about
> > > 600meg of memory and cost about $10 per month
> > >
> > >
> > > On Fri, Apr 26, 2013 at 9:01 PM, Kalle Korhonen
> > > wrote:
> > >
> > > > Tektonic's VPS systems have consistently had most amount of memory
> for
> > > the
> > > > buck and the lowest tier (1GB/$15/month) is nowadays good enough for
> > > > running small T5 apps: http://tektonic.net/virtual-servers.html
> > > >
> > > > Kalle
> > > >
> > > >
> > > > On Fri, Apr 26, 2013 at 3:08 PM, Jon Williams
> > > > wrote:
> > > >
> > > > > Weill I went from $9/mo all the way up to $30/mo. Tapestry is now
> > > costing
> > > > > me $21 a month. Ok, so if I make $30 a month off tapestry work, my
> > work
> > > > > terrarium will thrive!
> > > > >
> > > > > Thanks Howard
> > > > >
> > > > >
> > > > > On Fri, Apr 26, 2013 at 3:02 PM, Howard Lewis Ship <
> hls...@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > Well, you can measure this kind of thing with VisualVM.  I'd say
> > you
> > > > want
> > > > > > at least 256MB, with 128MB of PermGen.
> > > > > >
> > > > > >
> > > > > > On Fri, Apr 26, 2013 at 3:04 PM, Jon Williams
> > > > > > wrote:
> > > > > >
> > > > > > > I'd like to know the Minimum Heap Size req'd to run the basic
> > > > Tapestry
> > > > > 5
> > > > > > > archetype example smoothly.
> > > > > > > I am running my war on Jetty in a hosted environment.
> > > > > > >
> > > > > > > Currently I'm running in to issues with 64MB of heap.
> > > > > > > I don't have plans to make this app behave much beyond a static
> > > > > website.
> > > > > > > And I'd like to keep my hosting plan cheap as it's only
> > $9/month. (
> > > > > > > http://jvmhost.com)
> > > > > > > What would you suggest?
> > > > > > >
> > > > > > > Thanks
> > > > > > > Jon
> > > > > > >
> > > > > > > HTTP ERROR 500
> > > > > > >
> > > > > > > Problem accessing /site/. Reason:
> > > > > > >
> > > > > > > GC overhead limit exceeded
> > > > > > >
> > > > > > > Caused by:
> > > > > > >
> > > > > > > java.lang.OutOfMemoryError: GC overhead limit exceeded
> > > > > > >
> > > > > > > --
> > > > > > > *Powered by Jetty://*
> > > > > > > *
> > > > > > > *
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Howard M. Lewis Ship
> > > > > >
> > > > > > Creator of Apache Tapestry
> > > > > >
> > > > > > The source for Tapestry training, mentoring and support. Contact
> me
> > > to
> > > > > > learn how I can get you up and productive in Tapestry fast!
> > > > > >
> > > > > > (971) 678-5210
> > > > > > http://howardlewisship.com
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > George Christman
> > www.CarDaddy.com
> > P.O. Box 735
> > Johnstown, New York
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-04-29 Thread Howard Lewis Ship
The only problem with GAE is that GAE expects application launch to be
cheap, and will often shut down your app until a request comes in.
 Tapestry assumes a long-running application server, so it can be
relatively slow to start up: about a second give or take on ordinary
hardware (not sure about GAE), and possibly a bit longer depending on if
you are doing anything else expensive at startup, such as using Hibernate.


On Mon, Apr 29, 2013 at 8:55 AM, George Christman
wrote:

> Barry, are running your app on Tomcat?
>
>
> On Sat, Apr 27, 2013 at 9:10 AM, Barry Books  wrote:
>
> > I've run several sites on an Amazon EC2 micro instances which have about
> > 600meg of memory and cost about $10 per month
> >
> >
> > On Fri, Apr 26, 2013 at 9:01 PM, Kalle Korhonen
> > wrote:
> >
> > > Tektonic's VPS systems have consistently had most amount of memory for
> > the
> > > buck and the lowest tier (1GB/$15/month) is nowadays good enough for
> > > running small T5 apps: http://tektonic.net/virtual-servers.html
> > >
> > > Kalle
> > >
> > >
> > > On Fri, Apr 26, 2013 at 3:08 PM, Jon Williams
> > > wrote:
> > >
> > > > Weill I went from $9/mo all the way up to $30/mo. Tapestry is now
> > costing
> > > > me $21 a month. Ok, so if I make $30 a month off tapestry work, my
> work
> > > > terrarium will thrive!
> > > >
> > > > Thanks Howard
> > > >
> > > >
> > > > On Fri, Apr 26, 2013 at 3:02 PM, Howard Lewis Ship  >
> > > > wrote:
> > > >
> > > > > Well, you can measure this kind of thing with VisualVM.  I'd say
> you
> > > want
> > > > > at least 256MB, with 128MB of PermGen.
> > > > >
> > > > >
> > > > > On Fri, Apr 26, 2013 at 3:04 PM, Jon Williams
> > > > > wrote:
> > > > >
> > > > > > I'd like to know the Minimum Heap Size req'd to run the basic
> > > Tapestry
> > > > 5
> > > > > > archetype example smoothly.
> > > > > > I am running my war on Jetty in a hosted environment.
> > > > > >
> > > > > > Currently I'm running in to issues with 64MB of heap.
> > > > > > I don't have plans to make this app behave much beyond a static
> > > > website.
> > > > > > And I'd like to keep my hosting plan cheap as it's only
> $9/month. (
> > > > > > http://jvmhost.com)
> > > > > > What would you suggest?
> > > > > >
> > > > > > Thanks
> > > > > > Jon
> > > > > >
> > > > > > HTTP ERROR 500
> > > > > >
> > > > > > Problem accessing /site/. Reason:
> > > > > >
> > > > > > GC overhead limit exceeded
> > > > > >
> > > > > > Caused by:
> > > > > >
> > > > > > java.lang.OutOfMemoryError: GC overhead limit exceeded
> > > > > >
> > > > > > --
> > > > > > *Powered by Jetty://*
> > > > > > *
> > > > > > *
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Howard M. Lewis Ship
> > > > >
> > > > > Creator of Apache Tapestry
> > > > >
> > > > > The source for Tapestry training, mentoring and support. Contact me
> > to
> > > > > learn how I can get you up and productive in Tapestry fast!
> > > > >
> > > > > (971) 678-5210
> > > > > http://howardlewisship.com
> > > > >
> > > >
> > >
> >
>
>
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


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 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.
> 
> On Mon, Apr 29, 2013 at 10:25 PM, George Christman
> wrote:
> 
>> 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 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:coyote:jar:6.0.30:compile
 [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
 [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
 [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
 [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
 
 They shouldn't, as well as any transitive dependencies
 of org.apache.tapestry:tapestry-test
 
 
 On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening
 zip
> file
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @
>> RoleManager
 ---
> [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> [INFO] |  |  +-
 org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> [INFO] |  +-
>> org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> [INFO] |  |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> e
> [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \-
> org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> pile
> [INFO] |  |  | +- org.json:json:jar:20080701:compile
> [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> [INFO] |  |  |\-
 com.google.code.findbugs:jsr305:jar:1.3.9:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> e
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> ile
> [INFO] |  |  |  +-
 org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> [INFO] |  |  |  |  +-
 org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> [INFO] |  |  |  |  +-
>>>

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.

On Mon, Apr 29, 2013 at 10:25 PM, George Christman
wrote:

> 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 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:coyote:jar:6.0.30:compile
> >> [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
> >> [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
> >> [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
> >> [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
> >>
> >> They shouldn't, as well as any transitive dependencies
> >> of org.apache.tapestry:tapestry-test
> >>
> >>
> >> On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening
> >> zip
> >> > file
> >> > [INFO]
> >> > [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @
> RoleManager
> >> ---
> >> > [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> >> > [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> >> > [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> >> > [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> >> > [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> >> > [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> >> > [INFO] |  |  +-
> >> org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> >> > [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> >> > [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> >> > [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> >> > [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> >> > [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> >> > [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> >> > [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> >> > [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> >> > [INFO] |  +-
> org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> >> > [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> >> > [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> >> > [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> >> > [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> >> > [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> >> > [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> >> > [INFO] |  |  \-
> >> > org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> >> > e
> >> > [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> >> > [INFO] |  |  +-
> >> > org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> >> > le
> >> > [INFO] |  |  |  \-
> >> > org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> >> > pile
> >> > [INFO] |  |  | +- org.json:json:jar:20080701:compile
> >> > [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> >> > [INFO] |  |  |\-
> >> com.google.code.findbugs:jsr305:jar:1.3.9:compile
> >> > [INFO] |  |  +-
> >> > org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> >> > e
> >> > [INFO] |  |  +-
> >> > org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> >> > ile
> >> > [INFO] |  |  |  +-
> >> org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> >> > [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> >> > [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> >> > [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> >> > [INFO] |  |  |  |  +-
> >> org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> >> > [INFO] |  |  |  |  +-
> >> > net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
> >> > [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> >> > [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
> >> > [INFO] |  |  |  |  +-
> >> net

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 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:coyote:jar:6.0.30:compile
>> [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
>> [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
>> [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
>> [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
>>
>> They shouldn't, as well as any transitive dependencies
>> of org.apache.tapestry:tapestry-test
>>
>>
>> On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening
>> zip
>> > file
>> > [INFO]
>> > [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager
>> ---
>> > [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
>> > [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
>> > [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
>> > [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
>> > [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
>> > [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
>> > [INFO] |  |  +-
>> org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
>> > [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
>> > [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
>> > [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
>> > [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
>> > [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
>> > [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
>> > [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
>> > [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
>> > [INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
>> > [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
>> > [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
>> > [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
>> > [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
>> > [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
>> > [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
>> > [INFO] |  |  \-
>> > org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
>> > e
>> > [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
>> > [INFO] |  |  +-
>> > org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
>> > le
>> > [INFO] |  |  |  \-
>> > org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
>> > pile
>> > [INFO] |  |  | +- org.json:json:jar:20080701:compile
>> > [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
>> > [INFO] |  |  |\-
>> com.google.code.findbugs:jsr305:jar:1.3.9:compile
>> > [INFO] |  |  +-
>> > org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
>> > e
>> > [INFO] |  |  +-
>> > org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
>> > ile
>> > [INFO] |  |  |  +-
>> org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
>> > [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
>> > [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
>> > [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
>> > [INFO] |  |  |  |  +-
>> org.apache.httpcomponents:httpmime:jar:4.1.2:compile
>> > [INFO] |  |  |  |  +-
>> > net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
>> > [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
>> > [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
>> > [INFO] |  |  |  |  +-
>> net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
>> > [INFO] |  |  |  |  \-
>> net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
>> > [INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
>> > [INFO] |  |  |  \-
>> org.apache.httpcomponents:httpclient:jar:4.1.2:compile
>> > [INFO] |  |  | \-
>> org.apache.httpcomponents:httpcore:jar:4.1.2:compile
>> > [INFO] |  |  +-
>> > org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
>> > le
>> > [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
>> > [INFO] |  |  +-
>> > org.selenium

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.apache.tapestry:tapestry-test:jar:5.3.6:compile
> ...
> [INFO] |  +- org.apache.tomcat:dbcp:jar:6.0.30:compile
> [INFO] |  +- org.apache.tomcat:coyote:jar:6.0.30:compile
> [INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
> [INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
> [INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
> [INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile
>
> They shouldn't, as well as any transitive dependencies
> of org.apache.tapestry:tapestry-test
>
>
> On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening zip
> > file
> > [INFO]
> > [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager
> ---
> > [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> > [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> > [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> > [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> > [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> > [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> > [INFO] |  |  +-
> org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> > [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> > [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> > [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> > [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> > [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> > [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> > [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> > [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> > [INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> > [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> > [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> > [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> > [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> > [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> > [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> > [INFO] |  |  \-
> > org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> > e
> > [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> > le
> > [INFO] |  |  |  \-
> > org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> > pile
> > [INFO] |  |  | +- org.json:json:jar:20080701:compile
> > [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> > [INFO] |  |  |\-
> com.google.code.findbugs:jsr305:jar:1.3.9:compile
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> > e
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> > ile
> > [INFO] |  |  |  +-
> org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> > [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> > [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> > [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> > [INFO] |  |  |  |  +-
> org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> > [INFO] |  |  |  |  +-
> > net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
> > [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> > [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
> > [INFO] |  |  |  |  +-
> net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
> > [INFO] |  |  |  |  \-
> net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
> > [INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
> > [INFO] |  |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:compile
> > [INFO] |  |  | \-
> org.apache.httpcomponents:httpcore:jar:4.1.2:compile
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
> > le
> > [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:compile
> > [INFO] |  |  |  \- net.java.dev.jna:jna:jar:3.3.0:compile
> > [INFO] |  |  +-
> > org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:compil
> > e
> > [INFO] |  |  \-
> org.seleniumhq.selenium:seleniu

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:coyote:jar:6.0.30:compile
[INFO] |  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:compile
[INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.30:compile
[INFO] |  \- org.apache.tomcat:catalina:jar:6.0.30:compile
[INFO] | \- org.apache.tomcat:annotations-api:jar:6.0.30:compile

They shouldn't, as well as any transitive dependencies
of org.apache.tapestry:tapestry-test


On Mon, Apr 29, 2013 at 10: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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening zip
> file
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager ---
> [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> [INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> [INFO] |  |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> e
> [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \-
> org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> pile
> [INFO] |  |  | +- org.json:json:jar:20080701:compile
> [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> [INFO] |  |  |\- com.google.code.findbugs:jsr305:jar:1.3.9:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> e
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> ile
> [INFO] |  |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> [INFO] |  |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> [INFO] |  |  |  |  +-
> net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
> [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
> [INFO] |  |  |  |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
> [INFO] |  |  |  |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
> [INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
> [INFO] |  |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:compile
> [INFO] |  |  | \- org.apache.httpcomponents:httpcore:jar:4.1.2:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:compile
> [INFO] |  |  |  \- net.java.dev.jna:jna:jar:3.3.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:compil
> e
> [INFO] |  |  \- org.seleniumhq.selenium:selenium-support:jar:2.14.0:compile
> [INFO] |  +- org.testng:testng:jar:5.14.10:compile
> [INFO] |  |  +- org.beanshell:bsh:jar:2.0b4:compile
> [INFO] |  |  \- com.beust:jcommander:jar:1.12:compile
> [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.v20091005:compile
> [INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:7.0.0.v20091005:compile
>

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.
>
> [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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening zip
> file
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager ---
> [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> [INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> [INFO] |  |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> e
> [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \-
> org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> pile
> [INFO] |  |  | +- org.json:json:jar:20080701:compile
> [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> [INFO] |  |  |\- com.google.code.findbugs:jsr305:jar:1.3.9:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> e
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> ile
> [INFO] |  |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> [INFO] |  |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> [INFO] |  |  |  |  +-
> net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
> [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
> [INFO] |  |  |  |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
> [INFO] |  |  |  |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
> [INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
> [INFO] |  |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:compile
> [INFO] |  |  | \- org.apache.httpcomponents:httpcore:jar:4.1.2:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:compile
> [INFO] |  |  |  \- net.java.dev.jna:jna:jar:3.3.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:compil
> e
> [INFO] |  |  \- org.seleniumhq.selenium:selenium-support:jar:2.14.0:compile
> [INFO] |  +- org.testng:testng:jar:5.14.10:compile
> [INFO] |  |  +- org.beanshell:bsh:jar:2.0b4:compile
> [INFO] |  |  \- com.beust:jcommander:jar:1.12:compile
> [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.v20091005:compile
> [INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:7.0.0.v20091005:compile
> [INFO] |  |  |  \- org.eclipse.jetty:jetty-util:jar:7.0.0.v20091005:compile
> [INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:7.0.0.v20091005:compile
> [INFO] |  | \-
> org.eclipse.jetty:jetty-security:jar:7.0.0.v20091005:compile
> [INFO] |  +- jetty:org.mortbay.jetty:jar:5.1.12:compile
> [INFO] |  +- org.eclipse.jetty:jetty-jndi:jar:7.0.0.v20091005:compile
> [INFO] |  |  \- javax.mail:mail:jar:1.4:compile
> [INFO] |  +- org.easymock:easymock:jar:3.0:compile
> [INFO] |  |  +- 

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-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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening zip
> file
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager ---
> [INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
> [INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
> [INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
> [INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
> [INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
> [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
> [INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
> [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
> [INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
> [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
> [INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
> [INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
> [INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
> [INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
> [INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
> [INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
> [INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
> [INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
> [INFO] |  |  \-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
> e
> [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \-
> org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
> pile
> [INFO] |  |  | +- org.json:json:jar:20080701:compile
> [INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
> [INFO] |  |  |\- com.google.code.findbugs:jsr305:jar:1.3.9:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
> e
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
> ile
> [INFO] |  |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
> [INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
> [INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
> [INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
> [INFO] |  |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:compile
> [INFO] |  |  |  |  +-
> net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
> [INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> [INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
> [INFO] |  |  |  |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
> [INFO] |  |  |  |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
> [INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
> [INFO] |  |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:compile
> [INFO] |  |  | \- org.apache.httpcomponents:httpcore:jar:4.1.2:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
> le
> [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:compile
> [INFO] |  |  |  \- net.java.dev.jna:jna:jar:3.3.0:compile
> [INFO] |  |  +-
> org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:compil
> e
> [INFO] |  |  \- org.seleniumhq.selenium:selenium-support:jar:2.14.0:compile
> [INFO] |  +- org.testng:testng:jar:5.14.10:compile
> [INFO] |  |  +- org.beanshell:bsh:jar:2.0b4:compile
> [INFO] |  |  \- com.beust:jcommander:jar:1.12:compile
> [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.v20091005:compile
> [INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:7.0.0.v20091005:compile
> [INFO] |  |  |  \- org.eclipse.jetty:jetty-util:jar:7.0.0.v20091005:compile
> [INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:7.0.0.v20091005:compile
> [INFO] |  | \-
> org.eclipse.jetty:jetty-security:jar:7.0.0.v20091005:compile
> [INFO] |  +- jetty:org.mortbay.jetty:jar:5.1.12:compile
> [INFO] |  +- org.eclipse.jetty:jetty-jndi:jar:7.0.0.v20091005:compile
> [INFO] |  |  \- javax.mail:mail:jar:1.4:compile
> [INFO] |  +- org.easymock:easymock:jar:3.0:compile
> [INFO] |  |  +- cglib:cglib-nodep:jar:2.2:compile
> [INFO] |  |  \- org.objenesis:objenesis:jar:1.2:compile
> 

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-maven-plugin\2.2\hibernate3-maven-plugin-2.2.jar): error in opening zip
file
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ RoleManager ---
[INFO] com.mycompany:RoleManager:war:1.0-SNAPSHOT
[INFO] +- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
[INFO] |  +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
[INFO] |  +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] |  |  \- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.3.6:compile
[INFO] |  |  +- org.apache.tapestry:tapestry5-annotations:jar:5.3.6:compile
[INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.3.6:compile
[INFO] |  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
[INFO] |  |  +- org.apache.tapestry:plastic:jar:5.3.6:compile
[INFO] |  |  +- log4j:log4j:jar:1.2.14:compile
[INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.5:compile
[INFO] +- org.apache.tapestry:tapestry-test:jar:5.3.6:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:compile
[INFO] |  |  +- bouncycastle:bcprov-jdk15:jar:135:compile
[INFO] |  |  +- mx4j:mx4j-tools:jar:3.0.1:compile
[INFO] |  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
[INFO] |  |  +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.8:compile
[INFO] |  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:compile
[INFO] |  |  \-
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compil
e
[INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:compile
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:compi
le
[INFO] |  |  |  \-
org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:com
pile
[INFO] |  |  | +- org.json:json:jar:20080701:compile
[INFO] |  |  | \- com.google.guava:guava:jar:10.0.1:compile
[INFO] |  |  |\- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:compil
e
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:comp
ile
[INFO] |  |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.14.0:compile
[INFO] |  |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.9:compile
[INFO] |  |  |  |  +- xalan:xalan:jar:2.7.1:compile
[INFO] |  |  |  |  |  \- xalan:serializer:jar:2.7.1:compile
[INFO] |  |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:compile
[INFO] |  |  |  |  +-
net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:compile
[INFO] |  |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
[INFO] |  |  |  |  |  \- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] |  |  |  |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:compile
[INFO] |  |  |  |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
[INFO] |  |  |  | \- org.w3c.css:sac:jar:1.3:compile
[INFO] |  |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:compile
[INFO] |  |  | \- org.apache.httpcomponents:httpcore:jar:4.1.2:compile
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:compi
le
[INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:compile
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:compile
[INFO] |  |  |  \- net.java.dev.jna:jna:jar:3.3.0:compile
[INFO] |  |  +-
org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:compil
e
[INFO] |  |  \- org.seleniumhq.selenium:selenium-support:jar:2.14.0:compile
[INFO] |  +- org.testng:testng:jar:5.14.10:compile
[INFO] |  |  +- org.beanshell:bsh:jar:2.0b4:compile
[INFO] |  |  \- com.beust:jcommander:jar:1.12:compile
[INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.v20091005:compile
[INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:7.0.0.v20091005:compile
[INFO] |  |  |  \- org.eclipse.jetty:jetty-util:jar:7.0.0.v20091005:compile
[INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:7.0.0.v20091005:compile
[INFO] |  | \-
org.eclipse.jetty:jetty-security:jar:7.0.0.v20091005:compile
[INFO] |  +- jetty:org.mortbay.jetty:jar:5.1.12:compile
[INFO] |  +- org.eclipse.jetty:jetty-jndi:jar:7.0.0.v20091005:compile
[INFO] |  |  \- javax.mail:mail:jar:1.4:compile
[INFO] |  +- org.easymock:easymock:jar:3.0:compile
[INFO] |  |  +- cglib:cglib-nodep:jar:2.2:compile
[INFO] |  |  \- org.objenesis:objenesis:jar:1.2:compile
[INFO] |  +- org.eclipse.jetty:jetty-server:jar:7.0.0.v20091005:compile
[INFO] |  |  +-
org.eclipse.jetty:jetty-continuation:jar:7.0.0.v20091005:compile

[INFO] |  |  \- org.eclipse.jetty:jetty-http:jar:7.0.0.v20091005:compile
[INFO] |  | \- org.eclipse.jetty:jetty-io:jar:7.0.0.v20091005:compile
[INFO] |  +- org.apache.tomcat

Re: Tapesty form target external url (ie custom url)

2013-04-29 Thread Boris Horvat
Your assumption is correct, I chouse to do it view different forms at the
moment (the users hast to click few more times but I might change it in the
shore future as per you suggestions)

I will need to google a bit more about your 3ed option it seems to be what
I need (the website I am trying to forward data - moneybookers has mention
something similar)

Thanks,
Cheers


On Mon, Apr 29, 2013 at 9:57 AM, Lance Java wrote:

> You have a few options
>
> 1. Return a java.net.URL from your onSuccess() event - This will only work
> if your external URL allows GET. You can use the query part of the URL to
> pass request parameters
>
> 2. Use javascript to post a form to the external URL - Redirect after your
> onSuccess() event to a page which posts a simple non-tapestry form to the
> external URL.
>
> 3. Serverside POST - Use something like apache HttpClient to do the
> external POST from your server. You might get an external session id back
> that you can then use in a redirect to the external site.
>
> Note, in all of these solutions I have assumed you want to first handle the
> form in tapestry so you can validate etc.
>



-- 
Sincerely
*Boris Horvat*


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
> 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 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
> >
> >
> http://stackoverflow.com/questions/16284005/how-to-configure-tapestry5-hibernate-tomcat7-jndi-mysql
> >
> >
> > On Tue, Mar 26, 2013 at 7:54 AM, Dmitry Gusev  >wrote:
> >
> >> 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 simply not that DRY.
> >>
> >> And also this is not recommended by tomcat team and here's why:
> >>
> >>
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
> >>
> >> What I prefer to do is to create context file (ROOT context at this
> >> example) at ./apache-tomcat-7.0.35/conf/Catalina/localhost/ROOT.xml with
> >> the following content:
> >>
> >> 
> >> 
> >>
> >>
> >> >>type="javax.sql.DataSource"
> >>auth="Container"
> >>maxActive="100" maxIdle="30" maxWait="1"
> >>driverClassName="org.postgresql.Driver"
> >>url="jdbc:postgresql://localhost/xxx"
> >>username="xxx" />
> >>
> >> 
> >>
> >> For several recent projects I found it convenient to also develop with
> >> Tomcat using Sysdeo Eclipse Plugin.
> >> For this to work there I have to put content of /Context node into
> "Extra
> >> information" textarea at Project Properties -> Tomcat.
> >>
> >> Though, I agree its more difficult to setup Tomcat plugin than Jetty in
> >> Eclipse, but when you did this once -- every other projects will be
> easier
> >> to setup. And you usually might want to have exactly the same web
> container
> >> that will be in production if you use, say, web sockets API.
> >>
> >> // PS: Sorry for offtopic
> >>
> >> On Tue, Mar 26, 2013 at 3:28 PM, Barry Books  wrote:
> >>
> >>> 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 conf directory. Tomcat requires a
> >>> mapping between the server.xml configurations and each web app. I do
> >>> this by creating a META-INF/context.xml file in the project. When
> >>> Tomcat deploys the app it will pick up that file and use the mapping
> >>> you provide. The contents would be something like
> >>>
> >>> 
> >>> 
> >>>  >>> type="javax.sql.DataSource"/>
> >>> 
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >>> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> Dmitry Gusev
> >>
> >> AnjLab Team
> >> http://anjlab.com
> >>
> >
> >
> >
> > --
> > George Christman
> > www.CarDaddy.com
> > P.O. Box 735
> > Johnstown, New York
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


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 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
> 
> http://stackoverflow.com/questions/16284005/how-to-configure-tapestry5-hibernate-tomcat7-jndi-mysql
> 
> 
> On Tue, Mar 26, 2013 at 7:54 AM, Dmitry Gusev wrote:
> 
>> 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 simply not that DRY.
>> 
>> And also this is not recommended by tomcat team and here's why:
>> 
>> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
>> 
>> What I prefer to do is to create context file (ROOT context at this
>> example) at ./apache-tomcat-7.0.35/conf/Catalina/localhost/ROOT.xml with
>> the following content:
>> 
>> 
>> 
>>
>> 
>>>type="javax.sql.DataSource"
>>auth="Container"
>>maxActive="100" maxIdle="30" maxWait="1"
>>driverClassName="org.postgresql.Driver"
>>url="jdbc:postgresql://localhost/xxx"
>>username="xxx" />
>> 
>> 
>> 
>> For several recent projects I found it convenient to also develop with
>> Tomcat using Sysdeo Eclipse Plugin.
>> For this to work there I have to put content of /Context node into "Extra
>> information" textarea at Project Properties -> Tomcat.
>> 
>> Though, I agree its more difficult to setup Tomcat plugin than Jetty in
>> Eclipse, but when you did this once -- every other projects will be easier
>> to setup. And you usually might want to have exactly the same web container
>> that will be in production if you use, say, web sockets API.
>> 
>> // PS: Sorry for offtopic
>> 
>> On Tue, Mar 26, 2013 at 3:28 PM, Barry Books  wrote:
>> 
>>> 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 conf directory. Tomcat requires a
>>> mapping between the server.xml configurations and each web app. I do
>>> this by creating a META-INF/context.xml file in the project. When
>>> Tomcat deploys the app it will pick up that file and use the mapping
>>> you provide. The contents would be something like
>>> 
>>> 
>>> 
>>> >> type="javax.sql.DataSource"/>
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
>> 
>> --
>> Dmitry Gusev
>> 
>> AnjLab Team
>> http://anjlab.com
>> 
> 
> 
> 
> -- 
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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

http://stackoverflow.com/questions/16284005/how-to-configure-tapestry5-hibernate-tomcat7-jndi-mysql


On Tue, Mar 26, 2013 at 7:54 AM, Dmitry Gusev wrote:

> 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 simply not that DRY.
>
> And also this is not recommended by tomcat team and here's why:
>
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
>
> What I prefer to do is to create context file (ROOT context at this
> example) at ./apache-tomcat-7.0.35/conf/Catalina/localhost/ROOT.xml with
> the following content:
>
> 
> 
> 
>
>  type="javax.sql.DataSource"
> auth="Container"
> maxActive="100" maxIdle="30" maxWait="1"
> driverClassName="org.postgresql.Driver"
> url="jdbc:postgresql://localhost/xxx"
> username="xxx" />
>
> 
>
> For several recent projects I found it convenient to also develop with
> Tomcat using Sysdeo Eclipse Plugin.
> For this to work there I have to put content of /Context node into "Extra
> information" textarea at Project Properties -> Tomcat.
>
> Though, I agree its more difficult to setup Tomcat plugin than Jetty in
> Eclipse, but when you did this once -- every other projects will be easier
> to setup. And you usually might want to have exactly the same web container
> that will be in production if you use, say, web sockets API.
>
> // PS: Sorry for offtopic
>
> On Tue, Mar 26, 2013 at 3:28 PM, Barry Books  wrote:
>
> > 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 conf directory. Tomcat requires a
> > mapping between the server.xml configurations and each web app. I do
> > this by creating a META-INF/context.xml file in the project. When
> > Tomcat deploys the app it will pick up that file and use the mapping
> > you provide. The contents would be something like
> >
> > 
> > 
> >  > type="javax.sql.DataSource"/>
> > 
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>



-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


Re: cant do if clause within a div - help

2013-04-29 Thread Michael Prescott
The template has to be valid XML, so the  component won't really help
you here.  One thing to do would be to assemble the style in the backing
Java class:



public String getComputedStyle() {
 // ...
}


On 29 April 2013 11:32, nhhockeyplayer nashua wrote:

> Hi Folks,
>
> I am doing an if clause within an if clause and tapestry is barking at me
> with this error
>
> The value of attribute "style" associated with an element type "div" must
> not contain the '<'  character
>
> 
> border-color: ${adminLayout.contentColor};
> background-color:
> ${adminLayout.dividerBackGroundColor};
> 
> border-color: #FFA200;
> background-color: #ee;
> 
> 
>   right: 0px;">
>
> any ideas how to beat this ?
>
> Best regards
> and thanks... KEN


cant do if clause within a div - help

2013-04-29 Thread nhhockeyplayer nashua
Hi Folks,

I am doing an if clause within an if clause and tapestry is barking at me with 
this error

The value of attribute "style" associated with an element type "div" must not 
contain the '<'  character


border-color: ${adminLayout.contentColor};
background-color: 
${adminLayout.dividerBackGroundColor};

border-color: #FFA200;
background-color: #ee;  
  


  right: 0px;">

any ideas how to beat this ?

Best regards 
and thanks... KEN 

Re: debugging T5.3.6 with jetty into eclipse

2013-04-29 Thread George Christman
Have you checked to ensure your not running in production mode?


On Mon, Apr 29, 2013 at 6:56 AM, Alberto Fernández wrote:

> Hi,
>
> I run jetty into eclipse as is explained in Tapestry Tutorial
> http://tapestry.apache.org/loading-the-project-into-eclipse.html
>
> It was working very well with tapestry 5.2.4, but after upgrade to Tapestry
> 5.3.6, every change on my code (on .tml files for example) I need to
> restart to see the change.
>
> Previously, I could check changes in my navigator inmediately wihout
> restart jetty
>



-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-04-29 Thread George Christman
Barry, are running your app on Tomcat?


On Sat, Apr 27, 2013 at 9:10 AM, Barry Books  wrote:

> I've run several sites on an Amazon EC2 micro instances which have about
> 600meg of memory and cost about $10 per month
>
>
> On Fri, Apr 26, 2013 at 9:01 PM, Kalle Korhonen
> wrote:
>
> > Tektonic's VPS systems have consistently had most amount of memory for
> the
> > buck and the lowest tier (1GB/$15/month) is nowadays good enough for
> > running small T5 apps: http://tektonic.net/virtual-servers.html
> >
> > Kalle
> >
> >
> > On Fri, Apr 26, 2013 at 3:08 PM, Jon Williams
> > wrote:
> >
> > > Weill I went from $9/mo all the way up to $30/mo. Tapestry is now
> costing
> > > me $21 a month. Ok, so if I make $30 a month off tapestry work, my work
> > > terrarium will thrive!
> > >
> > > Thanks Howard
> > >
> > >
> > > On Fri, Apr 26, 2013 at 3:02 PM, Howard Lewis Ship 
> > > wrote:
> > >
> > > > Well, you can measure this kind of thing with VisualVM.  I'd say you
> > want
> > > > at least 256MB, with 128MB of PermGen.
> > > >
> > > >
> > > > On Fri, Apr 26, 2013 at 3:04 PM, Jon Williams
> > > > wrote:
> > > >
> > > > > I'd like to know the Minimum Heap Size req'd to run the basic
> > Tapestry
> > > 5
> > > > > archetype example smoothly.
> > > > > I am running my war on Jetty in a hosted environment.
> > > > >
> > > > > Currently I'm running in to issues with 64MB of heap.
> > > > > I don't have plans to make this app behave much beyond a static
> > > website.
> > > > > And I'd like to keep my hosting plan cheap as it's only $9/month. (
> > > > > http://jvmhost.com)
> > > > > What would you suggest?
> > > > >
> > > > > Thanks
> > > > > Jon
> > > > >
> > > > > HTTP ERROR 500
> > > > >
> > > > > Problem accessing /site/. Reason:
> > > > >
> > > > > GC overhead limit exceeded
> > > > >
> > > > > Caused by:
> > > > >
> > > > > java.lang.OutOfMemoryError: GC overhead limit exceeded
> > > > >
> > > > > --
> > > > > *Powered by Jetty://*
> > > > > *
> > > > > *
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Howard M. Lewis Ship
> > > >
> > > > Creator of Apache Tapestry
> > > >
> > > > The source for Tapestry training, mentoring and support. Contact me
> to
> > > > learn how I can get you up and productive in Tapestry fast!
> > > >
> > > > (971) 678-5210
> > > > http://howardlewisship.com
> > > >
> > >
> >
>



-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


debugging T5.3.6 with jetty into eclipse

2013-04-29 Thread Alberto Fernández
Hi,

I run jetty into eclipse as is explained in Tapestry Tutorial
http://tapestry.apache.org/loading-the-project-into-eclipse.html

It was working very well with tapestry 5.2.4, but after upgrade to Tapestry
5.3.6, every change on my code (on .tml files for example) I need to
restart to see the change.

Previously, I could check changes in my navigator inmediately wihout
restart jetty


Re: Live support solution

2013-04-29 Thread Lance Java
Unfortunately, CometD doesn't expose the HttpSession in a public API so I
can't pass it to tapestry in the FakeHttpServletRequest.

You can use the following code to get a session attribute:

   @Inject BayeuxServer bayeuxServer;

   HttpTransport transport = (HttpTransport)
bayeuxServer.getCurrentTransport();
   BayeuxContext bayeuxContext = transport.getContext();
   Object foo = bayeuxContext.getHttpSessionAttribute("foo");

I've added a TODO here:
https://github.com/uklance/tapestry-cometd/blob/master/src/main/java/org/lazan/t5/cometd/services/internal/AuthorizersImpl.java#L95

I have a few options that I'm considering at the moment but nothing is
clean.


Re: tapestry-security 0.5.1 released

2013-04-29 Thread Taha Hafeez Siddiqi
Thanks Tynamo Team!!

regards
Taha

On 29-Apr-2013, at 2:41 PM, Borut Bolčina  wrote:

> Thanks from our team too!
> 
> 
> 2013/4/28 Dmitry Gusev 
> 
>> Congrats!
>> 
>> And thanks for the great library!
>> 
>> On Sat, Apr 27, 2013 at 10:21 PM, Kalle Korhonen <
>> kalle.o.korho...@gmail.com
>>> wrote:
>> 
>>> Oops, we did it again! We cleaned the security component issue list and
>> cut
>>> a new release with a few nice little improvements. 0.5.0 was released a
>> few
>>> months before but never announced. 0.5.1 is the new stable release for
>>> T5.3.x. Unfortunately though, 0.5.1 will not work with the upcoming T5.4.
>>> It does compile and about half of the tests succeed but the ajax
>> interfaces
>>> are changed enough that there will likely be some issues. Well, at least
>> we
>>> have something to do for the next release. See
>>> http://tynamo.org/tapestry-security+guide for more info.
>>> 
>>> Bug
>>>[TYNAMO-176] - Incorrect redirect to login page in case of ajax
>> request
>>> 
>>> Improvement
>>>[TYNAMO-125] - Else block for the security components
>>>[TYNAMO-193] - Allow temporarily disabling security for an invocation
>>> of Callable
>>>[TYNAMO-195] - Make LoginForm error messages localizable
>>>[TYNAMO-183] - Improve support for Instance-Level Access Control
>>> 
>>> Enjoy,
>>> Tynamo Team
>>> 
>> 
>> 
>> 
>> --
>> Dmitry Gusev
>> 
>> AnjLab Team
>> http://anjlab.com
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[ANNOUNCE] Tapestry release 5.3.7

2013-04-29 Thread Massimo Lusetti
I'm pleased to announce the availability of Apache Tapestry 5.3.7

You will find the release on maven main repo and on apache distribution
sites, the master site is:
https://www.apache.org/dist/tapestry/

As usual mirror are synching so please be patient.

A news announce on java.dzone.com has been pushed and is waiting for
moderation approval I'll post a link for you to vote up as soon as it will
be accepted.

Cheers
-- 
Massimo Lusetti


Re: tapestry-security 0.5.1 released

2013-04-29 Thread Borut Bolčina
Thanks from our team too!


2013/4/28 Dmitry Gusev 

> Congrats!
>
> And thanks for the great library!
>
> On Sat, Apr 27, 2013 at 10:21 PM, Kalle Korhonen <
> kalle.o.korho...@gmail.com
> > wrote:
>
> > Oops, we did it again! We cleaned the security component issue list and
> cut
> > a new release with a few nice little improvements. 0.5.0 was released a
> few
> > months before but never announced. 0.5.1 is the new stable release for
> > T5.3.x. Unfortunately though, 0.5.1 will not work with the upcoming T5.4.
> > It does compile and about half of the tests succeed but the ajax
> interfaces
> > are changed enough that there will likely be some issues. Well, at least
> we
> > have something to do for the next release. See
> > http://tynamo.org/tapestry-security+guide for more info.
> >
> > Bug
> > [TYNAMO-176] - Incorrect redirect to login page in case of ajax
> request
> >
> > Improvement
> > [TYNAMO-125] - Else block for the security components
> > [TYNAMO-193] - Allow temporarily disabling security for an invocation
> > of Callable
> > [TYNAMO-195] - Make LoginForm error messages localizable
> > [TYNAMO-183] - Improve support for Instance-Level Access Control
> >
> > Enjoy,
> > Tynamo Team
> >
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>


problem with jumpstart protecting pages code

2013-04-29 Thread John
I don't think the following code works, it doesn't when I run my version of it.

The loginPage has it's nextPageLink property set, but then the loginPageLink is 
returned by using the Login.class which presumably just redirects to a fresh 
login page without the nextPageLink set.

So the nextPageLink is null in the Login page so the nextPageLink cannot be 
used.

John

http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages


// Get the Login page, give it a link to the requested page, and 
redirect to Login

IIntermediatePage loginPage = (IIntermediatePage) 
componentSource.getPage(Login.class);

Link requestedPageLink = makeLinkToRequestedPage(requestedPageName, 
eventContext);
loginPage.setNextPageLink(requestedPageLink);

Link loginPageLink = 
pageRenderLinkSource.createPageRenderLink(Login.class);
response.sendRedirect(loginPageLink);

return false;

Tapestry 5.4 alpha 3 migration

2013-04-29 Thread Denis Delangle
Dear community,

We are happy Tapestry users since Tapestry 5.1 and we would like to
share how we migrated from Tapestry 5.3 to 5.4 alpha 3.

We previously used Tapestry-jquery to have a javascript layer in
jquery but without using their rich components. This library is great
but with Tapestry 5.4 we don't need it anymore as we have jquery
directly available in Tapestry.
On the server side, the migration was easy, we had only to modify the
services we override when the api had changed.
On the client side, obviously it was more difficult. We refactored our
javascript code to be managed by requirejs. It's the only way to
include Tapestry modules.

We know that it's only an alpha release but we would have found it
easier if there were more documentation, or something like that, about
the JavaScript differences between Tapestry 5.3 and 5.4. Maybe some
snapshot releases of the documentation could help in the future ?
For instance event names are no more constants of Tapestry object but
can be found in the events module.

We had to modify our selenium tests because waitPageToLoad doesn't
wait for all requirejs modules to be loaded.
We used that type of code to be sure page is loaded.
waitForPageToLoad();

waitForCondition("selenium.browserbot.getCurrentWindow().document.getElementsByTagName('html')[0].hasAttribute('data-page-initialized')","1");

With the new asset urls with checksum folders, we are losing
efficiency during JS debug. With chrome developer tools, in sources
tab, finding the file we are looking for is difficult if we have
several files in the same folder. Futhermore, if we modify a JS file,
the editor is closed in chrome (as the url change) and we have to set
the breakpoints again.

In Tapestry 5.3 we used FormInjector, but now, it's said that "A
replacement is forthcoming." Have you an idea about what will be this
replacement ? and/or an estimated date of replacement ?

For now we have several issues that we have run into and that we hope
they will be fixed soon.
https://issues.apache.org/jira/browse/TAP5-1741
https://issues.apache.org/jira/browse/TAP5-2110
https://issues.apache.org/jira/browse/TAP5-2106
https://issues.apache.org/jira/browse/TAP5-2060

Beside these issues, we have no problem using 5.4, it seems really stable.

Thank you all for your work and your investment for Tapestry users, we
hope this email can help people migrating.

Denis and Julien

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapesty form target external url (ie custom url)

2013-04-29 Thread Lance Java
You have a few options

1. Return a java.net.URL from your onSuccess() event - This will only work
if your external URL allows GET. You can use the query part of the URL to
pass request parameters

2. Use javascript to post a form to the external URL - Redirect after your
onSuccess() event to a page which posts a simple non-tapestry form to the
external URL.

3. Serverside POST - Use something like apache HttpClient to do the
external POST from your server. You might get an external session id back
that you can then use in a redirect to the external site.

Note, in all of these solutions I have assumed you want to first handle the
form in tapestry so you can validate etc.