X-Apparently-To: jules_gosnell@yahoo.com via web13805.mail.yahoo.com; 02 Aug 2001 23:55:36 -0700 (PDT) X-Track: 15: 40 Received: from h31.sny.collab.net (HELO apache.org) (64.208.42.41) by mta426.mail.yahoo.com with SMTP; 02 Aug 2001 23:55:36 -0700 (PDT) Received: (qmail 45175 invoked by uid 500); 3 Aug 2001 06:50:45 -0000 Mailing-List: contact soap-user-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: soap-user@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list soap-user@xml.apache.org Received: (qmail 45160 invoked from network); 3 Aug 2001 06:50:45 -0000 Received: from smtp016.mail.yahoo.com (216.136.174.113) by h31.sny.collab.net with SMTP; 3 Aug 2001 06:50:45 -0000 Received: from host213-1-82-27.btinternet.com (HELO yahoo.com) (213.1.82.27) by smtp.mail.vip.sc5.yahoo.com with SMTP; 3 Aug 2001 06:50:50 -0000 X-Apparently-From: Sender: jules Message-ID: <3B6A4AC8.BC03FE82@yahoo.com> Date: Fri, 03 Aug 2001 07:55:04 +0100 From: Julian Gosnell X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: soap-user@xml.apache.org Subject: Re: ant task to deploy Apache SOAP service References: <76E5CAD184D4D411BEB2001083FD90C14F13CA@mail.screamingmedia.com> Content-Type: multipart/alternative; boundary="------------042428DB7FA59AB58121AE69" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Content-Length: 11369 --------------042428DB7FA59AB58121AE69 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I note you are forking your JVM. This is a lot slower than running the SOAP Client code in Ant's JVM - I have spent a long time getting this to work for my project as a few seconds shaved off every deployment saves me a lot of time over week. Here is what I have In trying to get this to work, I came across an interesting problem which took a long time to sort out. I'm using Ant 1.4a. It consumes Crimson. Soap (2.2) also consumes Crimson. The AntClassLoader used in the Java Task is hardwired to be 'isolated'. This seems to mean that if the subtask needs a class, it should only look down it's own classpath, and not resort to using other classes already loaded by Ant. Putting Crimson (exactly the same jar as Ant is using) into the subtasks classpath results in a 'LinkageError'. - because two copies of an identical class are loaded into the VM at the same time (I thought you could do this). Removing Crimson from the subtasks classpath results in a Crimson ClassNotFoundException (because the ClassLoader is 'isolated' and cannot reuse the copy of Crimson already loaded). The only way I could run SOAP Client code as a subtask without forking, was to recompile Ant1.4a with the AntClassLoader 'isolated' property set to false. This really needs to go to Ant-Dev, I'll probably forward it there today, but just thought I'd follow up this thread first. I would like to see the Java task with an 'isolated' attribute, so that this problem can be overcome in the build file. Anyone else have the same problem? Jules Daryl Beattie wrote: > This is what I use: > > > > fork="yes"> > > > > > location="${thirdparty}/xerces.jar"/> > location="${thirdparty}/soap.jar"/> > location="${thirdparty}/mail.jar"/> > location="${thirdparty}/activation.jar"/> > location="${dist}/AuthenticationSOAP.jar"/> > > > > > You could modify it to make the URL and descriptor.xml variables.... > > > -----Original Message----- > > From: HariNam Singh [mailto:hsingh@elite.com] > > Sent: Thursday, August 02, 2001 5:17 PM > > To: 'soap-user@xml.apache.org' > > Subject: RE: ant task to deploy Apache SOAP service > > > > > > See > > http://jakarta.apache.org/ant > > > > It's a build tool. Compared to make, it's more platform > > independant, and > > java friendly. It's a very cool tool, and easy to use. > > > > -----Original Message----- > > From: Steeve Gilbert [mailto:Steeve_Gilbert@canammanac.com] > > Sent: Thursday, August 02, 2001 2:03 PM > > To: soap-user@xml.apache.org > > Subject: Re: ant task to deploy Apache SOAP service > > > > > > > > Ok hmm.... what's an ant task? I'm lower then basic, i > > don't even know > > what it is. ;-) > > > > Steeve... > > > > > > > > > > HariNam Singh on 02/08/2001 03:18:09 PM > > > > Please respond to soap-user@xml.apache.org > > > > To: "'soap-user@xml.apache.org'" > > cc: (bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC) > > > > Subject: ant task to deploy Apache SOAP service > > > > > > Hi, > > > > did anyone write an ant task to deploy SOAP service to Apache > > SOAP server. > > > > Some ant task, where I can speciry the RPC Router URL and > > descriptor file > > would be nice. Then I could deploy the SOAP services as part > > of the build. > > > > It's pretty simple to write. Though, it seems also so basic > > that it should > > be written already. > > > > > > Thanks, > > hns > > > > > > > > > > --------------042428DB7FA59AB58121AE69 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I note you are forking your JVM.

