Src\META-INF\cwallet.sso (Access is denied)

I had a adf web app working perfectly on latest public jdev 11g.
Yesterday i updgraded my machine from xp to win 7 and now i see the src\META-INF\cwallet.sso (Access is denied) error while deployment.
How to fix it?

Did you check the obvious (i.e., that cwallet.sso exists and that it has proper NTFS permissions)?
John

Similar Messages

  • SOA server not starting error:MDS-00054:META-INF/cwallet.sso does not exist

    I am trying to run Business Rule composite application inside Oracle SOA suite 11g.
    Before I deployed this application, I was able to start the soa server without a problem. However after deploying this application via Jdeveloper. I am not able to start the SOA server. It is coming with following error.
    I am also not able to find following folder inside my middleware home “deployed-composites”
    ERROR Start
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "FabricInit" failed to preload on startup in Web application: "/soa-infra".
    oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/deployed-composites/default/DoctorsAppointmentRequestsProcessor_rev1.0/SCA-INF/classes/META-INF/cwallet.sso:
    oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/deployed-composites/default/DoctorsAppointmentRequestsProcessor_rev1.0/SCA-INF/classes/META-INF/cwallet.sso does not exist.
    ERROR End

    Hi we are getting similar error with composite deployment. Were you able to resolve this problem.
    Can you share any info in to resolve this problem
    oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/deployed-composites/default/BestOnlinePaymentsProcess_rev2.0/SCA-INF/classes/META-INF/cwallet.sso: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/deployed-composites/default/BestOnlinePaymentsProcess_rev2.0/SCA-INF/classes/META-INF/cwallet.sso does not exist.
         at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:280)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:555)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.transferFile(MDSMetadataManagerImpl.java:852)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.transferFiles(MDSMetadataManagerImpl.java:839)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.copyTree(MDSMetadataManagerImpl.java:820)

  • Cwallet.sso (Access is denied)

    I am using Windows XP and uses Admin to install WebLogic Server with forms and Reports Servers 11g.
    After installation, I switch to user account with no admin right and try to run the Admin,
    the following results:
    WARNING: Opening of wallet based credential store failed.Reason java.io.IOException...cwallet.sso (Access is denied)
    May I know how I can solve it?
    P.S. I do not have Admin Password and installing by Admin is a must.

    You can go to the cwallet.sso file, right-click it, choose "properties" and then edit the security of the file such that the user trying to start the services has full control of the file.

  • AIA Installation Problem : cwallet.sso access denied

    I am first time user of AIA & trying to install AIA. After 45-mins of run the AIA installer stops & gives below error. I tried to run installer as administrator, Do it has to any thing with java property -Djps.app.credential.overwrite.allowed=true .
    The below file ...........src\META-INF\cwallet.sso (Access is denied) gets created by the Installer & then it gives msg Access Denied.
    oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS configuration document
    MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_2" is invalid.
    MDS-00011: unable to create configuration object or MDSInstance due to invalid configuration information: oracle.mds.exception.MDSException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_3" is invalid.
    MDS-00011: unable to create configuration object or MDSInstance due to invalid configuration information: oracle.mds.exception.MDSException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:690)
         at oracle.mds.config.PConfig.<init>(PConfig.java:499)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:707)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:764)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:515)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:443)
         at oracle.integration.platform.common.MDSUtil.getMDSConfig(MDSUtil.java:42)
         at oracle.integration.platform.common.MDSUtil.getMDSInstance(MDSUtil.java:132)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getMDSInstance(MDSMetadataManagerImpl.java:660)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.init(MDSMetadataManagerImpl.java:274)
         ... 15 more
    Caused by: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_2" is invalid.
    MDS-00011: unable to create configuration object or MDSInstance due to invalid configuration information: oracle.mds.exception.MDSException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_3" is invalid.
    MDS-00011: unable to create configuration object or MDSInstance due to invalid configuration information: oracle.mds.exception.MDSException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
    JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: C:\AIA_HOME_Path\aia_instances\AIA_Inst_1\config\MDSConfig\.adf\META-INF\..\..\src\META-INF\cwallet.sso (Access is denied)
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:684)
         ... 24 more
    All Help would be highly appreciable.
    Thanks
    Anand Vithalani

    Hi,
    You can try the following work around to your problem :
    before running the installer
    update aiaoneclick.properties under the Disk1/install/win32/win64(depending on OS being 32 bit or 64 bit) folder with the following
    (The tag to be updated already exists you just need to add the detail highlighted )
    aia_deploy_cmd1_win=cmd /c set PATH=mwHome\\modules\\org.apache.ant_1.7.1\\bin;javaHome
    bin;%PATH%&& set CLASSPATH=.;mwHome\\wlserver_10.3\\server\\lib\\weblogic.jar;aiaHome\\lib\\aia.jar;aiaHome\\lib\\aia-utils.jar;mwHome\\modules\\net.sf.antcontrib_1.1.0.0_1-0b2\\lib\\ant-contrib.jar;mwHome\\oracle_common\\modules\\oracle.mds_11.1.1\\mdsrt.jar;mwHome\\oracle_common\\modules\\oracle.jps_11.1.1\\jps-common.jar;mwHome\\oracle_common\\modules\\oracle.jps_11.1.1\\jps-internal.jar;mwHome\\oracle_common\\modules\\oracle.jps_11.1.1\\jps-unsupported-api.jar;mwHome\\oracle_common\\modules\\oracle.pki_11.1.1\\oraclepki.jar;mwHome\\oracle_common\\modules\\oracle.idm_11.1.1\\identitystore.jar;mwHome\\oracle_common\\modules\\oracle.webservices_11.1.1
    oracle.webservices.standalone.client.jar;%CLASSPATH%&&set JAVA_HOME=javaHome&& set ANT_HOME=mwHome\\modules
    org.apache.ant_1.7.1&&set ANT_OPTS=-Xms512M -Xmx1024M -XX:MaxPermSize=512M&& set AIA_HOME=aiaHome&& set SOA_HOME=soaHome&& set MW_HOME=mwHome&& set ORACLE_HOME=oracleHome&& set WEBLOGIC_HOME=mwHome
    wlserver_10.3&& set SystemRoot=systemRoot&& set USERDOMAIN=<Replace with user domain value>&&set USERNAME=<Replace with user executing the OUI>&& cd /d aiaHome\\Infrastructure\\Install
    AID&& ant -f aiaHome\\Infrastructure\\Install\\AID
    AIACreateInstance.xml -DPropertiesFile=aiaInstanceXX\\config
    AIAInstallProperties.xml

  • Cwallet.sso failed even after changes made to cwallet security properties

    WARNING: Opening of wallet based credential store failed. Reason java.io.IOExcep
    tion: F:\oracle\middleware\user_projects\domains\obiee_domain\config\fmwconfig\b
    ootstrap\cwallet.sso (Access is denied)
    Oct 19, 2011 6:20:12 PM oracle.security.jps.internal.keystore.file.FileKeyStoreM
    anager openKeyStore
    WARNING: Opening of file based farm keystore failed.
    cwallet.sso failed even after changes made to cwallet security properties in bootstrap

    The user you logged in does not have permissions to access cwallet.sso file and hence, it says access denied. Try to check the permissions and add the user, who is trying to start weblogic server.
    -Vamsi

  • No META-INF/application.xml was found in the EAR

    I create a EAR using:
    jar -cvf e:\workspace\otnapp\otnapp.ear
    Then, I depoy this EAR through:
    e:\jdk160_18\bin>java weblogic.Deployer -adminurl t3:\\localhost:7001 -user weblogic -passwork welcome1 -deploy -upload e:\workspace\otnapp\otnapp.ear
    But, I get errors as follow:
    java.io.IOException: No META-INF/application.xml was found in the EAR otnapp.ear
    How to change the jar in the command line?

    otnapp is an adf web application. META-INF is not in the E:\soaworkspace\otnapp.
    It is in the :
    E:\SOAworkspace\otnapp\.adf\META-INF
    E:\SOAworkspace\otnapp\Model\classes\META-INF
    E:\SOAworkspace\otnapp\src\META-INF
    None of them contains application.xml.
    I run jar in E:\soaworkspace\otnapp. But I get error : 'jar' is not recognized as an internal or external command, operable program or batch file.
    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.
    C:\Users\Administrator>d:
    D:\>e:
    E:\>cd E:\soaworkspace\otnapp
    E:\SOAworkspace\otnapp>jar -cvf otnapp.ear
    'jar' is not recognized as an internal or external command, operable program or batch file.
    E:\SOAworkspace\otnapp>jar -cvf otnapp.ear */ .
    'jar' is not recognized as an internal or external command, operable program or batch file.
    E:\SOAworkspace\otnapp>set java_home
    JAVA_HOME=E:\OracleBI_win2008_32_20101206\jdk160_18
    path=
    CD:\apache-maven-2.0.11\bin;C:\app\Administrator\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\apps\FME\;C:\Program Files\Subversion\bin;C:\Program Files\TortoiseSVN\bin;D:\win2008EclipseWorkspace;E:\OracleBI_win2008_32_20101206\Oracle_BI1\bin;E:\OracleBI_win2008_32_20101206\Oracle_BI1\opmn\bin;E:\OracleBI_win2008_32_20101206\Oracle_BI1\opmn\lib;E:\OracleBI_win2008_32_20101206\Oracle_BI1\perl\bin;%JAVA_HOME%\bin;CATALINA_HOME\bin;C:\Users\Administrator>E:\SOAworkspace\otnapp>

  • Visual Web JSF web app unable to render. The theme tries to access META-INF

    Hi,
    BACKGROUND: I have created a Netbeans 6 Visual Web Project using the default Visual Web JSF Theme. My web application can be viewed properly and correctly when i deploy it on tomcat 6.
    ARCHITECTURE: Our server configuration requires IIS to be our web server and tomcat to be our app server. Both are running on different machines. I have successfully linked up IIS 6 and tomcat 6 using the JK isapi_redirector.
    PROBLEM: However, when i connect to my app via IIS, my starting page opens but the input box components on that page are not displayed and i get several javascript errors that read - 'dojo is undefined' and 'webui is undefined'.
    PROBLEM DETAILS: I found that the page being served had a lot of files being requested from a META-INF folder. I have attached a snippet here.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" xmlns:waistate="http://www.w3.org/2005/07/aaa">
    <head>
    <title></title><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/css_master-all.css" /><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/ie.css" /><script type="text/javascript">var djConfig={"parseOnLoad":false,"isDebug":false}</script><script type="text/javascript" src="/BMC/theme/META-INF/json2_0/json.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/prototype1_5/prototype.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/com_sun_faces_ajax.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dojo/dojo.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dijit/dijit.js"></script><script type="text/javascript">dojo.registerModulePath("webui.suntheme", "/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript");</script><script type="text/javascript" src="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript/webui-jsfx.js"></script><script type="text/javascript">webui.suntheme.bootstrap.init({"debug":false,"theme":{"locale":"en-US","prefix":"/BMC/theme","modulePath":"/com/sun/webui/jsf/suntheme4_1_1/javascript/theme","bundle":"suntheme","module":"webui.suntheme.theme"}});</script><link id="link1" rel="stylesheet" type="text/css" href="/BMC/resources/stylesheet.css" />I think the JK isapi_connector in IIS is preventing access to the META-INF path and the isapi_director log file says - "*+[emerg] HttpFilterProc::jk_isapi_plugin.c (1282): [BMC/theme/META-INF/json2_0/json.js] points to the web-inf or meta-inf directory. Somebody tries to hack into the site!!!+*". The same message is repeated for several more javascript files that are being served from under the META-INF path.
    Any help or advice in this matter will be greatly appreciated.
    Thanks!!!

    I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
    I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
    However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
    For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

  • Getting 'access is denied' error when access Flight Example sample gateway service

    Hi All, Greetings! I am new to SAPUI5. I am getting 'Access is denied' when trying to load data from the sample gateway service (Flight Example). Please help.
    Here's the entire code:
    view1.view.js
    sap.ui.jsview("ui5_proj09_flightdemo.view1", {
          getControllerName : function() {
             return "ui5_proj09_flightdemo.view1";
          createContent : function(oController) {
         var serviceURL = "https://sapes1.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/";
         var readRequestURL = "/FlightCollection(carrid='AA',connid='0017',fldate=datetime'2013-05-01T00:00:00')/?$format=xml";
           var loginoDataModel = new sap.ui.model.odata.ODataModel(serviceURL, true, "my_sapes1_userid", "my_sapes1_pwd");
           alert("Before Service Call");
           loginoDataModel.read(readRequestURL, null, null, false, 
                       function(oData, oResponse) {
                      alert("Success");
                             var result = oData.results;
                             alert(result.length);
                             if(result.length > 0){
                                 webmodel.setData({modelData: result});
                                 table.bindRows("/modelData");
                       function(oError){
                             alert("Error::"+oError.message); //getting 'access is denied' error message popup at this line
           alert("After Service Call");
              var oTable = new sap.ui.table.Table( {
      id : "oTableid", // sap.ui.core.ID
      width : "auto", // sap.ui.core.CSSSize
      rowHeight : undefined, // int
      columnHeaderHeight : undefined, // int
      columnHeaderVisible : true, // boolean
      visibleRowCount : 10, // int
      firstVisibleRow : 0, // int
      selectionMode : sap.ui.table.SelectionMode.Single // sap.ui.table.SelectionMode
      //Define the columns and the control templates to be used
      var oColumn = new sap.ui.table.Column({
      label: new sap.ui.commons.Label({text: "City From"}),
      template: new sap.ui.commons.TextField().bindValue("cityFrom"),
      sortProperty: "lastName",
      filterProperty: "lastName",
      width: "200px"
      oTable.addColumn(oColumn);
      var oColumn2 = new sap.ui.table.Column({
      label: new sap.ui.commons.Label({text: "City To"}),
      template: new sap.ui.commons.TextView().bindProperty("text", "cityTo"),
      sortProperty: "firstName",
      filterProperty: "firstName",
      width: "200px"
      oTable.addColumn(oColumn2);
    // oTable.bindRows("/modelData");
      oTable.placeAt("content");
    index.html
    <!DOCTYPE HTML>
    <html>
           <head>
                  <meta http-equiv="X-UA-Compatible" content="IE=edge">
         <script src="resources/sap-ui-core.js"
                          id="sap-ui-bootstrap"
                          data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.core"
                          data-sap-ui-theme="sap_goldreflection" >
                  </script>
                  <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
         <script>
              sap.ui.localResources("ui5_proj09_flightdemo");
                         var view = sap.ui.view({id:"idview11", viewName:"ui5_proj09_flightdemo.view1", type:sap.ui.core.mvc.ViewType.JS});
                view.placeAt("content");
         </script>
           </head>
           <body class="sapUiBody" role="application">
                  <div id="content"></div>
           </body>
    </html>
    Regards,
    Sai

    Hi Sai,
    You can refer my blog How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    Please go though it and see if it helps you to resolve this issue.
    Regards,
    Chandra

  • META-INF & SUN ONE WebServer security

    Hi All,
    I am facing problem with SUN ONE WebServer 6.0. The SUN ONE WebServer is being used a Web-Proxy Server to parse all request for a particular URL to WebSphere application server.
    Unfortunately one of JAR files loaded in the WebSphere contaisn files in META-INF directory which needs to be accessed by the users. These files are mostly javascripts and image files.
    These files can be accessed if we connect directly to the WebSphere http port. But cannot be accessed when connecting through the SUN ONE WebServer.
    I get the following error,
    [13/Jun/2006:16:19:14] security (14832): for host 10.81.205.204 trying to GET /esott/faces/static/META-INF/common/script.js, deny-existence reports: denying existence of /opt/iplanet/iWS/docs/esott/faces/static/META-INF/common/script.js
    I am not sure why Iplanet is denying the existence of the files in the META-INF . Is there a way to turn off this behaviour?
    regards,
    Suresh

    Servlet spec. prohibits direct access to META-INF:
    9.5 Web Application Archive File
    Web applications can be packaged and signed, using the standard Java Archive tools, into a Web ARchive format (war) file. For example, an application for issue tracking could be distributed in an archive with the filename issuetrack.war.
    When packaged into such a form, a META-INF directory will be present which contains information useful to the Java Archive tools. If this directory is present, the servlet container must not allow it be served as content to a web client�s request.
    **************************************************************************************

  • (Access is denied) error

    Could anyone please tell me why am I getting the error "C:\temp\Installation (Access is denied)".
    I am trying to copy selected few files from source to destination.
    public class filesMove
         public filesMove()
         void copyDirectory(File source, File destination) throws IOException
              System.out.println("source: "+source);
              //output: source: D:\fonts\xyz.PFB
              //output: source: D:\fonts\xyz.PFM
              System.out.println("destination:"+destination);
              //output: destination: C:\temp\Installation
              copyFile(source, destination);
         private void copyFile(File src, File dst) throws IOException
              InputStream in = new FileInputStream(src);     
              OutputStream out = new FileOutputStream(dst);     
              byte[] buf = new byte[1024];
              int len;
              while((len = in.read(buf)) > 0)
                   out.write(buf, 0, len);
              in.close();
              out.close();
    }

    destination seems not to be the name of a file but of a directory. What you are trying to do seems to be writing the content of a file into a directory (and not into a file). This does not work.
    You must first create a filename (using the name of your destination directory and the original file name).
    Open the FileOutputStream on this file name and it should work.
    One more thing, use a slash instead of a backslash in your file names. File names are Strings. And a backslash is an escape character. Using two backslashes does work but it gets confusing....

  • VB ActiveX User Control fails to install on Windows 8 using IE10 with Code Download Error: (hr = 80070005) Access is denied.

    I have a VB VS2008 (.Net 2.0) ‘pure’ .NET based user control which used to be hosted in Internet Explorer.
    Because that approach is no longer possible in VS2013 (.Net 4.5) I have converted it to an VB ActiveX user control.
    This process involves digitally signing the user control DLL.
    Creating a setup project resulting in a setup.exe and MyUserControl.msi.
    Digitally signing both those components and then producing a cab file (which again is digitally signed).
    IE10 should then be able to install this using an object tag as follows
    <object id="editor" height="100%" width="100%"
     classid="clsid:EA47DB16-9272-4CB3-A800-C369A479396A" codebase="cab\MyUserControl.cab#Version=6,0,11,1" VIEWASTEXT>
    If I use the setup.exe and MyUserControl.msi directly on the client windows 8 machine before starting IE10 then the control is already installed (shows up in Programs and Features) and it works.
    If I don't do this and let IE install the control then it doesn't work.
    What I see is the IE prompt
    This website wants to install the following add-on: 'MyUserControl.cab'
    Clicking on install produces the User Account Control MsgBox
    Do you want to allow the following program to make changes to this computer
    Clicking yes doesn't install the control as expected
    The inf file that I'm using is currently
    [version]
    signature="$CHICAGO$"
    AdvancedINF=2.0
    [Add.Code]
    setup.exe=setup.exe
    MyUserControlSetup.inf=MyUserControlSetup.inf
    MyUserControlSetup.msi=MyUserControlSetup.msi
    [setup.exe]
    file=thiscab
    [MyUserControlSetup.inf]
    file=thiscab
    [MyUserControlSetup.msi]
    file=thiscab
    [Setup Hooks]
    RunSetup=RunSetup
    [Deployment]
    InstallScope=user
    [RunSetup]
    run="%EXTRACT_DIR%\setup.exe"
    I have defined the registry setting ForceCodeDownloadLog
    Examining the temporary internet files location after trying to install using IE10 I can see the following
    *** Code Download Log entry (15 Jan 2015 @ 11:49:18) ***
    Code Download Error: (hr = 80070005) Access is denied.
    ERR: Run Setup Hook: Failed Error Code:(hr) = 80070005, processing: %EXTRACT_DIR%\setup.exe
    LOG: Reporting Code Download Completion: (hr:80070005 (FAILED), CLASSID: ea47db16...,

    The problem here was the cab file.
    Using ProcessMonitor I found that the following entry was generated at the time of failure
    16:48:00.9222751            2920      IEInstal.exe         CreateFile              
    C:\Users\Jim\AppData\Local\Temp\IDC2.tmp\setup.exe             NAME NOT FOUND               Desired Access: Read Attributes, Read
    Control, Synchronize, Dis, Options: Synchronous IO Non-Alert, Non-Directory File, Disallow Exclusive, Attributes: n/a, ShareMode: None, AllocationSize: n/a
    Analysis of the contents of the cab file using PeaZip indicated that it didn't contain setup.exe which confused me for a while as the makecab /f MyUserControlSetup.ddf produced no errors.
    The MyUserControlSetup.ddf contained
    .Set DiskDirectoryTemplate=cab
    .Set CabinetNameTemplate=DocEditor.cab
    MyUserControlSetup.inf
    MyUserControlSetup.msi
    setup.exe
    Using makecab /f MyUserControlSetup.ddf /v3 I saw that the output was being written to 3 'disk' files but only one was present in explorer after it finished.
    So I guessed that the output was for floppy disks and changed MyUserControlSetup.ddf to contain
    .Set MaxDiskSize=CDROM
    .Set DiskDirectoryTemplate=cab
    .Set CabinetNameTemplate=DocEditor.cab
    MyUserControlSetup.inf
    MyUserControlSetup.msi
    setup.exe
    PeaZip now indicated that the cab file contained the 3 files I expected and using that cab in the codebase attribute installed my ActiveX control

  • **Creating default directory in failed: \logging.properties (Access is denied)**

    Hello Experts,
    i am deploying edq on weblogic.
    After deployment, when lauching the edq url getting below error on firefox.
    **Creating default directory in failed: \logging.properties (Access is denied)**
    by default, it took the path as:
    C:\oraclesw\oracle\middleware\user_projects\domains\oedq_dev_domain\servers\edqdev_server1\tmp\_WL_user\dndirector\1i3bzo\war\WEB-INF\config
    i have unzipped the config.zip into above mentioned config folder.

    When we restart the application server up and start the managed server, the deployment is in the failed status with the following message:
    We have the Memory settings on the managed server set as : -Xmx5024M –XX:MaxPermSize=256M
    <Jul 11, 2013 4:45:13 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application 'dndirector'.>
    <Jul 11, 2013 4:45:13 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
            Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: com.datanomic.utils.transport.TransportSignature
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            Truncated. see log file for complete stacktrace
    >
    <Jul 11, 2013 4:49:42 PM EDT> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=WebAppApplicationOverviewPage&WebAppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Ddndirector%2CType%3DAppDeployment%22%29.>

  • META-INF/context.xml, Tomcat, META-INF/services

    I presently have a Netbeans project laid out like this:
    src
    src\java
    web
    web\META-INF
    web\META-INF\context.xml
    etc. Tomcat finds that META-INF/context.xml OK and does what I expect with it.
    I have recently added something that is loaded by java.util.ServiceLoader, which requires a META-INF/services/x.y.z file containing the name(s) of the classes that implement x.y.z. After deployment, my webapp's ServiceLoader doesn't find it, because in the target it isn't in WEB-INF/classes/META-INF/services/x.y.z. If I put it into src/java/META-INF/services/x.y.z it works correctly, as it then ends up in the right place. However I'm now concerned that either Tomcat won't find the context.xml if I put it in the same place under src, because it would then not be in /META-INF/context.xml but rather /WEB-INF/classes/META-INF/context.xml, which in turn would mean that I would then need two META-INF directories. I'm about to test that conjecture about Tomcat finding it under WEB-INF/classes/META-INF, but I'm wondering whether I'm doing something basically wrong in the first place here.

    You seem to think that you can have only one META-INF directory; this is simply not true. Keep both your META-INF directories and put the files where they are expected. Yay for using overlapping names :/

  • Contents of META-INF/services/javax.xml.parsers.DocumentBuilderFactory?

    I am currently working on an applet that solves Sudoku puzzles, allowing you to build your own in a Constructor and then solve them in a seperate Solver. To do this, we are implementing the puzzles files as XML documents.
    I have the code completely complied and on the server ( [sudoku.unl.edu|sudoku.unl.edu]) and it runs NEARLY perfectly, however when trying to access the server to save the xml code, the apache error_log presents this message: "File does not exist: classes/META-INF/services
    /javax.xml.parsers.DocumentBuilderFactory"
    Looking at the Java Doc here it says that the program should look for that in the jars. I am unsure of exactly how the applet is interacting with the server, but typing "java -version" yields:
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)Notably, the code works PERFECTLY in NetBeans, contacting the server using SCP and uploading the file and such, so the code doesn't seem to be the problem, unless I need to direct the DocumentBuilder code somehow. This is the code that I believe is causing the trouble (I have tried to include all relevant imports that are in my code):
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    DocumentBuilderFactory factoryBuilder;
              DocumentBuilder builder;
              Document doc;
              Element docElement;
              try
                   factoryBuilder  = DocumentBuilderFactory.newInstance( );
                   builder = factoryBuilder.newDocumentBuilder();
                   doc = builder.parse( indexLocation );
                   docElement = doc.getDocumentElement();
                   NodeList children = docElement.getChildNodes();          
                   for(int i =0; i < children.getLength(); i++)
                        if(children.item(i).getNodeType() == 1)
                             if((children.item(i).getNodeName()).equals("directory"))
                                  if ((children.item(i).getAttributes().getNamedItem("name").getNodeValue()).equals("UsersInput")) {
                                       Node firstChild = findNodeItem(children.item(i), "Difficulty0.." + this.upperField.getText());
                                       Node secondChild = findNodeItem(firstChild, "Level" + this.levelField.getText());
                                       Node thirdChild = findNodeItem(secondChild, (String)suTypeList.getSelectedItem());
                                       Element newFile = doc.createElement("file");
                                       newFile.setAttribute("name", fileName);                              
                                       thirdChild.appendChild(newFile);                              
                   SshParameters params = new SshParameters("cse.unl.edu", "consystlab","A/tutti");
                // create new Scp instance
                Scp scp = new Scp(params);
                // register event listener
                scp.addListener(this);
                // establish connection
                scp.connect();
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                   Transformer transformer = tFactory.newTransformer();
                   DOMSource source = new DOMSource(doc);
                   StringWriter sw=new StringWriter();
                   StreamResult result = new StreamResult(sw);
                   transformer.transform(source, result);
                   String xmlString=sw.toString();
                // upload file
                  scp.upload(xmlString.getBytes(), indexPath, "libraryIndex.xml");
                 // disconnect
                scp.disconnect();
              catch (IOException e)
                   System.out.println("IO ERROR7");
                   System.out.println(e);
              catch (TransformerException tranE){
                   tranE.printStackTrace();               
              catch (ParserConfigurationException e)
                   System.out.println("IO ERROR8");
                   System.out.println(e);
              catch (SAXException e)
                   System.out.println("IO ERROR9");
                   System.out.println(e);
              }So my question is, what exactly are the contents of the file in the META-INF/services folder? I have manually created this file in my classes directory, where the program is searching. When I place text in it, it appends the text with .class and searches for that file, but doesn't seem to do anything with the file. I attempted directing it to the "DocumentBuilderFactory.class" file that I extracted from the classes.jar included with the JDK.
    I feel like all I need is this file to contain the correct content and the code will FINALLY work, but I have not been able to find anything out there on it.
    Thank for you for your help, sorry this was such a long message.
    -Jason

    Thanks!
    Thanks for the fast reply. I don't know if I made my point clear.
    I do not want to determine the parser by myself. I want the client system use the default parser, so I do not have the hit of downloading the fairly large parser jar.
    However, I want it not to do an empty request to the server for nothing. This turn around time kills an Applet. I want a fast loading applet!
    I'll go in trial and error mode, when I find the time next week.
    Thanks again, I appreciate it!
    K<o>

  • Url Iview from SAP Portal to Infoview encounters "Access is denied"

    Hi
    We are using URL Iview to point to Business Objects Infoview from SAP Portal. Our requirement is to launch the Infoview within the portal content area. We are able to preview the iview, but encounter "Access is denied" error when we add the iview to page, we realised that we are only able to launch infoview when it is setup to open in a new window.
    Is there a way where we can show the Infoview in portal content frame.
    Regards
    Kamal

    Hi experts,
    i got the same problem how to integrate the InfoView Appl into the "Portal Content Area" and not only as an new Window.
    When i try to analyse the problems, the error stacks say some thin about that an Java Script is trying to change the browser size and the portal is not allowing this... thats my assumptions.
    Has anybody how we could solve this tricky topic ?
    For details to to customize the URL iView please refer to this thread: Integration of InfoView into SAP Portal using SSO
    kind regards
    Stefan

Maybe you are looking for

  • Multiple Reports inside one Single Report

    Post Author: maximus85 CA Forum: Crystal Reports Hi....I'm having this problem of having multiple reports inside one single report. Basically what i wanted to built is a Dashboard that contains 4 main subjects:i)Sales   -    Contains graph that can b

  • Purchase requisition- Mat. description problem.

    Hi Experts, I am stuck with one problem regarding Purchase requisition material description. The scenario is as follows. We have two types of PR creation. With or without material code. Material description is set to display only. But if the user ent

  • Before exit event

    The focusOut event for textinputs fires after focus is lost. Is there an event that will fire before focus is lost?

  • Init Load showing in yellow state.

    Hi all, I am trying to do init for SRM data source to ODS object. The init load is showing  yellow state (0-0 records). There is no data available in SRM related to this data source. Can anyone please tell me why it is in yellow state instead of gree

  • Ipod mini storage

    Hey everyone, I have an ipod mini (1st generation) and it supposedly holds 1000 songs or a certain amount of playing time. Well I've reached 750 songs and it can't hold more. On the new itunes, there is a meter of songs (right now it's at 2.46 GB) an