Packaging An Application

To the expert in J2EE,
I am writing a not so simple application that involves the use of Web and EJBs. In this application has some session beans as follow; SessionBeanA, SessionBeanB, and SessionBeanC, and entity beans as follow; EntityBeanA, EntityBeanB and EntityBeanC.
All of the entity beans are declared as local, but some of the session beans are declared as local and some are declared as remote. The session beans are referenced by servlets in the web component. A session bean may references many entity beans.
My questions are following;
I.     What are the pros/cons to separate Entiy beans and Session beans to two groups of jar files.
1)     Package all entity beans in a module (EntityBeanModule.jar) that contains its own ejb-jar.xml and jboss.xml and all session beans in a module (SessionBeanModule.jar) that contains its own ejb-jar.xml and jboss.xml.
2)     The application directory structure looks the following:
Application.ear
META-INF/
META-INF/application.xml
CoreEntityBeanModule.jar
CoreSessionBeanModule.jar
AppRemoteEntityBeanModule.jar //enity bean remote?
AppLocalEntityBeanModule.jar
AppLocalSessionBeanModule.jar
AppRemoteSessionBeanModule.jar
WebModule.war
lib/
lib/Core.jar //contains all Core java codes
lib/ejb-client.jar //contain remote interfaces for servlets
3)     What are the benefits for doing this? It seems to create a lot more of works in the looking up of the entity beans. Would the invocation of the entity bean be local or remote?
II.     What are the pros/cons to put all Entity beans and Session beans to one jar file.
1)     Package all entity beans and session beans in a jar file (EJBsModule.jar) that contains its own ejb-jar.xml and jboss.xml.
2)     The application directory structure looks the following:
Application.ear
META-INF/
META-INF/application.xml
CoreEJBsModule.jar
AppEJBsModule.jar
WebModule.war
lib/
lib/Core.jar //contains all Core java codes
lib/ejb-client.jar //contain remote interfaces for servlets
3)     What are the benefits for doing this? It saves a lot of works compare to the option I. I can see there is a potential problem for maintenance when the number EJB beans increase to more then 100. What happen when the entity beans need to run on a separate application server?
Thank in advance,
Kam

Hi,
Thank you for all of your reply messages. I used JBoss
for application server and I don't have the GUI editor
to generate the deployment descriptor. If I separate
ejbs into groups based on the functionality. What
happen to the invocation of an ejb when the called
EJBs is in a different jar files that was packaged in
the same ear apllication. Would they automatically
become remote invocation?It will not be remote invocation. If the ejbs are deployed on the same app server it will always be local invocation. This is true as far as WLS is concerned, I am not sure about other app servers. Even if you have not created local interfaces the WLS is smart enough to figure out weather its a local invocation or remote invocation.

