我花了一个星期安装这个globus toolkit4.0,一直出现问题,原来是没有把axis解压后的所有目录拷贝到tomcat\webapps下,这是个失误,没有仔细读安装文档。
出现的问题是:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>cd %globus_location%
C:\gt4>ant -f share/globus_wsrf_common/tomcat/tomcat.xml deploySecureTomcat -d t
omcat.dir=%catalina_home%
Apache Ant version 1.8.1 compiled on April 30 2010
Buildfile: C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> C:\gt4\share\globus_wsrf_common\tomcat\
tomcat.xml
Setting ro project property: ant.file.type -> file
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml with URI = f
ile:/C:/gt4/share/globus_wsrf_common/tomcat/tomcat.xml
Setting ro project property: ant.project.default-target -> deployTomcat
Project base dir set to: C:\gt4\share\globus_wsrf_common\tomcat
+Target:
+Target: _baseTomcatDeploy
+Target: deployTomcat
+Target: redeployTomcat
+Target: deploySecureTomcat
+Target: redeploySecureTomcat
+Target: war
Adding reference: ant.LocalProperties
parsing buildfile jar:file:/C:/ANT-1.8.1/lib/ant.jar!/org/apache/tools/ant/antli
b.xml with URI = jar:file:/C:/ANT-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib
.xml from a zip file
Setting project property: env.GLOBUS_LOCATION -> ../../../
Setting project property: deploy.dir -> C:\gt4
Setting project property: abs.deploy.dir -> C:\gt4
Setting project property: webapp.name -> wsrf
Setting ro project property: ant.project.invoked-targets -> deploySecureTomcat,t
omcat.dir,C:\tomcat6.0
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `deploySecureTomcat' is [deploySecureTomcat]
Complete build sequence is [deploySecureTomcat, redeployTomcat, deployTomcat, re
deploySecureTomcat, _baseTomcatDeploy, war, ]
deploySecureTomcat:
Property "tomcat.dir" has not been set
Setting project property: webapp.dir -> ${tomcat.dir}/webapps/wsrf
Setting project property: webapp.webinf.dir -> ${tomcat.dir}/webapps/wsrf/WEB-IN
F
Setting project property: webapp.webinf.lib.dir -> ${tomcat.dir}/webapps/wsrf/WE
B-INF/lib
Setting ro project property: ant.file -> C:\gt4\share\globus_wsrf_common\tomcat\
tomcat.xml
Setting ro project property: ant.project.default-target -> deployTomcat
Setting ro project property: ant.project.invoked-targets -> deploySecureTomcat,t
omcat.dir,C:\tomcat6.0
Setting ro project property: ant.file.type -> file
Setting project property: user.language -> zh
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: awt.toolkit -> sun.awt.windows.WToolkit
Setting project property: java.class.version -> 49.0
Setting project property: env.GLOBUS_LOCATION -> ../../../
Setting project property: ant.core.lib -> C:\ANT-1.8.1\lib\ant.jar
Setting project property: sun.management.compiler -> HotSpot Client Compiler
Setting project property: webapp.name -> wsrf
Setting project property: user.country -> CN
Setting project property: sun.desktop -> windows
Setting project property: java.io.tmpdir -> C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: sun.arch.data.model -> 32
Setting project property: line.separator ->
Setting project property: sun.jnu.encoding -> GBK
Setting project property: sun.boot.library.path -> C:\Program Files\Java\jdk1.5.
0_09\jre\bin
Setting project property: webapp.dir -> ${tomcat.dir}/webapps/wsrf
Setting project property: java.awt.printerjob -> sun.awt.windows.WPrinterJob
Setting project property: user.name -> Administrator
Setting project property: path.separator -> ;
Setting project property: java.home -> C:\Program Files\Java\jdk1.5.0_09\jre
Setting project property: ant.library.dir -> C:\ANT-1.8.1\lib
Setting project property: user.dir -> C:\gt4
Setting project property: java.specification.version -> 1.5
Setting project property: webapp.webinf.lib.dir -> ${tomcat.dir}/webapps/wsrf/WE
B-INF/lib
Setting project property: file.separator -> \
Setting project property: ant.version -> Apache Ant version 1.8.1 compiled on Ap
ril 30 2010
Setting project property: java.class.path -> C:\ANT-1.8.1\lib\ant-launcher.jar;C
:\gt4\.\;C:\Program Files\Java\jdk1.5.0_09\lib\;C:\Program Files\Java\jdk1.5.0_0
9\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;C:\tomcat6.0\bin\;C
:\tomcat6.0\common\lib;C:\ANT-1.8.1\lib\ant-antlr.jar;C:\ANT-1.8.1\lib\ant-apach
e-bcel.jar;C:\ANT-1.8.1\lib\ant-apache-bsf.jar;C:\ANT-1.8.1\lib\ant-apache-log4j
.jar;C:\ANT-1.8.1\lib\ant-apache-oro.jar;C:\ANT-1.8.1\lib\ant-apache-regexp.jar;
C:\ANT-1.8.1\lib\ant-apache-resolver.jar;C:\ANT-1.8.1\lib\ant-apache-xalan2.jar;
C:\ANT-1.8.1\lib\ant-commons-logging.jar;C:\ANT-1.8.1\lib\ant-commons-net.jar;C:
\ANT-1.8.1\lib\ant-jai.jar;C:\ANT-1.8.1\lib\ant-javamail.jar;C:\ANT-1.8.1\lib\an
t-jdepend.jar;C:\ANT-1.8.1\lib\ant-jmf.jar;C:\ANT-1.8.1\lib\ant-jsch.jar;C:\ANT-
1.8.1\lib\ant-junit.jar;C:\ANT-1.8.1\lib\ant-launcher.jar;C:\ANT-1.8.1\lib\ant-n
etrexx.jar;C:\ANT-1.8.1\lib\ant-nodeps.jar;C:\ANT-1.8.1\lib\ant-swing.jar;C:\ANT
-1.8.1\lib\ant-testutil.jar;C:\ANT-1.8.1\lib\ant.jar;C:\Program Files\Java\jdk1.
5.0_09\lib\tools.jar
Setting project property: os.version -> 5.1
Setting project property: user.timezone ->
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.specification.name -> Java Platform API Specifica
tion
Setting project property: java.vm.specification.name -> Java Virtual Machine Spe
cification
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.endorsed.dirs -> C:\Program Files\Java\jdk1.5.0_0
9\jre\lib\endorsed
Setting project property: file.encoding.pkg -> sun.io
Setting project property: deploy.dir -> C:\gt4
Setting project property: java.runtime.name -> Java(TM) 2 Runtime Environment, S
tandard Edition
Setting project property: user.variant ->
Setting project property: java.runtime.version -> 1.5.0_09-b03
Setting project property: java.version -> 1.5.0_09
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: user.home -> C:\Documents and Settings\Administrator
Setting project property: java.vm.info -> mixed mode, sharing
Setting project property: os.arch -> x86
Setting project property: ant.home -> C:\ANT-1.8.1
Setting project property: webapp.webinf.dir -> ${tomcat.dir}/webapps/wsrf/WEB-IN
F
Setting project property: file.encoding -> GBK
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: sun.cpu.endian -> little
Setting project property: java.vm.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.awt.graphicsenv -> sun.awt.Win32GraphicsEnvironme
nt
Setting project property: sun.os.patch.level -> Service Pack 3
Setting project property: sun.boot.class.path -> C:\Program Files\Java\jdk1.5.0_
09\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_09\jre\lib\i18n.jar;C:\Program
Files\Java\jdk1.5.0_09\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_09\
jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_09\jre\lib\jce.jar;C:\Program Fi
les\Java\jdk1.5.0_09\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_09\jre\
classes
Setting project property: java.vm.version -> 1.5.0_09-b03
Setting project property: java.library.path -> C:\Program Files\Java\jdk1.5.0_09
\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\db_1\bin;C:\WINDO
WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ArcGIS\ArcSDE\o
ra10gexe\bin;C:\gt4\bin;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program Files\J
ava\jdk1.5.0_09\lib;C:\ANT-1.8.1\bin;C:\tomcat6.0\bin
Setting project property: os.name -> Windows XP
Setting project property: java.vendor.url.bug -> http://java.sun.com/cgi-bin/bug
report.cgi
Setting project property: java.ext.dirs -> C:\Program Files\Java\jdk1.5.0_09\jre
\lib\ext
Setting project property: sun.cpu.isalist -> pentium_pro+mmx pentium_pro pentium
+mmx pentium i486 i386 i86
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: abs.deploy.dir -> C:\gt4
Project base dir set to: C:\gt4\share\globus_wsrf_common\tomcat
[antcall] calling target(s) [_baseTomcatDeploy] in build file C:\gt4\share\glo
bus_wsrf_common\tomcat\tomcat.xml
Setting ro project property: ant.file -> C:\gt4\share\globus_wsrf_common\tomcat\
tomcat.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml with URI = f
ile:/C:/gt4/share/globus_wsrf_common/tomcat/tomcat.xml
Setting ro project property: ant.project.default-target -> deployTomcat
Project base dir set to: C:\gt4\share\globus_wsrf_common\tomcat
+Target:
+Target: _baseTomcatDeploy
+Target: deployTomcat
+Target: redeployTomcat
+Target: deploySecureTomcat
+Target: redeploySecureTomcat
+Target: war
Adding reference: ant.LocalProperties
Override ignored for property "env.GLOBUS_LOCATION"
Override ignored for property "deploy.dir"
Override ignored for property "abs.deploy.dir"
Override ignored for property "webapp.name"
Build sequence for target(s) `_baseTomcatDeploy' is [_baseTomcatDeploy]
Complete build sequence is [_baseTomcatDeploy, redeployTomcat, deployTomcat, red
eploySecureTomcat, deploySecureTomcat, war, ]
[antcall] Entering C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml...
Setting ro project property: ant.project.invoked-targets -> _baseTomcatDeploy
Build sequence for target(s) `_baseTomcatDeploy' is [_baseTomcatDeploy]
Complete build sequence is [_baseTomcatDeploy, redeployTomcat, deployTomcat, red
eploySecureTomcat, deploySecureTomcat, war, ]
_baseTomcatDeploy:
[fail] failing due to Must specify -Dtomcat.dir=<tomcat root>
[antcall] Exiting C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml.
BUILD FAILED
C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml:159: The following error occur
red while executing this line:
C:\gt4\share\globus_wsrf_common\tomcat\tomcat.xml:74: Must specify -Dtomcat.dir=
<tomcat root>
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
C:\gt4>