It's all about the answers!

Ask a question

Resolved: build error - java.lang.SecurityException


Pravesh Patel (37622615) | asked Mar 25 '08, 3:25 p.m.
importing the TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml file into my build.xml script generates the following error.

E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml:16: java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package

Is there a workaround?

4 answers



permanent link
Ryan Manwiller (1.3k1) | answered Mar 25 '08, 7:30 p.m.
JAZZ DEVELOPER
I've never seen such an error. Are you running the build engine jvm with
some security options turned on?

Can you provide more detailed steps to reproduce?

---
Ryan Manwiller
Jazz Team Build

permanent link
Pravesh Patel (37622615) | answered Mar 25 '08, 8:40 p.m.
Ryan,

I'm not running the build engine jvm with any security options turned on. It's pretty straight forward.

Here is a copy of the simplified build script:

<project name="build" basedir="." default="main">

<import file="E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml"/>

<target name="checkEnv">
<!-- read and set credentials -->
<available file="${credentialsFile}" property="propertiesAvailable" />
<fail message="Expected to find properties file at ${credentialsFile}. Check the credentialsFile property in the build definition."
unless="propertiesAvailable" />
<property file="${credentialsFile}" />
<echo message="read ${credentialsFile}" />
<fail message="userId not set" unless="userId"/>
<fail message="password not set" unless="password"/>
</target>

<target name="main" depends="checkEnv">
<artifactFilePublisher buildResultUUID="${buildResultUUID}" repositoryAddress="${repositoryAddress}" userId="${userId}" password="${password}" verbose="true" filePath="Y:\Test.jar" label="Produced JAR" />
</target>
</project>

Here is the full error message that results when I attempt to excute the build script via the jbe:

Invoking pre-build participant "com.ibm.team.build.jazzscm"
Fetching files to fetch destination "Y:\J2CA_Components" ...
Invoking build participant "com.ibm.team.build.ant"
Buildfile: Y:\J2CA_Components\AdapterBase\build\build.test.xml

BUILD FAILED
Y:\J2CA_Components\AdapterBase\build\build.test.xml:3: The following error occurred while executing this line:
E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml:16: java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package

Total time: 1 second
Build failed. Exit value was 1.

I tried replacing the org.eclipse.core.runtime.jar file in the buildtookit directoyr with the one in the SDP70Shared folder (samee version number), but the error is the same.

permanent link
Pravesh Patel (37622615) | answered Mar 27 '08, 2:39 p.m.
To clarify the issue, any reference to any task in com.ibm.team.build.ant.task package causes the error. To reproduce, simply create a build.xml file with a line like the following in it and you should see the error:

<taskdef name="artifactFilePublisher" classname="com.ibm.team.build.ant.task.ArtifactFilePublisherTask" />

I've re-installed the buildsystem from the M5a RTC cleanly on the machine. I've made sure that the jbe vm points to the jdk shipped with the RTC.

Any luck reproducing this?

permanent link
Pravesh Patel (37622615) | answered Mar 28 '08, 5:48 p.m.
I figured out the issue finally.... This has to do with the order of the Ant Arguments in the Build Defintion.

In my build definition, I had the "Jazz Build Toolkit" check box selected. Additionally I had other custom Ant libs specified in the "Ant Arguments" line of the build definition. I finally figured out that I needed to uncheck the "Jazz Build Toolkit" option and explicitly specify my build toolkit path FIRST in the list of Ant Arguments.

Explicitly placing it last in the Ant Arguments list or using the Jazz Build Toolkit option (which probably appends it to the specified list) resutls in a "java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package" error.

This was a tough one...hopefully someone will benefit from my pain :)

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.