ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otto Perdeck" <otto.perd...@xs4all.nl>
Subject Re: problem in running CORBA program using ant
Date Wed, 06 Mar 2002 19:44:07 GMT
Hello Marco,

I think you need to set fork="yes" in your call to the java task. I remember
having done that in our own CORBA launching tasks.

-Otto Perdeck

----- Original Message -----
From: <Marco.Mistroni@nokia.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, March 05, 2002 12:22 PM
Subject: problem in running CORBA program using ant


> hi all,
> i have written a program that uses CORBA (from JDK packages).
> i wrote a build.xml for launching this program, but i got always
> this exception:
>
> java.lang.NoClassDefFoundError: org/omg/CORBA/portable/IDLEntity
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
> .java:862)
>         at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
> der.java:916)
>         at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:898
> )
>         at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:801
> )
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>         at java.lang.Class.getMethod0(Native Method)
>         at java.lang.Class.getMethod(Class.java:888)
>         at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:12
> 3)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:305)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88)
>         at org.apache.tools.ant.Task.perform(Task.java:217)
>         at org.apache.tools.ant.Target.execute(Target.java:184)
>         at org.apache.tools.ant.Target.performTasks(Target.java:202)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>         at org.apache.tools.ant.Main.runBuild(Main.java:454)
>         at org.apache.tools.ant.Main.start(Main.java:153)
>         at org.apache.tools.ant.Main.main(Main.java:176)
>
>
> here is the content of my build.xml file
>
> <project name="MyDemo" default="run"   basedir=".">
>
>   <!-- set global properties for this build -->
>
>   <property name="build" value="build"/>
>   <property name="dist"  value="dist"/>
>   <property name="JAVA_HOME" value="d:\jdk1.3.1"/>
>   <property name="XML_LIB" value="d:\lib\xml_lib"/>
>   <property name="DIST_LIB" value="d:\dist\lib"/>
>
>
>
>   <target name="run">
>     <!-- run the Sun version of SBSClient -->
>     <java classname="MyClient">
>     <classpath>
>          <pathelement location="${DIST_LIB}\MyClient.jar"/>
>          <pathelement location="${XML_LIB}\castor-xml.jar"/>
>          <pathelement location="${XML_LIB}\xerces.jar"/>
>          <pathelement location="${XML_LIB}\jaxp.jar"/>
>
>
>      </classpath>
>
>    </java>
>   </target>
>
> </project>
>
> weird thing is that, when i use ORBIX CORBA packages (and thus
> specify with the -D some system properties) everything works fine.
>
> From the exception it looks like something in the CLASSPATH is missing,
> but what?? those CORBA classes should come by default with java, so
> i shouldn't include anything in the CLASSPATH.
>
> can anyone help me?
>
> thanx in advance and regards
> marco
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message