ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David M. Smith" <david.sm...@home-free.demon.co.uk>
Subject Execute failed: signjar error=2
Date Mon, 19 Aug 2002 12:11:13 GMT
Hi,

I am using ant 1.4.1 with NetBeans 3.4 RC1 under Windows 2000 SP2.
When I execute the following task using ant.bat, it works fine.

<target description="Sign ${jarName}." depends="jar" name="sign"> 

         <signjar alias="MyProject" jar="${jarName}"
         keypass="${signingPassword}"
         keystore="${ant.rootDir}/keystore"
         storepass="${signingPassword}"/>
</target>

If I execute it within NetBeans I get the following error. Any idea what 
is going wrong here? I have searched the mailing lists for both ant and 
NetBeans with out success.

Also, is there a list of the error codes (like error=2), I can't find it 
in the documentation.

Regards,
David

sign:
Signing Jar : 
D:\Projects\MyProject\Rules\MyProjectRulesDevelopmentBuild.jar
Current OS is Windows 2000
jarsigner -keystore D:/Projects/MyProject/keystore -storepass xxxxx 
-keypass xxxxx 
D:/Projects/MyProject/Rules/MyProjectRulesDevelopmentBuild.jar myriad
build.xml [155] Execute failed: java.io.IOException: CreateProcess: 
jarsigner -keystore D:/Projects/MyProject/keystore -storepass xxxxx 
-keypass xxxxx 
D:/Projects/MyProject/Rules/MyProjectRulesDevelopmentBuild.jar myriad 
error=2
     at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:281)
     at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:177)
     at org.apache.tools.ant.taskdefs.SignJar.doOneJar(SignJar.java:255)
     at org.apache.tools.ant.taskdefs.SignJar.execute(SignJar.java:168)
     at org.apache.tools.ant.Task.perform(Task.java:217)
     at org.apache.tools.ant.Target.execute(Target.java:184)
     at org.apache.tools.ant.Target.performTasks(Target.java:202)
     at org.apache.tools.ant.Project.executeTarget(Project.java:601)
     at org.apache.tools.ant.Project.executeTargets(Project.java:560)
     at 
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:27
7)
     at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:119)
--- Nested Exception ---
java.io.IOException: CreateProcess: jarsigner -keystore 
D:/Projects/MyProject/keystore -storepass xxxxx -keypass xxxxx 
D:/Projects/MyProject/Rules/MyProjectRulesDevelopmentBuild.jar myriad 
error=2
     at java.lang.Win32Process.create(Native Method)
     at java.lang.Win32Process.<init>(Win32Process.java:61)
     at java.lang.Runtime.execInternal(Native Method)
     at java.lang.Runtime.exec(Runtime.java:546)
     at java.lang.reflect.Method.invoke(Native Method)
     at 
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.
java:564)
     at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
     at 
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:250)
     at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:279)
     at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:177)
     at org.apache.tools.ant.taskdefs.SignJar.doOneJar(SignJar.java:255)
     at org.apache.tools.ant.taskdefs.SignJar.execute(SignJar.java:168)
     at org.apache.tools.ant.Task.perform(Task.java:217)
     at org.apache.tools.ant.Target.execute(Target.java:184)
     at org.apache.tools.ant.Target.performTasks(Target.java:202)
     at org.apache.tools.ant.Project.executeTarget(Project.java:601)
     at org.apache.tools.ant.Project.executeTargets(Project.java:560)
     at 
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:27
7)
     at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:119)
BUILD FAILED
-- 
David M. Smith

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message