04256: | ANT/Java parser errors in linux and unix |
Category: Demo Status: ClosedSeverity: MEDIUM Reported against release: 0.8.2 Fixed in release: 0.9
PROBLEM:Ant build commands will not work on linux and solaris. The parser cannot
decipher the first 6 lines of code in build.xml
For example: HelloWorldProvider_im was installed on ow-Solaris.
I changed directory to
usr/local/HelloWorldProvider_im-0.1/src/
com/mot/openwings/demo/helloworld/provider
and used the ant command.
The following build errors were generated.
# ant
Buildfile: build.xml
BUILD FAILED
java.lang.InternalError
at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2421)
at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2390)
at com.sun.xml.parser.Parser.maybeEntityDecl(Parser.java:2301)
at com.sun.xml.parser.Parser.maybeMarkupDecl(Parser.java:1181)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1113)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at org.apache.tools.ant.ProjectHelper.parse
(ProjectHelper.java:117)
at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)
-- Temporary Solution --
The following code was eliminated in the build.xml file:
%IncludeBuildEnv;
]>
and this code was replaced with
I also copied code existing in buildEnv.xml into this build.xml file
because buildEnv.xml could not be included. And I removed
&IncludeBuildEnv;
The new build.xml file is attached.
Ant now works successfully on ow-Solaris
A final, long-term solution must be determined.ANALYSIS:The soultion is to remove a leading path separator at the begining
of the build file. So line 4 of build.xml
was changed to
ALSO environment variables need to be checked on linux and solaris;
specifically JAVA_HOME and ANT_HOME.
See AZHay04123 InstallAnywhere installer does not set both path and
PATH variables on unix. |