Re: Failure using javax.mail services with TomEE

2017-03-18 Thread Bjorn Danielsson
It turns out that the "endorsed" feature still works in 7.x if you explicitly add -Djava.endorsed.dirs=... to $CATALINA_OPTS. But when I tried the same thing in Java 9-ea, it complained and aborted. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > (and geronimo-osgi

Re: Failure using javax.mail services with TomEE

2017-03-17 Thread Bjorn Danielsson
7.0.x this workaround doesn't seem to work though. -- Bjorn Danielsson Cuspy Code AB jyerrami wrote: > Hi,Our application is using TomEE 1.7.X version and java version 1.6.We are > using java mailing services to send mail. I have looked at all the posts > online and configured the

Re: Three minutes to perform one step during startup.

2016-06-18 Thread Bjorn Danielsson
tion tends to be a recurring question on all kinds of Java platform forums, since many years. And I think the /dev/./urandom thing is something that deserves to be put to sleep now. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > Does it mean it is better cause faster? For cry

Re: Three minutes to perform one step during startup.

2016-06-18 Thread Bjorn Danielsson
-generate-random-numbers/ -- Bjorn Danielsson Cuspy Code AB Andy Gumbrecht wrote: > I've found that this can help: > > CATALINA_OPTS=-Djava.security.egd=file:/dev/./urandom > > Your path might be different, but you get the idea. > > Andy. > > http://www.tomitri

Re: OSV.IO

2016-03-14 Thread Bjorn Danielsson
your mileage may vary of course. -- Bjorn Danielsson Cuspy Code AB Jonathan Fisher wrote: > Just wanted to make sure everyone saw this (http://osv.io/), since it will > likely have a large impact on how your virtualize your Java workloads in > the future. > > Essentially OSv is

Re: INSTALL TOMEE with docker

2015-11-29 Thread Bjorn Danielsson
TomEE and any other services required. This would be the minimal Dockerfile: ADD opt /opt ADD etc /etc ADD start.sh /root/ EXPOSE 443 WORKDIR /root CMD ./start.sh -- Bjorn Danielsson Cuspy Code AB mauro2java2011 wrote: > Hi all. > I am newbie to docker container. > I would try to in

NPE in Timer.getTimeRemaining()

2015-02-12 Thread Bjorn Danielsson
org.apache.openejb.core.timer.TimerImpl.getTimeRemaining(TimerImpl.java:52) This is in a loop that calls getTimeRemaining() for all timers returned by TimerService.getTimers(), so occasional race conditions are expected. But shouldn't it be NoMoreTimeoutsException for that situation? TomEE version is apache-tomee-jaxrs-1.7.0 --

Re: Just curious, what parts of JEE is everyone using?

2015-02-11 Thread Bjorn Danielsson
EJB 3.1 (stateless local) JPA JTA JAX-RS Servlet 3.0 JavaMail JAXB JSP -- Bjorn Danielsson Cuspy Code AB

Re: Switching to Eclipselink in TomEE plus?

2014-08-20 Thread Bjorn Danielsson
TomEE gives me dynamic weaving by default, no configuration needed. Putting in persistence.xml shows "Weaved" log entries, so I just assume that it works. -- Bjorn Danielsson Cuspy Code AB Karl Kildén wrote: > Another Q > > What do you eclipselink guys use for weaving?

Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Bjorn Danielsson
Wow! That was fast ;-) Could you also please answer a stupid question: the bug only affected Eclipselink monitoring, am I correct here? Because I never saw any problems, just this strange warning. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > https://issues.apache.org/j

Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Bjorn Danielsson
ull. That's the "MBeanRuntimeServices" mbean if you look in the eclipselink source code. But here my understanding stops unfortunately. -- Bjorn Danielsson Cuspy Code AB Andy Gumbrecht wrote: > Are you setting the properties -Declipselink.register.run.mbean=true, > or -Declipselink.

Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Bjorn Danielsson
/conf/system.properties makes the warning go away: eclipselink.register.run.mbean=false -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > Guys saying there is an issue is useless, we are still waiting to something > to reproduce and at least a stack. Surely a path issue or jmx charac

Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Bjorn Danielsson
I missed this, but I see now that I too have this warning in my logs. For me it started appearing in the 1.7.0 release. It didn't occur in my 20140721 snapshot. Running Ubuntu 12.04.4 server, Java 1.7, eclipselink 2.4.2, Mysql. -- Bjorn Danielsson Cuspy Code AB "Howard W. Smith, J

Re: Switching to Eclipselink in TomEE plus?

2014-08-16 Thread Bjorn Danielsson
selink jar from that distribution. -- Bjorn Danielsson Cuspy Code AB Karl Kildén wrote: > Hello, I know this is supposed to be trivial. This shows config changes: > > http://tomee.apache.org/examples-trunk/jpa-eclipselink/README.html > > But what about lib changes? Anyone have

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-16 Thread Bjorn Danielsson
Thanks Hendrik, that is great! I'll check it out and test my stuff and report back. -- Bjorn Danielsson Cuspy Code AB Hendrik Dev wrote: > Regarding geronimo javamail: > > I am on it. Currently i am developing a greenmail replacement to have > a reliable testframework (wil

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Bjorn Danielsson
Hi Howard, Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0. I gave up trying to make Geronimo Javamail work a long time ago, it was clearly broken and there was no one who could fix it. -- Bjorn Danielsson Cuspy Code AB "Howard W. Smith, Jr." wrote: > oka

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-23 Thread Bjorn Danielsson
OK, I just compiled r1612637 and now it works. Thanks Romain! -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > Hi > > finally found https://issues.apache.org/jira/browse/TOMEE-1275 > > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http:

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-22 Thread Bjorn Danielsson
removes all four threads. Start recreates the first one but no EjbTimerPool threads appear. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > Hi > > I tried but when I hit F5 I get "app already deployed". If I stop it or > remove it and restart/redeploy it works

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-22 Thread Bjorn Danielsson
-tomee-1.7.0-20140722.041427-62-jaxrs apache-tomee-1.7.0-20140722.041427-62-plus (tested separately) jdk-7u60-linux-x64 Ubuntu 12.04 -- Bjorn Danielsson Cuspy Code AB

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
watch how tomee undeploys it, then I deploy it again by copying the same war file to webapps. The same spooky behaviour is manifested: With "org.terracotta.quartz.skipUpdateCheck=true" Quartz stops working, without it everything works as expected. -- Bjorn Danielsson Cuspy Code AB Ro

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
I redeploy by copying it a second time to tomee/webapps as explained here: https://github.com/cuspycode/apache-stuff/blob/master/schedule-bug/readme.txt Just touching the .war also reproduces it for me. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > How do you deploy

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
Andy, No I was just trying to be clever and give a subversion link to a Github subdirectory. It works with svn but apparently not in a browser. Try the root link instead and ignore the other stuff: https://github.com/cuspycode/apache-stuff -- Bjorn Danielsson Cuspy Code AB Andy Gumbrecht

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
it is initialized during deployment. With an empty system.properties I get no such messages during redeployment, only at start and stop of tomee itself. Here is a small ant project that reproduces the behaviour: svn co https://github.com/cuspycode/apache-stuff/trunk/schedule-bug -- Bjorn Danielsson

Re: Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
="*/5", minute="*", hour="*") public void spam() { logger.info("Spam spam spam"); } } -- Bjorn Danielsson Cuspy Code AB Andy Gumbrecht wrote: > I'll check why this would block your deployment. It really should not hang. > >

