This is Bush George.
I have developed one adf mobile app. When I am trying to deploy the app i am getting error
The Android Dalvik file (.dex) does not exist.
the following is the deployment log of my application
[05:43:35 PM] Updating Android profile dependencies with FAR profiles created from application projects...<br>
[05:43:35 PM] ---- Deployment started. ---- <br>
[05:43:35 PM] Target platform is (Android).<br>
[05:43:35 PM] Beginning deployment of ADF Mobile application "HelloWorld" to Android using profile "Android1".<br>
[05:43:35 PM] Checking state of Android Debug Bridge server...<br>
[05:43:36 PM] Android Debug Bridge server already running.<br>
[05:43:40 PM] Verifying a single Android emulator is online and connected to the ADB server...<br>
[05:43:40 PM] Running dependency analysis...<br>
[05:43:40 PM] Building...<br>
[05:43:41 PM] Deploying 3 profiles...<br>
[05:43:42 PM] Wrote Archive Module to F:\Oracle\Middleware2\jdeveloper\jdev\extensions\oracle.adf.mobile\Samples\HelloWorld\ApplicationController\deploy\ApplicationController.jar<br>
[05:43:42 PM] WARNING: No Resource Catalog enabled ADF components found to package<br>
[05:43:42 PM] Wrote Archive Module to <br>F:\Oracle\Middleware2\jdeveloper\jdev\extensions\oracle.adf.mobile\Samples\HelloWorld\ViewController\deploy\ViewController.jar<br>
[05:43:42 PM] Starting to prepare the packaging...<br>
[05:43:42 PM] Verifying existence of the .adf source directory of the ADF Mobile application...<br>
[05:43:42 PM] Verifying Application Controller project exists...<br>
[05:43:42 PM] Verifying application dependencies...<br>
[05:43:42 PM] Verifying project dependencies...<br>
[05:43:42 PM] Validating application XML files...<br>
[05:43:43 PM] Validating XML files in project ApplicationController...<br>
[05:43:43 PM] Validating XML files in project ViewController...<br>
[05:43:43 PM] Copying FARs to the ADF Mobile Framework application...<br>
[05:43:43 PM] Extracting Feature Archive file, "ApplicationController.jar" to deployment folder, "ApplicationController".<br>
[05:43:43 PM] Extracting Feature Archive file, "ViewController.jar" to deployment folder, "ViewController".<br>
[05:43:43 PM] Copying Android template...<br>
[05:43:59 PM] Copying framework resource files...<br>
[05:43:59 PM] Copying framework java resource files...<br>
[05:44:03 PM] Copying common javascript files...<br>
[05:44:12 PM] Deploying skinning files...<br>
[05:44:14 PM] Copying application image files...<br>
[05:44:14 PM] Copying ADF Mobile configuration files...<br>
[05:44:14 PM] Copying .adf files...<br>
[05:44:14 PM] Copying security related files to the ADF Mobile Framework application...<br>
[05:44:14 PM] Creating Android preferences XML files...<br>
[05:44:14 PM] Creating AndroidManifest.xml file...<br>
[05:44:14 PM] Creating Google Cloud Messaging intent service file GCMIntentService.java...<br>
[05:44:14 PM] Creating unsigned Android application file...<br>
[05:44:36 PM] Compiling Android Resource Identifier file...<br>
[05:44:38 PM] Creating Android classes.dex file from class files...<br>
[05:44:38 PM] Updating unsigned Android application file with DEX file and .adf content...<br>
[05:44:38 PM] Deployment cancelled.<br>
[05:44:38 PM] ---- Deployment incomplete ----.<br>
[05:44:38 PM] The Android Dalvik file (.dex) does not exist.(oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)
Please help me in this.
Thanks in advance.
Related
We are having trouble deploying an ADF application being worked on by a colleague using Jdeveloper 11.1.1.9.0 to a standalone Weblogic 10.3 server so I was asked to post up a question here to see if anyone knows the cause of the problem.
Deployment Summary
Application Server
- Name: StandaloneWLServer
- Platform: Weblogic 10.3
- Overwrite modules: yes
- Deploy to selected instances in the domain: WC_CustomPortal (Running)
- Deploy as a standalone application
JDeveloper Deployment Log
[12:15:43 PM] ---- Deployment started. ----
[12:15:43 PM] Target platform is (Weblogic 10.3).
[12:15:43 PM] Retrieving existing application information
[12:15:43 PM] Running dependency analysis...
[12:15:43 PM] Building...
[12:15:52 PM] Deploying 3 profiles...
[12:15:52 PM] Wrote Archive Module to C:\Public\JDeveloper\mywork\CG22App11g\Model\deploy\CG22App11g_Model_adflibCG22App11g1.jar
[12:15:54 PM] Wrote Web Application Module to C:\Public\JDeveloper\mywork\CG22App11g\ViewController\deploy\CG22App11g_ViewController_webapp1.war
[12:15:55 PM] Wrote Enterprise Application Module to C:\Public\JDeveloper\mywork\CG22App11g\deploy\CG22App11g.ear
[12:15:55 PM] Deploying Application...
[12:16:09 PM] [Deployer:149191]Operation 'deploy' on application 'CG22App11g' is initializing on 'WC_CustomPortal'
[12:16:10 PM] [Deployer:149193]Operation 'deploy' on application 'CG22App11g' has failed on 'WC_CustomPortal'
[12:16:10 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application CG22App11g on WC_CustomPortal.: null.
[12:16:10 PM] Weblogic Server Exception: weblogic.application.WrappedDeploymentException
[12:16:10 PM] See server logs or server console for more details.
[12:16:10 PM] weblogic.application.WrappedDeploymentException
[12:16:10 PM] #### Deployment incomplete. ####
[12:16:10 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
Weblogic Server Log:
[2016-10-21T11:39:11.393-04:00] [WC_CustomPortal] [ERROR:7] [BEA-149265] [Deployer] [host: oscls-lims-ap21.osc.uscg.mil] [nwaddr: 10.149.177.197] [tid: [STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: 0000LVbtLUMB9DR_UXs1yc1O1uHz0000WH,0] [TARGET: /Farm_UCM_domain/UCM_domain/WC_CustomPortal] [TARGET_TYPE: weblogic_j2eeserver] Failure occurred in the execution of deployment request with ID '1477064346998' for task '58'. Error is: 'java.lang.NullPointerException'[[
java.lang.NullPointerException
at oracle.security.jps.internal.config.deploy.AbstractCredentialDeployment.cleanupTempFiles(AbstractCredentialDeployment.java:141)...
Related Information
I was able to deploy and run the same app in the Integrated WLS server in the JDeveloper (Studio Edition: 11.1.1.9).
I was able to compile and build an EAR file but failed to deploy the EAR via Oracle Enterprise Manager with the same error message.
Which exact version of WebLogic are you using? Did you install the ADF Runtime on that server?
http://www.oracle.com/technetwork/developer-tools/jdev/documentation/index-091111.html#Application_Servers
Hello I followed the procedure to build and deploy android Application on emulator using Jdeveloper 12c .the Oracle link for the procedure is this http://docs.oracle.com/cd/E53569_01/tutorials/tut_jdev_maf_app/tut_jdev_maf_app.html
try to deploy my app on the android emulator for testing it gave me these Errors:
[05:57:57 PM] Signing application...
[05:57:57 PM] Command-line executed: ["C:\Oracle\Middleware\Oracle_Home\oracle_common\jdk\bin\jarsigner", -keystore, "C:\Program Files\Java\jdk1.7.0_11\bin\Omile.keystore", -storepass, madu123, -keypass, madu123, -digestalg, SHA1, -sigalg, MD5withRSA, "C:\JDeveloper\mywork\Employees\deploy\Omile\Employees.apk", Omile]
[05:57:57 PM] jarsigner: Certificate chain not found for: Omile. Omile must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
[05:57:57 PM] Command-line execution failed (Return code: 1)
[05:57:57 PM] Command-line executed: "C:\Oracle\Middleware\Oracle_Home\oracle_common\jdk\bin\jarsigner" -keystore "C:\Program Files\Java\jdk1.7.0_11\bin\Omile.keystore" -storepass madu123 -keypass madu123 -digestalg SHA1 -sigalg MD5withRSA "C:\JDeveloper\mywork\Employees\deploy\Omile\Employees.apk" Omile
[05:57:57 PM] Deployment cancelled.
[05:57:57 PM] ---- Deployment incomplete ----.
[05:57:57 PM] Deployment failed due to one or more errors returned by 'C:\Oracle\Middleware\Oracle_Home\oracle_common\jdk\bin\jarsigner'. The following is a summary of the returned error(s):
Command-line execution failed (Return code: 1)
Please i am new to Jdeveloper what should i do to rectify the Challenge?
When i deploy an app in iOS device. I got following error and i am using latest version of JDeveloper 11.1.2.4
[02:39:06 PM] error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Developer: Vijay Rathi (EM62NKCF2U) --resource-rules=/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app/ResourceRules.plist /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app failed with error 1. Output: /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature
[02:39:06 PM] Program /usr/bin/codesign returned 1 : [/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature
[02:39:06 PM] Command-line execution failed (Return code: 1)
[02:39:06 PM] Deployment cancelled.
[02:39:06 PM] ---- Deployment incomplete ----.
[02:39:06 PM] Failed to package the XCode application.
[02:39:06 PM] Failed to build the iOS application bundle.
[02:39:06 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: Vijay Rathi (EM62NKCF2U) --resource-rules=/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app/ResourceRules.plist /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app failed with error 1. Output: /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature
Program /usr/bin/codesign returned 1 : [/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature
Please help me out on this issue.
Thanks in advance.
Finally, I got the solution
There is a script someplace which generates all the commands run during an Organizer Validate. I did some digging with grep and find. The script indeed exists and it's name is:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
The fix is to add the required environment var to the associative array %ENV right at the start, say at line 72:
$ENV{CODESIGN_ALLOCATE} = '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate';
When using a more recent version of Xcode (i.e. Xcode 5) , the default location is:
$ENV{CODESIGN_ALLOCATE} = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate';
When i deploy app in device. I got following error. I used xcode 4.6.
[03:43:57 PM] Command-line executed: /usr/bin/xcrun -sdk iphoneos PackageApplication -v /Users/evosys/jdeveloper/mywork/ConsumeWS/deploy/distribute/Destination_Root/Applications/ConsumeWS.app -o /Users/evosys/jdeveloper/mywork/ConsumeWS/deploy/distribute/Destination_Root/Oracle_ADFmc_Container_Application/device/ConsumeWS.ipa --sign iPhone Developer: Rakesh Raman (G445TJT9SV) --embed /Users/evosys/Library/MobileDevice/Provisioning Profiles/827FDDF6-210D-4725-9018-B2C6FC222FD4.mobileprovision
[03:44:00 PM] error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Developer: Rakesh Raman (G445TJT9SV) --resource-rules=/var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app/ResourceRules.plist /var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app failed with error 1. Output: /var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app: replacing existing signature
[03:44:00 PM] Program /usr/bin/codesign returned 1 : [/var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app: replacing existing signature
[03:44:00 PM] Command-line execution failed (Return code: 1)
[03:44:00 PM] Deployment cancelled.
[03:44:00 PM] ---- Deployment incomplete ----.
[03:44:00 PM] Failed to package the XCode application.
[03:44:00 PM] Failed to build the iOS application bundle.
[03:44:00 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: Rakesh Raman (G445TJT9SV) --resource-rules=/var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app/ResourceRules.plist /var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app failed with error 1. Output: /var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app: replacing existing signature
Program /usr/bin/codesign returned 1 : [/var/folders/6w/ycncqpg12mj_l56xbqgly6_80000gn/T/ZSzoPT55UE/Payload/ConsumeWS.app: replacing existing signature
Which version of JDeveloper are you using?
You need to be using 11.1.2.4.
I use following video for configuring ios setting.
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adfmobiledeployios.html
But, When i deploy application in device i get following error.
[03:27:06 PM] xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
[03:27:06 PM] Command-line execution failed (Return code: 0)
[03:27:06 PM] Deployment cancelled.
[03:27:06 PM] ---- Deployment incomplete ----.
[03:27:06 PM] Failed to package the XCode application.
[03:27:06 PM] Failed to build the iOS application bundle.
[03:27:06 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s):
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
It appears /Volumes/Xcode doesnt exist on your filesystem when you were trying to deploy. Even more so, having Xcode under hte "volumes" directory indicates you have the xcode.dmg file mounted onto your filesystem as a mount and not actually installed on your filesystem.
I made a similar mistake, as the /Volumes/Xcode directory disappeared on me over night one time. To install onto your system, drag the xcode.dmg file onto the applications folder. You can use xcode from there.
After you install Xcode into your applications directory, double check your JDeveloper iOS settings "Tools > Preferences > ADF Mobile > Platforms". Make sure the SDK and xCode directories are correct.
Thanks,
Gavin
http://pitss.com/us