Skip to Content.
Sympa Menu

shibboleth-dev - javac -target

Subject: Shibboleth Developers

List archive

javac -target


Chronological Thread 
  • From: Tom Scavo <>
  • To: Shibboleth Development <>
  • Subject: javac -target
  • Date: Tue, 3 May 2005 18:50:15 -0400
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PHvwLJNK5qxNg9I7WQPWWtqeS1D39IepuOnadhYhUgysMS/SBxamJejOwN1e1GbpJRoKi88KD0vSBaDJIOQA5hUAv+dCHRaA8zUZLYpuLfEBA6S9rRFhQHTjbGuXybVPiRKiud3fIT7WO54qcd8vYCsdlA9j6r+yQfUF+QlP6oA=

The following ant task will be found in the shib build file:

<javac srcdir="${src}" destdir="${build}" includes="**/*.java"
debug="on"
target="1.4" source="1.4">
<classpath refid="build.path" />
</javac>

I recommend you delete the -target option:

<javac srcdir="${src}" destdir="${build}" includes="**/*.java"
debug="on"
source="1.4">
<classpath refid="build.path" />
</javac>

Although not conclusive, experiments seem to indicate that the -target
option is responsible for the following wierd error:

java.lang.ClassFormatError: Illegal field name "has inconsistent hierarchy" in
class edu/uiuc/ncsa/shibboleth/plugins/X509SubjectNameNameIdentifierMapping
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1626)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)

edu.internet2.middleware.shibboleth.common.NameMapper.addNameMapping(NameMapper.java:143)

edu.internet2.middleware.shibboleth.idp.IdPResponder.init(IdPResponder.java:113)
javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)

Also, perhaps you might want to add a <compilerarg> element to the compile
task:

<javac srcdir="${src}" destdir="${build}" includes="**/*.java"
debug="on"
source="1.4">
<classpath refid="build.path" />
<compilerarg value="-Xlint" />
</javac>

This gives verbose but interesting details about the compile.

Tom



Archive powered by MHonArc 2.6.16.

Top of Page