This is a lot slower than running the SOAP Client code in Ant's JVM - I have spent a long time getting this to work for my project as a few seconds shaved off every deployment saves me a lot of time over week.

Here is what I have

    <echo message="Deploying Master Service"/>
    <java
 classname="${soap.client}"
 classpathref="soap.client.classpath"
 fork="${soap.client.fork}"
 >
 <arg value="${master.rpcrouter}"/>
 <arg value="deploy"/>
 <arg value="${master.descriptor}"/>
    </java>

In trying to get this to work, I came across an interesting problem which took a long time to sort out.

I'm using Ant 1.4a. It consumes Crimson.

Soap (2.2) also consumes Crimson.

The AntClassLoader used in the Java Task is hardwired to be 'isolated'. This seems to mean that if the subtask needs a class, it should only look down it's own classpath, and not resort to using other classes already loaded by Ant.

Putting Crimson (exactly  the same jar as Ant is using) into the subtasks classpath results in a 'LinkageError'. - because two copies of an identical class are loaded into the VM at the same time (I thought you could do this).

Removing Crimson from the subtasks classpath results in a Crimson ClassNotFoundException (because the ClassLoader is 'isolated' and cannot reuse the copy of Crimson already loaded).

The only way I could run SOAP Client code as a subtask without forking, was to recompile Ant1.4a with the AntClassLoader 'isolated' property set to false.

This really needs to go to Ant-Dev, I'll probably forward it there today, but just thought I'd follow up this thread first.

I would like to see the Java task with an 'isolated' attribute, so that this problem can be overcome in the build file.

Anyone else have the same problem?
 

Jules
 
 

Daryl Beattie wrote:

This is what I use:

    <!-- Deploys the SOAP service. -->
        <target name="deploysoap" depends="compile">
            <java classname="org.apache.soap.server.ServiceManagerClient"
fork="yes">
                <arg value="http://localhost:8080/soap/servlet/rpcrouter"/>
                <arg value="deploy"/>
                <arg value="${build}/SOAPDeploymentDescriptor.xml"/>
                        <classpath>
                                <pathelement
location="${thirdparty}/xerces.jar"/>
                                <pathelement
location="${thirdparty}/soap.jar"/>
                                <pathelement
location="${thirdparty}/mail.jar"/>
                                <pathelement
location="${thirdparty}/activation.jar"/>
                                <pathelement
location="${dist}/AuthenticationSOAP.jar"/>
                        </classpath>
                </java>
        </target>

You could modify it to make the URL and descriptor.xml variables....

> -----Original Message-----
> From: HariNam Singh [mailto:hsingh@elite.com]
> Sent: Thursday, August 02, 2001 5:17 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: ant task to deploy Apache SOAP service
>
>
> See
> http://jakarta.apache.org/ant
>
> It's a build tool. Compared to make, it's more platform
> independant, and
> java friendly. It's a very cool tool, and easy to use.
>
> -----Original Message-----
> From: Steeve Gilbert [mailto:Steeve_Gilbert@canammanac.com]
> Sent: Thursday, August 02, 2001 2:03 PM
> To: soap-user@xml.apache.org
> Subject: Re: ant task to deploy Apache SOAP service
>
>
>
> Ok hmm....  what's an ant task?  I'm lower then basic, i
> don't even know
> what it is. ;-)
>
> Steeve...
>
>
>
>
> HariNam Singh <hsingh@elite.com> on 02/08/2001 03:18:09 PM
>
> Please respond to soap-user@xml.apache.org
>
> To:   "'soap-user@xml.apache.org'" <soap-user@xml.apache.org>
> cc:    (bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)
>
> Subject:  ant task to deploy Apache SOAP service
>
>
> Hi,
>
> did anyone write an ant task to deploy SOAP service to Apache
> SOAP server.
>
> Some ant task, where I can speciry the RPC Router URL and
> descriptor file
> would be nice. Then I could deploy the SOAP services as part
> of the build.
>
> It's pretty simple to write. Though, it seems also so basic
> that it should
> be written already.
>
>
> Thanks,
> hns
>
>
>
>
>

--------------042428DB7FA59AB58121AE69-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com