Revision property in bpel.xml file in jar

Hi!
I've been trying to set revision property for my BPEL process in JDeveloper but had no success. Even if I set this property in bpel.xml file like this:
<?xml version = '1.0' encoding = 'UTF-8'?>
<BPELSuitcase revision="1.0">
</BPELSuitcase>This property is not set in bpel.xml file in jar file after the build, but it is composed of date, time and build number.
I can change this property by renaming jar file to zip, unpack, change the property in bpel.xml, pack back to zip and rename back to jar. This way the deployed version is 1.0 as I want it to be.
Isn't there a way to set this in JDeveloper while developing the process?
Thanks.
BB

Hi Dietrich!
Thanks for your help. I did what you suggested but had to provide some more property values in build.properties:
admin.user
admin.password
http.hostname and
http.port
Without this I couldn't make the build.
But I don't like this solution, the admin.password is now in clear-text in this file plus I can't use the same jar file for our development server, test server and then production server.
Is there another way just to set revision property and leave others default?
BB

Similar Messages

  • RejectedMessageHandlers property, can we use it 2 times in bpel.xml file

    hi'
    I have a XML file to read, if the file is incorrect then I am calling another BPEL process to catch the error by the below code
    inside the bpel.xml file
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="TestFileRead" src="TestFileRead.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="ReadFile">
    <property name="wsdlLocation">ReadFile.wsdl</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFile">
    <property name="portType">Read_ptt</property>
    *<property name="rejectedMessageHandlers">bpel://default|GetRejectedMessageBPEL|initiate|payload</property>*
    *<property name="rejectedMessageHandlers">file:///abc/test/fail</property>*
    </activationAgent>
    </activationAgents>
    </BPELProcess>
    </BPELSuitcase>
    Now what I want to do is, I also want to move the rejected file to different directory something like this,
    *<property name="rejectedMessageHandlers">file:///abc/test/fail</property>*
    however If I put both the property inside the bpel.xml file then only one is working which is the later one i.e. it simply ignores the first one. My requirement is, I also want to move the rejected file to different directory, please tell me how this can be achieved, where I want to move the error file to other directory and pass the error details to other BPEL process.
    thanks
    Yatan

    If that is the case...
    do what you are doing in second BPEL in first BPEL catch block and use the property to move the file to folder.
    Ohhhh... Sorry.... It will not go to catch right....
    Regards
    PavanKumar.M
    Edited by: pavan4s on Sep 2, 2010 12:25 AM

  • [svn:fx-trunk] 14083: Removed svn:executable property from some . xml files in trunk.

    Revision: 14083
    Revision: 14083
    Author:   [email protected]
    Date:     2010-02-09 22:48:11 -0800 (Tue, 09 Feb 2010)
    Log Message:
    Removed svn:executable property from some .xml files in trunk.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Property Changed:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/LiteralVectorNode.java
        flex/sdk/trunk/modules/asc/src/localized_strings/CS/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/CS/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/NL/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/NL/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PL/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PL/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PT/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PT/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/RU/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/RU/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/SV/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/SV/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/TR/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/TR/Lint_Warnings.xml

  • Reading an xml file from jar

    I have an xml file in a jar file other than the class that needs to read it. Most of teh posts I've seen reccomend using class.getResource to get access to the jar, but since the file is in a different jar this wont work.
    I load classes using URLClassLoader and explicitely access the class I need from a specific jar by creating a url thusly....
    jar:file:/" + workingDirectory + "/folder/jarfile.jar!/specificfolder/specificfile.class"
    Is there a similar thing for reading an xml file for a jar?

    Have you tried:
    "jar:file:/" + workingDirectory + "/folder/jarfile.jar!/specificfolder/specificfile.xml"
    ;o)
    V.V.

  • Can't parse xml file in jar file when  can't connect to web server

    My JNLP application throw ConnectException when trying to parse xml during web server offline.
    Steps,
    1. JNLP application has been launched once and all related jar and xml files are already downloaded to local cache.
    2. Then I close web server to test offline launch.I launch the JNLP application using shortcut with -offline parameter.
    3. However the JRE internal xml parser tries to connect to web server and report connection error as web server is down now.
    My concern is the file is already in the cache, why java still try to connect URL. This error happens in JRE 1.5, but it doesn't happen in JRE 1.6. It only happens when web server is down in JRE 1.5.
    I think it may be a bug of JRE, do any one can give me some hint about how to resolve?
    Thanks in advance!!
    I also moved the code piece to a simple web start example, following it the error and code pieces.
    Error Trace in Java console,
    ava.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at EntXmlUtil.buildDocument(EntXmlUtil.java:57)
         at Notepad.testParseXML(Notepad.java:870)
         at Notepad.main(Notepad.java:153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Notepad.java
    public void testParseXML() {
         URL xmlURL=Notepad.class.getClassLoader().getResource("xml/Login.xml");
         try {
                   org.w3c.dom.Document doc = EntXmlUtil.buildDocument(xmlURL);
                   System.out.println("Test"+doc);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    EntXMLUtil.java
    private static DocumentBuilderFactory dbf = null;
         static {
              dbf = DocumentBuilderFactory.newInstance();
              dbf.setNamespaceAware(true);
              dbf.setValidating(true);
              dbf.setIgnoringComments(true);
              dbf.setIgnoringElementContentWhitespace(true);
    public static DocumentBuilderFactory getDocBuilderFactory() {
              return EntXmlUtil.dbf;
    public static Document buildDocument(URL url, String systemId) throws Exception {
              DocumentBuilder db;
              Document doc;
              InputStream is;
              String sysId = null;
              if(systemId == null)
                   sysId = url.toExternalForm();
              else
                   sysId = systemId;
              db = EntXmlUtil.getDocBuilderFactory().newDocumentBuilder();
              is = url.openStream();
              doc = db.parse(is, sysId);
              is.close();
              return doc;
         }

    I finally got a temperary work around for this issue, using JRE5 version lower than update 16(not include update 16).
    i found Sun modify the URL which returned by XXX.class.getClassLoader().getResource("xml/Test.xml,") after update 15, previous it is related with the cache path, like C:\Users\epenwei\AppData\LocalLow\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMEntriView\DMapp\AMNotepad.jar!/xml/Test.xml, but after it changes to network path, like http://localhost/Notepad/app/notepad.jar!/xml/Test.xml. However, the latter address doesn't work in Sun's own class com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity if offline.It tried to create new URL then connect to web server. So exception is thrown since web server is down.
    if (reader == null) {
    stream = xmlInputSource.getByteStream();
    if(stream != null && encoding != null)
    declaredEncoding = true;
    if (stream == null) {
    URL location = new URL(expandedSystemId);
    URLConnection connect = location.openConnection();
    if (connect instanceof HttpURLConnection) {
         setHttpProperties(connect,xmlInputSource);
    I am not sure whether it is a Java new bug since I only read the codes and didn't debug Sun code. But I am very curious that I have already specify <j2se version="1.5.0_12" href="http://java.sun.com/products/autodl/j2se" /> to specify update 12 for my jws application. And I also see the Java console display like following
    Java Web Start 1.5.0_18
    Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
    Why java still uses my latest jre lib to run my application?
    Edited by: wei000 on May 22, 2009 5:32 AM

  • Validating xml-files inside jar-files  for JWS

    I want to use xml-files inside a jar-file and want to validate them with dtd-files,
    located in the same jar-file. This does work, but only as long as the dtd-file is
    in the same directory as the xml-file.
    For example, I have no problem, with a DOC Type-statement like
    <!DOCTYPE questestinterop SYSTEM "ims_qtiv1p1.dtd" >
    With this statement, however, one needs an approprate dtd in every directory containing an XML-file of that type.
    If however i want to gather the necessary dtd's in a directory one (or more) levels above with a DOCTYPE-statement of the form
    <!DOCTYPE questestinterop SYSTEM "../ims_qtiv1p1.dtd" >
    I get error messages of the form
    java.io.FileNotFoundException: JAR entry Mikro/Marshall/BookQuestions/../ims_qtiv1p1.dtd not found in C:\Dokumente und Einstellungen\wreiss\Anwendungsdaten\Sun\Java\Deployment\javaws\cache\http\Dwiwi.upb.de\P80\DM~vwl08\DMOViSS\DMoviss_current\RMMikro.jar
         at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
         at org.apache.crimson.parser.Parser2.externalParameterEntity(Unknown Source)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Unknown Source)
         at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at oviss.competenceCenter.XMLExpert.setElements(XMLExpert.java:245)
    though the dtd-file is in the parent-directory (inside the jar) and the unpacked xml-file can be successfully validated.
    Why does this happen. How can one use a single dtd for multiple xml-files (of the same type) in different directories?.
    Thanks
    Winfried Reiss

    In reply to myself, replacing the HTMLBrowser constructor with this;
    public HTMLBrowser()
                  URL url;
                  try
                       // Construct the URL
                       url= this.getClass().getResource('/'+dir+'/'+startPage);
                       setPage(url);
                  catch (Exception e)
                  System.out.println( "Problem setting help homepage");
                 setEditable(false);
                 addHyperlinkListener(new LinkListener(this));
            }made it work. This is because seemingly you need '/' at the start of the resouce's path and '/' as the separator, regardless of platform.
    I hope this helps someone else.
    John

  • Access XML File in JAR file

    Hi I am trying to access a XML file which is present within a JAR file. The xml file needs to be accessed from class files within the jar. The class files within the jar use the xml file as a config file.
    The jar is used by external programs during their runtime.
    Can someone help me with some info on where I can begin.
    Thanks

    DrClap, Thank you very much. It works. You certainly are a qualified Dr.
    Regards

  • BPEL XML Files

    What are jazn-data.xml and user-properties.xml files used for?
    These files are useful in what? and what does these files do?
    Thanks in Advance
    Deepak

    They are used for the authentication of the users.
    In production you mostly wont use these and authenticate against ldap, but for development you maybe dont want to configurate this and use those files.

  • Antenna - problem reading in a property value from the build.xml file

    Hi
    I have declared a property in build.xml file of my project like
    <property name="debug" value="true" />I want to read the value of this property in my source code like
    //#if debug == "true"
    //#endifAbove method doesnt work. I tried using method below but it didnt work as well
    //#if ${debug} == "true"
    //#endifCan anyone please help me how can i read this value?
    Thank you

    you can get your key bytes with byte [] keyBytes = mykey.getEncoded();
    and then write your byte array in a file.
    to get back your key :
    SecretKey myKey = new SecretKeySpec(keyBytes,"TripleDES");

  • Question in bpel.xml

    Hi,
    Who know the function that property name is "blockingStartStop" in bpel.xml file (10.1.3). It can't be found in Oracle document.
    The part bpel.xml is
    <...>
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="pollWRseqFromAbc">
    <property name="portType">pollWRseqFromAbc_ptt</property>
    <property name="blockingStartStop">false</property>
    </activationAgent>
    </activationAgents>
    <...>
    Thanks a lot
    Edited by: user7352491 on Nov 14, 2012 11:57 AM

    Hi Arthur,
    Please verify the namespace in the xml instance matches the xsd used in BPEL. In many cases, the data cannot be copied/transformed successfully if there is a mismatch in namespace.
    Eng

  • MailActivationAgent MailAccount XML File Corruption

    We're looking for feedback on how to solve or workaround a problem in which BPEL MailAccount XML files become corrupted when the BPEL server is restarted.
    The issue affects the BPEL MailAccount XML configuration files which reside in $ORABPELHOME$/domains/$DOMAIN$/metadata/MailService. We have noticed that these files occasionally become corrupted (content missing, 0 byte filesize) which causes the BPEL processes which reference them to fail. Looking at the date/timestamp of the corrupted files, we noticed that they are last written to at the same time as the BPEL server is taken down which suggests that the files are being corrupted during server shutdown.
    What appears to be happening is the following: we have a BPEL process which uses a standard MailActivationAgent to listen for activity in email accounts specified in the MailAccount XML configuration files noted above. The activation agent polls these configuration files at regular intervals to pick up any changes that have been made to them. The agent opens the files with write permission since it may rewrite content back into the file (e.g. it may transform plain text passwords into encrypted form). If the BPEL server is taken down while the activation agent has these files open, the files are not saved and closed safely before the agent terminates and they can be corrupted as a result.
    The following XML fragment from the bpel.xml file shows how the activation agent is configured:
    <activationAgents>
         <activationAgent className="com.collaxa.cube.activation.mail.MailActivationAgent" heartBeatInterval="20">
              <property name="accountName">testMailAccount</property>
         </activationAgent>
    </activationAgents>
    Environment:
    Solaris 10 / SunOS 5.10
    BPEL 10.1.3.3
    Any suggestions as to how to solve or workaround this problem would be greatly appreciated.

    Hi,
    Have you solved the problem? we're interested in knowing the results because we have a similar sort of requirement to build .
    We're having a different type of problem though. The bpel get initiated for all mails in that account (including old mails) and then it deletes them. Did you had any issues like this or do you have any suggestions for us.
    The interval is set to 60 seconds and we're testing it on Bpel 10.1.2 with outlook express account (POP3).
    thanks in advance

  • Loading xml file and parsing error in web start

    Hello,
    I load a xml file from jar file, but i have a error at parsing see :
    ClassLoader cl= this.getClass().getClassLoader();
    File file = new File(cl.getResource("paradise/test/maquette/parser/areas.xml").getFile());
    parseur.parse(new InputSource(new FileInputStream(file)), this);
    the file opening but at parseur.parse() i have a path error with :
    http:// . . . . \Paradise_client\paradise.jar!\paradise\test\maquette\parser\areas.xml , bad name of directories .....
    Can you help me ? please :-(

    I need to do a similar thing but in my case I don't know the structure of the xml file. I have 2 questions for this mapping. For an xml file like this:
    <?xml version="1.0"?>
    <catalog>
    <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <publisher>Dummy Publisher Co.</publisher>
    <publisher_address>
    <city>London</city>
    <street>Heart St.</street>
    <no>23/5</no>
    </publisher_address>
    <description>An in-depth look at creating applications
    with XML.
    </description>
    </book>
    </catalog>
    If I'm right, I need to create a database named catalog and a table named book. But the problem comes out here: How can i store publisher_address? In a table or what? Other problem is, is there a difference between storing id attribute of the book and genre element of the book? I think they are just columns of the book table. But if I'm wrong what is the correct solution?

  • Eclipse BPEl Designer -Changes to bpel.xml not saved

    Hi
    Is it possible to save changes made to bpel.xml file while using Eclipse? I was trying to set up preference properties in that file.
    Any say?

    According to our experience, JDEV BPEL Designer encoutered the same problem, you'd better modify the bpel.xml descriptor using external editor such as ultraedit, and save it.
    Modification of bpel.xml works fine for the first time, but often rolled back to the former edition once I restart the JDEV designer. Guess it is a bug.

  • Fault Bindings using BPEL.xml

    Hi
    I have a peculiar problem with fault bindings. I have a webservice from target application hosting two different operations. I need to have the fault policy being applied to one operation and the other operation should not have any fault policy defined on it.
    I tried in the following way.
    Approach 1. In Fault Bindings.xml i have added the entry for the operation for which policy needs to be applied.
    This is working fine as expected.
    Approach 2. I have added the entries in bpel.xml and fault-bindings does not contain any entries related to this operation. In this approach the problem am facing is for both the operations the policy is getting applied.
    I need to go with the second option as all my bpel processes have fault policies at the bpel level instead of domain level.
    Can any one give me some clue on this
    Thanks
    Vamsi

    Entries in BPEL.XML file
    <faultPolicyBindings>
    <partnerLink faultPolicy="EAIFaultPolicy"/>
    <name>BSNLUpdateCollectionStatus</name>
    <portType xmlns:CollectionProvCreateSO="http://siebel.com/asi/">CollectionProvCreateSO:BSNLUpdateCollectionStatus</portType>
    Entries in Fault Binding.xml has been removed for this
    One observation i had is both the WSDLs has same SOAP Address location but the operation names are different.
    Does this have any impact for this kind of behaviour
    Thanks
    Vamsi

  • How to validate an XML file in BPEL ?

    Hi All,
    I have 2 Bpel processes.
    One for creating supplier and one for formate Validations.
    I am having problems with formate Validations.
    I am trying to validate an xml file that is passed to my Bpel Process (SupplierValidation).
    My process contains the following:
    I have a client which its property Name is set to ValidateXML and its value set to true.
    I have a recieve activity and a reply out !
    very simple process, but its working !
    This process is synchronous.
    Help is needed !
    Thanks,
    aj

    you have to use bpelx:validate as sown below
    <bpelx:validate variables="inputVariable" name="ValidateInputXML"/>

Maybe you are looking for

  • How2specify Amount in Doc Currency and Amnt in LOCL Curr4same item in FBB1?

    Hi Experts, I need to specify some amount (say, 100) in doc currency and some amount(say, 70) in Local currency for the same line item(say, 0001) of a acct doc in FBB1 transaction........so, let me know that, How proceed in FBB1 tx to meet above requ

  • Oracle DB on Oracle VM

    Hi all, Are there any document OR information available from Oracle side regarding deploying Oracle database on Oracle VM virtual environment in the best possible way. We were looking for some solution deployment guide or some best practice guide. An

  • Create Error Message for wrong input of time (VC 7.1)

    Hello, I use VC 7.1. I have an Input Field where the users have to enter the time of an event. The time has to have this format: hh:mm:ss. How can I check this? And if the users entered a wrong time format how can I post an error message? Or does any

  • IPad 2 keeps saying "Application cannot be downloaded at this time" when I try to update GarageBand

    I'm trying to update GarageBand on my iPad 2 and I keep getting an error message saying that the "Application cannot be downloaded at this time." It's been saying that for nearly a week. I have 4.8GB of free space. And I just updated to the most curr

  • IDOC Configuration Help

    hello, i have just started learning concepts of IDOC and ALE. And found some docuemnts for the same. WE have 2 clients in our dev server. 700 & 600. I want to test idoc concepts on these clients of same servers. Firstly i checked logical systems on c