Thanks James, I'm about to commit an updated build-webbaps.xml file. It
seems to solve my problem on 1.4.1_02.

According to the Ant manual:
reloadstylesheet - Controls whether the stylesheet transformer is created
anew for every transform operation. If you set this to true, performance may
suffer, but you may work around a bug in certain Xalan-J versions. Default
is false. Since Ant 1.5.2.

http://ant.apache.org/manual/CoreTasks/style.html


Setting this to true, appears to work and it's not much slower. Give it a
whirl.

Steve


> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: September 10, 2003 6:03 PM
> To: 'Struts Developers List'
> Subject: RE: XHTML Web site updates
>
>
> Here's my attempt:
>
>
> Buildfile: build.xml
>
> init:
>      [echo] --------- jakarta-struts 1.2-dev ---------
>
>      [echo] java.class.path =
> C:\j2sdk1.4.1_02\lib\tools.jar;D:\home\jmitchell\apache_home\apache-ant-
> 1.5.3-1\lib\xml-apis.jar;D:\home\jmitchell\apache_home\apache-ant-1.5.3-
> 1\lib\xercesImpl.jar;D:\home\jmitchell\apache_home\apache-ant-1.5.3-1\li
> b\optional.jar;D:\home\jmitchell\apache_home\apache-ant-1.5.3-1\lib\juni
> t.jar;D:\home\jmitchell\apache_home\apache-ant-1.5.3-1\lib\ant.jar;
>      [echo] java.home = C:\j2sdk1.4.1_02\jre
>      [echo] user.home = C:\Documents and Settings\jmitchell
>
> prepare.dist:
>
> prepare.library:
>      [copy] Copying 1 file to
> D:\home\jmitchell\cvs\jakarta-struts\target\library\classes\META-INF
>
> compile.library:
>     [javac] Compiling 35 source files to
> D:\home\jmitchell\cvs\jakarta-struts\target\library\classes
>
> ...
> ...
> <snip/>
> ...
> ...
>
>
> static:
>      [echo] Processing webapp validator
>
> compile:
>      [echo] Processing webapp validator
>     [javac] Compiling 3 source files to
> D:\home\jmitchell\cvs\jakarta-struts\target\validator\WEB-INF\classes
>      [copy] Copying 3 files to
> D:\home\jmitchell\cvs\jakarta-struts\target\validator\WEB-INF\classes
>
> compile.docs:
>     [style] Transforming into
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation
>     [style] Processing
> D:\home\jmitchell\cvs\jakarta-struts\doc\acquiring.xml to
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation\acquiring.html
>     [style] Loading stylesheet
> D:\home\jmitchell\cvs\jakarta-struts\doc\stylesheets\struts.xsl
>     [style] Processing
> D:\home\jmitchell\cvs\jakarta-struts\doc\helping.xml to
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation\helping.html
>     [style] Processing
> D:\home\jmitchell\cvs\jakarta-struts\doc\index.xml to
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation\index.html
>     [style] Processing
> D:\home\jmitchell\cvs\jakarta-struts\doc\kickstart.xml to
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation\kickstart.html
>     [style] Processing
> D:\home\jmitchell\cvs\jakarta-struts\doc\learning.xml to
> D:\home\jmitchell\cvs\jakarta-struts\target\documentation\learning.html
>     [style] : Fatal Error! java.lang.NullPointerException Cause:
> java.lang.NullPointerException
>     [style] Failed to process
> D:\home\jmitchell\cvs\jakarta-struts\doc\learning.xml
>
> BUILD FAILED
> file:D:/home/jmitchell/cvs/jakarta-struts/build-webapps.xml:222: Fatal
> error during transformation
>
> Total time: 35 seconds
>
> Tool completed successfully
>
>
>
>
>
> I'll post back after I run it again in debug.......see if I can track
> this thing down.
>
>
>
> --
> James Mitchell
> Software Engineer / Struts Evangelist
> http://www.struts-atlanta.org
> 678.910.8017
> AIM:jmitchtx
>
>
>
>
> > -----Original Message-----
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 10, 2003 8:39 PM
> > To: Struts Developers List
> > Subject: RE: XHTML Web site updates
> >
> >
> > The look and feel you end up with should be almost identical
> > to the existing
> > site.
> > I've uploaded a copy for comparison at
> > http://www.ninsky.com/struts/site/
> >
> > If the build is failing then the CSS file won't be copied
> > over to the target
> > directory so that's why you don't see the formatting.
> >
> > As to why it's failing - I'm pretty sure this is a JDK bug, though I'm
> > surprised you're still having problems on 1.4.2_01. What's
> > the policy on
> > accommodating JDK bugs? I'll try to find a workaround.
> >
> > It would be useful if someone else could run it to see if a
> > pattern emerges.
> >
> > Steve
> >
> >
> > > -----Original Message-----
> > > From: Ted Husted [mailto:[EMAIL PROTECTED]
> > > Sent: September 10, 2003 3:42 PM
> > > To: Struts Developers List
> > > Subject: Re: XHTML Web site updates
> > >
> > >
> > > I've installed Sun 1.4.2_01 but I'm still having trouble getting the
> > > site to render.
> > >
> > > I am in favor of rendering the site in valid XHTML, but we
> > need it to
> > > work with what people will commonly have installed. If the
> > site can't be
> > > rendered using the standard "Java 1.2 or later" advice,
> > then I'll have
> > > to ask that the stylesheet changes be withdrawn.
> > >
> > > Also, I don't know if my pages are rendering correctly, but
> > the ones I
> > > am seeing have a "Lynx" look and feel. I don't mind this
> > personally, but
> > > I do feel that we need to either retain the original layout
> > or migrate
> > > to Forrest or Maven. Something different is not what we are gong for
> > > right now. =:0)
> > >
> > > -Ted.
> > >
> > > Steve Raeburn wrote:
> > > > Sorry, I'm getting my versions in a muddle. Here's the
> > correct state:
> > > >
> > > > Sun 1.4.2_01 - No problem
> > > > Sun 1.4.1_05 - Intermittent failures
> > > > Sun 1.4.1_02 - Intermittent failures
> > > > Sun 1.3.1    - No problem
> > > >
> > > > 2 many twos and ones :-)
> > > >
> > > > Steve
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to