4 Replies Latest reply on Oct 7, 2005 9:39 AM by Jacek Laskowski

    Compile failed - today's sources

    Jacek Laskowski Newbie

      Hi,

      I'm getting the following exception on Java 5 while building Portal from today's sources.

      ...
      _default:compile-classes:
      [mkdir] Created dir: C:\projs\jboss-portal-2.2\core\output\classes
      [mkdir] Created dir: C:\projs\jboss-portal-2.2\core\output\gen\classes
      [javac] Compiling 292 source files to C:\projs\jboss-portal-2.2\core\output\classes
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\aspects\controller\PolicyEnforcementInterceptor.java:90: reference to CodeSource is
      ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.Co
      deSigner[]) in java.security.CodeSource match
      [execmodules] cs = new CodeSource(new URL("http://www.jboss.org/portal"), null);
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] getRealPath(java.lang.
      String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public Principal getUserPrincipal()
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] isRequestedSessionIdFr
      omUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] public Principal getUserPrincipal()
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] getRealPath(java.lang.
      String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public Principal getUserPrincipal()
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] getRealPath(java.
      lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public class HttpServletRequestWrapperImpl
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] isRequestedSessio
      nIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] public class HttpServletRequestWrapperImpl
      [execmodules] ^
      [execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] getRealPath(java.
      lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public class HttpServletRequestWrapperImpl
      [execmodules] ^
      [execmodules] 1 error
      [execmodules] 6 warnings

      BUILD FAILED
      C:\projs\jboss-portal-2.2\tools\etc\buildfragments\targets.ent:732: The following error occurred while executing this line:
      C:\projs\jboss-portal-2.2\tools\etc\buildfragments\targets.ent:95: Compile failed; see the compiler error output for details.

      Jacek