Webstart signing error

hi
I have deployed an ADF Swing application using Java Webstart in jdeveloper 10.1.3.3.0 and oracle version 10g.
But when i run the application through HTML and it finish the download i get the following message error:
JNLPException[category: Error de seguridad : Exception: null : LaunchDesc:
<jnlp spec="1.0" codebase="http://192.168.100.125:8988/Application1-Model-context-root/">
  <information>
    <title>Editor de Par�metros</title>
    <vendor>Vendor</vendor>
    <homepage href="null"/>
    <description>My ADF Swing Project</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java version="1.3+"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/adfmtl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/adftags.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/adfui.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4jdatum.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4jhtml.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4jimjui.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4jtester.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4jui.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/bc4juixtags.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/datatags.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/jlib/graphtags.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/adfbinding.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/adfm.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/adfmweb.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/adfs-jazn.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/adfshare.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/bc4jct.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/bc4jdomorcl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/bc4jimdomains.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/bc4jmt.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/BC4J/lib/collections.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfc/lib/adf-controller.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/custComps.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/jaxb-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/jaxb-impl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/jaxb-libs.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/namespace.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/oracle.extapp.runtime.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/orai18n.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-adf.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-core.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-mbean.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-mds.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-web.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/portlet-client-wsrp.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/tidy.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/wce.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/wsrp-jaxb.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/wsrp-stubs.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/adfp/lib/wsrp-types.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/afc/lib/afc.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/diagnostics/lib/ojdl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/jazn.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/jazncore.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/jsp/lib/taglib/ojsputil.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/lib/oc4j-internal.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/lib/ojsp.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/j2ee/home/lib/servlet.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/commons-beanutils-1.6.1/commons-beanutils.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/commons-collections-2.1/commons-collections.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/commons-digester-1.5/commons-digester.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/commons-logging-1.0.3/commons-logging-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/commons-logging-1.0.3/commons-logging.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/jstl-1.1/lib/jstl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jakarta-taglibs/jstl-1.1/lib/standard.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/javacache/lib/cache.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdbc/lib/ocrs12.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdbc/lib/ojdbc14dms.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdbc/lib/orai18n.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdev/extensions/oracle.jdeveloper.jgoodies.1.0.4/forms-1.0.4.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdev/lib/jdev-rt.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jdev/lib/ojc.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/LW_PfjBean.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/adf-faces-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/adf-faces-impl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/backport-util-concurrent.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/bigraphbean.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/commons-el.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/jdev-cm.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/jewt4.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/jsp-el-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/ojmisc.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/oracle-el.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/oracle_ice.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jlib/share.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jsf-ri/jsf-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/jsf-ri/jsf-impl.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/lib/dms.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/lib/xmlparserv2.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/ord/jlib/ordim.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/sqlj/lib/runtime12.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/toplink/jlib/antlr.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/toplink/jlib/toplink-oc4j.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/toplink/jlib/toplink.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/wireless/lib/industrial-adf-faces-api.jar" download="eager" main="false"/>
    <jar href="http://192.168.100.125:8988/Application1-Model-context-root/adfjars/wireless/lib/industrial-adf-faces-impl.jar" download="eager" main="false"/>
  </resources>
  <component-desc/>
</jnlp> ]
     at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
     at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
     at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
     at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
     at com.sun.javaws.Launcher.launch(Unknown Source)
     at com.sun.javaws.Main.launchApp(Unknown Source)
     at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
     at com.sun.javaws.Main$1.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
