You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by agent man <ag...@hotmail.com> on 2000/08/18 12:12:03 UTC

SecurityInterceptor fails to compile

Hi,
Thanks for the all advice regarding the compilation earlier. I could somehow 
start compiling the TomCat from source using the binary of ANT and not the 
ANT built from source. Rather un-predictable behaviour!
I have however run into similar kind of problem, I get strange error related 
to SecurityInterceptor class.  The output is as follows :
E:\jakarta-source\jakarta-tomcat\jakarta-tomcat>ant
Buildfile: build.xml
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.

init:

prepare:
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat
    [mkdir] Created dir: 
E:\jakarta-source\jakarta-tomcat\build\tomcat\classes
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\conf
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\src
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\lib
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\logs
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\bin
    [mkdir] Created dir: E:\jakarta-source\jakarta-tomcat\build\tomcat\doc
    [mkdir] Created dir: 
E:\jakarta-source\jakarta-tomcat\build\tomcat\webapps
  [copydir] Copying 9 files to 
E:\jakarta-source\jakarta-tomcat\build\tomcat\bin

  [copydir] Copying 14 files to 
E:\jakarta-source\jakarta-tomcat\build\tomcat\co
nf
  [copydir] Copying 25 files to 
E:\jakarta-source\jakarta-tomcat\build\tomcat\do
c
    [mkdir] Created dir: 
E:\jakarta-source\jakarta-tomcat\build\tomcat\lib\test
    [mkdir] Created dir: 
E:\jakarta-source\jakarta-tomcat\build\tomcat\lib\test\
Golden
  [copydir] Copying 34 files to 
E:\jakarta-source\jakarta-tomcat\build\tomcat\li
b\test\Golden
  [copydir] Copying 5 files to 
E:\jakarta-source\jakarta-tomcat\build\tomcat\bin


tomcat:
    [javac] Compiling 260 source files to 
E:\jakarta-source\jakarta-tomcat\build
\tomcat\classes
    [javac] Note: 
E:\jakarta-source\jakarta-tomcat\jakarta-tomcat\src\share\org\
apache\tomcat\util\xml\XmlMapper.java uses or overrides a deprecated API.  
Recom
pile with "-deprecation" for details.
    [javac] 1 warning
    [javac] The implicit copying of support files by javac has been 
deprecated.
Use the copydir task to copy support files explicitly.
    [javac] Copying 24 support files to 
E:\jakarta-source\jakarta-tomcat\build\t
omcat\classes
    [javac] Compiling 82 source files to 
E:\jakarta-source\jakarta-tomcat\build\
tomcat\classes
    [javac] 
E:\jakarta-source\jakarta-tomcat\jakarta-tomcat\src\j2ee\org\apache\
tomcat\security\SecurityInterceptor.java:190: Method getUserPrincipal() not 
foun
d in interface javax.servlet.http.HttpServletRequest.
    [javac]     Principal principal = req.getUserPrincipal();
    [javac]                                               ^
    [javac] 
E:\jakarta-source\jakarta-tomcat\jakarta-tomcat\src\j2ee\org\apache\
tomcat\security\SecurityInterceptor.java:496: Method isSecure() not found in 
int
erface javax.servlet.http.HttpServletRequest.
    [javac]     if (!req.isSecure()) {
    [javac]                      ^
    [javac] Note: 5 files use or override a deprecated API.  Recompile with 
"-de
precation" for details.
    [javac] 2 errors, 1 warning

BUILD FAILED

build.xml:65: Compile failed

Total time: 1 minutes 24 seconds

Please help!

r
Sameer

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com