Spooky org.terracotta.quartz.skipUpdateCheck

2014-07-21 Thread Bjorn Danielsson
This strange behaviour remains in today's 1.7.0-SNAPSHOT. Removing the line makes everything work again. I just thought I'd mention it here for the search engines. -- Bjorn Danielsson Cuspy Code AB

Re: Has anyone here tried TomEE with Apache Stratos?

2014-07-04 Thread Bjorn Danielsson
, partly because the docs weren't consistent with the release, and during the process I also realized that the whole thing was a bit of overkill for my current requirements anyway. Bash & curl will do wonders if you can keep things simple :) -- Bjorn Danielsson Cuspy Code AB Jean-Louis

Has anyone here tried TomEE with Apache Stratos?

2014-07-01 Thread Bjorn Danielsson
Just what the Subject says. I am looking into various scalable cloud platforms for TomEE and this one caught my eye since it's an Apache thingy. -- Bjorn Danielsson Cuspy Code AB

Re: Is geronimo dead?

2014-01-02 Thread Bjorn Danielsson
flexible. Happy new year to everyone :) -- Bjorn Danielsson Cuspy Code AB Matej wrote: > Hello everyone and happy new year. > > In the comapny where I am working we are slowly migrating our AS server > from GF to something different. Currently we are in a evaluation process. >