Similar Messages

  • Error occurred while packaging the application: Android-x86

    Hello,
    I tried to export an existing Android-ARM to Android-x86:
    This application uses to 2 ANE for In-App purchases. One for iOS and another one for Android. I repackaged the Android ANE file to be compatible with Android-x86 and I also add the new Flash Builder "-arch" with value "x86" and place it before "-storetype".
    Error occurred while packaging the application:
    output file is not writable
    usage:
      adt -checkstore SIGNING_OPTIONS
      adt -certificate -cn <name> ( -ou <org-unit> )? ( -o <org-name> )? ( -c <country> )? ( -validityPeriod <years> )? ( 1024-RSA | 2048-RSA ) <pfx-file> <password>
      adt -help
      adt -migrate SIGNING_OPTIONS ( <air-file-in> | <airn-file-in> ) <output-file>
      adt -package SIGNING_OPTIONS ( -target air )? <output-package> ( <app-desc> FILE_OPTIONS | <input-package> )
      adt -package SIGNING_OPTIONS -target airn <output-package> ( <app-desc> FILE-AND-PATH-OPTIONS | <input-package> )
      adt -package -target ( apk | apk-debug | apk-emulator | apk-captive-runtime ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( -airDownloadURL <url> )? ( ARCH_OPTIONS )? SIGNING_OPTIONS <output-package> ( <app-desc> PLATFORM-SDK-OPTION? FILE-AND-PATH-OPTIONS | <input-package> PLATFORM-SDK-OPTION? )
      adt -package -target ( ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc | ipa-test-interpreter | ipa-debug-interpreter | ipa-test-interpreter-simulator | ipa-debug-interpreter-simulator ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( -sampler )? ANE_LINK_OPTIONS? AOT_MODE_OPTIONS? SIGNING_OPTIONS <output-package> ( <app-desc> PLATFORM-SDK-OPTION? FILE-AND-PATH-OPTIONS | <input-package> PLATFORM-SDK-OPTION? )
      adt -package SIGNING_OPTIONS? -target native SIGNING_OPTIONS? <output-package> ( <app-desc> FILE-AND-PATH-OPTIONS | <input-package> )
      adt -package SIGNING_OPTIONS? -migrate SIGNING_OPTIONS -target native SIGNING_OPTIONS? <output-package> <app-desc> FILE_OPTIONS PATH-OPTION
      adt -package SIGNING_OPTIONS? -target bundle SIGNING_OPTIONS? <output-package> ( <app-desc> FILE-AND-PATH-OPTIONS | <input-package> )
      adt -package SIGNING_OPTIONS? -target ane <output-package> <ext-desc> ANE_OPTIONS
      adt -prepare <airi-file> <app-desc> FILE_AND_PATH_OPTIONS
      adt -sign SIGNING_OPTIONS ( -target ( air | airn | ane ) )? ( <airi-file> | <unsigned-ane-file> ) <output-file>
      adt -devices          PLATFORM-OPTION PLATFORM-SDK-OPTION?
      adt -installRuntime   PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? ( -package <apk-file> )?
      adt -installApp       PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -package <apk-file | ipa-file>
      adt -uninstallRuntime PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION?
      adt -uninstallApp     PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -appid <app-id>
      adt -launchApp        { PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? ( -debuggerPort port )? -appid <app-id> }
      adt -runtimeVersion   PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION?
      adt -appVersion       PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -appid <app-id>
      adt -version
    SIGNING_OPTIONS      : -storetype <type> ( -keystore <store> )? ( -storepass <pass> )? ( -alias <aliasName> )? ( -keypass <pass> )? ( -providerName <name> )? ( -tsa <url> )? ( -provisioning-profile <profile> )?
    FILE_OPTIONS         : <fileOrDir>* ( ( -C <dir> <fileOrDir>+ ) | ( -e <file> <path> ) )*
    ARCH_OPTIONS        : -arch (armv7 | x86)
    CONNECT_OPTIONS      : -connect <host>
    LISTEN_OPTIONS       : -listen <port>
    ANE_LINK_OPTIONS     : -hideAneLibSymbols ( yes | no )
    ANE_OPTIONS          : -swc <swc> ( -platform <name> (-platformoptions <file>)? <fileOrDir>* ( -C <dir> <fileOrDir>+ )* )*
    FILE-AND-PATH-OPTIONS: ( PATH-OPTION | FILE-OPTIONS ) FILE-AND-PATH-OPTIONS?
    PATH-OPTION          : -extdir <dir>
    PLATFORM-OPTION      : -platform (android | ios)
    PLATFORM-SDK-OPTION  : -platformsdk <platform-sdk-home-dir>
    DEVICE-OPTION        : -device ( deviceID | ios-simulator )
    AOT_MODE_OPTIONS     : -useLegacyAOT ( yes | no )

    Hi Nimisha1,
    I tried with both AIR 14.0 final release and also 14.0.125.
    I have a Mac (last version OS).
    With -arch armv7 I got the same error !
    With command line works !
    See the screenshoot of FB 4.7 customize launch:
    See the screenshoot of FB export error:

  • How to package Java application in a setup file?

    I wish to package my application in a setup file. On double clicking the icon of setup file, the installation of the application may begin. I like to include modified JVM, Acrobat Reader along with class files of the application (packaged in a JAR file) in the setup file, i.e., I want to spare users from the headach of downloading before installing the JVM or Acrobat Reader, etc.
    Things like this have been done in commercial products such as Dreamweaver.
    I have no idea right now how this can be done, but I have to work on this. Any hint, suggestion, direction, advise would be highly appreciated.

    This is a simple free program which will allow you to package your JVM etc with all your other files and it'll give you a small exe file which will invoke the VM and start your app. It only works on windows btw.
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm
    After you've set up the program all you need to do is download one the many shareware install programs from download.com. They're normally really easy to use, you just tell them the dir/s you want to package, which files, usually the exe, to add a shortcut to. It will then build a setup exe file for you.

  • "Error occurred while packaging the application... Can't load library" in Flash Builder 4.7 (iOS)

    Been struggling to resolve this error since yesterday in Flash Builder 4.7 packaging an app for iOS.
    Error occurred while packaging the application:
    Exception in thread "Main Thread" java.lang.UnsatisfiedLinkError: Can't load library: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot\lib\llvm.dll
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1706)
              at java.lang.Runtime.load0(Runtime.java:770)
              at java.lang.System.load(System.java:1004)
              at adobe.abc.LLVMEmitter.loadJNI(LLVMEmitter.java:587)
              at adobe.abc.LLVMEmitter.<clinit>(LLVMEmitter.java:597)
              at com.adobe.air.ipa.AOTCompiler.generateExtensionsGlue(AOTCompiler.java:419)
              at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1790)
              at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:378)
              at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:762)
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
              at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:246)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
              at com.adobe.air.ADT.run(ADT.java:419)
              at com.adobe.air.ADT.main(ADT.java:470)

    Update:
    My previous proposed solution (of installing the 64-bit JRE) resulted in a different problem. After multiple attempts and restarts I was unable to work in the Flash Builder IDE as it became unresponsive on load. Each time I had to use Task Manager to close the application.
    Apparent Solution:
    Close all applications running in Windows
    Uninstall all versions of JRE (Java Runtime Environment)
    Uninstall Flash Builder 4.7
    Reinstall Flash Builder 4.7

  • "Error occurred while packaging the application" Apple iOS, Launch on Device

    After several successful launches to a physical iOS device (iPad) I suddenly started getting this error "Error occurred while packaging the application". It occurs within a couple of seconds after I click "Run".  I am running the current FB 4.5.1 on Windows XP (SP 3).  I've tried cleaning the project, re-booting my computer, deleting and re-creating the project, and re-creating the iOS configuration; the issue remains.  I have not yet removed and re-installed FB.
    Below is my configuration info.
    Many thanks if someone has an idea about how to resolve this.

    Here are the log file contents for my most recent session.  Thanks.
    !SESSION 2011-08-21 20:33:58.125 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.ui 2 0 2011-08-21 20:34:11.781
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-08-21 20:34:11.781
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-08-21 20:34:35.890
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-08-21 20:34:35.890
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.work space,Declaration in Workspace,
    Search for declarations of the selected element in the workspace,
    Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.work space,Find All Declarations In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llDeclarationsAction@1b57613)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.work space,Find All Declarations In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llDeclarationsAction@1b57613)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-08-21 20:34:35.890
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.worksp ace,References in Workspace,
    Search for references to the selected element in the workspace,
    Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.worksp ace,Find All References In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llReferencesAction@5ae487)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.worksp ace,Find All References In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llReferencesAction@5ae487)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-08-21 20:34:57.328
    !MESSAGE Error occurred while packaging the application:
    !ENTRY com.adobe.flexbuilder.standalone 4 1 2011-08-21 20:35:12.140
    !MESSAGE p2:flexPlugin=C:/Program Files/Adobe/Adobe Flash Builder 4.5/eclipse/plugins/com.adobe.flexbuilder.flex_4.5.1.313231/
    !ENTRY com.adobe.flexbuilder.standalone 4 1 2011-08-21 20:35:12.140
    !MESSAGE p2:root=C:/Program Files/Adobe/Adobe Flash Builder 4.5/eclipse/
    !ENTRY com.adobe.flexbuilder.standalone 4 1 2011-08-21 20:35:12.218
    !MESSAGE p2: testWriteToFile C:/Program Files/Adobe/Adobe Flash Builder 4.5/eclipse/configuration/permission-check.txt
    !ENTRY com.adobe.flexbuilder.standalone 4 1 2011-08-21 20:35:12.218
    !MESSAGE p2: test file writable
    !SESSION 2011-08-21 21:14:52.000 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.ui 2 0 2011-08-21 21:14:58.265
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-08-21 21:14:58.265
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-08-21 21:15:04.140
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-08-21 21:15:04.140
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.work space,Declaration in Workspace,
    Search for declarations of the selected element in the workspace,
    Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.work space,Find All Declarations In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llDeclarationsAction@118e146)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.work space,Find All Declarations In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llDeclarationsAction@118e146)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-08-21 21:15:04.140
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.worksp ace,References in Workspace,
    Search for references to the selected element in the workspace,
    Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.worksp ace,Find All References In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llReferencesAction@6dca9d)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.worksp ace,Find All References In Workspace,
    Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
    LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindA llReferencesAction@6dca9d)),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-08-21 21:21:34.046
    !MESSAGE Error occurred while packaging the application:

  • Error occurred while packaging the application (IOS - standard mode)

    When compiling for IOS in Standard mode an error ocurred:
    Error occurred while packaging the application:
    Exception in thread "main" com.adobe.air.ipa.ProcessError: Assembler failed
              at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:263)
              at com.adobe.air.ipa.AOTCompiler.compileBitcode(AOTCompiler.java:935)
              at com.adobe.air.ipa.AOTCompiler.trimAndCompileBitcode(AOTCompiler.java:763)
              at com.adobe.air.ipa.ASMGenerator.main(ASMGenerator.java:72)
    Compilation failed while executing : ADT
    Any idea?

    In fact I resolved it, it was while using FlashDevelop IDE, one of my swc library, the assets, was included completely (not a dynamic library nor an external one). The packager didn't seem to like that so I changed it to dynamic and added a simple Array containing all my assets instance names. It worked, thanks anyways Neh

  • Invalid Namespace when trying to package AIR application

    I am using a self-signed certificate when trying to package
    my application, but when I run the command to package it I get the
    following error: "Invalid namespace
    http://ns.adobe.com/air/application/1.0"
    Then it leaves a .tmp file in the directory where I ran the
    batch file containing the package statement.
    What should be done from here?

    Check which version of adt you are using. Sounds like you are
    using a beta release, which wouldn't recognize the final 1.0
    namespace.
    Oliver Goldman | Adobe AIR Engineering

  • Package and application

    What is difference between package and application.

    http://myitforum.com/myitforumwp/2013/03/01/sccm-2012-applications-vs-packages/
    Packages are all we had in ConfigMgr 2007, You can deploy things as a package or an application.
    Applications may take a little more work to add in, but you have many benefits like supersedence.
    If an application that is pushed out via the application model is uninstalled by someone then it will eventually be reinstalled automatically, where as a package wouldn't.
    http://www.david-obrien.net/2014/04/applications-vs-packages-configmgr-package-model-wont-go-anywhere/
    https://allthingsconfigmgr.wordpress.com/2012/06/12/package-vs-application/

  • Packaging AIR application with ant fails, Packaging AIR application inside IntelliJ works

    Hi,
    I can package AIR application (package type ad-hoc distribution) inside IntelliJ (from Build menu)
    but when I try with my ant build, it encounters an error running the adt command
    Is there a way to have more details on the error? At the moment, it's just a Java returned:2 error.
    I've copied my ant config files below.
    Any ideas anyone on where the problem could lie or how to debug it?
    THANKS!
    Note: I have no issue with the package debug target, be it via IntelliJ or my ant build.
    Build.xml
    <project name="headr" default="package-application-debug-interpreter" basedir="../">
              <property file="build/build.properties" />
              <property name="FLEX_HOME" value="${flexsdk.dir}" />
              <taskdef resource="flexTasks.tasks" classpath="${flexsdk.dir}/ant/lib/flexTasks.jar" />
              <target name="clean" description="deletes everything in build folder">
                        <echo message="Removing build directory contents..." />
                        <delete includeemptydirs="true" quiet="false">
                                  <fileset dir="${build.dir}" />
                        </delete>
              </target>
              <target name="perform-file-copy">
                        <mkdir dir="${build.dir}" />
                        <echo message="Copy files to output dir: ${build.dir}" />
                        <copy file="src/HeadrApplication-app.xml" todir="${build.dir}" />
                        <replace file="${build.dir}/HeadrApplication-app.xml" token="[This value will be overwritten by Flash Builder in the output app.xml]" value="out/HeadrApplication.swf" />
              </target>
              <target name="compile" depends="clean,perform-file-copy">
                        <mxmlc file="src/HeadrApplication.as" output="${build.dir}/HeadrApplication.swf" locale="en_US" accessible="false" actionscript-file-encoding="UTF-8" static-rsls="true" configname="airmobile" debug="${debug}" failonerror="true" maxmemory="1024m" fork="true" swf-version="17">
                                  <load-config filename="${flex_config}" append="true" />
                        </mxmlc>
              </target>
              <target name="pack-application" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="pack-application-debug" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-connect" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="package-application-debug-interpreter">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug-interpreter" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-debug">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-adhoc">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-ad-hoc" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxxx" />
                        </antcall>
              </target>
              <target name="package-application-appstore">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-app-store" />
                                  <param name="provisioning-profile" value="ios_profiles/TODO" />
                                  <param name="keystore" value="ios_profiles/TODO" />
                                  <param name="storepass" value="TODO" />
                        </antcall>
              </target>
              <target name="launch-application">
                        <exec executable="${adl.exe}">
                                  <arg value="bin-debug/HeadrApplication-app.xml" />
                                  <arg value="-profile mobileDevice" />
                        </exec>
              </target>
    </project>
    app-config-device.xml
    <?xml version="1.0"?>
    <flex-config xmlns="http://www.adobe.com/2006/flex-config">
              <compiler>
                        <include-libraries append="true">
                                  <library>../libs/swc/robotlegs-framework-v1.5.2.swc</library>
                                  <library>../libs/swc/greensock-as3-v11.693.swc</library>
                                  <library>../libs/swc/GraphAPI_Mobile_1_8_1.swc</library>
                                  <library>../libs/swc/MonsterDebuggerMobile-v3.0.2.swc</library>
                <library>../libs/swc/TheMiner_en_v1_3_10.swc</library>
                <library>../libs/swc/analytics-v1.1.319.swc</library>
                <library>../libs/swc/assets.swc</library>
                        </include-libraries>
                        <source-path append="true">
                <path-element>../../corelib/src/</path-element>
                <path-element>../../corelib/test/</path-element>
                <path-element>../../corelib/libs/src/</path-element>
                                  <path-element>../libs/src/</path-element>
                        </source-path>
                        <external-library-path append="true">
                <!-- path-element>../ane/com.headr.HeadrNativeExtensions.ane</path-element -->
                <path-element>../ane/com.milkmangames.extensions.GoViral.ane</path-element>
                        </external-library-path>
                        <debug>false</debug>
                        <define>
        <name>CONFIG::debugging</name>
        <value>false</value>
                        </define>
    <define>
        <name>CONFIG::simulator</name>
        <value>false</value>
    </define>
              </compiler>
    </flex-config>

    You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-buil der-flex.html
    Update your ANT script with these, and try again.

  • Packaging an Application that uses Oracle Drivers

    I need to package an application into an executable file, or at least an executable jar file. I am using JBuilder for development. Of course everything works correctly with finding drivers and connecting to the database using JBuilder. I used JBuilder's Archive Wizard to create a jar, then turn it into an executable jar. It also makes executables (ie. .exe files) for me.
    However, I have tried several combinations and it just can't find the drivers. It always throws a ClassNotFoundException. I have tried including the drivers files and as resources when making the jar. I have even tried putting them directly in when using command line:
    set classpath = c:\ojdbc14.jar
    java -classpath c:\ojdbc14.jar -jar myApp.jarand it still says it cannot find the drivers.
    Any advice would be greatly appreciated!
    Thanks!
    Amber

    Hello Amber;
    I am trying to connect to oracle through java. The java application is build with JBuilder and the oracle driver, i.e. classes12.jar and ojdbc14.jar, are added in the CLASSPATH.
    When I create a class without JBuilder as stand alone class, it works fine. But when I use the same code in the my JBuilder application, it does not load the driver, gives ClassNotFound exception.
    Please specify, is there a special way to access databse from jbuilder. Do I have to include drivers in Jbuilder, if yes, then how? or it is due to some other problem
    Your help will be greatly appreciated.
    Regards
    Ali Hammad

  • Is it legal to create packaged APEX applications and sell them?

    Is it legal to create packaged APEX applications and sell them to Oracle DB licensed clients?
    A.

    No licensing applies to any environment where you have a live database. The exception is that you can try a product without license, but as soon as development of a product of developing/testing of an in-house solution is done, you need to be licensed. Being a partner changes this slightly assuming all parties involved are partners (one sigle tester from the outside shifts it back to full license mode).
    Another situation where license is not needed is to use XE for which no license is required.
    Yet one more way to have al low cost is to use Amazon AWS to set up an image with an included license. The cost per hour is really low so it may be a good model to not have to pay everything upfront.
    You can also reduce license cost by using named user licensing in development assuming there are few people who ned to access the database. Though there are minimums of number of named user licenses you can have depending on edition of the database.
    Overall, knowing your licensing requirements is key. The defense "We didn't know" has been tried before and has not proven to help at all. The cost of an audit will often be a CLM for the person responsible to pay the licenses.

  • Is it possible to packaging Air application for Mac AppStore with Air 3?

    Is it possible to packaging Air application for Mac AppStore with Air 3 ?

    Anyone from adobe? Anyone?
    Also I was wondering what could prevent the window from going
    away when user uses windows "show desktop" command, or perhaps
    there is a way to restore it right away?
    thanks.

  • Need help on packaging an application

    Hi,
    Can anyone please guide me in packaging an application? On trying to create the installation scripts, I am not sure how to add the database objects to it.
    Thanks in advance.
    Regards,
    Annie

    Hi Varad,
    That problem is resolved. I could not add all DDL statements in a single installation script. But things worked fine on creatin separate ones.
    But I have one more query. In addition to installing the database objects, how can I also copy the data to another instance?
    Annie

  • Cisco Unity Express requirement (license,package files,application)

    Hi everyone,
    I am about to install CUE on my c2911 router and I am confused with the license needed. Currently I have these license:
    1.     SL-29-UC-K9           : Unified Communication License
    2.     FL-CUE-MBX-5        : Unity Express License - 5 Mailbox -CUCM and CUCME
    3.     FL-CUE-PORT-2      : Unity Express License - Non Re-hostable-2 Port
    4.     VWIC2-1MFT-T1/E1 : 1-Port 2nd Gen Multiflex Trunk Voice/Wan Int. Card - T1/E1
    Is there any license/package files/application that I need in order to get this service running?
    Regards.

    This should help:
    http://www.cisco.com/en/US/docs/voice_ip_comm/unity_exp/rel7_1/Licensing/Using_CSL.html
    Chris

  • Packaging java application

    I don't know whether this is an appropriate place to post my question or not. I have built a java application. Now, I have to package the application. I can easily package it using Advanced Installer which is based on microsoft installer. My million dollar question is, what would or should I use to package my application that is a java-based packaging application?? i.e. it will install my application in any platform just as my application will run in any platform. Does that make sense???
    Namrata

    http://www.google.com/search?num=100&hl=en&lr=lang_en&c2coff=1&q=%22java-based+installer%22&btnG=Search
    You need to answer the "should" question yourself. How much money do you have to spend, etc., etc.

  • Package vs Application

    Hello,
    I have an SCCM package that copies a bunch of files to the workstation.  I have been running this as a package through SCCM and it has been functioning fine.
    My boss has asked us to convert everything from packages to applications.  When I write this as an application, when the files to be copied are copied to the ccmcache folder on the workstation it changes the "date modified" on all the files
    to the current date and time.  So then when the files are copied from ccmcache to the proper location on the workstation they all have the current date and time rather than the date and time when the file was actually modified.
    Summary:  Package -> ccmcache folder has proper date modified on all files
                     Application -> ccmcache folder has current date and time as the date modified on all files
    Any way to keep this from happening?

    As was mentioned previously, antivirus software could be interacting and changing the timestamps.  However, maybe a more basic question is needed:
    Why does the timestamp matter?
    Are you using it for the detection rule in the application? If so, maybe look at another way to detect the presence of the files.
    For reference, here are a couple items to look at as well:
    https://social.technet.microsoft.com/Forums/en-US/40bc4099-4cc7-47de-a457-b272f991a004/detection-method-of-date-modified-fails-due-to-copied-files-date-modified-change?forum=configmanagerapps
    http://support.microsoft.com/kb/299648

Maybe you are looking for

  • When trying to update apps it asks for account password but it doesn't show my account. Help!

    When trying to update apps it asks for account password but it doesn't show my account ID, it shows my dad's. How can I fix this so I can sign in?

  • I have 5 pictures of my house and i would like to put them all into one

    Can someone please help me.  I have 5 pictures of my house (rooms) saved on my computer and I was wondering if there is a way that I could combine them and make them all into one picture.  I have done it where I can do before and after pictures where

  • Can I put a frame around a photo in premier elements

    I have used photoshop Elements for years for scrapbooking, but as just starting to use premier Elements.  my first project will be using a lot of very old family portraits and put on a DVD.  can I put a frame around a photo in premier elements and ca

  • Some question about sql code

    for example: select from testtable outputs below results: item_desc 950gapple(z)110ml*40 650gbanana(z)215ml 1x18 make above example outputs below result: item_desc a950gapplez110ml40 a650gbananaz215ml1x18 how to write above sql code? who can help me?

  • ITunes Maxing CPU when next song plays

    I installed the latest update of iTunes 7. Since then, while playing songs, iTunes fluxuates from 30% CPU to 65% with it occasionally maxing the CPU to 100% when a new song starts. The music sounds all garbled for about a second or two and locks up m