You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/12/15 17:05:19 UTC
DO NOT REPLY [Bug 46400] New: jspc does not work correctly if the
dectination is windows unc path
https://issues.apache.org/bugzilla/show_bug.cgi?id=46400
Summary: jspc does not work correctly if the dectination is
windows unc path
Product: Tomcat 6
Version: 6.0.14
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: dev@tomcat.apache.org
ReportedBy: hrendalf@gmail.com
Run the following commands:
> cd
d:\testunc
> java -cp <tomcat;etc> org.apache.jasper.JspC
-d \\server001\mytestdir\compiledjsp
-webapp \\server001\test\mywebapp
-p jsp.precompiled.webapp
-source 1.4 -target 1.4
The java classes are generated; but placed to wrong location:
d:\mytestdir\compiledjsp
The server name is ignored, the directory is created on the current drive.
Most probably, the problem is caused by the deprecated File.toURL() method,
which does not process UNC paths correctly.
For example, in the JspCompilationContext class:
protected void createOutputDir() {
...
baseUrl = options.getScratchDir().toURL();
...
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46400] jspc does not work correctly if the
dectination is windows unc path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46400
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-12-23 07:22:37 PST ---
This has the same root cause as 43150 which was fixed in 6.0.17 (so you'll need
6.0.18 - .17 was never released).
*** This bug has been marked as a duplicate of bug 43150 ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46400] jspc does not work correctly if the
destination is windows unc path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46400
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|jspc does not work correctly|jspc does not work correctly
|if the dectination is |if the destination is
|windows unc path |windows unc path
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org