Package class files with bpel suitcase

Hello,
Is it possible to package java classes which are invoked through WSIF along with the BPEL Suitcase generated by bpelc?
I've noticed that when generating and deploying the suitcase using JDeveloper (10.1.3.x) - the class files are compiled to the output directory and packaged in the suitcase, but when I run the same build.xml via Ant (ant deploy-process), the class files are missing in the output directory and thus missing in the suitcase.
I'm using BPEL 10.1.3.
So, the question is what causes the difference and how can I achieve packaging the class files using Ant without Jdeveloper.
Any help is most appreciated.
Best regards,
Harm

Well, I found the answer myself after decompiling com.collaxa.cube.ant.taskdefs.Bpelc.class..... because documentation or manuals about the ant tasks where not available.
Apparently, the bpelc tasks can have nested elements of type zipfileset. (See the Ant documentation about this type). In here is the solution.
Here is a how-to:
You have to change the jdeveloper generated build.xml.
@ 1st you have to add a "javac" task (if not already there) like below, and add it to build.xml:
<target name="java-compile" description="Compile Java source files">
<echo>
| Compiling java source files
</echo>
<javac destdir="${process.dir}/output"
encoding="UTF-8" source="1.5" target="1.5">
<src path="src"/>
</javac>@ 2 Extend target "process-deploy" to depend it on target "java-compile". It is important that the java gets compiled before the bpelc is executed. Like so:
<target name="process-deploy"
depends="validateTask, java-compile, compile, deployProcess, deployTaskForm, deployDecisionServices" />@ 3 Change the bpelc task by including a nested classes element that includes your class files, like so:
<bpelc input="${process.dir}/bpel/bpel.xml" out="${process.dir}/output"
rev="${rev}" home="${bpel.home}">
<classes dir="${process.dir}/output" includes="**/*.class"/>
</bpelc>When you run target "process-deploy", the class files are added to the bpel suitcase.
Harm

