DO NOT REPLY [Bug 32261] - Specify Destination of Merged web.xml from JspC Task

2004-11-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32261.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32261


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Priority|P2  |P5




--- Additional Comments From [EMAIL PROTECTED]  2004-11-19 16:40 ---
I like the current behavior, because it allows checking in the middle before 
copying.  I think this feature request is bloat.  So I'm not going to do it 
myself, and I'm bumping its priority down.  If no one else volunteers to do it 
over the next month or two, this item will be closed as WONTFIX.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32261] - Specify Destination of Merged web.xml from JspC Task

2004-11-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32261.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32261





--- Additional Comments From [EMAIL PROTECTED]  2004-11-19 19:24 ---
This feature would be option, that's for sure.  I've since figured out how to
solve my problem with a bunch of Ant code, so I don't need this.  Feel free to
close it, though I still feel it would be a useful addition.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32261] - Specify Destination of Merged web.xml from JspC Task

2004-11-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32261.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32261


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2004-11-19 21:27 ---
OK, cool.  If you want to post your Ant code, and it's nice and generic, we can 
add it to the jasper how-to page.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32261] New: - Specify Destination of Merged web.xml from JspC Task

2004-11-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32261.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32261

   Summary: Specify Destination of Merged web.xml from JspC Task
   Product: Tomcat 5
   Version: 5.0.27
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


It would be really nice to be able to specify the destination of the merged 
web.xml from the JspC task.

I think I could optimize the way the JspC task and the War task interact.  I'd
like to minimize the amount of copying I have to do, and I think I can help the
situation by specifying where to write the new web.xml after merging.

Currently, it creates a web2.xml, writes to it, and then copies it over the old
web.xml.

Thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



jspc task

2004-09-02 Thread Martin Gainty
I am experiencing difficulties using the org.apache.jasper.JspC class within
jasper-compiler.jar
(any version)
Using :
  taskdef classname=org.apache.jasper.JspC name=jasper2
onerror=report
   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=${tomcat_home}/common/lib
 include name=commons-el.jar /
/fileset
   /classpath
  /taskdef
  jasper2 classpath=${classpath} verbose=9 package=jsp
uriroot=F:/United/jsp webXmlFragment=${build.dir}/generated_web.xml
outputDir=${webapp.dir}/${webapp.name}/WEB-INF/src/my/package /
  echoAfter jasper2 has completed..onto evaluation of log file/echo
  !--jspc srcdir=${jspdir} destdir=${jspdir}/java package=jsp
failonerror=yes
classpath=F:\Tomcat\TOMCAT~2.0\JAKART~1.0\common\lib\jasper-compiler.jar;${
jasper}/lib/jaxp/jaxp.jar;${jasper}/lib/servlet-2.2.jar;C:\ORACLE91\jdev\lib
\jdev.jar;C:\ORACLE91\jlib\zrclient.jar;C:\ANT_15\jakarta-ant-1.5\lib\rwrun.
jar;${tomcat_home}\common\lib\jasper-runtime.jar;${classpath};${tomcat_home}
\bin\commons-logging-api.jar--
  !--include name=**/*.jsp /--
  !--/jspc--

jspc task does not execute as all versions of jasper-compiler.jar
produce -v0 error
downloading the source for JspC.java
and commenting out the offending -v0 code within JspC.java
//if (tok.startsWith(-)) {
//throw new JasperException(Unrecognized option:  +
tok +
//.  Use -help for help.);
//}

I was able to  get build.xml to accept taskdef which defines the new and
improved JspC.class
the taskdef jasper2 compiler now works and actually attempts to compile jsp
I have identified in srcdir
the problem is that a JasperException is thrown which halts ant
Here is the error-
F:\United\scgdev\WebDev\eFACT\build.xml:166:
org.apache.jasper.JasperException: file:F:/United/jsp/clinicalProd.jsp(16,0)
File /./includes/header.html not found
 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:132)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:301)
 at org.apache.tools.ant.Target.performTasks(Target.java:328)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
 at org.apache.tools.ant.Main.runBuild(Main.java:632)
 at org.apache.tools.ant.Main.startAnt(Main.java:183)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: org.apache.jasper.JasperException:
file:F:/United/jsp/clinicalProd.jsp(16,0) File /./includes/header.html not
found
 at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:39)
 at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409
)
 at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:90)
 at
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
 at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
 at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:21
2)
 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:140)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:278)
 at org.apache.jasper.JspC.processFile(JspC.java:779)
 at org.apache.jasper.JspC.execute(JspC.java:908)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:124)
 ... 10 more
--- Nested Exception ---
org.apache.jasper.JasperException: file:F:/United/jsp/clinicalProd.jsp(16,0)
File /./includes/header.html not found
 at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:39)
 at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409
)
 at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:90)
 at
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
 at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:126

DO NOT REPLY [Bug 31002] New: - New jspc task does not compile from Ant build.xml

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31002.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31002

New jspc task does not compile from Ant build.xml

   Summary: New jspc task does not compile from Ant build.xml
   Product: Tomcat 5
   Version: 5.0.26
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This script
jspc srcdir=${jspdir} failonerror=false destdir=${jspdir}/java
  classpath=${jasper}/lib/jaxp/jaxp.jar;${jasper}/lib/servlet-
2.2.jar;C:\ORACLE91\jdev\lib\jdev.jar;C:\ORACLE91\jlib\zrclient.jar;C:\ANT_15
\jakarta-ant-1.5\lib\rwrun.jar;${tomcat_home}\common\lib\jasper-
runtime.jar;${tomcat_home}\common\lib\jasper-
compiler.jar;${classpath};${tomcat_home}\bin\commons-logging-api.jar
  package=jsp
   include name=**/*.jsp/