Re: Getting spammed a "guru"

2013-11-13 Thread Bjorn Danielsson
I got it twice actually. One spam copy was to a non-subscribed address. So from now on all e-mails from gurkanerdo...@yahoo.com are permanently routed to /dev/null on my servers. -- Bjorn Danielsson Cuspy Code AB

Re: Question on MDB processing

2013-03-24 Thread Bjorn Danielsson
combination of cookies and SQL storage. -- Bjorn Danielsson Cuspy Code AB "Howard W. Smith, Jr." wrote: > Bjorn, for some time now, i've been wondering how to have 2 separate TomEE > servers (for failover) and one copy of your database per TomEE? are you > replicating databa

Re: Question on MDB processing

2013-03-24 Thread Bjorn Danielsson
etwork layer, you avoided network problems ;) > > > On Sun, Mar 24, 2013 at 1:35 PM, Bjorn Danielsson < > bjorn-apa...@lists.cuspycode.com> wrote: > >> Well, I still have networking between my two (for failover) >> TomEE servers and the SQL service that holds the qu

Re: Question on MDB processing

2013-03-24 Thread Bjorn Danielsson
Well, I still have networking between my two (for failover) TomEE servers and the SQL service that holds the queue and commits the transactions. But I eliminated a middle-man :) -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > Yes, you squeezed the network layer, you avoi

Re: Question on MDB processing

2013-03-24 Thread Bjorn Danielsson
, and the overall configuration also become notably simpler. -- Bjorn Danielsson Cuspy Code AB "Howard W. Smith, Jr." wrote: > On Sat, Mar 23, 2013 at 5:55 PM, Romain Manni-Bucau > wrote: > >> just to be sure: @Schedule != @Asynchronous >> >> > True/understoo

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

2013-03-18 Thread Bjorn Danielsson
anything else. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > hmm, > > about tomee maven plugin skip example, just build using > > mvn clean install -pl tomee/apache-tomee -am -Dmaven.test.skip=true > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <http

1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

2013-03-18 Thread Bjorn Danielsson
ies. Then Maven got stuck on sxc-jaxb-core-0.8-20130125.012630-3-sources.jar which seems to be trashed due to some bogus redirect which is never detected during the download, it's only detected much later. But Maven and I never got along. Maybe someone else is more lucky? -- Bjorn Danielsso

Re: Using a different javax.mail provider

2013-03-17 Thread Bjorn Danielsson
Do you ever sleep Romain? ;-) I'll try bundling mail.jar with the webapp and report back as soon as the builds start working again. Thanks a lot! -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it

Re: Using a different javax.mail provider

2013-03-17 Thread Bjorn Danielsson
give it a try myself, but unfortunately I can't motivate spending too much time on it since using Sun's version is a reasonable workaround for my project at this time. -- Bjorn Danielsson Cuspy Code AB "Howard W. Smith, Jr." wrote: > Bjorn, > > Please click UR

Re: Using a different javax.mail provider

2013-03-16 Thread Bjorn Danielsson
ar in tomee/endorsed. This seems to make everything work without any bad side effects. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau wrote: > IIRC there is a system property to do so in the spec. > > If not just share a small sample wuth a servlet or so to qhiw it doesnt > work

Using a different javax.mail provider

2013-03-15 Thread Bjorn Danielsson
ossible I would prefer to just keep this temporary workaround within the webapp itself. -- Bjorn Danielsson Cuspy Code AB

Re: Availability of 1.5.2 snapshots

2013-03-03 Thread Bjorn Danielsson
Are you by any chance using Safari on a Mac? Safari gives me a phishing warning followed by an Apache-ID login prompt when I click "No" in the first dialog. Firefox and Chrome both proceed with an anonymous login. -- Bjorn Danielsson Cuspy Code AB James Green wrote: > Am being

Re: "How far are we from a TomEE 1.5.2 release?"

2013-02-28 Thread Bjorn Danielsson
For me the most important fix since 1.5.1 was TOMEE-703. I upgraded to newer snapshots a couple of times in january, for reasons I don't remember. For the past four weeks I have been running the snapshot labeled 20130201.041145-56, and I have been very happy with it. -- Bjorn Danielsson