Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 40626 invoked from network); 23 Feb 2006 04:50:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 04:50:45 -0000 Received: (qmail 27568 invoked by uid 500); 23 Feb 2006 04:50:43 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 27346 invoked by uid 500); 23 Feb 2006 04:50:41 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 27335 invoked by uid 99); 23 Feb 2006 04:50:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2006 20:50:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of pzfreo@gmail.com designates 64.233.184.201 as permitted sender) Received: from [64.233.184.201] (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2006 20:50:40 -0800 Received: by wproxy.gmail.com with SMTP id i5so292262wra for ; Wed, 22 Feb 2006 20:50:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=H3j321eauHer4hV1oF5n9MeLahh9W/SiRiGjLToqnQVUsXGR4RlKscKMue3C0tIPkKmSnz7NMycfJ1LsETldi4wtILLffofGNvt0tv3gdl0CUpznn2QqpdlzMLh7MX6+WwIaeTdmzCBnvx/10/4fwSO2WpsND9fp7wUK7xBRmaQ= Received: by 10.54.125.18 with SMTP id x18mr1542618wrc; Wed, 22 Feb 2006 20:50:18 -0800 (PST) Received: by 10.54.135.18 with HTTP; Wed, 22 Feb 2006 20:50:18 -0800 (PST) Message-ID: <88f5d710602222050j5b59a341w6b6f374c313ed18d@mail.gmail.com> Date: Thu, 23 Feb 2006 04:50:18 +0000 From: "Paul Fremantle" To: axis-dev@ws.apache.org Subject: Re: [axis2] Re: why is an http listener opening client side? In-Reply-To: <43FD2CFA.7080008@opensource.lk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4194_6841230.1140670218931" References: <43F9E5EE.4000305@apache.org> <1140631921.29199.63.camel@localhost.localdomain> <43FD2CFA.7080008@opensource.lk> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4194_6841230.1140670218931 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Steve The answer is that there is no single set of imports that we can use in Jav= a that uses backport if its there in JDK 1.4 and the in-built JDK 5 stuff otherwise. So we had to either fix Axis2 to be JDK5+ only, or use backport. We chose backport for the widest acceptance. However, they are in their own namespace, so in JDK5 you are using the backport lib not the JDK stuff. Eventually we can do a global rename and create a JDK5+ only version. I started writing a rant against Sun's strategy but I figured no-one would be interested so I've deleted it. Paul On 2/23/06, Deepal Jayasinghe wrote: > > pls add backport-util-concurrent-2.0_01_pd.jar to your class path and see > :) > > > > Sanjiva Weerawarana wrote: > > >(You forgot the [axis2] prefix Steve ;-)) > > > >We need to fix this .. in the recent changes to the ListenerManager > >stuff, we ended up with the current model. A few more days and you'll be > >back to normal :). > > > >I'm not sure of the answer for the backport issues. > > > >Sanjiva. > > > >On Mon, 2006-02-20 at 15:53 +0000, Steve Loughran wrote: > > > > > >>Having got my code to compile again, I am now surprised to see that my > >>unit tests are failing because I dont have the concurrent backport, > >>which the SimpleHttpServer needs: > >> > >>java.lang.NoClassDefFoundError: > >>edu/emory/mathcs/backport/java/util/concurrent/BlockingQueue > >> at > >>org.apache.axis2.transport.http.server.SimpleHttpServer.( > SimpleHttpServer.java:117) > >> at > >>org.apache.axis2.transport.http.server.SimpleHttpServer.( > SimpleHttpServer.java:84) > >> at > >>org.apache.axis2.transport.http.SimpleHTTPServer.start( > SimpleHTTPServer.java:184) > >> at org.apache.axis2.engine.ListenerManager.start( > ListenerManager.java:104) > >> at > >>org.apache.axis2.client.ServiceClient.initializeTransports( > ServiceClient.java:151) > >> at org.apache.axis2.client.ServiceClient.(ServiceClient.jav= a > :81) > >> at org.apache.axis2.client.ServiceClient.(ServiceClient.jav= a > :160) > >> at org.smartfrog.services.deployapi.client.ApiCall.( > ApiCall.java:82) > >> at > >>org.smartfrog.services.deployapi.client.Endpointer.createStub( > Endpointer.java:151) > >> at > >>org.smartfrog.services.deployapi.test.unit.CallTest.createSystemCall( > CallTest.java:89) > >> at > >>org.smartfrog.services.deployapi.test.unit.CallTest.testSystemEndpoint( > CallTest.java:49) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source= ) > >> at com.intellij.rt.execution.junit2.JUnitStarter.main( > JUnitStarter.java:32) > >> > >>1. I'm running Java1.5; no need for backported stuff. > >> > >>2. I didnt ask for an http server, and, for security reasons, would be > >>grateful if one were not started. > >> > >> > > > > > > > > > > > > -- > Thanks, > Deepal > ................................................................ > ~Future is Open~ > > > -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com ------=_Part_4194_6841230.1140670218931 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Steve

The answer is that there is no single set of imports that we c= an use in Java that uses backport if its there in JDK 1.4 and the in-built = JDK 5 stuff otherwise.

So we had to either fix Axis2 to be JDK5+ on= ly, or use backport. We chose backport for the widest acceptance. However, = they are in their own namespace, so in JDK5 you are using the backport lib = not the JDK stuff. Eventually we can do a global rename and create a JDK5+ = only version.

I started writing a rant against Sun's strategy but I figured no-on= e would be interested so I've deleted it.

Paul


On 2/23/06, Deepal Jay= asinghe <deepal@opensource.lk&g= t; wrote:
p= ls add=20 backport-util-concurrent-2.0_01_pd.jar to your class path and see :)


