ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8078] New: - ant build fails with Windows XP system error
Date Sun, 14 Apr 2002 23:18:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8078

ant build fails with Windows XP system error

           Summary: ant build fails with Windows XP system error
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Build Process
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: lakshmi_nj@yahoo.com


Hello!

When I try to build an example from the J2EE tutorial using Ant I get a pop-up 
window with this message:

=========================================================================
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to 
terminate the application.
<Close> <Ignore>
=========================================================================

Also, here is the output from the -debug option (very long!):

=============================================================
Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Setting project property: ant.java.version -> 1.4
Detected Java version: 1.4 in: c:\j2sdk1.4.0\jre
Detected OS: Windows XP
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: mail     org.apache.tools.ant.taskdefs.SendEmail
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: ear     org.apache.tools.ant.taskdefs.Ear
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
 +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: record     org.apache.tools.ant.taskdefs.Recorder
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: filterset     org.apache.tools.ant.types.FilterSet
 +User datatype: filelist     org.apache.tools.ant.types.FileList
 +User datatype: description     org.apache.tools.ant.types.Description
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
Setting project property: java.runtime.name -> Java(TM) 2 Runtime Environment, 
Standard Edition
Setting project property: sun.boot.library.path -> c:\j2sdk1.4.0\jre\bin
Setting project property: java.vm.version -> 1.4.0-b92
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: path.separator -> ;
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: file.encoding.pkg -> sun.io
Setting project property: user.country -> US
Setting project property: sun.os.patch.level -> 
Setting project property: java.vm.specification.name -> Java Virtual Machine 
Specification
Setting project property: user.dir -> C:\j2eetutorial\examples
Setting project property: java.runtime.version -> 1.4.0-b92
Setting project property: java.awt.graphicsenv -> 
sun.awt.Win32GraphicsEnvironment
Setting project property: java.endorsed.dirs -> c:\j2sdk1.4.0\jre\lib\endorsed
Setting project property: os.arch -> x86
Setting project property: java.io.tmpdir -> C:\DOCUME~1\Owner\LOCALS~1\Temp\
Setting project property: line.separator -> 

