ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Rose <angus.r...@ukbiobank.ac.uk>
Subject Re: Java task classpath problem
Date Tue, 01 Aug 2006 08:45:24 GMT

Hi Andrew,
              thanks for the reply. I've tried putting the oc4jclient.jar on
the classpath (see below) but still to no avail. I'm running the script
independently of oc4j i.e. running it from Ant on my hard drive.

Below is are the relevant bits of the script.

Thanks again for your help.

Angus

<path id="run.classpath">
    <pathelement
location="${attilla.home}/${attilla.lib.dir}/oc4jclient.jar"/>
 </path> 
<target name="run_attilla_client" depends="jar_attilla_client">
        <java jar="${attilla.home}/${attilla.client.dir}/AttillaClient.jar" 
                fork="true" 
                failonerror="true" 
                maxmemory="128m"
                classpathref="run.classpath">
             <arg value="200000"/>
             <arg value="AttillaTimer"/>
       </java>
  </target>
Andrew Goktepe wrote:
> 
> Are you using the ANT_HOME that is bundled with OC4J, or a different one?
> 
> Make sure you have oc4jclient.jar in your classpath.
> 
> Can you post the section of your script where this call is being made?
> 
> -Andrew
> 
> 
> On 7/31/06, Angus Rose <angus.rose@ukbiobank.ac.uk> wrote:
>>
>>
>> Hi All,
>>      I am creating a script that will build and deploy an EJB to an
>> instance of OC4J. SO far, so good I can deploy the EJB and all is
>> wonderful.
>> I have a class[ath problem with running a client that calls this EJB, Ant
>> basically throws a classnotfound exception when it trys to load an
>> instance
>> of oracle.j2ee.rmi.RMIInitialContextFactory as the initail context
>> factory.
>> I have done everything obvious to solve this problem but to no avail. Has
>> anybody had any similar experiences and if so, how did they resolve them?
>>
>> Thanks
>>
>> Angus
>> --
>> View this message in context:
>> http://www.nabble.com/Java-task-classpath-problem-tf2026624.html#a5573041
>> Sent from the Ant - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 
-- 
View this message in context: http://www.nabble.com/Java-task-classpath-problem-tf2026624.html#a5590604
Sent from the Ant - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message