You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Ludmila Shikhvarg <Lu...@oracle.com> on 2010/12/09 00:41:53 UTC

xml-apis fails

Use windows 7 with cygwin environment to run gump, but project: xml-apis is failed and there are too many projects failed because of xml-apis dependency.

I've tried to convert `cygpath --path --windows` for CLASSPATH in /cron/local*.sh, but for some reason 
CLASSPATH :c:/jdk1.6.0_21/lib/tools.jar /home/dtftest/gump/results/ant/bootstrap/lib/ant.jar /home/dtftest/gump/results/ant/bootstrap/lib/ant-launcher.jar
is used cygwin path instead of windows.


      Command Line

c:/jdk1.6.0_21/bin/java
        -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
        org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml
        -Dbuild.sysclasspath=only 


      Output

java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Main
	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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.tools.ant.Main.  Program will exit.
Exception in thread "main" 

Any help is appreciated. 

Thanks,
Luda




Re: xml-apis fails

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-12-09, Ludmila Shikhvarg wrote:

> Would you recommend any specific Unix-like system (32-bit or 64-bit)
> and version to run gump: Ubuntu, RHEL, OEL, SLES, or someting else.

Our current installations run on Ubuntu, FreeBSD and MacOS X Server, all
of them 64bit.  In the past we've also used a Solaris zone and until our
last upgrade the Ubuntu instance was a 32bit machine.

64bit basically means you'll need more memory - unless OpenJDK7's
compressed pointers work as well as promised 8-)

I think there is a single project that needs to know whether it is
building on a 32 or 64 bit system and specifies it in its descriptor -
this will be set to 64 right now.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Ludmila Shikhvarg <Lu...@oracle.com>.
Stefan Bodewig wrote:
> On 2010-12-09, Ludmila Shikhvarg wrote:
>
>   
>> Use windows 7 with cygwin environment to run gump,
>>     
>
> I don't think anybody has ever tried to run Gump on Windows and I'm very
> sure there are a few unixisms inside the code.  It's probably fair to
> assume it simply won't work and Gump requires a Unix-like system with
> Unix conventions for paths and filenames.  In particular java must use
> Unix like conventions.
>   
Stefan,

Would you recommend any specific Unix-like system (32-bit or 64-bit) and 
version to run gump: Ubuntu, RHEL, OEL, SLES, or someting else.

Thanks,
Ludmila
>   
>>      Command Line
>>     
>
>   
>> c:/jdk1.6.0_21/bin/java
>>        -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>        org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml
>>     
>
> The bootclasspath is not a Windows path, this likely won't work at all.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>
>   


Re: xml-apis fails

Posted by Bill Barker <bi...@verizon.net>.

--------------------------------------------------
From: "Stefan Bodewig" <bo...@apache.org>
Sent: Wednesday, December 08, 2010 9:33 PM
To: <ge...@gump.apache.org>
Subject: Re: xml-apis fails

> On 2010-12-09, Ludmila Shikhvarg wrote:
>
>> Use windows 7 with cygwin environment to run gump,
>
> I don't think anybody has ever tried to run Gump on Windows and I'm very
> sure there are a few unixisms inside the code.  It's probably fair to
> assume it simply won't work and Gump requires a Unix-like system with
> Unix conventions for paths and filenames.  In particular java must use
> Unix like conventions.
>

I've run Gump on Windows before, but not recently.  It would run just fine 
for Java builds.  But I wasn't using cygwin, so can't help much here.  I 
just used the gump.bat script.

>>      Command Line
>
>> c:/jdk1.6.0_21/bin/java
>>        -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>        org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml
>
> The bootclasspath is not a Windows path, this likely won't work at all.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-12-10, Ludmila Shikhvarg wrote:

>      Environment Overrides

> Name 	Value
> CLASSPATH 	:c:/jdk1.6.0_21/lib/tools.jar
> /home/dtftest/gump/results/ant/bootstrap/lib/ant.jar
> /home/dtftest/gump/results/ant/bootstrap/lib/ant-launcher.jar

The leading colon still looks like a Unix path.  You will either need to
use a Python version that is not Cygwin aware, not use Cygwin or use a
java (and javac) executable that knows how to deal with Unix paths.

As you have already seen the "not use Cygwin" approach has worked for
others before.

Stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Jörg Schaible <jo...@scalaris.com>.
Hi Ludmila,

Ludmila Shikhvarg wrote:

> 
>       Parameters
> 
> Prefix 	Name 	Value
> -X 	bootclasspath/p 	
:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar
> /home/dtftest/gump/packages/jaxp-1_3/dom.jar
> /home/dtftest/gump/packages/jaxp-1_3/sax.jar
> /home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar
> /home/dtftest/gump/packages/jaxp-1_3/xalan.jar
> 
> org.apache.tools.ant.Main
> -D 	gump.merge 	/home/dtftest/gump/work/merge.xml
> -D 	build.sysclasspath 	only
> 
> 
>       Environment Overrides
> 
> Name 	Value
> CLASSPATH 	:c:/jdk1.6.0_21/lib/tools.jar
> /home/dtftest/gump/results/ant/bootstrap/lib/ant.jar
> /home/dtftest/gump/results/ant/bootstrap/lib/ant-launcher.jar
> 
> 
> The immediate issue still seems to be the basic "java
> org.apache.tools.ant.Main"  call is not picking up the ant jar files
> from the CLASSPATH environment variable above. Please help.

Sorry to say, but I am quite sure that nobody will investigate. Either you 
can fix this problems based on our comments or you might try Gump without 
Cygwin. As Bill stated, he had it running on plain Windows.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Ludmila Shikhvarg <Lu...@oracle.com>.
      Parameters

Prefix 	Name 	Value
-X 	bootclasspath/p 	:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar 
/home/dtftest/gump/packages/jaxp-1_3/dom.jar 
/home/dtftest/gump/packages/jaxp-1_3/sax.jar 
/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar 
/home/dtftest/gump/packages/jaxp-1_3/xalan.jar

	org.apache.tools.ant.Main 	
-D 	gump.merge 	/home/dtftest/gump/work/merge.xml
-D 	build.sysclasspath 	only


      Environment Overrides

Name 	Value
CLASSPATH 	:c:/jdk1.6.0_21/lib/tools.jar 
/home/dtftest/gump/results/ant/bootstrap/lib/ant.jar 
/home/dtftest/gump/results/ant/bootstrap/lib/ant-launcher.jar


The immediate issue still seems to be the basic "java 
org.apache.tools.ant.Main"  call is not picking up the ant jar files 
from the CLASSPATH environment variable above. Please help.

Thanks,
Ludmila

Stefan Bodewig wrote:
> On 2010-12-09, Jörg Schaible wrote:
>
>   
>>>>> Command Line
>>>>>           
>
>   
>>>>> c:/jdk1.6.0_21/bin/java
>>>>> -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-
>>>>>           
>> api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>     
>>>>> org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml
>>>>>           
>
>   
>>> There should be a space or = after "-Xbootclasspath" - that might
>>> explain the the problem?
>>>       
>
> No, the syntax is -Xbootcpasspath/p:PATH - see "java -X".
>
>   
>> The path still uses ':' as separator
>>     
>
> which is puzzling since it is generated by a Path instance that runs
> through the getFlattened method at the bottom of
> <http://svn.apache.org/repos/asf/gump/trunk/python/gump/core/language/path.py>
> which uses os.pathsep
>
> Could this be a cygwin aware version of Python that is too much aware of
> Cygwin?
>
>   
>> Stefan might be interested in patches in that case ;-)
>>     
>
> In any case 8-)
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>
>
>   


Re: xml-apis fails

Posted by Jörg Schaible <jo...@scalaris.com>.
Hi Stefan,

Stefan Bodewig wrote:

> On 2010-12-09, Jörg Schaible wrote:
> 
>>>>> Command Line
> 
>>>>> c:/jdk1.6.0_21/bin/java
>>>>> -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-
>> 
api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>>>> org.apache.tools.ant.Main
>>>>> -Dgump.merge=/home/dtftest/gump/work/merge.xml
> 
>>> There should be a space or = after "-Xbootclasspath" - that might
>>> explain the the problem?
> 
> No, the syntax is -Xbootcpasspath/p:PATH - see "java -X".
> 
>> The path still uses ':' as separator
> 
> which is puzzling since it is generated by a Path instance that runs
> through the getFlattened method at the bottom of
> 
<http://svn.apache.org/repos/asf/gump/trunk/python/gump/core/language/path.py>
> which uses os.pathsep
> 
> Could this be a cygwin aware version of Python that is too much aware of
> Cygwin?

Has to be, yes. It's definitely available.

>> Stefan might be interested in patches in that case ;-)
> 
> In any case 8-)

:D

It's been some years now, since I've used Cygwin the last time (before 
moving to the real thing), but basically it should be possible now to build 
with OpenJDK also a Cygwin-aware JDK.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-12-09, Jörg Schaible wrote:

>>>> Command Line

>>>> c:/jdk1.6.0_21/bin/java
>>>> -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-
> api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>>> org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml

>> There should be a space or = after "-Xbootclasspath" - that might
>> explain the the problem?

No, the syntax is -Xbootcpasspath/p:PATH - see "java -X".

> The path still uses ':' as separator