Similar Messages

  • Packaging  jar  file with classes

    Hi experts,
    I want to clarify a problem in relation with packaging .class files in jar file making
    it jar executable.I was able to achieve this when number of classes are limited and confined to only a single program.However recently i developed a software
    which is very much like SQL*Plus and retriee my company database using screen buffer management and i have handled almost all the issues.
    But so long to execute this program i am typing
    java <Program name>.It is using Oracle as backend.
    I tried to package Oracle driver files in jar using
    jar -cmf manifest.mf sqlpad.jar *.class Oracle\
    where Oracle directory contains all the class files in separate folders like
    Oracle\javax etc
    I get a jar file with hefty MBs size.It is executable too.But when i try to connect to
    database, i get message Oracle driver class is not found.
    In what way should i package it as jar file ?

    I wouldn't add the drivers to the JAR itself. Instead, I'd suggest one of the following:
    1.) Add classpath entries into your manifest file pointing to the drivers' JARs
    2.) Create a batch file for starting that contains a call to "java -classpath ..."
    3.) Add some way to your app to configure additional classpaths at runtime and use a URLClasssLoader (and a wrapper class for the driver for registering with the DriverManager) that loads the driver's class

  • Using class files with applets

    I've converted a college project, a calculator, into an applet for a website resume. When the html file that loads the applet is opened on a machine with a JVM, the applet works fine. When I tested it on a machine that doesn't have a JVM, the applet wouldn't open.
    I'm assuming its because I'm using methods from classes such java.math, java.awt and java.awt.event. I wanted to try to include the neccessary class files into a .jar file that could be included into the archive attribute. Would this work? and also, where can I actually find these files so that I can put them into a jar file. For example, which directories would I look at to find them? I'm on Mac OS 10.3.7.
    Even with a search utility,I can't find the specific files with I'm looking for.
    Any help is greatly appreciated

    Hi,
    It doesn't matter that you have used classes in the packages java.math etc. The application will never run if there isn't a JRE installed for the web browser. I think most people usually puts a script on the html page which detects if a JRE is installed, and directs users to the download page if there is no JRE.
    Kaj

  • Se development kit (jdk 6) problem creating class file with HelloWorldApp

    I downloaded the java SE Development kit (JDK 6) with Java FX SDK and used the download manager from Java web site, the program downloaded the
    jdk-6u13-javafx-1_1_1-windows-i586 icon to my desktop and the java program to
    C\Program Files\Java\jdk1.6.0_13
         Jre1.5.0_05
         Jre1.6.0_03
         Jre6
    I then created a Java source file which was HelloWorldApp.java. and typed in the Hello World Code as requested I saved it to
    C\Documents and Settings\Compaq_owner\Java.
    Then I try to compile my source file into a .class file and get stuck as I am told to open a command window which I do through, start\allprograms\accessories\command promt.
    My command window says C:\Documents and Setting\Compaq_Owner>
    I am told to compile my source file and I must change my directory in the command window to the directory where my file is located.
    I type after the existing promt, cd C:\java and also tried, cd C:\Documents and Settings\Compaq_Owner\Java\HelloWorldApp. And was told both times the system cannot find the path specified
    I typed dir after the promt and can see the java directory there in the list, but have I placed my HelloWorldApp File in the wrong place what is wrong please help I cannot get off the ground
    Kind regards pete

    petefizz wrote:
    I then created a Java source file which was HelloWorldApp.java. and typed in the Hello World Code as requested I saved it to
    C\Documents and Settings\Compaq_owner\Java.Then the full path to your HelloWorldApp.java file is: C\Documents and Settings\Compaq_owner\Java\HelloWorldApp.java.
    Then I try to compile my source file into a .class file and get stuck as I am told to open a command window which I do through, start\allprograms\accessories\command promt.
    My command window says C:\Documents and Setting\Compaq_Owner>
    I am told to compile my source file and I must change my directory in the command window to the directory where my file is located. You file is located in the directory, C\Documents and Settings\Compaq_owner\Java
    I type after the existing promt, cd C:\java and also tried, cd C:\Documents and Settings\Compaq_Owner\Java\HelloWorldApp. And was told both times the system cannot find the path specifiedcd stands for Change Directory. You want to change to the directory where your .java file is. You can not use a path that ends in a file because a file is not a directory.
    You may need to put C\Documents and Settings\Compaq_owner\Java inside double quotes, "C\Documents and Settings\Compaq_owner\Java" I think newer versions of Windows will not require the double quotes.

  • Problems creating packaged .h files with javah -jni

    I have all of my .java and .class files in package ClassLib.Satrack.
    My directory structure is C:/SatrackIIP/NavComponent/ClassLib/Satrack.
    I compiled all java files by calling javac ClassLib/Satrack/*.java from NavComponent directory. Then still from NavComponent directory, I call javah -jni ClassLib/Satrack/TrajectoryGenerator. However I am getting an error message:
    Error: Class ClassLib/Satrack/TrajectoryGenerator could not be found.
    Why am I getting this error?

    Fixed it. I should be calling javah -jni ClassLib.Satrack.TrajectoryGenerator and not using dashes in between.

  • .class Files with "$X" extensions

    Hi everybody,
    when I deploy my App, some confusing .class files are generated by my JDev (10.1.3.3) ...
    In my Project I declare a Class named
    - JClientDesktopManager.java
    This is compiled to two .class files:
    - JClientDesktopManager.class     
    - JClientDesktopManager$1.class
    Whats that strange class with "$1"?
    Should I care about about it? - it seems randomly...

    Hi!
    Theses files house anonymous inner classes, a standard Java mechanism.
    Whenever you write something like:
    ActionListener listener = new ActionListener() { public void actionPerformed(ActionEvent event) { <your code here> }};or
    JTable table = new JTable() { public boolean isEnabled() { <your code here> }};you create in fact new (anonymous) inner classes. These classes have no name (hence "anonymous"), they are just numbered.
    For more background you could just Google for "anonymous inner class".
    Sascha

  • Two class files with $ on compile

    Hello friends, I have a simple java program, that consists of two classes, coded in the the same java file.
    One of hte classes extends Thread.
    When I compile the source file, I get one class file for the base class, and two for the other one - ClassName.class and ClassName$1.class.
    Why is the second one created?

    The ClassName$1.class is a class file for an anonymous inner class. You create them with code likebutton.addActionListener(new ActionListener() {
         actionPerformed(ActionEvent ae) {
              System.out.println("button was pressed");
    });This particular example is from the GUI world where event listeners are commonly created using anonymous inner classes. There's a separate file for it just because there's always exactly one class file for each class.

  • Creating 'packaged' SWF file with Flash Prof

    Hi Experts,
    I have a simple requirement, however, I have spent some time trying to find a solution to it and I'm a novice so would be v grateful from input from those more experienced.
    Firstly, I've created with Adobe Captivate an SWF file which I have been able to reference in an aspx page and when I view the website, it runs fine (no other file is referenced to run this).  Example of the below code in the aspx page I have created:
    object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="500" height="400" id="Untitled-1" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="progressive2.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#aaaaaa" />
    <embed src="MY_VIDEO.swf" quality="high" bgcolor="#ffffff"
    width="500" height="400" name="Untitled-1" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    My objective is this. I have a final edited FLV video file. I also have Flash Professional. What I want to do is create a single SWF file (like with the Adobe Captivate example), which will include the video and the skin for the progress bar, volume etc and then reference this in another aspx page for the website.
    I want to be able to have the same 'packaged' SWF file, as in the captivate, created from this FLV video. In Flash Proffessional, I've imported the FLV into the 'stage' and added a skin through the wizard.  But trying to publish or other options, I've not been able to get this single 'packaged' SWF file to run correctly in the website, via the same apsx code as above.
    Am I missing a trick here?  I would presume it would be fairly simple as I don't want to edit the video, more I want to embedded it with a skin in the one SWF file. I would be grateful for any pointers.
    Many thanks in advance.
    Mark

    You wrote  "I've imported the FLV into the 'stage' and added a skin through the wizard" from this I conclude that you choose the deafult option, that says "load external video with plyback component" (only this one offers you a skin wizard). But when you deploy that swf to a server it still needs the flv source (search Help for FLVplayback), and even the Skin (its an extra swf) must be depoyed to the server. What you instead want to do is option 2: embed FLV in swf. There are some disadvantages to this solution: the longer the video, the more probable it is, Audio and Video will get desynchronized, and: you can`t use Adobes premade skins for the controls

  • Launching Class File with URLClass Loader

    Before anyone flames me I want toe explain that I have searched the forums and the deveolper section and though I have found a lot of useful information I am still not sure what I am missing. It may be something small that I am just over looking so if someone could look over my code I would greatly appreciate it.
    I am making a class with a URLClassLoader with which I can launch another java class file. At this stage the class merely takes the path to the file and the name of the class file as command line arguements. This attempt was just a test so I could implement it into another application. The code itself was almost taken completely from a trial on the developer part of this site. The issue I am running into is that nothing appears to launch. I can run the app from the command line and pass the arguements, however the class file I pass never appears to launch. I do not receive any errors at all. Any ideas what I am missing or doing wrong?
    import java.net.*;
    import java.io.*;
    public class Launcher
         public static void main(String args[])
              try
                   File daPath = new File(args[0]);
                   System.out.println(daPath.toString()); //output
                   URL daPathURL[] = {daPath.toURL()};
                   ClassLoader daLoader = new URLClassLoader(daPathURL);
                   Class daClass = daLoader.loadClass(args[1]);
                   System.out.println("loaded " + daClass.toString()); //output
                   Object daObj = daClass.newInstance();
                   System.out.println("new instance"); //output
              }catch(MalformedURLException e){
                   e.printStackTrace();                    
              }catch(ClassNotFoundException e){
                   e.printStackTrace();
              }catch(InstantiationException e){
                   e.printStackTrace();
              }catch(IllegalAccessException e){
                   e.printStackTrace();
    }

    Are we talking about a new main class here with an main method.
    To run such a class you don't instaciate it (it does that itself). You need to load the class then invoke the main method.
    Something like:
    String[] otherArgs = String[args.length - 2]; // copy args except first two
    System.arrayCopy(args, 2, otherArgs, 0, args.lenght - 2];
    Method mainMethod = dClass.getMethod("main", new Class[]{String[].class});
    mainMethod.invoke(null, new Object[]{otherArgs});

  • Packaging Illustrator files with AppleScript

    Is there not an AppleScript command for Illustrator to package a file?  I use this extensively in InDesign and was trying to make a workflow for Illustrator files.

    The Package command is only usable in the Creative Cloud versions of AI. Don't know if it has been added to the Apple Script commands.

  • I can load an Applet .class file with an OBJECT tag...

    How can I load a .jar file? I foolishly believed I could replace "myclass.class" with "myjar.jar" in the <PARAM> tag associated with an <OBJECT> tag, and if I had created my manifest file correctly, the Main-Class in my .jar would have its init() method called upon IE load of the web-page. But alas, it is not that simple.
    Is there an incantation of the <OBJECT> tag that is appropriate for .jar files?
    Thanks in advance for any help you can provide in this area.

    Please ignore the duplication. My browser burped, and I can't seem to figure out how to delete a thread.
    See answer posted in other thread.

  • Package jar files with the jdeveloper extension

    I have some dependent 3rd party jar files that needs to go with the extension. How can I package it with the extension?

    DJ,
    If you're still using 11.1.1.5 (or any version of 11gR1) place the third party libraries into a directory in your project, and reference them via the classpath entry in the extension.xml file.
    If you are looking at how you can distribute them with your extension, but not put them inside the extensions .jar file, then put them read this blog post about how to bundle your extension for distribution.
    http://blogs.oracle.com/jdevextensions/entry/working_with_jdeveloper_update_centers_and_bundlexml
    If you are adding external libraries to an extension in 11gR2, there is a blog post about that:
    http://blogs.oracle.com/jdevextensions/entry/adding_exteneral_jars_to_an
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Package ipa file with adt

    Hi,
    I've almost completed my first app and I'm looking for the best way to generate the ipa file. I use CS6 and I want to do that using CMD. Since I've never done that before I ask here for advices.
    I found this cmd here on forums: F:\sdk\bin\adt -package -target ipa-app-store -useLegacyAOT yes -provisioning-profile Hajj.mobileprovision -storetype pkcs12 -keystore Hajj.p12 -storepass xxxxxx Hajj.ipa Hajj-app.xml Hajj.swf icon com data org Default.png [email protected] [email protected] [email protected] [email protected]
    So my questions are:
    Should I include all my folders like com, caurina, box2d etc?
    Should i include the icons folder too, even if I included the icons paths in the xml file?
    Thank you

    Open your iOS settings to set everything else up, don't forget to check the box that says to remember your password. Close that dialog and then edit the app descriptor file to add the Facebook lines, and do a Save. Now select Publish from the File menu in Flash Pro. Don't go back into the iOS settings to publish, that would end up deleting the lines you have added.

  • How can i run my .class file with out installing java ?

    Hai friends..am new to java , plz help me any one.
    I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
    one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any one

    Your friend will have to install the Java runtime if they want to run Java
    programs.
    Don't go copying files yourself - and especially don't go copying them to the
    location of the Java code. After all, if your friend wants to run 42 different
    Java programs they shouldn't have to have 42 copies of the runtime.
    Just download and run the installer from this site:
    http://java.sun.com/javase/downloads/index.jsp
    Be careful to download the "Java Runtime Environment" not the JDK.

  • VM crashes with big class files generated of JSPs

              Hi,
              When calling certain JSP pages with WebLogic Server 5.1 (SP 6) the HotSpot Virtual Machine (JDK1.3) crashes with a core dump.
              Using WebLogic as the JSP engine produces of every JSP page one java file which
              is compiled with javac to one class file. Each generated java file consists of
              just one method: _jspService(...){...}. One method is allowed to be of 64 K
              (the dynamic part 32 K as maximum). As we include other JSP pages and
              components and use taglibraries, the WebLogic JSP engine generates a very big
              java file (more than 1 MB). Javac compiles this to a class file which only
              method exceeds the 64 K limit. As the javac compiler does not reject the class
              file with the to big method the virtual machine crashes.
              Running the same JSP page on Windows NT 4 with WebLogic Server 5.1 (Service Pack 6)
              and JDK 1.3 BUT using the java option -classic works.
              Unfortunately it seems that there is no -classic option for java on Solaris for JDK1.3.
              Using JDK1.2 (JDK_1.2.2_05a) on Solaris or the jikes compiler of Jakarta
              causes an exception instead of a core dump but still does not work.
              Using solaris jdk1.2.2_05a the same page request results in the following exception:
              Tue Nov 21 09:08:16 CET 2000:<I> <WebAppServletContext-maxblue> Generated java file:
              /opt/tadevw/maxblue/weblogic/maxblue_cluster/maxblue_server/public_html/WEB-INF/_tmp_war/jsp_servlet/_portfolio/_PortfolioMyportfolio.java
              Tue Nov 21 09:08:24 CET 2000:<E> <WebAppServletContext-maxblue> Servlet failed with Exception
              java.lang.VerifyError: (class: jsp_servlet/_portfolio/_PortfolioMyportfolio, method:
              _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal target of jump or branch
              Is there a way that the JSP engine of WebLogic creates/generates
              more than one function? (Without reengineering of the source code?)
              Regards,
              Boris
              

    Thank you! I had no idea. But what is a FAT32 drive? Is it the work bench in the Mac, that is used for the transfering between the external hard drives? Is there any way around this then?
    I thought in these HD home movie days, that this was an easy thing dealt with everyday. I still need to understand what practical solutions I can find. The files are .mov - quicktime files.
    It couldn't be the case that files larger than 4BG should be locked in the hard drive forever?
    Sverre

Maybe you are looking for

  • How do I use Time Machine to downgrade from Snow back to Leopard?

    I have a MBA and optical drive, and I use Time Machine to backup. I'd like to revert back to pre-Snow, and pre 10.6.1. Where/how do I do this with time machine? Do I go to a previous date that had the old OS, and just select the System folder and the

  • Missing Baggage Folder in RH 7

    Hi, there. I'm trying add baggage files to an RH project, which I've done a zillion times in older projects, but in my new project there is no Baggage Folder to be found anywhere. Any idea why? How to fix? I have to add some PDFs and link them to top

  • Java 1.4.2 vs. J2SE 5.0

    I have an application (Maple 10) that requires Java 1.4.x. I keep my iBook G4 up-to-date and only very recently upgraded it by adding 1Gb ram. Maple 10 was running fine before I instaleed the 1Gb ram, but now it will not start-up. Maple tech support

  • Workflow to abap web dynpro

    Hi All, I want to call the ABAP Web Dynpro Screen from a step of a SAP Workflow. Please help. Rgds, Avijit

  • Thread run() can't return an object?

    I am using threads with Runtime.exec() to run system commands (like ps command on Unix) and I need to have the method return what the executed commands return e.g. the response from the ps command; however, the run() method in the Thread interface is