I can understand that the error raises because some jarfiles are not signed, but i think i signed it correctly by running ctbuild.xml over "Apache ant". This is my ctbuild.xml file:
<project name="myproject" basedir="." default="sign">
<!--properties related to signing-->
<property name="alias" value="ADFKey"/>
<property name="storepass" value="Davidp1"/>
<property name="ct.proj.dir" value="/C:/jdevstudio10133/jdev/mywork/Application1/Model"/>
<property name="mt.proj.dir" value="/C:/jdevstudio10133/jdev/mywork/Application1/Model"/>
<!--classes dir for mt and ct-->
<property name="ct.classes.dir" value="${ct.proj.dir}/classes"/>
<property name="mt.classes.dir" value="${mt.proj.dir}/classes"/>
<!-- jar names for the client and middle tier classes-->
<property name="ct.jar.name" value="${ct.proj.dir}/public_html/client.jar"/>
<property name="mt.jar.name" value="${ct.proj.dir}/public_html/mymt.zip"/>
<property name="adf.jars.root" value="${ct.proj.dir}/public_html/adfjars"/>
<property name="adf.jars.signed.marker.file" value="${adf.jars.root}/adfjars_signed.tmp"/>
<property name="oracle.home" value="C:\jdevstudio10133\"/>
<target name="init">
<mkdir dir="${adf.jars.root}"/>
</target>
<target name="copy-adf-jars">
<copy todir="${adf.jars.root}">
<fileset dir="${oracle.home}">
<include name="BC4J/jlib/adfmtl.jar"/>
<include name="BC4J/jlib/adftags.jar"/>
<include name="BC4J/jlib/adfui.jar"/>
<include name="BC4J/jlib/bc4jdatum.jar"/>
<include name="BC4J/jlib/bc4jhtml.jar"/>
<include name="BC4J/jlib/bc4jimjui.jar"/>
<include name="BC4J/jlib/bc4jtester.jar"/>
<include name="BC4J/jlib/bc4jui.jar"/>
<include name="BC4J/jlib/bc4juixtags.jar"/>
<include name="BC4J/jlib/datatags.jar"/>
<include name="BC4J/jlib/graphtags.jar"/>
<include name="BC4J/lib/adfbinding.jar"/>
<include name="BC4J/lib/adfm.jar"/>
<include name="BC4J/lib/adfmweb.jar"/>
<include name="BC4J/lib/adfs-jazn.jar"/>
<include name="BC4J/lib/adfshare.jar"/>
<include name="BC4J/lib/bc4jct.jar"/>
<include name="BC4J/lib/bc4jdomorcl.jar"/>
<include name="BC4J/lib/bc4jimdomains.jar"/>
<include name="BC4J/lib/bc4jmt.jar"/>
<include name="BC4J/lib/collections.jar"/>
<include name="adfc/lib/adf-controller.jar"/>
<include name="adfp/lib/custComps.jar"/>
<include name="adfp/lib/jaxb-api.jar"/>
<include name="adfp/lib/jaxb-impl.jar"/>
<include name="adfp/lib/jaxb-libs.jar"/>
<include name="adfp/lib/namespace.jar"/>
<include name="adfp/lib/oracle.extapp.runtime.jar"/>
<include name="adfp/lib/orai18n.jar"/>
<include name="adfp/lib/portlet-client-adf.jar"/>
<include name="adfp/lib/portlet-client-core.jar"/>
<include name="adfp/lib/portlet-client-mbean.jar"/>
<include name="adfp/lib/portlet-client-mds.jar"/>
<include name="adfp/lib/portlet-client-web.jar"/>
<include name="adfp/lib/portlet-client-wsrp.jar"/>
<include name="adfp/lib/tidy.jar"/>
<include name="adfp/lib/wce.jar"/>
<include name="adfp/lib/wsrp-jaxb.jar"/>
<include name="adfp/lib/wsrp-stubs.jar"/>
<include name="adfp/lib/wsrp-types.jar"/>
<include name="afc/lib/afc.jar"/>
<include name="diagnostics/lib/ojdl.jar"/>
<include name="j2ee/home/jazn.jar"/>
<include name="j2ee/home/jazncore.jar"/>
<include name="j2ee/home/jsp/lib/taglib/ojsputil.jar"/>
<include name="j2ee/home/lib/oc4j-internal.jar"/>
<include name="j2ee/home/lib/ojsp.jar"/>
<include name="j2ee/home/lib/servlet.jar"/>
<include name="jakarta-taglibs/commons-beanutils-1.6.1/commons-beanutils.jar"/>
<include name="jakarta-taglibs/commons-collections-2.1/commons-collections.jar"/>
<include name="jakarta-taglibs/commons-digester-1.5/commons-digester.jar"/>
<include name="jakarta-taglibs/commons-logging-1.0.3/commons-logging-api.jar"/>
<include name="jakarta-taglibs/commons-logging-1.0.3/commons-logging.jar"/>
<include name="jakarta-taglibs/jstl-1.1/lib/jstl.jar"/>
<include name="jakarta-taglibs/jstl-1.1/lib/standard.jar"/>
<include name="javacache/lib/cache.jar"/>
<include name="jdbc/lib/ocrs12.jar"/>
<include name="jdbc/lib/ojdbc14dms.jar"/>
<include name="jdbc/lib/orai18n.jar"/>
<include name="jdev/extensions/oracle.jdeveloper.jgoodies.1.0.4/forms-1.0.4.jar"/>
<include name="jdev/lib/jdev-rt.jar"/>
<include name="jdev/lib/ojc.jar"/>
<include name="jlib/LW_PfjBean.jar"/>
<include name="jlib/adf-faces-api.jar"/>
<include name="jlib/adf-faces-impl.jar"/>
<include name="jlib/backport-util-concurrent.jar"/>
<include name="jlib/bigraphbean.jar"/>
<include name="jlib/commons-el.jar"/>
<include name="jlib/jdev-cm.jar"/>
<include name="jlib/jewt4.jar"/>
<include name="jlib/jsp-el-api.jar"/>
<include name="jlib/ojmisc.jar"/>
<include name="jlib/oracle-el.jar"/>
<include name="jlib/oracle_ice.jar"/>
<include name="jlib/share.jar"/>
<include name="jsf-ri/jsf-api.jar"/>
<include name="jsf-ri/jsf-impl.jar"/>
<include name="lib/dms.jar"/>
<include name="lib/xmlparserv2.jar"/>
<include name="ord/jlib/ordim.jar"/>
<include name="sqlj/lib/runtime12.jar"/>
<include name="toplink/jlib/antlr.jar"/>
<include name="toplink/jlib/toplink-oc4j.jar"/>
<include name="toplink/jlib/toplink.jar"/>
<include name="wireless/lib/industrial-adf-faces-api.jar"/>
<include name="wireless/lib/industrial-adf-faces-impl.jar"/>
</fileset>
</copy>
</target>
<target name="sign" depends="sign-adf-jars, sign-project-jars"/>
<target name="sign-adf-jars" depends="init, copy-adf-jars" unless="was.adf.jars.signed">
<touch file="${adf.jars.signed.marker.file}"/>
<signjar alias="${alias}" storepass="${storepass}">
<fileset dir="${adf.jars.root}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</signjar>
</target>
<available property="was.adf.jars.signed" file="${adf.jars.signed.marker.file}"/>
<target name="sign-project-jars" depends="create-project-jars">
<signjar jar="${mt.jar.name}" alias="${alias}" storepass="${storepass}"/>
<signjar jar="${ct.jar.name}" alias="${alias}" storepass="${storepass}"/>
</target>
<target name="create-project-jars">
<jar destfile="${ct.jar.name}">
<fileset dir="${ct.classes.dir}">
<patternset>
<exclude name=".jsps/**/*"/>
<exclude name="connections.xml"/>
</patternset>
</fileset>
</jar>
<jar destfile="${mt.jar.name}">
<fileset dir="${mt.classes.dir}">
<patternset>
<exclude name="connections.xml"/>
<include name="**/*"/>
</patternset>
</fileset>
</jar>
</target>
<target name="clean">
<delete file="${mt.jar.name}"/>
<delete file="${ct.jar.name}"/>
<delete file="${adf.jars.signed.marker.file}"/>
<delete dir="${adf.jars.root}"/>
</target>
</project>
Sorry if i have exceed with the size of my post.
Could anybody help me? Thanks

