Re: JspC problem

2004-01-28 Thread David Ramsey
I don't claim to be an Ant master but from first look, Ant appears
doing exactly what you have told it to do. You may want to look at the
jspC task documentation in the Ant manual. Additionally, I believe
destdir attribute is required, even if you specify uribase attribute.


See: http://ant.apache.org/manual/OptionalTasks/jspc.html


--- Massimo Ferrari <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm trying to precompile my jsps with the JspC ant task.
> The problem ist that jspc ignores my jsps directory structure when it
> generates the servlet files: the files are flattened.
> 
>  classpathref="jspc.classpath">
> 
> 
>package="jsps"
>  validateXml="false"
>  uriroot="${app.home}/web"
>  webXmlFragment="${app.home}/generated_web.xml"
>  outputDir="${app.home}/jsps" />
> 
> All the jsps are generated to ${app.home}/jsps. Jsps with the same
> name
> but originally in different folders are overwritten.
> Thank you for any help!
> Massimo
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: jspc problem: precompilation inserts  character

2002-11-04 Thread peter lin

you need to replace the pound character with the equivalent HTML code.

as in replace with "£". that should work.

peter



Anthony Martin wrote:
> 
> Hi,
> 
>  I have hit a very interesting problem with precompilation of jsp files
> using the jspc.bat which is distributed with Tomcat.
> 
>  In trying to precompile a jsp that includes the 'pound' character (£),
> jspc.bat generates a .java file which prefixes the 'pound' character with an
> 'A-circumflex' character (Â).  This happens consistently, despite using very
> minimal jsp content.
> 
> E.g. the following jsp code:
> 
> 
> 
> £
> 
> 
> 
> ... produces:
> 
> out.write("\r\n\r\n£\r\n\r\n\r\n");
> 
> Just in case it's relevant, I called jsp with the following parameters:
> 
> C:\Tomcat_Home\bin\jspc.bat -d C:\temp\jspctest -p jsp -webinc
> C:\temp\Jsp_Home\WEB-INF\theXML.xml -webapp C:\temp\Jsp_Home
> 
> Please help!
> 
> 
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JSPC problem

2002-03-21 Thread Larry Isaacs

A bug prevents JSPC from working in Tomcat 3.3(a). This
has been fixed in Tomcat 3.3.1-rc1 and the
"nightly" Tomcat 3.3.x.  Tomcat 3.3.x has the advantage
of outputting the correct slash ('/' instead of '\') in the
generated web.xml file for  elements on
Windows systems.

Cheers,
Larry

> -Original Message-
> From: Nicholls, Leon [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 21, 2002 10:25 AM
> To: '[EMAIL PROTECTED]'
> Subject: JSPC problem
> 
> 
> Hi
> I have been trying to use the java precompiler for Tomcat 
> 3.3a. However, I
> am getting weird error messages.
> It seems to complain about not finding the crimson xml parser, but the
> crimson.jar file is located under 
> jakarta-tomcat/lib/container. The crimson
> parser seems to have registered itself as a parser, but then 
> the parser
> cannot be instantiated!?
> 
> "c:\jdk1.3\bin\java"  
> -Dtomcat.home="c:\PROGRA~1\APACHE~1\jakarta-tomcat"
> org.apache.tomcat.startup.Main jspc -p "" -webapp
> s:\wsx\release\build\subscriber
> Guessed home=C:\Program Files\Apache Group\jakarta-tomcat
> java.lang.reflect.InvocationTargetException:
> java.lang.reflect.InvocationTargetException:
> javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crims
> on.jaxp.DocumentBuilderFactoryImpl not found
> at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
> uilderFactory.
> java:145)
> at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(Unknown
> Source)
> at 
> org.apache.jasper.compiler.JspUtil.parseXMLDoc(Unknown Source)
> at 
> org.apache.jasper.compiler.TagLibraryInfoImpl.(Unknown
> Source)
> at
> org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> ve(Unknown
> Source)
> at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown
> Source)
> at org.apache.jasper.compiler.Parser$Directive.accept(Unknown
> Source)
> at org.apache.jasper.compiler.Parser.parse(Unknown Source)
> at org.apache.jasper.compiler.Parser.parse(Unknown Source)
> at org.apache.jasper.compiler.Parser.parse(Unknown Source)
> at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> at org.apache.jasper.JspC.parseFile(Unknown Source)
> at org.apache.jasper.JspC.parseFiles(Unknown Source)
> at org.apache.jasper.JspC.main(Unknown Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.tomcat.util.IntrospectionUtils.callMain(Unknown
> Source)
> at org.apache.tomcat.startup.Jspc.execute(Unknown Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at 
> org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.main(Unknown Source)
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: