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]



JspC problem

2004-01-28 Thread Massimo Ferrari
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.






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


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



Fw: Tomcat 4.1.18 jspc problem.

2003-01-02 Thread Alexey Kozadaev
Hello everyone,

I'm experiencing a problem with jspc. It always returns
NullPointerException, no matter what .jsp file I compile. Although it works
thru ?jsp_precompile, unfortunately we have a very big web site where plenty
of jsp files and they are have certain, complex structured layout in
filesystem, so I think writing a script, that would connect to tomcat with
?jsp_precompile would not be a good idea.

I am using FreeBSD 4.6, Tomcat 4.1.18, j2sdk_1.4.1_01 on linux base.

Does anyone know is there still a way to work with jspc or jasper jspc on my
system???


 ==
UNIX is like a wighwam - No Gates, No Windows and Apache inside




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




Tomcat 4.1.18 jspc problem.

2002-12-27 Thread Alexey Kozadaev
Hello everyone,

I'm experiencing a problem with jspc. It always returns
NullPointerException, no matter what .jsp file I compile. Although it works
thru ?jsp_precompile, unfortunately we have a very big web site where plenty
of jsp files and they are have certain, complex structured layout in
filesystem, so I think writing a script, that would connect to tomcat with
?jsp_precompile would not be a good idea.

I am using FreeBSD 4.6, Tomcat 4.1.18, j2sdk_1.4.1_01 on linux base.

Does anyone know is there still a way to work with jspc or jasper jspc on my
system???


==
UNIX is like a wighwam - No Gates, No Windows and Apache inside



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




Tomcat 4.1.18 jspc problem.

2002-12-26 Thread Alexey Kozadaev
Hello everyone,

I'm experiencing a problem with jspc. It always returns
NullPointerException, no matter what .jsp file I compile. Although it works
thru ?jsp_precompile, unfortunately we have a very big web site where plenty
of jsp files and they are have certain, complex structured layout in
filesystem, so I think writing a script, that would connect to tomcat with
?jsp_precompile would not be a good idea.

I am using FreeBSD 4.6, Tomcat 4.1.18, j2sdk_1.4.1_01 on linux base.

Does anyone know is there still a way to work with jspc or jasper jspc on my
system???


==
UNIX is like a wighwam - No Gates, No Windows and Apache inside




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




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: 




jspc problem: precompilation inserts  character

2002-11-04 Thread Anthony Martin
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: 




Re: get blank pages when using precompiled JSPs (jspc problem?)

2002-08-20 Thread Eric Gilbertson

it turns out that the problem was simply that the JSP servlet was
not registered in the web.xml file being generated by jspc. simply
putting the servlet-mapping entry for jsps back in resolved the problem.

seems like a bug to me that jspc doesn't include this entry given that it
is required to run jsp derived servlets. also would have helped if tomcat
threw an exception under this case rather than returning a null JspFactory.

regards,

eric gilbertson


At 05:07 PM 8/16/2002 -0700, [EMAIL PROTECTED] wrote:
>Hello Tomcaters:
>
>can anyone tell me why a JSP that works when dynamically compiled
>would generate a blank page when statically compiled using jspc?
>the jsp class file is generated via the ant task listed below and packaged
>into a .war file. everything appears to build okay and yet when i hit the
>page  nothing is returned. i know that the class file is  hit because the
>return status is "200" and i see my debug statements
>  on stderr.
>
>the only differences between the statically and dynamically generated files
>are the packages, e.g. org.apache.jsp vs. com.secretseal and the class
>name, e.g. foobar vs foobar$jsp.  i suspect that the problem has to do with
>different runtime support for the two versions, e.g. for some reason the text
>generated by the statically compiled version is being directed to the bit 
>bucket.
>
>suggestions as to how to resolve this problem are greatly appreciated.
>
>sincerely,
>
>eric gilbertson
>[EMAIL PROTECTED]



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




Re: get blank pages when using precompiled JSPs (jspc problem?)

2002-08-19 Thread Eric Gilbertson

Hello Again:

I've traced my precompiled JSPs not responding problem down to the following
statement returning null:

 _jspxFactory = JspFactory.getDefaultFactory();

Since this a boiler plate jsp statement that does work when the JSPs are 
dynamically
compiled, it seems to me that there is a problem in my runtime environment 
that is
preventing the default factory from being set when the JSPs are statically 
compiled.
Any suggestions as to what could be causing this problem would be greatly 
appreciated.

Environment = Tomcat 4.0.4 on  Windows XP, ant compile task listed below.

TIA,

Eric Gilbertson
[EMAIL PROTECTED]


Ant task used to compile JSPs:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 




At 05:07 PM 8/16/2002 -0700, [EMAIL PROTECTED] wrote:
>Hello Tomcaters:
>
>can anyone tell me why a JSP that works when dynamically compiled
>would generate a blank page when statically compiled using jspc?
>the jsp class file is generated via the ant task listed below and packaged
>into a .war file. everything appears to build okay and yet when i hit the
>page  nothing is returned. i know that the class file is  hit because the
>return status is "200" and i see my debug statements
>  on stderr.
>
>the only differences between the statically and dynamically generated files
>are the packages, e.g. org.apache.jsp vs. com.secretseal and the class
>name, e.g. foobar vs foobar$jsp.  i suspect that the problem has to do with
>different runtime support for the two versions, e.g. for some reason the text
>generated by the statically compiled version is being directed to the bit 
>bucket.
>
>suggestions as to how to resolve this problem are greatly appreciated.
>
>sincerely,
>
>eric gilbertson
>[EMAIL PROTECTED]



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




get blank pages when using precompiled JSPs (jspc problem?)

2002-08-16 Thread Eric Gilbertson

Hello Tomcaters:

can anyone tell me why a JSP that works when dynamically compiled
would generate a blank page when statically compiled using jspc?
the jsp class file is generated via the ant task listed below and packaged
into a .war file. everything appears to build okay and yet when i hit the
page  nothing is returned. i know that the class file is  hit because the
return status is "200" and i see my debug statements
  on stderr.

the only differences between the statically and dynamically generated files
are the packages, e.g. org.apache.jsp vs. com.secretseal and the class
name, e.g. foobar vs foobar$jsp.  i suspect that the problem has to do with
different runtime support for the two versions, e.g. for some reason the text
generated by the statically compiled version is being directed to the bit 
bucket.

suggestions as to how to resolve this problem are greatly appreciated.

sincerely,

eric gilbertson
[EMAIL PROTECTED]



--
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:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




JSPC problem

2002-03-21 Thread Nicholls, Leon

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(DocumentBuilderFactory.
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.handleDirective(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: 




JspC problem on windows

2001-07-02 Thread brad . pardee

Hello,

I have a problem when I'm pre-compiling JSP files on windows that have 
the following line:

   <%@ include file="WizardHeader.jsp"%>

Which results in the error:

  2001-06-29 05:31:58 - error-the file '\foobar\TemplateSelect.jsp' 
generated the following parse exception: 
org.apache.jasper.compiler.CompileException: 
C:\Brad\foo\.\build\jakarta-tomcat-3.2.2\webapps\foo\TemplateSelect.jsp(
48,6) Bad file argument to include

Things work fine under linux.  The jsp files are in the same directory. 
 The result under windows is zero-length .java files and the JspC 
doesn't return an error code on exit so my ant build carries on as if 
everything is fine.  Anyone know what I can do to resolve these 
problems (besides the obvious "don't use windows").

-Brad






jspc problem

2001-02-13 Thread Barbulescu Octavian Marius



Hi,
 
I'm using Tomcat 4.0-m5 and I'm trying to 
precompile a jsp file with jspc tool.
Here is the output:
 
d:\java\apache\tomcat\bin>jspc -v10 -d 
D:\java\apache\tomcat\work\localhost\examples 
D:\java\apache\tomcat\webapps\examples\jsp\errorTracking\login.jspJASPER_HOME 
not set. Assuming parent directory.Using CLASSPATH: 
..\classes;..\lib\crimson.jar;..\lib\jasper.jar;..\lib\jaxp.jar;..\lib\mysql.jar;..\lib\namingfactory.jar;..\lib\servlet.jar2001-02-13 
01:44:40 - uriRoot implicitly set to 
"D:\java\apache\tomcat\webapps\examples"2001-02-13 01:44:40 - Adding jar 
D:\java\apache\tomcat\webapps\examples\WEB-INF\classes to my 
classpath2001-02-13 01:44:40 - Package name is: 
jsp.errorTracking2001-02-13 01:44:40 - Class file name is: 
D:\java\apache\tomcat\work\localhost\examples\jsp\errorTracking\_0002fjsp_0002ferrorTracking_0002flogin_0002ejsplogin.class2001-02-13 
01:44:40 - Java file name is: 
D:\java\apache\tomcat\work\localhost\examples\jsp\errorTracking\login.java2001-02-13 
01:44:40 - Class name is: login2001-02-13 01:44:40 - ERROR-the file 
'\jsp\errorTracking\login.jsp' generated the following general exception: 
java.util.EmptyStackException
 
It tried to find what the exception is thrown but I 
didn't succeded. 
Please help me!
 
eng. Barbulescu Octavian MariusJava 
DeveloperInVision RoFoisor 9, RO-1900 Timisoaratel: +40 56 284805; 
+40 95 523 965 (personal)fax: +40 56 284806www.invision.ro
 
 


jspc problem when including files (relative)

2001-01-19 Thread Ciot, Thierry



jspc is failing 
with: error-the file '\sub\Page3.jsp' generated the following parse exception: 
org.apache.jasper.compiler.CompileException: 
c:\tomcat321\webapps\test\sub\Page3.jsp(5,0) Bad file argument to 
include
 
In Page3.jsp I am 
including a file like this: <%@include 
file="../Inc2.jsp" %>
It appears that jspc 
does not know how to handle including files up relatively. Of course , when I access 
page3.jsp from a browser everything works fine; thus Tomcat knows how to deal 
with that situation; so I am inclined to think either there is a bug in jspc or 
there is a switch to jspc that I don't know how to use.
 
Can anyone 
help?
 
Thierry
 
PS: 
The test 
site structure is like this:
 
/test/
    
Page1.jsp
    
Page2.jsp
    
Inc2.jsp
 
    
/sub
    Inc1.jsp
    
Page3.jsp