You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2008/09/18 18:58:39 UTC

JspC woes in Tomcat 6 (Urgent)

Hi,

Just upgraded my Tomcat from 5.5 to 6.0 and noticed that my JspC task in build.xml is no longer working. The documentation for 6.0 quote is below, but with 6.0 there seems to be no such thing as server/lib and common/lib, so something is not right. Could someone plese tell me how to fix this?

Thanks,

Dola

  <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
      <classpath>
          <pathelement location="${java.home}/../lib/tools.jar"/>
          <fileset dir="${ENV.CATALINA_HOME}/server/lib">
              <include name="*.jar"/>
          </fileset>
          <fileset dir="${ENV.CATALINA_HOME}/common/lib">
              <include name="*.jar"/>
          </fileset>
          <path refid="myjars"/>
       </classpath>
  </taskdef>



      

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JspC woes in Tomcat 6 (Urgent)

Posted by Dola Woolfe <do...@yahoo.com>.
Thank you!


--- On Thu, 9/18/08, Jess Holle <je...@ptc.com> wrote:

> From: Jess Holle <je...@ptc.com>
> Subject: Re: JspC woes in Tomcat 6 (Urgent)
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Cc: "Tom Cat" <to...@jakarta.apache.org>
> Date: Thursday, September 18, 2008, 2:21 PM
> Try something like
> 
>     <taskdef
> classname="org.apache.jasper.JspC"
> name="jasper2" >
>       <classpath id="jspc.classpath">
>         <pathelement
> location="${java.home}/../lib/tools.jar"/>
>         <fileset dir="${tomcatHome}/bin">
>           <include name="*.jar"/>
>         </fileset>
>         <pathelement
> location="${tomcatHome}/lib"/>
>         <fileset dir="${tomcatHome}/lib">
>           <include name="*.jar"/>
>         </fileset>
>       </classpath>
>     </taskdef>
> 
> Dola Woolfe wrote:
> > Hi,
> >
> > Just upgraded my Tomcat from 5.5 to 6.0 and noticed
> that my JspC task in build.xml is no longer working. The
> documentation for 6.0 quote is below, but with 6.0 there
> seems to be no such thing as server/lib and common/lib, so
> something is not right. Could someone plese tell me how to
> fix this?
> >
> > Thanks,
> >
> > Dola
> >
> >   <taskdef
> classname="org.apache.jasper.JspC"
> name="jasper2" >
> >       <classpath>
> >           <pathelement
> location="${java.home}/../lib/tools.jar"/>
> >           <fileset
> dir="${ENV.CATALINA_HOME}/server/lib">
> >               <include name="*.jar"/>
> >           </fileset>
> >           <fileset
> dir="${ENV.CATALINA_HOME}/common/lib">
> >               <include name="*.jar"/>
> >           </fileset>
> >           <path refid="myjars"/>
> >        </classpath>
> >   </taskdef>
> >
> >
> >
> >       
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> users-help@tomcat.apache.org
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JspC woes in Tomcat 6 (Urgent)

Posted by Jess Holle <je...@ptc.com>.
Try something like

    <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
      <classpath id="jspc.classpath">
        <pathelement location="${java.home}/../lib/tools.jar"/>
        <fileset dir="${tomcatHome}/bin">
          <include name="*.jar"/>
        </fileset>
        <pathelement location="${tomcatHome}/lib"/>
        <fileset dir="${tomcatHome}/lib">
          <include name="*.jar"/>
        </fileset>
      </classpath>
    </taskdef>

Dola Woolfe wrote:
> Hi,
>
> Just upgraded my Tomcat from 5.5 to 6.0 and noticed that my JspC task in build.xml is no longer working. The documentation for 6.0 quote is below, but with 6.0 there seems to be no such thing as server/lib and common/lib, so something is not right. Could someone plese tell me how to fix this?
>
> Thanks,
>
> Dola
>
>   <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
>       <classpath>
>           <pathelement location="${java.home}/../lib/tools.jar"/>
>           <fileset dir="${ENV.CATALINA_HOME}/server/lib">
>               <include name="*.jar"/>
>           </fileset>
>           <fileset dir="${ENV.CATALINA_HOME}/common/lib">
>               <include name="*.jar"/>
>           </fileset>
>           <path refid="myjars"/>
>        </classpath>
>   </taskdef>
>
>
>
>       
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org