Tomcat and 5.4 Beta 3 unreliable?
I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry
Re: Use cases for the any component
My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.com wrote: I've used option 2 and I've also extended any to make new components.
Re: Use cases for the any component
javadocs. I meant javadocs On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.com wrote: I've used option 2 and I've also extended any to make new components. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Use cases for the any component
Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.com wrote: I've used option 2 and I've also extended any to make new components. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tomcat and 5.4 Beta 3 unreliable?
I'm running two 5.4 apps in production without issue. I connect to mysql and the only problem I had with connections was related to the current version of hibernate core being used with tapestry-hibernate and tomcat. There was a bug in that version which caused connection issues. I upgraded the hibernate-core version and haven't had an issue since. I filed a bug with jira to upgrade the core. On Wed, Mar 5, 2014 at 7:02 AM, Barry Books trs...@gmail.com wrote: I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York
Re: Tomcat and 5.4 Beta 3 unreliable?
it's run with virtual host in tomcat? 2014-03-05 13:02 GMT+01:00 Barry Books trs...@gmail.com: I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry
Persist object fails
Hi Tapestry users, We are currently migrating our tapestry application to a new server using java 1.7. the application was running smoothly until this migration where most the features in the application broke down. After analysis we found out that all objects annotated with @Persist and @SessionState are no longer persisted. btw: same Tomcat version same OS using tapetsry 5.3.6 and related jars. (gave a try to 5.3.7 but also failed) does it have todo with the java version or something else? any hint would be of great help! Thanks!
Re: Tomcat and 5.4 Beta 3 unreliable?
Yes On Wednesday, March 5, 2014, Yago González ygonza...@4mhoteles.com wrote: it's run with virtual host in tomcat? 2014-03-05 13:02 GMT+01:00 Barry Books trs...@gmail.com javascript:;: I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry
Re: shiro UsernamePasswordToken RememberMe problems
Ah yes, the size of the default remember me cookie can grow outrageously big because it uses Java serialization. That's long running issue against Shiro web (https://issues.apache.org/jira/browse/SHIRO-226). It's simply to override with your own implementation - you could use the one attached as a patch to the issue, then override the default CookieRememberMeManager with: public class LightCookieRememberMeManager extends CookieRememberMeManager { public LightCookieRememberMeManager() { super(); setSerializer(new SimplePrincipalSerializer()); } } Kalle On Tue, Mar 4, 2014 at 11:16 PM, Lidija Dolinar lidija@gmail.comwrote: Sorry for talking to myself :-). We managed to resolve the issue - the cookie was bigger than 4K. I had to debug shiro-web since there was no warning whatsoever and browser obviously just ignored the cookie. This issue is nicely explained here: http://shiro-user.582556.n2.nabble.com/Remember-me-problems-with-object-in-SimpleAccount-td4817122.html I hope this will help someone else. Regards, Lidija
Re: Tomcat and 5.4 Beta 3 unreliable?
Some more info. I'm using both proxy pass and jkmount. At this point I think my problems are with proxy pass. I'm not sure what's causing it to break but it's only the apps connected with proxy pass that are having problems. On Wednesday, March 5, 2014, Barry Books trs...@gmail.com wrote: Yes On Wednesday, March 5, 2014, Yago González ygonza...@4mhoteles.comjavascript:_e(%7B%7D,'cvml','ygonza...@4mhoteles.com'); wrote: it's run with virtual host in tomcat? 2014-03-05 13:02 GMT+01:00 Barry Books trs...@gmail.com: I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry
Re: Tomcat and 5.4 Beta 3 unreliable?
I update tomcat to 7.0.52 from 7.0.4X or under (i forgot it) and ... I don't know what's happens but i can't connect. I need change type of installation and put the applicattion under webapp folder. 2014-03-05 17:48 GMT+01:00 Barry Books trs...@gmail.com: Yes On Wednesday, March 5, 2014, Yago González ygonza...@4mhoteles.com wrote: it's run with virtual host in tomcat? 2014-03-05 13:02 GMT+01:00 Barry Books trs...@gmail.comjavascript:;: I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my development and UAT servers have become unreliable. Sometimes Java segfaults coming up. Sometimes it just quits. Sometimes Apache can't connect to it etc. Right now I suspect it's Tomcat 7.0.50 but except for the segfaults there is nothing in the logs. Is anyone else having odd issues with Tomcat and 5.4 beta? Thanks Barry
Re: Use cases for the any component
Geoff, Kristian, do you have any examples for using the any component when you need to generate a unique client id to pass to JavaScript? On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: javadocs. I meant javadocs On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.com wrote: I've used option 2 and I've also extended any to make new components. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to return multiple values with ajax select
Hi guys, I have the following scenario, Five drop down menus chained together Category, Year, Make, Model, Trim Each select menu is an ajax select menu designed to narrow down the result set. I'm looking for ideas or a solution that would enable me to narrow down the result set beyond one menu. Currently I'm able to set a class property with the previous select menu and read the property from with the following select menu, however I lose the first one with the select. Does anybody know how to do this without the use of @Persist? I was almost thinking of something like an actionlink where you can have multiple context values, but instead concatenated in the select option value, but that seems very inefficient. The other thought I had was to set the previous values in a hidden field. Does anybody have any suggestions? -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York
Re: Use cases for the any component
Here's an Any div that is a container of things you can click on to select, identified by having CSS class selectable. JavaScript listens for click from selectables in the container. It adds css class active to the selected thing and removes active from the others. You can see an EventLink in the example, because that's what you'd normally have in a situation like this, but the example works the same without it. This code is adapted from working code, but not tested in this form. div t:id=thingsDiv t:type=any t:loop source=things value=thing formstate=none t:eventlink event=selected context=thing.id zone=^ div class=${selectableCssClass} data-value=${thing.id} !-- etc -- /div /t:eventlink /t:loop /div @Property private String selectableCssClass = selectable; @InjectComponent private Any thingsDiv; void afterRender() { JSONObject params = new JSONObject(); params.put(containerId, thingsDiv.getClientId()); params.put(selectableCssClass, selectableCssClass); params.put(selectedCssClass, active); javaScriptSupport.require(activate-selectables).with(params); } define([jquery], function($) { /** * Adds selectedCssClass to the selected item when clicked, so that the server doesn't have to redisplay the container. * Didn't use the jQuery Selectables because it behaves oddly - some say it should have been called Lasooable. * * Params: * containerId Eg. persons. * selectableCssClass Eg. selectable. * selectedCssClass Eg. active. */ return function(params) { var containerId = params.containerId; var selectableClass = params.selectableCssClass; var selectedClass = params.selectedCssClass; var $container = $(# + containerId); $container.on(click, . + selectableClass, function(e) { var $clicked = $(this); var $selectables = $(# + containerId + . + selectableClass); // Unselect all other selectables. $selectables.each(function() { var $this = $(this); if (!$this.is($clicked)) { if ($this.hasClass(selectedClass)) { $this.removeClass(selectedClass); $this.trigger(unselected); } } }); // Select the clicked selectable. $clicked.addClass(selectedClass); $clicked.trigger(selected); }); }; }); On 06/03/2014, at 1:17 PM, Bob Harner wrote: Geoff, Kristian, do you have any examples for using the any component when you need to generate a unique client id to pass to JavaScript? On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: javadocs. I meant javadocs On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.com wrote: I've used option 2 and I've also extended any to make new components. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org