/jspc
ant
Produces this error
compileJsp:
 [jspc] Compiling 71 source files to F:\United\jsp\java\jsp
  [jasperc] org.apache.jasper.JasperException: Unrecognized option: -v0.  Use -h
elp for help.

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



DO NOT REPLY [Bug 31002] - New jspc task does not compile from Ant build.xml

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31002.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31002

New jspc task does not compile from Ant build.xml

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-09-02 00:43 ---
Don't use ant's jspc task with tomcat 5. To precompile with 5 see the admin
webapp or the tomcat user archives on how to precompile with 5.

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

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



DO NOT REPLY [Bug 26242] - Changes in jasper command line break ant's jspc task

2004-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242

Changes in jasper command line break ant's jspc task

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-01-21 15:45 ---
I've added back the setter.

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



DO NOT REPLY [Bug 26242] New: - Changes in jasper command line break ant's jspc task

2004-01-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242

Changes in jasper command line break ant's jspc task

   Summary: Changes in jasper command line break ant's jspc task
   Product: Tomcat 5
   Version: 5.0.16
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,

We are getting reports coming in that the latest releases of jasper are breaking
Ant's jspc task, because that sets the verbosity option for output control,
and changes in the args are breaking things. See bugrep #25345 for details.

I think the immediate fix for ant1.6.1 would be to not pass on verbosity info,
but   we are bound to keep getting many reports about the same break with 1.6.0
and 1.5; so please can you bring back the old -v0 style of option, and make
changes to the command mechanism in a more backwards compatible way in future
-where possible.

Ta,

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



DO NOT REPLY [Bug 26242] - Changes in jasper command line break ant's jspc task

2004-01-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242

Changes in jasper command line break ant's jspc task





--- Additional Comments From [EMAIL PROTECTED]  2004-01-19 15:11 ---
I don't see the point of Ant documenting this, or having the pre declared task.
Any reason for this ? Forward compatibility is one thing, but given other
changes in jspc behavior, I doubt it would still work.

Tomcat now properly documents the task and how to use it.

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



DO NOT REPLY [Bug 26242] - Changes in jasper command line break ant's jspc task

2004-01-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26242

Changes in jasper command line break ant's jspc task





--- Additional Comments From [EMAIL PROTECTED]  2004-01-19 16:03 ---
Remy,

It is not so much that we document the Jasper task, but that we ship with our
own task which 
is meant to support different back ends:
http://ant.apache.org/manual/OptionalTasks/jspc.html

In theory that is, in practise we have left WebLogic alone until someone was
prepared to write the adapter, so instead it supports various Tomcat 4.x
releases, handling name mapping appropriately.

Given it is therefore purely Jasper-centric (as far as we know), there is a lot
to be said for killing the task and saying 'use the Tomcat supplied one'; I'd be
happy with that as it eliminates all version issues and makes bug hunting
easier. This is something we can discuss for the 1.7 release. 

But in the meantime, there are people out there using the Ant project's jasper
adapter, and that one builds a java command with the -vN option, where N is a
verbosity metric. If that is all that has changed, can we please, please, please
have it back :)

BTW, what other changes have there been that would break stuff? Just so we know
what to expect in bugreps?

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