Sanjiva Weerawarana wrote:

>(You forgot the [axis2] pref= ix Steve ;-))
>
>We need to fix this .. in the recent changes t= o the ListenerManager
>stuff, we ended up with the current model. A few more days and you'= ll be
>back to normal :).
>
>I'm not sure of the answer f= or the backport issues.
>
>Sanjiva.
>
>On Mon, 2006= -02-20 at 15:53 +0000, Steve Loughran wrote:
>
>
>>Having got my code to compile again, I am now s= urprised to see that my
>>unit tests are failing because I dont ha= ve the concurrent backport,
>>which the SimpleHttpServer needs:
>>
>>java.lang.NoClassDefFoundError:
>>edu/emor= y/mathcs/backport/java/util/concurrent/BlockingQueue
>>  = ;    at
>>org.apache.axis2.transport.http.serv= er.SimpleHttpServer.<init>( SimpleHttpServer.java:117)
>>      a= t
>>org.apache.axis2.transport.http.server.SimpleHttpServer.<in= it>(SimpleHttpServer.java:84)
>>     &= nbsp;at
>>org.apache.axis2.transport.http.SimpleHTTPServer.start (SimpleHTTPServer.java:184)
>>      = at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:104)<= br>>>      at
>>org.apache.axi= s2.client.ServiceClient.initializeTransports(ServiceClient.java :151)
>>      at org.apache.axis2.cl= ient.ServiceClient.<init>(ServiceClient.java:81)
>> &nb= sp;    at org.apache.axis2.client.ServiceClient.<ini= t>(ServiceClient.java:160)
>>     &nbs= p;at org.smartfrog.services.deployapi.client.ApiCall .<init>(ApiCall.java:82)
>>     &nb= sp;at
>>org.smartfrog.services.deployapi.client.Endpointer.createS= tub(Endpointer.java:151)
>>      at<= br>>>org.smartfrog.services.deployapi.test.unit.CallTest.createSystem= Call (CallTest.java:89)
>>      at
>= ;>org.smartfrog.services.deployapi.test.unit.CallTest.testSystemEndpoint= (CallTest.java:49)
>>      at sun.re= flect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      at sun.reflect.NativeMethodAcce= ssorImpl.invoke(Unknown Source)
>>     &n= bsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&= gt;>      at com.intellij.rt.execution.jun= it2.JUnitStarter.main (JUnitStarter.java:32)
>>
>>1. I'm running Java1.5; no ne= ed for backported stuff.
>>
>>2. I didnt ask for an http = server, and, for security reasons, would be
>>grateful if one were= not started.
>>
>>
>
>
>
>
>

--<= br>Thanks,
Deepal
...................................................= .............
~Future is Open~





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chai= r

http://bloglin= es.com/blog/paulfremantle
paul@wso2= .com

"Oxygenating the Web Service Platform", www.wso2.com
------=_Part_4194_6841230.1140670218931--