Re: Stax deps (svn commit: r1004827)
Hi Andy, I see the following (but it runs fine on eclipse - junit)... --- Test set: org.apache.openejb.core.stateless.StatelessPoolStatsTest --- Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.973 sec FAILURE! testFlushingWithReplacement(org.apache.openejb.core.stateless.StatelessPoolStatsTest) Time elapsed: 0.085 sec FAILURE! junit.framework.AssertionFailedError: Replaced expected:8 but was:7 at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:283) at junit.framework.Assert.assertEquals(Assert.java:64) at org.apache.openejb.core.stateless.StatelessPoolStatsTest.assertAttribute(StatelessPoolStatsTest.java:537) at org.apache.openejb.core.stateless.StatelessPoolStatsTest.testFlushingWithReplacement(StatelessPoolStatsTest.java:297) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145) at org.apache.maven.surefire.Surefire.run(Surefire.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017) env: Win7, jdk1.6.0_18 []s, Thiago On Thu, Oct 7, 2010 at 1:44 AM, Andy andy.gumbre...@orprovision.com wrote: On 07.10.2010 00:57, David Blevins wrote: On Oct 5, 2010, at 3:05 PM, andygumbre...@apache.org wrote: +dependency +groupIdjavax.xml.stream/groupId +artifactIdstax-api/artifactId +version1.0-2/version +/dependency Think we might have this one in the javaee-api jar already. By convention we tend to avoid the Sun/Oracle javax.* set of binaries for licensing reasons. I think there's an ASL 2.0 version of that API somewhere if it's not already in the javaee-api jar. Regardless, great having you hammer on all the deps. Usually I'm stuck with that job :) -David OK, will sort it today - It's a work in progress, but hope you've seen my previous mails on my method of attack. My main focus is weeding out conflicting libraries, and stax is just one of the several hidden duplicates pulled in as child deps (I guess I just picked the wrong one to stick with). Some of the tests are actually or have been running against different api versions than is pulled into the final assembly. Btw. Is anyone else seeing the StatelessPoolStatsTest fail on testAging and testAgingWithReplacement in trunk? Andy.
Re: [Tomcat 7] OPENEJB-1261 present on 7.0.2
On Mon, Oct 11, 2010 at 11:54 PM, David Blevins david.blev...@visi.com wrote: On Oct 11, 2010, at 12:11 PM, Matthias Wessendorf wrote: hello, what it is Tomcat 7 version that is supposed to work with OpenEJB 3.2 SNAPSHOT ? The WAR from [1] does not work on 7.0.2. I reopened [2]. I haven't tried Tomcat 7 yet myself, but that's the version we'll need to certify Web Profile. Someone recently posted an error that looked like there was no longer a lib directory for us to put jars in. na, that's wrong . see OPENEJB-1367 If you're interested in digging in, I have a standing offer to get on skype and fork over any info I have to anyone who'd like to help. -David [1] https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-webapp/3.2-SNAPSHOT/ [2] https://issues.apache.org/jira/browse/OPENEJB-1261 -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: [Tomcat 7] OPENEJB-1261 present on 7.0.2
I also added a new patch to OPENEJB-1261 (for installer-view) == Somehow the webapp is present in two folders: -assembly/openejb-webapp -/assembly/openejb-tomcat/openejb-tomcat-webapp/ .Matthias On Tue, Oct 12, 2010 at 6:27 PM, Matthias Wessendorf mat...@apache.org wrote: On Mon, Oct 11, 2010 at 11:54 PM, David Blevins david.blev...@visi.com wrote: On Oct 11, 2010, at 12:11 PM, Matthias Wessendorf wrote: hello, what it is Tomcat 7 version that is supposed to work with OpenEJB 3.2 SNAPSHOT ? The WAR from [1] does not work on 7.0.2. I reopened [2]. I haven't tried Tomcat 7 yet myself, but that's the version we'll need to certify Web Profile. Someone recently posted an error that looked like there was no longer a lib directory for us to put jars in. na, that's wrong . see OPENEJB-1367 If you're interested in digging in, I have a standing offer to get on skype and fork over any info I have to anyone who'd like to help. -David [1] https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-webapp/3.2-SNAPSHOT/ [2] https://issues.apache.org/jira/browse/OPENEJB-1261 -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: [Tomcat 7] OPENEJB-1261 present on 7.0.2
I've added the patch to my working copy here, and the installation seemed to complete ok, but I ran into a couple of problems with this using Tomcat 7.0.2 on my Mac. The EJB lookup didn't work for me, and then once I had installed the Java agent, Tomcat refused to start with this exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/ServerFactory at org.apache.openejb.tomcat.loader.OpenEJBListener.findOpenEjbWar(OpenEJBListener.java:77) at org.apache.openejb.tomcat.loader.OpenEJBListener.lifecycleEvent(OpenEJBListener.java:59) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:313) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:293) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:97) at org.apache.catalina.startup.Catalina.load(Catalina.java:537) at org.apache.catalina.startup.Catalina.load(Catalina.java:560) ... 6 more Caused by: java.lang.ClassNotFoundException: org.apache.catalina.ServerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 15 more At first glance it looks to me like the Tomcat 7 API had changed, and we probably just need to adapt some of our code to cope with it. I'll carry on having a look at this tomorrow, but please let me know if I've missed something obvious. Cheers Jon On Tue, Oct 12, 2010 at 11:48 PM, Jonathan Gallimore jonathan.gallim...@gmail.com wrote: Hi Matthias Thanks for the patch, I'll take a look and get it committed. Jon On Tue, Oct 12, 2010 at 5:27 PM, Matthias Wessendorf mat...@apache.orgwrote: On Mon, Oct 11, 2010 at 11:54 PM, David Blevins david.blev...@visi.com wrote: On Oct 11, 2010, at 12:11 PM, Matthias Wessendorf wrote: hello, what it is Tomcat 7 version that is supposed to work with OpenEJB 3.2 SNAPSHOT ? The WAR from [1] does not work on 7.0.2. I reopened [2]. I haven't tried Tomcat 7 yet myself, but that's the version we'll need to certify Web Profile. Someone recently posted an error that looked like there was no longer a lib directory for us to put jars in. na, that's wrong . see OPENEJB-1367 If you're interested in digging in, I have a standing offer to get on skype and fork over any info I have to anyone who'd like to help. -David [1] https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-webapp/3.2-SNAPSHOT/ [2] https://issues.apache.org/jira/browse/OPENEJB-1261 -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
MulticastTool cleanup
All, I've cleaned up the MulticastTool a bit to add '--help' output that describes the options (you just had to magically know before). As well I've added a few options. And cleaned up the output overall. The goal of the tool is to aid in debugging a non-functioning multicast setup ( http://openejb.apache.org/3.0/failover.html ) I've checked this into the 3.1.x branch. If we find any issues with current 3.1.3 release candidate, we may want to consider merging this in. Here's what the output looks like: $ java -cp target/openejb-client-3.1.3-SNAPSHOT.jar org.apache.openejb.client.MulticastTool --help Options: -h, --host=StringAddress of the multicast channel. Default is 239.255.3.2 -p, --port=int Port of the multicast channel. Default is 6142 --date-format=String Date format to use for log lines. Default is HH:mm:ss Sending: -s, --send=StringOptional message to broadcast to the channel. -r, --rate=long Resend every N milliseconds. Zero sends just once. Default is 1000 Advanced: --broadcast=boolean java.net.MulticastSocket#setBroadcast. --loopback-mode=boolean java.net.MulticastSocket#setLoopbackMode. --receive-buffer-size=int java.net.MulticastSocket#setReceiveBufferSize. --reuse-address=boolean java.net.MulticastSocket#setReuseAddress. --send-buffer-size=int java.net.MulticastSocket#setSendBufferSize. --so-timeout=int java.net.MulticastSocket#setSoTimeout. --time-to-live=int java.net.MulticastSocket#setTimeToLive. --traffic-class=int java.net.MulticastSocket#setTrafficClass. $ java -cp target/openejb-client-3.1.3-SNAPSHOT.jar org.apache.openejb.client.MulticastTool --port 4312 --send blue Connected host: 239.255.3.2 port: 4312 Socket broadcast : true loopback-mode : false receive-buffer-size : 65507 reuse-address : true send-buffer-size: 65507 so-timeout : 0 time-to-live: 1 traffic-class : 0 Sending send: orange rate: 1000 Listening 16:43:47 - 192.168.42.22 - orange 16:43:48 - 192.168.42.22 - blue 16:43:48 - 192.168.42.22 - orange 16:43:49 - 192.168.42.22 - blue 16:43:49 - 192.168.42.22 - orange 16:43:50 - 192.168.42.22 - blue 16:43:50 - 192.168.42.22 - orange
Re: [VOTE] OpenEJB 3.1.3 release (1st try)
Geronimo 22 branch TCK 100% passed with this staging release. +1 On Tue, Oct 12, 2010 at 5:30 AM, David Blevins david.blev...@visi.comwrote: Alright, begin binary banging. Repo: https://repository.apache.org/content/repositories/orgapacheopenejb-017/ Binaries: http://people.apache.org/~dblevins/staging/3.1.3/http://people.apache.org/%7Edblevins/staging/3.1.3/ Branch (to become a tag): http://svn.apache.org/repos/asf/openejb/branches/openejb-3.1.3/ Updated ant script for testing the binaries: http://people.apache.org/~dblevins/staging/build.xmlhttp://people.apache.org/%7Edblevins/staging/build.xml ant test:all Still need to hammer out the release notes. -David -- Shawn