which is puzzling since it is generated by a Path instance that runs
through the getFlattened method at the bottom of
<http://svn.apache.org/repos/asf/gump/trunk/python/gump/core/language/path.py>
which uses os.pathsep

Could this be a cygwin aware version of Python that is too much aware of
Cygwin?

> Stefan might be interested in patches in that case ;-)

In any case 8-)

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Jörg Schaible <jo...@scalaris.com>.
Hi Sebb,

sebb wrote:

> On 9 December 2010 05:33, Stefan Bodewig <bo...@apache.org> wrote:
>> On 2010-12-09, Ludmila Shikhvarg wrote:
>>
>>> Use windows 7 with cygwin environment to run gump,
>>
>> I don't think anybody has ever tried to run Gump on Windows and I'm very
>> sure there are a few unixisms inside the code.  It's probably fair to
>> assume it simply won't work and Gump requires a Unix-like system with
>> Unix conventions for paths and filenames.  In particular java must use
>> Unix like conventions.
> 
> Not sure that's true.

In this case it is.

> 
>>> Command Line
>>
>>> c:/jdk1.6.0_21/bin/java
>>> -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-
api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>> org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml
> 
> There should be a space or = after "-Xbootclasspath" - that might
> explain the the problem?

The path still uses ':' as separator and some added paths start with 
/home/xxx which are typically Cygwin paths. Both cannot be processed by a 
Windows-based java.

>> The bootclasspath is not a Windows path, this likely won't work at all.

Therefore Stefan is right.

However, it seems that it's not a Java application that creates those 
constructs, but some Unix shell scripts. If the original poster can adjust 
those to provide real Windows paths when invoking Java, he might get Gump 
running. Stefan might be interested in patches in that case ;-)

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by sebb <se...@gmail.com>.
On 9 December 2010 05:33, Stefan Bodewig <bo...@apache.org> wrote:
> On 2010-12-09, Ludmila Shikhvarg wrote:
>
>> Use windows 7 with cygwin environment to run gump,
>
> I don't think anybody has ever tried to run Gump on Windows and I'm very
> sure there are a few unixisms inside the code.  It's probably fair to
> assume it simply won't work and Gump requires a Unix-like system with
> Unix conventions for paths and filenames.  In particular java must use
> Unix like conventions.

Not sure that's true.

>>      Command Line
>
>> c:/jdk1.6.0_21/bin/java
>>        -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>>        org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml

There should be a space or = after "-Xbootclasspath" - that might
explain the the problem?

>
> The bootclasspath is not a Windows path, this likely won't work at all.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-12-09, Ludmila Shikhvarg wrote:

> Use windows 7 with cygwin environment to run gump,

I don't think anybody has ever tried to run Gump on Windows and I'm very
sure there are a few unixisms inside the code.  It's probably fair to
assume it simply won't work and Gump requires a Unix-like system with
Unix conventions for paths and filenames.  In particular java must use
Unix like conventions.

>      Command Line

> c:/jdk1.6.0_21/bin/java
>        -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>        org.apache.tools.ant.Main -Dgump.merge=/home/dtftest/gump/work/merge.xml

The bootclasspath is not a Windows path, this likely won't work at all.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: xml-apis fails

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Maybe you want to run gump without setting CLASSPATH. I am not sure as I 
did not touch gump for a long time, I might be wrong.

Antoine

On 12/8/2010 6:41 PM, Ludmila Shikhvarg wrote:
> Use windows 7 with cygwin environment to run gump, but project: 
> xml-apis is failed and there are too many projects failed because of 
> xml-apis dependency.
>
> I've tried to convert `cygpath --path --windows` for CLASSPATH in 
> /cron/local*.sh, but for some reason CLASSPATH 
> :c:/jdk1.6.0_21/lib/tools.jar 
> /home/dtftest/gump/results/ant/bootstrap/lib/ant.jar 
> /home/dtftest/gump/results/ant/bootstrap/lib/ant-launcher.jar
> is used cygwin path instead of windows.
>
>
>      Command Line
>
> c:/jdk1.6.0_21/bin/java
>        
> -Xbootclasspath/p:/home/dtftest/gump/packages/jaxp-1_3/jaxp-api.jar:/home/dtftest/gump/packages/jaxp-1_3/dom.jar:/home/dtftest/gump/packages/jaxp-1_3/sax.jar:/home/dtftest/gump/packages/jaxp-1_3/xercesImpl.jar:/home/dtftest/gump/packages/jaxp-1_3/xalan.jar
>        org.apache.tools.ant.Main 
> -Dgump.merge=/home/dtftest/gump/work/merge.xml
>        -Dbuild.sysclasspath=only
>
>      Output
>
> java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Main
>     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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.tools.ant.Main.  Program 
> will exit.
> Exception in thread "main"
> Any help is appreciated.
> Thanks,
> Luda
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org