Hi,
I understand that users have an affinity to use Ant directly. However, last time I ran this environment I did run the Ant script from JDeveloper (right mouse context). So you may try JDeveloper 10.1.3.3 for this
Frank

Similar Messages

  • MDN Not Signed Error

    After updating a certificate in PI we are facing MDN not signed errors.
    In Seeburger logs, I can see that the response MDN is signed.
    However, Seeburger, doesn't find the signature and generates a negative MDN.
    Unchecking the signature in the receiver AS2 channel fixes the problem.
    This issue seems very similar to the following thread: Seeburger AS2 Adapter: "MDN not signed"
    SAP PI Version : PI 7.11 SP12
    Seeburger AS2 2.1.5
    Original Certificate: 1024 bits
    New Certificate: 2048 bits.
    Any help would be much appreciated.
    Thanks,
    Harsh

    Hi Harsh,
    Check the link mentioned in this blog Certificate and Troubleshooting - Guide for Seeburger - AS2 - Adapter by Stefan Hilpp
    As mentioned here on Page 19, check the Signing Key in your Sender Agreement.
    Maybe the signing key mentioned is wrong.
    Regards,
    Pranil.

  • App Signing Error, Number of Folios Does Not Match the Main Folio File

    Hi All;
      I have a 250 page standalone app that I am trying to compile for the Apple Store. I read through the forums and enabled "AppBuilderLoggingEnabled.cfg" in my user directory to capture the issue. Here is the snippet of the log that was created that, to me, shows why the app isn't being signed.
    46386 ERROR [main] codesign.Signer - Failure during signing
    java.lang.RuntimeException: invalid package, number of folios does not match the main folio file (Folio.xml or Issue.xml) 251-250
              at com.adobe.devtech.codesign.IPAOutputHelper.convertFolioProduceFormatToFolio(IPAOutputHelp er.java:272)
              at com.adobe.devtech.codesign.IPAOutputHelper.replacePlaceholderFolio(IPAOutputHelper.java:1 92)
              at com.adobe.devtech.codesign.IPAOutputHelper.execute(IPAOutputHelper.java:82)
              at com.adobe.devtech.codesign.Signer.sign(Signer.java:169)
              at com.adobe.devtech.codesign.Signer.processArgs(Signer.java:106)
              at com.adobe.devtech.codesign.Signer.main(Signer.java:46)
    46388 ERROR [main] codesign.Signer - Error: invalid package, number of folios does not match the main folio file (Folio.xml or Issue.xml) 251-250
    I've stripped out special characters from the article titles and re-built the app only to face the same error. I went ahead and created a new AppID in the Apple Developer Portal, created new provision files, and the error remains. I am now creating a new folio and importing the articles into the new folio to see if that will solve the "number of folios does not match" issue.
    Any help or insight would be amazing. Thank you all.
    -matt

    I created a new folio and imported all of the articles again. After hitting "Create App" for this new folio, at about 10 pages in a "PDF Export" error stopped the create app process. I went into InDesign to update the layout for the 10th page to see that the PDF export issue was stopping me from updating the layouts as well. Something in the InDesign file wasn't playing nice with the folio creation, so I created two new InDesign files, deleted the article, and built a new article from scratch. I was able to import the new layouts as a new article to the main folio and hit "Create App" again. This time there were no issues with the creation process. I synched up the provision files in App Builder and was able to code sign the application.
    I guess the moral of the story is to double and even triple check every article along the way to make sure there are no issues being introduced into the process that will ultimately cause headaches during the distribution phase of app creation!
    -matt

  • Ad Hoc provisioning - code sign error...

    I have a bit of a problem creating the ad hoc build for the app....
    Here's what I did so far:
    1. Created the AdHoc provisioning profile on the portal
    2. Downloaded and installed it in Xcode
    3. Copied the Release configuration as AdHoc
    4. As suggested by some blogs, added the Entitlement.plist file - however, the recommended entries are not to be found in the plist file! That line is "get-task-allow" in the xcode window
    The link below points to a screen capture that shows what's happening:
    http://www.mediafire.com/imageview.php?quickkey=43endcalxt7jde4
    top_left: blog that suggest the line to be present in Entitlements.plist file
    top right: xcode window that shows the code sign error and the .plist file
    bottom left: the build parameters for the Ad Hoc build
    bottom right: info about Ad Hoc profile in the organizer. Note the App Identifier.
    The code sign error mentions AppID that is different from the one shown in the Organizer window.
    Help!!
    -S-

    I had to create new profile and that fixed it. Originally, I had used the Bundle name for the current app in the store.
    I was able to make the AdHoc build and distribute it.....

  • CODE SIGNING errors

    I've been notiching a number of "CODE SIGNING" errors on my MacBook Pro. I'm not sure when exactly these started and they're not really affect the system, however I'd really like to find out the root cause. Here's the relevant dmesg entries:
    CODE SIGNING: csinvalidpage(0x100000000): p=10957[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=10958[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=10960[AppleMobileBacku] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11107[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11147[AppleMobileBacku] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11148[AppleMobileBacku] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11171[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11172[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11214[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11215[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11235[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11237[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11726[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11727[MDCrashReportToo] clearing CS_VALID
    CODE SIGNING: csinvalidpage(0x100000000): p=11729[AppleMobileBacku] clearing CS_VALID
    I'd like to note that it appears to only be two apps... and those process IDs are (I think) old... would it do this when backing up (TimeMachine) when I haven't done that in a month or so?
    Anyone have any insight on this?

    Start with http://developer.apple.com/mac/library/documentation/Security/Conceptual/CodeSig ningGuide/Introduction/Introduction.html

  • Signing Error

    Ok ,  gave up on Digital pass a year ago , thought i would give it another go tonight . very frustrating to go through all the steps to get a signing error.  Can not believe you still havent managed to make a simple website that alows hassle free viewing of NRL .  i have cancelled my subscription within 5 minutes of making it.  If you charge my account i will not be happy.   

    I have see Tim (Telstra) post in other threads about some issues they are aware of tonight that are being worked on.
    Unfortunately no complex technical system can be fault free 100% of the time.

  • How do I resolve a "This document could not be signed" error?

    How do I resolve a "This document could not be signed" error?  I received this error when trying to sign a document with multiple signature boxes.  This particular box locks down most of the document.  It's normally not an issue, but periodically we have a copy of this same form that does not work.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • SDK 3.0 : code signing error : more than one certificate for my profile ?!

    Hi all,
    Since I installed the SDK3 with OS3.0, I'm not able to develop on the device because of a provisionning profile issue.
    So, I've revoked all my certificates, created properly a new dev certificate, associated to a developer provisioning profile. Every-thing's fine at this step.
    But in my app, when a assign this profile (also added in the iPhone), and I build, i get a code signing error which indicates that the associated certificate for the iPhone Developer: xxxx is more than once in my keychain !!??
    I've checked the keychain and there is only ONE iphone certificate. So, i really don't understand !
    I've redone this step few times, to be sure... But still the same issue !
    Any clue ?

    Same here.
    I installed SDK 3.0 yesterday and was about to remove and re-install certificate today, until I found this thread.
    SDK 3.0 seems to have problems with handling provisioning profiles. If you use Xcode in Japanese, the provisioning profiles are shown as "?" in the popup menu, while if you start Xcode in English, the correct provisioning profiles are selectable.
    First, I had the "?" issue, then after I switched the language to English, I faced this "more than one certificate in the keychain" problem ...

  • Global Conditions - Powershell Script - Script is not signed (Error: 87D00327; Source: CCM)

    I failed to use any Powershell script in Global Conditions with error 87D00327. The script is signed and tested without problem. Setting execution policy doesn't change the result at all.
    Error message as below:
    In-line script returned error output: File C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c45de.ps1 cannot
    be loaded. The file C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c4
    5de.ps1 is not digitally signed. The script will not execute on the system. Ple
    ase see "get-help about_signing" for more details..
    At line:1 char:2
    + & <<<< 'C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c45de.ps1'
    + CategoryInfo : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
    ScriptProvider 6/23/2014 1:45:06 PM 2516 (0x09D4)
    ScriptProvider::CreateInstanceEnumAsync - Script Execution Returned :1, Error Message:File C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c45de.ps1 cannot
    be loaded. The file C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c4
    5de.ps1 is not digitally signed. The script will not execute on the system. Ple
    ase see "get-help about_signing" for more details..
    At line:1 char:2
    + & <<<< 'C:\Windows\CCM\SystemTemp\e7001c04-3966-46a7-9622-26c36d9c45de.ps1'
    + CategoryInfo : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
    ScriptProvider 6/23/2014 1:45:06 PM 2516 (0x09D4)
    Failed in discovering instance.
    Script is not signed (Error: 87D00327; Source: CCM) ScriptProvider 6/23/2014 1:45:06 PM 2516 (0x09D4)
    Failed to do HandleExecQueryAsync().
    Script is not signed (Error: 87D00327; Source: CCM) ScriptProvider 6/23/2014 1:45:06 PM 2516 (0x09D4)
    Failed to process CScriptProvider::GExecQueryAsync.
    Script is not signed (Error: 87D00327; Source: CCM) ScriptProvider 6/23/2014 1:45:06 PM 2516 (0x09D4)
    I can't figure out a way to capture the temp script file mentioned in the error message so I can't verify the script locally.
    Any help will be appreciated.
    Sean
    Regards, Sean

    Hi, Sean.
    There was a product issue with signed PowerShell detection method scripts that has been fixed in R2 CU2. I just noticed it's not mentioned in the KB article for CU2. I'm not sure what happened here but I'll have somebody look into this.
    Anyway, there's a couple of caveats to consider regarding this fix in your scenario. Firstly if you're creating a PowerShell script detection method you must not copy/paste the script text -- you need to "Open" it. Secondly, if you have any previously created
    PowerShell script detection methods with signed scripts, you will need to re-add the detection script (again using "Open"). Finally, you must use an administrator console that's been updated to CU2 and a client that's been updated to CU2 for this fix to be
    effective.
    I hope this helps resolve the issue for you.
    Check out my Configuration Manager blog at http://aka.ms/ameltzer

  • ADF Mobile: Code Signing Error Workaround

    Hi, everyone:
    If you are doing ADF Mobile development, and you need to deploy the application to an iOS device, you would need to compile/deploy the app with iOS App Certificates and Provisioning Profile. This means you would need to "Deploy to Package" or "Deploy to iTunes" during deployment, and configure JDeveloper with the proper certificates/profiles. In some instances (exact combination is still not clear), deploy and signing the application to generate the ipa file may fail with similar error message at the end of the deployment log:
    [01:04:45 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s): Command-line execution failed (Return code: 1) error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Distribution: Oracle Corporation resource-rules=/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app/ResourceRules.plist --entitlements /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/entitlements_plistEINPBkIG /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app failed with error 1. Output: /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature Program /usr/bin/codesign returned 1 : [/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature 
    This issue is a known issue and is not related to ADF Mobile. The workaround is discussed in this article:
    http://stackoverflow.com/questions/7425840/that-codesign-returned-1-object-ifile-format-invalid-or-unsuitable-problem-aga
    This article refers to the old location of Xcode, so you would need to adjust the paths accordingly. The path for Xcode 4.3 and above would be like:
    /Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication to this script file.
    To modify it, you probably can’t use TextEdit. I end up opening a terminal session, changed the file permission, and used vi to update it.
    This fixed the issue I was having.
    Hope this is helpful - please drop a reply if you encountered the same issue.
    Thanks,
    Joe Huang

    I ran the entire code and the output is:
    [02:40:18 PM] Updating iOS profile dependencies with FAR profiles created from application projects...
    [02:40:18 PM] ---- Deployment started. ----
    [02:40:18 PM] Target platform is (iOS).
    [02:40:18 PM] Beginning deployment of ADF Mobile application 'Application1' to iOS using profile 'IOS_MOBILE_Application1'.
    [02:40:18 PM] Command-line executed: [Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild, -version]
    [02:40:18 PM] Command-line execution succeeded.
    [02:40:18 PM] Running dependency analysis...
    [02:40:18 PM] Building...
    [02:40:18 PM] Deploying 3 profiles...
    [02:40:18 PM] Wrote Archive Module to /java/development/JDev11gBuild6276.1Sandpit/Application1/ApplicationController/deploy/ApplicationController.jar
    [02:40:18 PM] WARNING: No Resource Catalog enabled ADF components found to package
    [02:40:18 PM] Wrote Archive Module to /java/development/JDev11gBuild6276.1Sandpit/Application1/ViewController/deploy/ViewController.jar
    [02:40:18 PM] Verifying Application Controller project exists...
    [02:40:18 PM] Verifying application dependencies...
    [02:40:18 PM] Validating application XML files...
    [02:40:18 PM] Validating XML files in project ApplicationController...
    [02:40:18 PM] Validating XML files in project ViewController...
    [02:40:18 PM] Copying common javascript files...
    [02:40:21 PM] Copying FARs to the ADF Mobile Framework application...
    [02:40:21 PM] Copying FAR from source: ViewController...
    [02:40:21 PM] Copying FAR from source: ApplicationController...
    [02:40:21 PM] Deploying skinning files...
    [02:40:21 PM] Copying the CVM SDK files built for the ARM processor...
    [02:40:21 PM] Copying the CVM JDK files built for the ARM processor...
    [02:40:21 PM] Command-line executed: [cp, -R, -p, /java/jdeveloper/JDev11gBuild6276.1/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/arm/, /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/lib]
    [02:40:21 PM] Command-line execution succeeded.
    [02:40:21 PM] Command-line executed: [cp, -R, -p, /java/jdeveloper/JDev11gBuild6276.1/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/jar/, /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/lib]
    [02:40:21 PM] Command-line execution succeeded.
    [02:40:21 PM] Copying security related files to the ADF Mobile Framework application...
    [02:40:22 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/
    [02:40:22 PM] Command-line executed: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild clean install -configuration Debug -sdk iphoneos DSTROOT=/java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/ ARCHS=armv7 VALID_ARCHS=armv7 ONLY_ACTIVE_ARCHS=NO CODE_SIGN_IDENTITY=iPhone Developer: Eddie V Phan (QV69QS58FK) IPHONEOS_DEPLOYMENT_TARGET=5.0 TARGETED_DEVICE_FAMILY=1,2 PRODUCT_NAME=Application1 ADD_SETTINGS_BUNDLE=NO
    [02:40:30 PM] ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in CVMmemoryBarrier from Frameworks/OracleCVM.sdk/libcvmadf_arm_debug.a(atomic_arm.o). To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
    [02:40:30 PM] Command-line execution succeeded.
    [02:40:30 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Oracle_ADFmc_Container_Application/device/
    [02:40:30 PM] Command-line executed: /usr/bin/xcrun -sdk iphoneos PackageApplication -v /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Applications/Application1.app -o /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Oracle_ADFmc_Container_Application/device/Application1.ipa sign iPhone Developer: Eddie V Phan (QV69QS58FK) embed /developement/iOS_Provisioning_Profile/devTest.mobileprovision
    [02:40:31 PM] error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: Eddie V Phan (QV69QS58FK) resource-rules=/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app/ResourceRules.plist /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app failed with error 1. Output: /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    [02:40:31 PM] Program /usr/bin/codesign returned 1 : [/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    [02:40:31 PM] Command-line execution failed (Return code: 1)
    [02:40:31 PM] Deployment cancelled.
    [02:40:31 PM] ---- Deployment incomplete ----.
    [02:40:31 PM] Failed to package the XCode application.
    [02:40:31 PM] Failed to build the iOS application bundle.
    [02:40:31 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)
    error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: Eddie V Phan (QV69QS58FK) resource-rules=/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app/ResourceRules.plist /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app failed with error 1. Output: /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    Program /usr/bin/codesign returned 1 : [/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    What do you mean by "the "-sign" parameter values look dubious (besides your name :-P), how can it interpret those spaces?"
    The sign parameter that i'm using is from the KeyChain app, so i'm assuming in the preferences where it asks for the Certificate, that its asking for the certificate name in KeyChain? When trying to escape the spaces in the Preferences menu, it complains that the certificate names do not match.. Or am i meant to be using another parameter here..?
    [02:34:07 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/
    [02:34:07 PM] Command-line executed: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild clean install -configuration Debug -sdk iphoneos DSTROOT=/java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/ ARCHS=armv7 VALID_ARCHS=armv7 ONLY_ACTIVE_ARCHS=NO CODE_SIGN_IDENTITY=iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\) IPHONEOS_DEPLOYMENT_TARGET=5.0 TARGETED_DEVICE_FAMILY=1,2 PRODUCT_NAME=Application1 ADD_SETTINGS_BUNDLE=NO
    [02:34:09 PM] [BEROR]Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    [02:34:09 PM] Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    [02:34:09 PM] Command-line execution failed (Return code: 65)
    [02:34:09 PM] Deployment cancelled.
    [02:34:09 PM] ---- Deployment incomplete ----.
    [02:34:09 PM] Failed to build the iOS application bundle.
    [02:34:09 PM] Deployment failed due to one or more errors returned by '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 65)
    [BEROR]Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains

  • Code signing error

    Hi someone can help ?
    My Project info in Xcode, I can see my code signing "iPhone Develper: parilee(QTSQxxxEQx), but when I build I got a code signing error.
    From "Target-> get info" my code signing id: iPhone Developer(no prophile currently match).
    Could someone help ?
    Thanks very much.
    Parislee

    Go to the Dev Center and use the link, top right to enter the Portal.
    Once there, use the link top right to download the 'Program Portal User Guide'.
    Search that PDF on: profile.
    Take that document seriously and don't skip around, etc.
    As well, make sure your profile is not expired.

  • Code Sign error

    I'm enrolled in the iUniversity program as a student and don't generate anything, I just download as far as I know once our Admin has everything correctly setup. In the portal I have access to:
    1. Intermediate AWDRCA Certificate
    2. iPhone Dev: My Name (Serial) Certificate
    3. Mobile Provisioning Profile
    I have downloaded and installed them (they show in Keychain).
    I receive the error:
    Code Sign error: There are no valid certificate/private key pairs in the default keychain
    When I click on Provisioning Profile in Organiser the status says "Valid signing Identity not Found".
    Suggestions?
    Regards,
    Sean.

    See
    Follow the walk-thru and links in TN 2250 ~ iOS Code Signing Setup, Process & Troubleshooting /Troubleshooting FAQ.

  • HT201210 4s could not be recovered, signed error code 9

    I use iphone4S, suddenly,it does not be booted. so I tried to restore it via Itune. but it is not worked with signed error 9.
    let me know the way I have to do for it.

    iTunes: Specific update-and-restore error messages and advanced troubleshooting - http://support.apple.com/kb/TS3694 - relating to iPad, iPhone, iPod touch, iTunes

  • Error with Java WebStart Signed Jars on 1.6.0_19's new Mixed  Code

    All,
    First, we have a valid code signing certificate/keystore from Thawte that works for signing webstart jars as of update 18. For some reason, if you run our webstart application on update 19 JRE, the runtime believes that some of the jars are not signed and some are. Even though we create and sign the jars in the exact same way and after inspecting the jar the JRE believes are not signed they have the necessary signing entries/files in the manifest folder. Not sure why the signing process would work for some of our jars and not for others. There is nothing really all that different.
    So, because the JRE believes some of the jars are not signed the new security warning "...contains both signed and unsigned code." pops up ( [Error Description|http://java.com/en/download/help/error_mixedcode.xml] ). If I press yes, then I get the following exception.
    java.lang.SecurityException: trusted loader attempted to load sandboxed resource from https://path-to-our.jar
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)If I press "no" I get the following exception (I get this exception if I try to run our WebStart application with no signed jars as well, no warnings about missing certs, just straight to error)
    java.lang.NullPointerException
         at com.sun.deploy.cache.CachedJarFile.findMatchingSignerIndices(Unknown Source)
         at com.sun.deploy.cache.CachedJarFile.entryNames(Unknown Source)
         at com.sun.deploy.cache.DeployCacheJarAccessImpl.entryNames(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.assertTrust(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.access$700(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Does anyone know why this would be happening? It only occurs with the new update. We use the same keystore and process for signing all of our jars so it really doesn't make since why some of them work and some of them don't. Also, our JNLP is correct or it wouldn't work in update 18.
    Edit: We've tried it on Windows XP SP3 and compiled the code using update 18 and used jarsigner both from 18 and 19 with same results.
    Edited by: chenthor on Apr 1, 2010 8:44 AM
    Edited by: chenthor on Apr 1, 2010 8:51 AM

    Hi All,
    So we've been battling this bug for a year or so now, and I've come up with a solution to the webstart bugs
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6967414
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    (see the bugs for more details)
    From what we can tell the bug stems from the way that the jar signers information is "cached" by webstart.
    When a jar is loaded by webstart, it is represented by a CachedJarFile instance. When loading and using classes the signature for the jar is verified. The signers used is the one that is stored in the CachedJarFile instances. These "signers" are stored as SoftReferences. SoftReferences are like WeakReferences, except that they only become eligible for garbage collection when there is a small amount of available heaps space remaining and that the object is only softly reachable. (That's a pretty crude description, but it will do for now)
    So what we found was happening is that when the JVM reached a certain heap size threshold and needed to allocate more heap, that these soft references (and hence the signers information) werebeing garbage collected. if you attempt to load a class after this you get the security error.
    So I came up with a hack to work around this. At application startup, iterate through all of the CachedJarFile objects on the classpath and create a hard reference to each of the signers info by putting them in a static list somewhere. From our tests this seems to work. (though with the intermittent nature of the problem, it has been hard to prove conclusively, though we've had some success repro-ing the issue, by reducing the intial heap size and using VisualVM to watch for heap expansions and forcing gc's)
    Below is the code for the hack, to run it just call JarSignersHardLinker.go() and it will do some sanity checks (running on webstart on java 1.6 update 19 or higher) before spawning a new thread to create hard refs for all signers info for all jars on the classpath.
    import java.io.IOException;
    import java.lang.ref.SoftReference;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.jar.JarFile;
    * A utility class for working around the java webstart jar signing/security bug
    * see http://bugs.sun.com/view_bug.do?bug_id=6967414 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    * @author Scott Chan
    public class JarSignersHardLinker {
        private static final String JRE_1_6_0 = "1.6.0_";
         * the 1.6.0 update where this problem first occurred
        private static final int PROBLEM_JRE_UPDATE = 19;
        public static final List sm_hardRefs = new ArrayList();
        protected static void makeHardSignersRef(JarFile jar) throws java.io.IOException {
            System.out.println("Making hard refs for: " + jar );
            if(jar != null && jar.getClass().getName().equals("com.sun.deploy.cache.CachedJarFile")) {
                 //lets attempt to get at the each of the soft links.
                 //first neet to call the relevant no-arg method to ensure that the soft ref is populated
                 //then we access the private member, resolve the softlink and throw it in a static list.
                callNoArgMethod("getSigners", jar);
                makeHardLink("signersRef", jar);
                callNoArgMethod("getSignerMap", jar);
                makeHardLink("signerMapRef", jar);
    //            callNoArgMethod("getCodeSources", jar);
    //            makeHardLink("codeSourcesRef", jar);
                callNoArgMethod("getCodeSourceCache", jar);
                makeHardLink("codeSourceCacheRef", jar);
         * if the specified field for the given instance is a Softreference
         * That soft reference is resolved and the returned ref is stored in a static list,
         * making it a hard link that should never be garbage collected
         * @param fieldName
         * @param instance
        private static void makeHardLink(String fieldName, Object instance) {
            System.out.println("attempting hard ref to " + instance.getClass().getName() + "." + fieldName);
            try {
                Field signersRef = instance.getClass().getDeclaredField(fieldName);
                signersRef.setAccessible(true);
                Object o = signersRef.get(instance);
                if(o instanceof SoftReference) {
                    SoftReference r = (SoftReference) o;
                    Object o2 = r.get();
                    sm_hardRefs.add(o2);
                } else {
                    System.out.println("noooo!");
            } catch (NoSuchFieldException e) {
                e.printStackTrace();
                return;
            } catch (IllegalAccessException e) {
                e.printStackTrace();
         * Call the given no-arg method on the given instance
         * @param methodName
         * @param instance
        private static void callNoArgMethod(String methodName, Object instance) {
            System.out.println("calling noarg method hard ref to " + instance.getClass().getName() + "." + methodName + "()");
            try {
                Method m = instance.getClass().getDeclaredMethod(methodName);
                m.setAccessible(true);
                m.invoke(instance);
            } catch (SecurityException e1) {
                e1.printStackTrace();
            } catch (NoSuchMethodException e1) {
                e1.printStackTrace();
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            } catch (IllegalAccessException e) {
                e.printStackTrace();
            } catch (InvocationTargetException e) {
                e.printStackTrace();
         * is the preloader enabled. ie: will the preloader run in the current environment
         * @return
        public static boolean isHardLinkerEnabled() {
             boolean isHardLinkerDisabled = false;  //change this to use whatever mechanism you use to enable or disable the preloader
            return !isHardLinkerDisabled && isRunningOnJre1_6_0_19OrHigher() && isRunningOnWebstart();
         * is the application currently running on webstart
         * detect the presence of a JNLPclassloader
         * @return
        public static boolean isRunningOnWebstart() {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            while(cl != null) {
                if(cl.getClass().getName().equals("com.sun.jnlp.JNLPClassLoader")) {
                    return true;
                cl = cl.getParent();
            return false;
         * Is the JRE 1.6.0_19 or higher?
         * @return
        public static boolean isRunningOnJre1_6_0_19OrHigher() {
            String javaVersion = System.getProperty("java.version");
            if(javaVersion.startsWith(JRE_1_6_0)) {
                //then lets figure out what update we are on
                String updateStr = javaVersion.substring(JRE_1_6_0.length());
                try {
                    return Integer.parseInt(updateStr) >= PROBLEM_JRE_UPDATE;
                } catch (NumberFormatException e) {
                    //then unable to determine updatedate level
                    return false;
            //all other cases
            return false;
          * get all the JarFile objects for all of the jars in the classpath
          * @return
         public static Set<JarFile> getAllJarsFilesInClassPath() {
              Set<JarFile> jars = new LinkedHashSet<JarFile> ();
             for (URL url : getAllJarUrls()) {
                 try {
                     jars.add(getJarFile(url));
                 } catch(IOException e) {
                      System.out.println("unable to retrieve jar at URL: " + url);
             return jars;
         * Returns set of URLS for the jars in the classpath.
         * URLS will have the protocol of jar eg: jar:http://HOST/PATH/JARNAME.jar!/META-INF/MANIFEST.MF
        static Set<URL> getAllJarUrls() {
            try {
                Set<URL> urls = new LinkedHashSet<URL>();
                Enumeration<URL> mfUrls = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF");
                while(mfUrls.hasMoreElements()) {
                    URL jarUrl = mfUrls.nextElement();
    //                System.out.println(jarUrl);
                    if(!jarUrl.getProtocol().equals("jar")) continue;
                    urls.add(jarUrl);
                return urls;
            } catch(IOException e) {
                throw new RuntimeException(e);
         * get the jarFile object for the given url
         * @param jarUrl
         * @return
         * @throws IOException
        public static JarFile getJarFile(URL jarUrl) throws IOException {
            URLConnection urlConnnection = jarUrl.openConnection();
            if(urlConnnection instanceof JarURLConnection) {
                // Using a JarURLConnection will load the JAR from the cache when using Webstart 1.6
                // In Webstart 1.5, the URL will point to the cached JAR on the local filesystem
                JarURLConnection jcon = (JarURLConnection) urlConnnection;
                return jcon.getJarFile();
            } else {
                throw new AssertionError("Expected JarURLConnection");
         * Spawn a new thread to run through each jar in the classpath and create a hardlink
         * to the jars softly referenced signers infomation.
        public static void go() {
            if(!isHardLinkerEnabled()) {
                return;
            System.out.println("Starting Resource Preloader Hardlinker");
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        Set<JarFile> jars = getAllJarsFilesInClassPath();
                        for (JarFile jar : jars) {
                            makeHardSignersRef(jar);
                    } catch (Exception e) {
                        System.out.println("Problem preloading resources");
                        e.printStackTrace();
                    } catch (Error e) {
                         System.out.println("Error preloading resources");
                         e.printStackTrace();
            t.start();
    }

  • Package Sign Error

    Hi,
    I have noticed the next error:
    (1/1) checking package integrity                                                                        [#############################################################] 100%
    error: ddd: signature from "Eric Belanger <[email protected]>" is invalid
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    This happens with some packages, while others installs/upgrades normally without an error.
    It does not depend on the mainteiner, since others packages from the same maintainer installs correctly.
    I have reported a bug with one of this packages: "vlc" and the bug was closed as the maintainer told the package was correct.
    It also does not depends on the repo, since the problem arises in different repos.
    I have also tried to delete the "/etc/pacman.d/gnupg" directory, and follow the instruction to get it again.
    I have also tried to change the keyserver in "gpg.conf".
    The problem remains.
    Is there any way to manually check the signature of the package?
    thanks,

    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    CacheDir = /dev/shm/pkg/
    #LogFile = /var/log/pacman.log
    #GPGDir = /etc/pacman.d/gnupg/
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #UseDelta
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    #SigLevel = Optional TrustedOnly
    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official Arch Linux
    # packagers with `pacman-key --populate archlinux`.
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [core]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    [extra]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [community]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs
    [archlinuxfr]
    SigLevel = Optional TrustAll
    Server = http://repo.archlinux.fr/$arch

Maybe you are looking for

  • Can not sync more than one photo folder to my phone. lost all photos???

    Can not sync more than one photo folder at a time from my computer to mu iPhone. How do I get the drop down box to choose my photos, so I can manually pick photo folders???? Lost all my photo folders on phone.

  • How to use a counter to build a Logic Analyzer?

    Hi guys, i have heard that we can use a counter as a Logic Analyzer based on an incoming signal and its clock frequency. Anyone know how this works? I am trying to read a set of signals, which I have no knowledge of  except that there would a Clock,

  • Fullscreen on one monitor, while working on the other?

    Mac Pro running Maverick OSX. When I go into fullscreen with youtube on one monitor, and click anywhere on my secondary monitor: Youtube exits fullscreen. I've tested this with another machine running OSX Mountain Lion. With Mountain Lion I can have

  • I need help from Customer Support. Whatever this charge is on my credit card,

     He recibido un cargo de su tienda, que curiosamente he visto que se han hecho muchos cargos a diferentes personas bajo el mismo copncepto y tienda.Favor acreditarme dicho monto porque no he comprado nada con ustedes y ni tengo idea donde está Mineso

  • (java.sql.SQLException) Invalid column type

    On Jdeveloper 11.1.2 on Windows7 64b I got this table : create table entry (entry_id number(32) not null, entry_class_id varchar2(5) not null, notes varchar2(200) not null, active varchar2(1) default 'Y' not null, interface varchar2(1) default 'N' no