Setting project property: java.vm.specification.vendor -> Sun Microsystems Inc.
Setting project property: user.variant -> 
Setting project property: os.name -> Windows XP
Setting project property: ant.home -> c:\jakarta-ant-1.4.1
Setting project property: sun.java2d.fontpath -> 
Setting project property: java.library.path -> c:\j2sdk1.4.0
\bin;.;C:\WINDOWS\System32;C:\WINDOWS;c:\j2sdkee1.3.1\bin;c:\jakarta-ant-1.4.1
\bin;c:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
\Wbem;C:\Program files\PC-Doctor for Windows XP\WINDSAPI
Setting project property: java.specification.name -> Java Platform API 
Specification
Setting project property: java.class.version -> 48.0
Setting project property: java.util.prefs.PreferencesFactory -> 
java.util.prefs.WindowsPreferencesFactory
Setting project property: os.version -> 5.1
Setting project property: user.home -> C:\Documents and Settings\Owner
Setting project property: user.timezone -> 
Setting project property: java.awt.printerjob -> sun.awt.windows.WPrinterJob
Setting project property: file.encoding -> Cp1252
Setting project property: java.specification.version -> 1.4
Setting project property: java.class.path -> c:\j2sdk1.4.0
\lib\tools.jar;c:\jakarta-ant-1.4.1\lib\jaxp.jar;c:\jakarta-ant-1.4.1
\lib\crimson.jar;c:\jakarta-ant-1.4.1\lib\ant.jar;
Setting project property: user.name -> Owner
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> c:\j2sdk1.4.0\jre
Setting project property: sun.arch.data.model -> 32
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: awt.toolkit -> sun.awt.windows.WToolkit
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.4.0
Setting project property: java.ext.dirs -> c:\j2sdk1.4.0\jre\lib\ext
Setting project property: sun.boot.class.path -> c:\j2sdk1.4.0
\jre\lib\rt.jar;c:\j2sdk1.4.0\jre\lib\i18n.jar;c:\j2sdk1.4.0
\jre\lib\sunrsasign.jar;c:\j2sdk1.4.0\jre\lib\jsse.jar;c:\j2sdk1.4.0
\jre\lib\jce.jar;c:\j2sdk1.4.0\jre\lib\charsets.jar;c:\j2sdk1.4.0\jre\classes
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: file.separator -> \
Setting project property: java.vendor.url.bug -> http://java.sun.com/cgi-
bin/bugreport.cgi
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: sun.cpu.endian -> little
Setting project property: sun.cpu.isalist -> pentium i486 i386
Setting ro project property: ant.version -> Ant version 1.4.1 compiled on 
October 11 2001
Setting ro project property: ant.file -> C:\j2eetutorial\examples\build.xml
parsing buildfile C:\j2eetutorial\examples\build.xml with URI = 
file:C:/j2eetutorial/examples/build.xml
Setting ro project property: ant.project.name -> j2ee-tutorial-examples
Adding reference: j2ee-tutorial-examples -> org.apache.tools.ant.Project@f73c1
Setting project property: basedir -> C:\j2eetutorial\examples
Project base dir set to: C:\j2eetutorial\examples
 +Target: init
   +Task: tstamp
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
   +Task: property
 +Target: prepare
   +Task: mkdir
 +Target: clean
   +Task: delete
 +Target: all
 +Target: ejb
   +Task: chmod
 +Target: savingsaccount
   +Task: mkdir
   +Task: javac
 +Target: bank
   +Task: mkdir
   +Task: javac
 +Target: cart
   +Task: mkdir
   +Task: javac
 +Target: checker
   +Task: mkdir
   +Task: javac
 +Target: confirmer
   +Task: mkdir
   +Task: javac
 +Target: converter
   +Task: mkdir
   +Task: javac
   +Task: copy
 +Target: enroller
   +Task: mkdir
   +Task: javac
 +Target: order
   +Task: mkdir
   +Task: javac
 +Target: salesrep
   +Task: mkdir
   +Task: javac
 +Target: storagebin
   +Task: mkdir
   +Task: javac
 +Target: teller
   +Task: mkdir
   +Task: javac
 +Target: htmlreader
   +Task: mkdir
   +Task: javac
 +Target: warehouse
   +Task: mkdir
   +Task: javac
 +Target: simplemessage
   +Task: mkdir
   +Task: javac
 +Target: cmproster
   +Task: mkdir
   +Task: mkdir
   +Task: mkdir
   +Task: mkdir
   +Task: mkdir
   +Task: javac
 +Target: web
   +Task: chmod
 +Target: date
   +Task: mkdir
   +Task: copy
   +Task: javac
 +Target: hello1
   +Task: mkdir
   +Task: copy
   +Task: javac
 +Target: hello2
   +Task: mkdir
   +Task: copy
 +Target: bookstore1
   +Task: mkdir
   +Task: copy
   +Task: javac
 +Target: bookstore2
   +Task: mkdir
   +Task: copy
   +Task: javac
   +Task: war
 +Target: bookstore3
   +Task: mkdir
   +Task: copy
   +Task: javac
 +Target: web-ejb
   +Task: mkdir
   +Task: javac
 +Target: create-web-db
   +Task: java
 +Target: create-bank-table
   +Task: java
 +Target: create-enroller-table
   +Task: java
 +Target: create-savingsaccount-table
   +Task: java
 +Target: create-order-table
   +Task: java
 +Target: create-salesrep-table
   +Task: java
 +Target: create-storagebin-table
   +Task: java
 +Target: create-teller-table
   +Task: java
 +Target: create-warehouse-table
   +Task: java
 +Target: create-ejb-db
 +Target: get-cci-jar
   +Task: mkdir
   +Task: unzip
 +Target: procs
   +Task: mkdir
   +Task: javac
   +Task: echo
 +Target: create-procs-alias
   +Task: java
 +Target: create-coffee-table
   +Task: java
 +Target: cci
   +Task: mkdir
   +Task: javac
 +Target: connector
   +Task: chmod
 +Target: about
   +Task: echo
Build sequence for target `converter' is [init, converter]
Complete build sequence is [init, converter, create-storagebin-table, get-cci-
jar, procs, cci, connector, create-salesrep-table, cmproster, confirmer, web-
ejb, bookstore3, bookstore2, bookstore1, htmlreader, hello2, hello1, create-
procs-alias, savingsaccount, simplemessage, salesrep, date, web, create-coffee-
table, enroller, checker, bank, cart, order, storagebin, teller, warehouse, 
ejb, all, about, create-enroller-table, create-savingsaccount-table, create-
web-db, create-warehouse-table, create-bank-table, clean, create-order-table, 
create-teller-table, prepare, create-ejb-db]

init:
Setting project property: DSTAMP -> 20020414
Setting project property: TSTAMP -> 1910
Setting project property: TODAY -> April 14 2002
Setting project property: build -> build
Setting project property: src -> src
Setting project property: hello1 -> web/hello1
Setting project property: hello2 -> web/hello2
Setting project property: date -> web/date
Setting project property: bookstore1 -> web/bookstore1
Setting project property: bookstore2 -> web/bookstore2
Setting project property: bookstore3 -> web/bookstore3
Setting project property: webejb -> web/ejb
Setting project property: webejbpath -> build/web/ejb
Setting project property: websql -> sql
Setting project property: ejb -> ejb
Setting project property: ejbsql -> sql
Setting project property: connector -> connector
Setting project property: connectorsql -> sql
 [property] Loading Environment myenv.

Total time: 1 minute 38 seconds

=============================================================
Finally, here is what I have on my command prompt window after I close the 
error message window:

================
C:\j2eetutorial\examples>ant converter
Buildfile: build.xml

init:

BUILD FAILED

java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Property.loadEnvironment
(Property.java:
253)
        at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
        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)

Total time: 2 seconds
C:\j2eetutorial\examples>
================

Sincerely,
Lakshmi.

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


Mime
View raw message