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]

Reply via email to