You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brian Millett <bp...@ec-group.com> on 2004/02/16 20:13:07 UTC

cocoon with j2sdk 1.5b?

Hi, any one get cocoon to compile or run with j2sdk 1.5.0-beta?  I get:

2004-02-16 11:40:34 StandardWrapperValve[Cocoon]: Servlet.service() for
servlet Cocoon threw 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)
...
[snip of very long stack trace]

when I try to access cocoon via the browser.  When I try to compile a
fresh CVS CO at 1:00pm CDT 02-16-04, I get:

shaka: ./build.sh webapp
 
Apache Cocoon Build System
--------------------------
Buildfile: build.xml
 
init-tasks:
Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/tools/
anttasks
Compiling 2 source files to /home/bpm/compile_area/cvs_xml-cocoon/
cocoon-2.1/tools/anttasks
javac: source release 1.4 requires target release 1.4
 
BUILD FAILED

-- 
Brian Millett  -  Technologist Rex 
"There comes a time when you look into the mirror...and you realize 
 that what you see is all you will ever be and you accept it. Or you 
 kill yourself. Or you stop looking into mirrors." 
   -- Londo, "Chrysalis"


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: cocoon with j2sdk 1.5b?

Posted by Reinhard Poetz <re...@apache.org>.
From: Brian Millett

<snip>

> > > 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?
<snip/>

I think so.
You can try to run Ant with JDK1.3 or JDK1.4. Have a look at the
<javac>-task which provides the possibility to set the compiler
explicitly.

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: cocoon with j2sdk 1.5b?

Posted by Brian Millett <bp...@ec-group.com>.
On Tue, 2004-02-17 at 17:45 +0100, Reinhard Poetz wrote:

> > -----Original Message-----
> > From: Brian Millett [mailto:bpm@ec-group.com] 
> > Sent: Tuesday, February 17, 2004 3:11 PM
> > To: users@cocoon.apache.org
> > 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: cocoon with j2sdk 1.5b?

Posted by Reinhard Poetz <re...@apache.org>.

> -----Original Message-----
> From: Brian Millett [mailto:bpm@ec-group.com] 
> Sent: Tuesday, February 17, 2004 3:11 PM
> To: users@cocoon.apache.org
> 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.

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon with j2sdk 1.5b?

Posted by Brian Millett <bp...@ec-group.com>.
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.

-- 

Brian Millett  -  Technologist Rex

"This is like being nibbled to death by...um...pah... What are those
Earth creatures called? Feathers, long bill, webbed feet, go `quack`."
'Cats.'

   -- Londo and Vir, "Chrysalis"


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon with j2sdk 1.5b?

Posted by Antonio Gallardo <ag...@agssa.net>.
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 ;-)

Best Regards,

Antonio Gallardo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org