The jasper2 taskdef should not need your own lib directory - it should load with the 
tomcat and jdk libs.  If so then it is using tomcat's xerces and all should be ok.  
Also it looks like you have some "\" in the wrong place.  The build directory that the 
URI root points 2 should be the root directory of you exploded web app - in this case 
"build"

It is better when debugging to use all absolute references then create variables - you 
seem to reference what should be the same directory structure with 
"${basedir}/web/WEB-INF/lib,  "${WEB-INF.dir}/src", and "c:\projects\salesweb\build".  
It helps when trying to figure out what you are trying to do.

If you are creating an exploded war then after you compile and move your files you can 
compile the jsps in the same directory - the only cleanup would be to add the 
generated xml into your web.xml.

Cal

-----Original Message-----
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 15:33
To: Struts Users Mailing List
Subject: Re: Eclipse + Ant + precompile -> Tomcat

Ok I solved that question its looking for an exact directory.  But now I'm
getting this error when trying to build:
java.lang.NoClassDefFoundError:
org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispatcher

And I made sure that my path has the newest versions of the xerces jars...
any ideas?

Here is my build file

<target name="jspc">

    <delete dir="${WEB-INF.dir}/src"/>

<taskdef name="jasper2" classname="org.apache.jasper.JspC" >

<classpath id="jspc.classpath">

<pathelement location="${java.home}/../lib/tools.jar"/>

<fileset dir="${tomcat.home}/server/lib">

<include name="*.jar"/>

</fileset>

<fileset dir="${tomcat.home}/common/lib">

<include name="*.jar"/>

</fileset>

<fileset dir="${basedir}/web/WEB-INF/lib">

<include name="*.jar"/>

</fileset>

</classpath>

</taskdef>

<mkdir dir="${WEB-INF.dir}/src"/>

<jasper2 validateXml="false"

uriroot="c:\projects\salesweb\build"

webXmlFragment="c:\projects\salesweb\uild\WEB-INF\generated_web.xml"

outputDir="c:\projects\salesweb\uild\WEB-INF\src" />

</target>



the xerces jars are in eveyr one of the fileset include dirs.. what gives?

-David

----- Original Message -----
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 1:10 PM
Subject: Re: Eclipse + Ant + precompile -> Tomcat


> What values are expected to go into
> <jasper2 validateXml="false"
>
> uriroot="/salesweb"
>
> webXmlFragment="${WEB-INF.dir}/generated_web.xml"
>
> outputDir="${WEB-INF.dir}/src" />
>
> the uriroot, webXMLFragment, and outputDir?  Are they the full path names
on
> the local file system? like c:\whatever or /home/whatever  or is it web
> context path stuff like /salesweb/WEB-INF or whatever?
>
> Thanks
>
> David
>
> ----- Original Message -----
> From: "Ruth, Brice" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 31, 2003 12:42 PM
> Subject: Re: Eclipse + Ant + precompile -> Tomcat
>
>
> > Yep, the same setup works in that situation - and the way Tomcat knows
> > to use the precompiled JSPs is that special entries for each of the
> > servlets generated from jasper (the JSP compiler) are entered into the
> > web.xml file (this, of course, can be automated).
> >
> > David Erickson wrote:
> >
> > >We currently have an ant function that just builds the directory
> structure
> > >of a deployed webapp then points tomcat at that build directory.. is
> there
> > >anyway to precompile the jsps in this situation without creating a war?
> And
> > >how does tomcat know to goto the precompiled files when a request for
the
> > >actual jsp comes in?
> > >thanks,
> > >David
> > >
> > >----- Original Message -----
> > >From: "Ruth, Brice" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Sent: Friday, October 31, 2003 10:45 AM
> > >Subject: Re: Eclipse + Ant + precompile -> Tomcat
> > >
> > >
> > >
> > >
> > >>Thanks for the pointer to your blog, between that and the example
> > >>provided by the Tomcat docs, I was able to get what I was looking
for -
> > >>fully automated pre-compiling & deploying. Excellent!
> > >>
> > >>Holman, Cal wrote:
> > >>
> > >>
> > >>
> > >>>I am using tomcat 5.0.12 and struts 1.1 with tiles and have been
> > >>>
> > >>>
> > >successful in precompiling.  The tomcat documentation has a pretty good
> > >example.  The hard part is translating someone else's directory
structure
> > >into yours to apply all the examples.  I posted my solution to my web
> site
> > >at http://www.calandva.com/holmansite/do/blog/blogging
> > >
> > >
> > >>>I also use Eclipse for development but due to the number of steps and
> > >>>
> > >>>
> > >substitution in the various output xml and properties files still
create
> the
> > >final product with ant - invoked in Eclipse or externally.  Not sure I
> > >explained it well enough and I left off my compile and war targets -
let
> me
> > >know if you have questions.
> > >
> > >
> > >>>Cal
> > >>>
> > >>>-----Original Message-----
> > >>>From: Ruth, Brice [mailto:[EMAIL PROTECTED]
> > >>>Sent: Friday, October 31, 2003 10:14
> > >>>To: Struts Users Mailing List
> > >>>Subject: Eclipse + Ant + precompile -> Tomcat
> > >>>
> > >>>I've been doing some googling on having a webapp precompiled when
> > >>>deployed to Tomcat via an Ant task and I'm a bit intimidated with
> what's
> > >>>involved. Has anyone out there done this? Right now, I have an Ant
> build
> > >>>setup as an external build in Eclipse that does a variety of things,
> > >>>including building, packing up my WAR, and installing this WAR to
> Tomcat
> > >>>using the catalina-ant "install" command that uses the management URL
> > >>>and an external context file to install the webapp in a (local)
running
> > >>>Tomcat instance.
> > >>>
> > >>>I'd like to follow-up the install with a directive to Tomcat to
> > >>>precompile the JSPs in the web application - does anyone have an Ant
> > >>>task that I could adapt to this purpose that they'd be willing to
> share?
> > >>>
> > >>>Thanks!
> > >>>
> > >>>--
> > >>>Brice D. Ruth
> > >>>Sr. IT Analyst
> > >>>Fiskars Brands, Inc.
> > >>>
> > >>>
> > >>>
> > >>>---------------------------------------------------------------------
> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>Learn more about Paymentech's payment processing services at
> > >>>
> > >>>
> > >www.paymentech.com
> > >
> > >
> > >>>THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any
attachments
> > >>>
> > >>>
> > >are proprietary and confidential information intended only for the use
of
> > >the recipient(s) named above.  If you are not the intended recipient,
you
> > >may not print, distribute, or copy this message or any attachments.  If
> you
> > >have received this communication in error, please notify the sender by
> > >return e-mail and delete this message and any attachments from your
> > >computer.
> > >
> > >
> > >>>---------------------------------------------------------------------
> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>--
> > >>Brice D. Ruth
> > >>Sr. IT Analyst
> > >>Fiskars Brands, Inc.
> > >>
> > >>
> > >>
> > >>---------------------------------------------------------------------
> > >>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]
> > >
> > >
> > >
> >
> > --
> > Brice D. Ruth
> > Sr. IT Analyst
> > Fiskars Brands, Inc.
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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

Reply via email to