Extract BPEL process from the JAR file deployed to BPEL Server
Hello All-
We have a BPEL process deployed in our production environment but unfortunately we do not have a back-up copy in our test environment.
I got the BPEL deployment JAR file from the production server but I am unable to extract the BPEL Process as well as the XSL file.
I used WINRAR to extract but it was showing that the JAR file is not a valid archive. We need the prod deployed version of the XSL as well as the BPEL process for a change and we are unable to proceed.
If anybody has faced similar kind of issue, please let me know how can it be resolved. Also please let me know if there are any tools which can extract the files.
PLease note that we are on BPEL 10.1.2.0.2
Appreciate your help and thanks in advance.
Thanks,
Dibya
Hi Dibya
jar -xvf <filename> will work as others said.
However, please make sure you have another TEST/DEV Environment running in par with PROD.
Always, suggested to test first on the TEST/DEV Env for applying any new patches/config changes...then appropriately migrate to actual PROD Environments.
Also, always take a complete backup before you do some R&D on the SOA server.
Regards
A
Similar Messages
-
How to add multiple images to a JLabel from the jar file
I want to add multiple images in a JLabel but the icon property only allows me to add one. I thought I could use html rendering to add the images I need by using the <img> tab, but I need to use a URL that points to the image.
How do I point to an image inside the jar file? If I can't, is there another way to show multiple images in a JLabel from the jar file?Thanks, it works perfectly. It's a really smart way of fixing the problem too :)
I also found your toggle button icon classes which is something I've also had a problem with.
Thanks. -
JAR files deployed to EBS server a not loaded by server
Dear All,
We deployed JAR files to Apache(Jserver) of EBS server, we put jar files to $OA_JAVA and added content of jar file names into jserv.properties, then we re-started the Apache(Jserver), but the JAR files are not loaded by server, we checked the properties file and the path of JAR files are both OK, what may cause this kind of issue?
Currently, we are working on the Accounts Payables interface, which need to call java scripts to upload the log file to Google drive, and we need to include some Google java files in the class path, so these java files are third party's, how to config these java files under Oracle?
Thanks,
JackieHello Mike,
It customization jar file.
And customer wants to load this jar file to EBS apache server, so that they can use it to do some development work?
Now, they wants to know how to load it?
Thanks,
Jackie -
Alternative to specify the jar file location other than server classpath.
Hi,
We use weblogic 8.1 for our development purpose... and mostly work on ejb's. Every time a new ear file is created and deployed we need to specify the jar files needed to run that application in server classpath.... is there any alternate way so that v can avoid specifying these jar files in server classpath...vinod hadlee wrote:
Hi,
We use weblogic 8.1 for our development purpose... and mostly work on ejb's. Every time a new ear file is created and deployed we need to specify the jar files needed to run that application in server classpath.... is there any alternate way so that v can avoid specifying these jar files in server classpath...One alternative is you could bundle the jars in the EAR itself in APP-INF/lib.
Gerald -
How to open files in MIDP (from the jar file)?
Hello,
I can't seem to figure out how to open a file that is in my MIDP applications jar-File.
From what I've found via Google, I assume that the way to do it should be by using
Connector.openInputStream("file:{path_to_my_file}")
but I only get the error
java.lang.ClassNotFoundException: com.sun.midp.io.j2me.file.Protocol
(Running the Emulator from Suns WTK 2.0 with DefaultColorPhone)
I've also tried file:// with the same result.
Any ideas?
Many thanks in advance!
BjoernI think I've found something that looks promising now:
Class.getResourceAsStream() -
Response not coming to BPEL process from the actionable email
Hello Helping hands,
I created a HumanTask workflow with actionable email.
In the email I get from the HT workflow process, it has 3 links
2-OUTCOMES list links (Eg:APPROVE,REJECT)
1-worklist application
If I update the task through worklist, the process is getting completed successfully.
But the problem is with the actionable email, if I move the mouse over APPROVE or REJECT the following msg gets displayed in the status bar
mailto:?subject=My Subject&body=NID:iBeS8jSTsA7vOx+ULF3+dJ7/e1fbklcDLkGHlkj38emd71NnzMgQMN89C0RxaPzu2PPgelhp+hv6sk+uwL1DYQ==:NID<p>Comments [[ ]]
When I click the outcomes link, it opens a new email window without any to address.
Advice me how to get the response from the actionable email to the BPEL process.
Regards
VPI had faced a similar issue.
When the bpel process is initiated you will get an email to the configured email id's inbox.
Make sure you reply to the mail from the same email account.
Example : If the email comes to [email protected] id , make sure you reply from the same id.
Hope this works for you -
What are the Jar files required for Tomcat server of jdev 11.1.2.0.0
Hello Experts,
My client wants to just check the adf application on tomcat server
how do I create a war file and then deploy it into Tomcat server
and what all JAR files do I require to do it??
I am using jdev 11.1.2.0.0 and tomcat server is 6.0.35
Thanks for the help..
933601.https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1
http://docs.oracle.com/cd/B31017_01/web.1013/b28967/deployment_topics012.htm
Tomcat Extension for JDeveloper is available.
http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/130355.xml#shay.tomcat -
Running scripts, bat files, etc from a jar file
Hello,
Does anyone know of a way, or even if it is possible to run a script or batch file from a jar file?
For instance, lets say I have a batch file that I can run from the command prompt by typing :
myBatchFile.bat
and now I write a very simple java app that will do the same:
public class Test {
public static void main(String[] args) {
try {
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(�myBatchFile.bat�);
} catch (Exception e) {
e.getMessage();
The above app will work as long as the batch file is in the current directory, but how or can I make it work if I stick the batch file in a jar file along with the app?
I tried using the manifest file with no luck.
I tried creating a URI to the jar file, wrapping it in a File and then passing that File to the exec method also with no luck.
I searched all the forums on Sun but came up with nothing.
I performed a google search also with no luck.
Does anyone have the answer to this? Even if I can get a definitive �No it can�t be done� answer. Although I would think that it should be able to be done.
ThanksHi,
you cannot execute anything being inside a jar-file. The OS doesn't know anythig about jar-files and cannot look inside one to find the program/script/batch you want to execute.
You could do a workaround by extracting the file from the jar-file before calling exec(). But normally OS dependent files should not be inside a jar-file and remain in a own directiory.
Andre -
Call to BPEL Process from JSP - Not working!
Hi All,
I'm trying to execute the sample JSP page provided in the BPEL Guide, which calls the BPEL "CreditRatingService" service.
The JSP Page compiled normally, but it does not invoke the BPEL Process. The JSP Page is just waiting.. the browser is loading the page for ever..which means it is not able to call the BPEL process. If i comment the below code
NormalizedMessage res = deliveryService.request("CreditRatingService", "process", nm);
then the page is displaying..
Thanks for any help
Regards
ChandraHi Afonso,
I looked at the files under the below locations..
C:\product\10.1.3.1\OracleAS_1\j2ee\home\log\home_default_group_1
C:\product\10.1.3.1\OracleAS_1\bpel\system\logs
C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\logs
I found the below error mesage
<ERROR> <collaxa> <ProcessJob::execute> Timed out reading http:.........
from C:\product\10.1.3.1\OracleAS_1\bpel\system\logs\orabpel.txt log file.
But this log file is generated when I start my SOA Suite and not when I open the JSP Page. But I'm guessing may be for the same reason, it the not calling the BPEL process.
I don't have any issues while I deploy the BPEL process or calling the BPEL Process from the console.
Thanks for any help
-Chandra -
Executing an file.exe from a jar file?
Does anyone know how to execute an *.exe file from jar file?
I have two files that I want to execute in one java.class, Monview.exe and Moninit.exe. Both are stored in the same jar file as the class called link.class.
This is my code to run one of the files from the hard drive
String []cmd={"c:\\monview.exe"};
try
Process pr = Runtime.getRuntime().exec(cmd);
StringBuffer buf = new StringBuffer();
InputStream istr = pr.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(istr));
String str;
while ((str = br.readLine()) != null) {
buf.append(str);
try {
pr.waitFor();
} catch (InterruptedException e) { }
if (pr.exitValue() != 0) {
br.close();
catch (IOException e){}
It works when i place both .exe on the local host harddrive but when I place it in the jar file nothing happens. Could anyone help me please on why does this happen and how I can fix it? Or on how to get the link.class code to extract it from the jar file and place it on the system directory and delete it from the system directory, without it knowing where the jar file comes from?Hello,
If I am not mistaken, by including the JAR file in the CLASSPATH (specifying the absolute path), or after the -classpath option after the java command (java -classpath jar_archive main_class), the system will find both files in the JAR archive.
Hope this helps! -
Invoking BPEL process from ADF application - webservice connection failed
Hi,
I am trying to invoke a Bpel process from ADF page , I deployed the same in Standalone SOA server since I had to display some Human Task Forms.
I created a webservice data control out of the bpel process and dropped the process method in my page.
The page on which I dropped the process method stopped rendering and I checked the logs and found that I got the error mesage- webservice connection failed,the webservice url could not be reached and in the logs it also asks us to check if the connections.xml is available in the meta-inf directory. I checked the conections.xml is available in the EAR.
So any pointers here and any one faced this error anytime?
is there better ways to invoke the bpel flow from ADF page.
Thanks,
RobinHi,
Check if your wsdl endpoint can accessed properly. If yes, check the soap-binding address is properly pointing to the server hosting the webservice.
Regards,
Harikiran. -
Invoking bpel process from another bpel process in same app server
Hi,
When I invoke a bpel process from another bpel process in the same oracle AS
1. Is it a SOAP call or is there any optimization?
2. If there is some optimization where can I configure this?
3. Is there any similar optimizations if I invoke a bpel process from a
java application deployed in the same server? If so can you please provide
a sample?
Thanks for your help
RajBy default the BPEL 10.1.2, it will do a local call to the process. It will not execute a SOAP request, no network access is done.
It can be configured at domain level:
Parameter: optSoapShortcut (SOAP local optimization)
Turns on "short-cut" for local SOAP request; local SOAP calls are normally done via an internal call instead of sending a message through the SOAP stack.
The default behavior for the engine is to optimize all. To disable optimization specify a value other than "true" or "yes". -
Unable to call a BPEL Process from ESB
Has anyone worked on Oracle ESB ?
I've implemented an ESB Scenario where, based on some value, either it should call one BPEL process otherwise it should call another BPEL Process. But, Routing Service is unable to call either of the service.
Can anyone help me out?
Thanks in Advance.
RegardsI am able to call the bpel processes from the bpel console. I tried to use the TCP Packet Monitor but it shows waiting for connection and doesn't turn up. I checked the port number. The local server port is correct but I dont know how to check the listener port for it i.e. by default showing 1234.
I tried to test my esb through em as a webservice but it shows the following exception after input:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.server.common.exceptions.BusinessEventFatalException: An unhandled exception has been thrown in the ESB system. The exception reported is: "java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized]
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:64)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:67)
at oracle.tip.esb.server.service.impl.bpel.BPELService.processBusinessEvent(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(Unknown Source)
at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(Unknown Source)
at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(Unknown Source)
at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
I've setup the trackable fields also but trackable data showed me no data. When I checked the validate check box, it has shown me error in first stage i.e. in file adapter itself.
I don't know what's the problem?
Please help as I am struggling with this.
Thanks & Regards -
Browse files and dirs in the JAR-file
Hi! I'm stuck with a problem concerning browsing a JAR file to find all images, fonts and sound clips. I think this is a pretty straight-forward task, except when I consider that the file I want to browse, is the same file the browser is stored in and running from. I have searched for hours on the internet now, and I still haven't figured out a way to be able to browse my JAR file.
Here is the code I use when I'm not running my project in a JAR-file:
* Load and cache all files (*.ttf, *.png and *.wav) from the resource-directory
public void loadResources() throws FileNotFoundException {
// log available VRAM
log.println("Available VRAM before loading resources: " + graphicsDevice.getAvailableAcceleratedMemory() + " bytes", Log.INIT);
// determine whether or not we are dealing with the contents of a jar-file
jar = getClass().getResource("").getProtocol().startsWith("jar");
// browse all directories
long start, end;
int loadTime = -1;
start = System.nanoTime();
browseDirectory(".." + separator + "resources");
end = System.nanoTime();
loadTime = Math.abs((int)(end - start) / 1000000);
resourcesLoaded = true;
// log
log.println("Resources loaded in " + loadTime + " ms", Log.INIT);
// log available VRAM
log.println("Available VRAM after loading resources: " + graphicsDevice.getAvailableAcceleratedMemory() + " bytes", Log.INIT);
* Browse a directory and load and cache all it's files
* @param path The directory to browse
private void browseDirectory(String path) {
// log
log.println("Browsing directory: " + path.replaceFirst("\\W*", ""), Log.INIT);
try {
if (jar) {
// TODO: enable JAR-browsing by getting the input stream from the JAR-file, then browse through all entries
throw new RuntimeException("Cannot browse JAR-files yet!");
else {
File dir = new File(getClass().getResource(path).toURI());
// browse through the directory
String[] files = dir.list();
File file;
for (String name: files) {
file = new File(dir.getAbsolutePath() + separator + name);
// if this is a new sub-directory, browse it
if (file.isDirectory()) browseDirectory(path + separator + file.getName());
// otherwise, add the file
else addFile(path, name);
catch (Exception e) { e.printStackTrace(); }
} But, as you may see, I need a similar code to browse the JAR-file....please help me!
lhkI worked it out by trying and failing:
* Browse the JAR-file and load all it's relevant files
private void browseJar() {
try {
// convert the resource directory path to a JAR-compatible path
String jarDir = dir.replaceAll("\\" + separator, String.valueOf(jarSeparator));
// get the jar-file and it's entries
Enumeration<JarEntry> entries = new JarFile(new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI())).entries();
// browse the contents of the file
JarEntry entry;
int nameIndex;
String name = null;
String path = null;
while (entries.hasMoreElements()) {
// get the entry
entry = entries.nextElement();
// we only process relevant entries
if (entry.getName().startsWith(jarDir)) {
nameIndex = entry.getName().lastIndexOf(jarSeparator);
name = entry.getName().substring(nameIndex + 1);
// if we find a new directory, we get it's path
if (entry.isDirectory()) {
path = entry.getName().substring(jarDir.length(), nameIndex);
if (path.startsWith(String.valueOf(jarSeparator))) path = path.substring(1) + jarSeparator;
// log (the system-compatible path)
log.println("Browsing directory: " + dir + separator + path.replaceAll(String.valueOf(jarSeparator), "\\" + separator), Log.INIT);
// otherwise, we add the resource
else addFile(path, name);
catch (Exception e) { e.printStackTrace(); }
}As may be seen in the code, I discovered that the regular file separator could not be used in jar paths, which I found strange. I tried a lot to make the regular separator work, but couldn't manage it. Anyway, this code works for me. -
How can I use Automator to extract specific Data from a text file?
I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
Example of File Contents:
Link Time =
DD/MMM/YYYY
Random
Text
161 179
bytes of CODE memory (+ 68 range fill )
16 789
bytes of DATA memory (+ 59 absolute )
1 875
bytes of XDATA memory (+ 1 855 absolute )
90 783
bytes of FARCODE memory
What I would like to have as a final file:
EXCEL COLUMN1
Column 2
Column3
Column4
Column5
Column6
MM/DD/YYYY
filename1
161179
16789
1875
90783
MM/DD/YYYY
filename2
xxxxxx
xxxxx
xxxx
xxxxx
MM/DD/YYYY
filename3
xxxxxx
xxxxx
xxxx
xxxxx
Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!Hello
You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
if f ends with "/" then set f to f's text 1 thru -2
do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
use strict;
use open IN => ':crlf';
chdir $ARGV[0] or die qq($!);
local $/ = qq(\\0);
my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
local $/ = qq(\\n);
# CSV spec
# - record separator is CRLF
# - field separator is comma
# - every field is quoted
# - text encoding is UTF-8
local $\\ = qq(\\015\\012); # CRLF
local $, = qq(,); # COMMA
# print column header row
my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
# print data row per each file
while (@ff) {
my $f = shift @ff; # file path
if ( ! open(IN, '<', $f) ) {
warn qq(Failed to open $f: $!);
next;
$f =~ s%^.*/%%og; # file name
@dd = ('', $f, '', '', '', '');
while (<IN>) {
chomp;
$dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
last unless grep { /^$/ } @dd;
close IN;
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
EOF
Hope this may help,
H
Maybe you are looking for
-
IPhone 4S stuck in recovery mode while trying to upgrade to iOS 7.0.4
I ran into the issues with my iPhone 4S while trying to upgrade it it iOS 7.0.4 OTA and I have tried everything I can to recover it but no luck. I have tried different USB ports, different PCs altogether with av tuned off, and finally a MAC Pro this
-
How to add new fields to j1is transaction
hi, i need to add new fields to the entry screen transaction j1is, or at least i want to change the discription which is showed in aditional data screen line data1,data2,data3. is it possible to change those with out having access key. thanq, rajesh.
-
Macbook backup (LION) on Time Capsule to Macbook Pro
Can I use a macbook backup (LION) on Time Capsule & use that backup to restore a new Macbook Pro also with Lion.
-
ITunes crashes on "Add file to library" or "Add folder to library"
I'm on W7 64 bit. Upon trying to add anything to iTunes it immediately crashes with no usefull error message just windows saying the program has encountered a problem. I tried reinstalling and its doing the same thing, Any ideas?
-
Some webcam drivers (Quicktime Components) no longer work in Snow Leopard
I have two webcams, both of which worked before the update to Snow Leopard, both of which no longer work. They are recognised by their own utility applications and I can see the video, but the QuickTime components used to transport this video to othe