Tomee plus 1.5.0: Can't create JDBC resource for Derby database on Linux

2012-12-06 Thread Robert Georen
I Have installed Tomee plus 1.5.0 on Windows and it works fine with the JDBC resource. When i try the same JDBC resouce on my Lunix Amazon instance I got the following trace in catalina.out. INFO: Creating SecurityService(id=Tomcat Security Service) Dec 5, 2012 7:47:32 PM

Re: Tomee plus 1.5.0: Can't create JDBC resource for Derby database on Linux

2012-12-06 Thread Romain Manni-Bucau
Hi, are you sure you propagated the same config? seems you use @DataSourceDefinition, do you use the same class? btw, can you give it a try on the snapshot? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github:

Re: locations of custom service-jar.xml

2012-12-06 Thread vguduru
This is one of my resource I declared, what class name I need to use as an attribute, do I need to use the provider class name where the link (com.ibm.mq#WebsphereMQQueue) is pointing to. Resource id=jms/myQ1 type=javax.jms.Queue provider=com.ibm.mq#WebsphereMQQueue BaseQueueName

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
Romain, Since my TomEE/CDI-managed-bean web app is in production, as discussed earlier, I need this functionality. I never did write the code that I mentioned below, but I think I may need to try it out and see if it is a workaround since HttpSessionListener seems not useful in a TomEE (or

JSF not starting on TomEE 1.5.1 plus

2012-12-06 Thread slobo
Hello, I'm a total newbie with JSF and can't get it to work on TomEE+ 1.5.1 (20121130.041650-92-plus). I use the snapshot plus because 1.5.0 didn't work at all on my Windows computer and I'm just exploring all the features. I'm currently trying to do the calculator example from TomEE examples,

Re: TomEE: added favicon.ico, and it's not showing

2012-12-06 Thread Neale
Hi Howard, Try here: http://wiki.metawerx.net/wiki/Web.xml.MimeMapping In the section Enabling a Favourites Icon the various methods are covered as well as hints for making the icon image. These days we use the image/png method on our sites: link type=image/png rel=icon href=/favicon.ico /

Re: TomEE: added favicon.ico, and it's not showing

2012-12-06 Thread Howard W. Smith, Jr.
First, I tried what the website recommended, and that didn't work. Next/finally, I tried the code (below) that you recommended, and that worked without me having to press F5 key in Google Chrome. link type=image/png rel=icon href=/favicon.ico / Thanks a lot Neale!!! On Thu, Dec 6, 2012 at

Re: TomEE: added favicon.ico, and it's not showing

2012-12-06 Thread Howard W. Smith, Jr.
Correction, I had to omit the / (forward slash); below, is the code i added... link rel=icon type=image/png href=favicon.ico/ On Thu, Dec 6, 2012 at 11:17 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: First, I tried what the website recommended, and that didn't work.

Re: TomEE: added favicon.ico, and it's not showing

2012-12-06 Thread Neale
Hi Howard, It's an HTML issue rather than a TomEE/Tomcat issue - so not really appropriate for this list, but glad you have it working. As with any link, /favicon.ico will go to your root, favicon.ico will be relative to the page using it (ie: you'll need the icon in every folder) or use

Re: TomEE: added favicon.ico, and it's not showing

2012-12-06 Thread Howard W. Smith, Jr.
Neale, Guess what... my JSF web app really only references index.xhtml, and index.xhtml has many ui:include src=#{bean.page} to render dynamic content. So, I should be good-to-go with the favicon.ico in the /web root folder. Ooops, just remembered, I need to add this HTML to my login page and

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
That seemed to do the trick. I did the following: Added @PreDestroy to the following (previously-existing) method in my user bean, which was called successfully by HttpSessionListener in JSF-managed-bean webapp, when session timed out. @PreDestroy public void sessionTimeout() { and then

Re: JSF not starting on TomEE 1.5.1 plus

2012-12-06 Thread David Blevins
Double check your tomee.home/conf/server.xml file and ensure it has the TomEE ServerListener: Server port=8005 shutdown=SHUTDOWN !-- TomEE plugin for Tomcat -- Listener className=org.apache.tomee.catalina.ServerListener / I've seen it be the case where a project was originally

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Romain Manni-Bucau
No tx at all? Shouldnt work excepted if eclipselinks doesnt respect the spec Le 7 déc. 2012 07:38, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : I decided to add the update user table method to my applicationScopeBean, since I have a logout() method that I call on applicationScopeBean,

Re: TomEE 1.5.1 release date?

2012-12-06 Thread Alex The Rocker
Hello, Is TomEE 1.5.1 general availability still targeted and of current week or beginning of next week ? I'm worried, because I still see couple of JIRAs being closed : it doesn't look to me like a only most critical bugs can be fixed because we're in final convergence period... ... is there a

Re: TomEE 1.5.1 release date?

2012-12-06 Thread Romain Manni-Bucau
Well if all is fine the vote should be ready today or tomorrow. Add 3 days and we ll get the release Le 7 déc. 2012 07:51, Alex The Rocker alex.m3...@gmail.com a écrit : Hello, Is TomEE 1.5.1 general availability still targeted and of current week or beginning of next week ? I'm worried,

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
Hi to update in a db you need a transaction - ejb I just confirmed that it is possible to use ejb in user bean when @PreDestroy method is called, but I also confirmed that the container is calling @PreDestroy more than once (at least 2 times). See stack trace below. INFO: Server startup in

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
Interesting, line 950 is the last line of code (bolded) below. I think user (POJO) is NULL on the 2nd attempt when @PreDestroy method is called by container. public void updateLastLogoutDt(Date lastLogout) { whenUpdateLastLogoutDt = null; try { *

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Romain Manni-Bucau
That's because you invalidated it manually i guess, could be sthg to check after the release Le 7 déc. 2012 07:57, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Hi to update in a db you need a transaction - ejb I just confirmed that it is possible to use ejb in user bean when

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
I could be wrong, but it seems as though I need to pass user POJO as an argument to this method, and use that instead of the user POJO defined as private on the user bean, pf_UsersController. On Fri, Dec 7, 2012 at 2:00 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Interesting, line

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
Agreed. this is my way of reporting issues. reporting issues (if there is an issue here) is all good. :) still trying to work around this issue. will keep you posted. On Fri, Dec 7, 2012 at 2:03 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: That's because you invalidated it manually i

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Romain Manni-Bucau
Btw it should be fine to user private instance...dont remember if destroy methods can get params Le 7 déc. 2012 08:05, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Agreed. this is my way of reporting issues. reporting issues (if there is an issue here) is all good. :) still trying to

Re: TomEE 1.5.1 SNAPSHOT not executing sessionDestroyed of HttpSessionListener

2012-12-06 Thread Howard W. Smith, Jr.
No need to accept User POJO as argument to @PreDestroy method. The User POJO is NOT NULL within @PreDestroy method and all methods that use the User POJO that is available 'to' @PreDestroy method. I may be saying that wrong, but I just confirmed the following: 1. container is calling @PreDestroy

Re: TomEE 1.5.1 release date?

2012-12-06 Thread Howard W. Smith, Jr.
Alex, Losing opportunities? Really? I respectfully beg to differ/disagree. I know I am only one person, but I am one that loves (I repeat, 'loves') Glassfish (as well as my endusers), but I am falling in love with TomEE 1.5.1 SNAPSHOT and the TomEE/openejb 'committers'. For someone with 1 year