On Tue, 2004-02-17 at 17:45 +0100, Reinhard Poetz wrote:
> > -----Original Message-----
> > From: Brian Millett [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 17, 2004 3:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: cocoon with j2sdk 1.5b?
> >
> >
> > On Mon, 2004-02-16 at 18:55 -0600, Antonio Gallardo wrote:
> >
> >
> > > This is correct your current version was compiled for 1.4 and since
> > > 1.5 is still Beta maybe there are some issues.
> > >
> > > The problems with compiling are related to the VM checking inside
> > > Cocoon. I think if you want to build a test You will need to change
> > > some files in cocoon-2.1/tools/targets dir. See: init-build.xml on
> > > line 16:
> > >
> > > <!-- Detecting the current jvm -->
> > > <condition property="target.vm" value="1.4">
> > > <equals arg1="1.4" arg2="${ant.java.version}"/>
> > > </condition>
> > > <condition property="target.vm" value="1.3">
> > > <not>
> > > <equals arg1="1.4" arg2="${ant.java.version}"/>
> > > </not>
> > > </condition>
> > >
> > > And changes this code to work with 1.5
> > >
> > > AFAIK one of the improvements in Ant 1.6.1 (currently in Cocoon
> > > 2.1.5-dev
> > > CVS) is that can work with 1.5. Almost this is said in the
> > release notes
> > > :-D
> > >
> > > Hope this would help and plase comment about your archievements ;-)
> > Ok, did this:
> > <!-- Detecting the current jvm -->
> > <condition property="target.vm" value="1.5">
> > <equals arg1="1.5" arg2="${ant.java.version}"/>
> > </condition>
> > <condition property="target.vm" value="1.4">
> > <not>
> > <equals arg1="1.5" arg2="${ant.java.version}"/>
> > </not>
> > </condition>
> > <condition property="target.vm" value="1.3">
> > <not>
> > <equals arg1="1.4" arg2="${ant.java.version}"/>
> > </not>
> > </condition>
> >
> > and then got this:
> >
> > localhost: ./build.sh webapp
> >
> > Apache Cocoon Build System
> > --------------------------
> > Buildfile: build.xml
> >
> > prepare:
> > ======================================================================
> > Apache Cocoon 2.1.5-dev [1999-2004]
> > ======================================================================
> > Building with Apache Ant version 1.6.1 compiled on February 12 2004
> > ----------------------------------------------------------------------
> > Using build file
> > /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build.
> > xml
> > ----------------------------------------------------------------------
> > Compiler options:
> > - debug ......... [on]
> > - optimize ...... [on]
> > - deprecation ... [off]
> > ======================================================================
> > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/
> > cocoon-2.1.5-dev
> >
> > compile-core:
> > Copying 39 files to /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/
> > build/cocoon-2.1.5-dev/classes
> > Copied 77 empty directories to 41 empty directories under
> > /home/bpm/
> > compile_area/cvs_xml-cocoon/cocoon-2.1/build/cocoon-2.1.5-dev/classes
> > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/
> > cocoon-2.1.5-dev/mocks
> > Compiling 1 source file to
> > /home/bpm/compile_area/cvs_xml-cocoon/cocoon-
> > 2.1/build/cocoon-2.1.5-dev/mocks
> > Compiling 561 source files to /home/bpm/compile_area/cvs_xml-cocoon/
> > cocoon-2.1/build/cocoon-2.1.5-dev/classes
> >
> > compile-deprecated:
> > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/
> > cocoon-2.1.5-dev/deprecated
> > Processing: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/src/
> > deprecated/conf/deprecated.xroles
> > Writing:
> > /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/cocoon-
> > 2.1.5-dev/classes/org/apache/cocoon/cocoon.roles
> >
> > BUILD FAILED
> > java.lang.ExceptionInInitializerError
> >
> > Total time: 18 seconds
> >
> >
> > Is there a way to see what file it was compiling when it died?
> >
> > Thanks.
>
> Try to start Ant with the "verbose" parameter:
>
> ant -verbose
>
> But usually Ant shows the complete error message of build failures.
Cool, is this an ant problem?
compile-deprecated:
Processing: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/src/
deprecated/conf/deprecated.xroles
Writing: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/cocoon-
2.1.5-dev/classes/org/apache/cocoon/cocoon.roles
BUILD FAILED
java.lang.ExceptionInInitializerError
at org.apache.tools.ant.Project.executeTarget(Project.java:1224)
at org.apache.tools.ant.Project.executeTargets(Project.
java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: java.lang.ExceptionInInitializerError
at org.apache.xml.serializer.ToStream.<init>(ToStream.java:152)
at org.apache.xml.serializer.ToXMLStream.<init>(ToXMLStream.
java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.
java:415)
at java.lang.Class.newInstance0(Class.java:322)
at java.lang.Class.newInstance(Class.java:275)
at org.apache.xml.serializer.SerializerFactory.getSerializer
(SerializerFactory.java:130)
at org.apache.xalan.transformer.TransformerIdentityImpl.
createResultContentHandler(TransformerIdentityImpl.java:251)
at org.apache.xalan.transformer.TransformerIdentityImpl.
transform(TransformerIdentityImpl.java:315)
at XConfToolTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.
java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: "be found
at http://www.iana.org/assignments/character-sets"
at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:446)
at java.lang.Integer.valueOf(Integer.java:525)
at java.lang.Integer.decode(Integer.java:903)
at org.apache.xml.serializer.Encodings.loadEncodingInfo
(Encodings.java:422)
at org.apache.xml.serializer.Encodings.<clinit>(Encodings.
java:458)
... 22 more
--- Nested Exception ---
java.lang.ExceptionInInitializerError
at org.apache.xml.serializer.ToStream.<init>(ToStream.java:152)
at org.apache.xml.serializer.ToXMLStream.<init>(ToXMLStream.
java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.
java:415)
at java.lang.Class.newInstance0(Class.java:322)
at java.lang.Class.newInstance(Class.java:275)
at org.apache.xml.serializer.SerializerFactory.getSerializer
(SerializerFactory.java:130)
at org.apache.xalan.transformer.TransformerIdentityImpl.
createResultContentHandler(TransformerIdentityImpl.java:251)
at org.apache.xalan.transformer.TransformerIdentityImpl.
transform(TransformerIdentityImpl.java:315)
at XConfToolTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.
java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.
java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: java.lang.NumberFormatException: For input string: "be found
at http://www.iana.org/assignments/character-sets"
at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:446)
at java.lang.Integer.valueOf(Integer.java:525)
at java.lang.Integer.decode(Integer.java:903)
at org.apache.xml.serializer.Encodings.loadEncodingInfo
(Encodings.java:422)
at org.apache.xml.serializer.Encodings.<clinit>(Encodings.
java:458)
... 22 more
--
Brian Millett - Technologist Rex
"If the primates that we came from had known that someday politicians
would come out of the...the gene pool, they'd a stayed up in the trees
and written evolution off as a bad idea. Hell, I always thought the
opposable thumb was overrated."
-- Sheridan, "A Distant Star"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]