Author |
Message
|
kash3338 |
Posted: Thu Mar 05, 2015 8:32 am Post subject: Problem with deployed JAR to EG - IIB |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
We have implemented a Message Flow which invokes a method from a Java Application. I have referenced the Java Project to my Application that uses it. The problem I am facing is that, the JAR is deployed to the EG when I deploy the Application and for some reason when I try to remove the Application, I get the following error,
Code: |
BIP4041E: Execution group 'BureauServices' received an administration request that encountered an exception.
While attempting to process an administration request, an exception was encountered. No updates have been made to the configuration of the execution group. Review related error messages to determine why the administration request failed. BIP4501E: Failed to delete Java code resource '*.jar'. The Java JAR file failed to be deleted. This file may be locked by the operating system.
Ensure there is sufficient disk space available on the machine running the broker runtime. Stop the broker and delete this file manually. BIP2871I: The request made by user 'Kashyap' to 'delete' the resource 'CreditBureauInquiry.appzip' of type 'appzip' on parent 'BureauServices' of type 'ExecutionGroup' has the status of 'FAILED'. |
I am not sure why this is happening. I have worked with invoking Java methods through ESQL many times in past but never such an issue. The next problem, how do I now remove this Application from the broker. I do not see any way to remove this. We have deployed this JAR in 3 of our Brokers and all three has locked due to this reason.
My queries,
1. How do I now remove this JAR. Tried killing the process, stop/start broker nothing works.
2. Is there a way I can deploy the JAR files to the "shared-classes" directory than directly deploying to EG? I am not able to remove the JAR alone from the BAR I deploy. Even if I make this Java project as a Library it still gets deployed in EG.
I am facing this problem in IIB 9.0.0.2, Windows environment. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 05, 2015 8:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you tried stopping all flows in the eg before removing the application?
Have you opened a PMR?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kash3338 |
Posted: Thu Mar 05, 2015 8:59 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
fjb_saper wrote: |
Have you tried stopping all flows in the eg before removing the application?
Have you opened a PMR?  |
The flows are not stopping. I am not able to do anything with that EG. I have not raised a PMR yet. Just wanted to know if someone has experienced this before? Any quick fix for this issue? Is it a known problem in IIB 9? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 05, 2015 9:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
It may be a problem in the way you created / deployed your app.
My advice: create a jar from your java project, then reference the jar from your broker project and not the java project.
You are essentially deploying at an instance level (application) what should be deployed at e.g. level (java static methods).
Hence the request to first shut down all flows in the e.g.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kash3338 |
Posted: Thu Mar 05, 2015 9:16 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
fjb_saper wrote: |
My advice: create a jar from your java project, then reference the jar from your broker project and not the java project. |
Reference the JAR from Broker project, you mean Application?
fjb_saper wrote: |
You are essentially deploying at an instance level (application) what should be deployed at e.g. level (java static methods).
Hence the request to first shut down all flows in the e.g.  |
Sorry I did not get this part. How do I deploy the Java static methods at EG level and reference in my Application? |
|
Back to top |
|
 |
ganesh |
Posted: Thu Mar 05, 2015 9:21 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
Quote: |
How do I deploy the Java static methods at EG level and reference in my Application? |
You can add the jar to the shared classes of execution group. |
|
Back to top |
|
 |
kash3338 |
Posted: Thu Mar 05, 2015 9:28 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
ganesh wrote: |
You can add the jar to the shared classes of execution group. |
But it gets added to the Application automatically. I am not able to remove the JAR alone from my Application. |
|
Back to top |
|
 |
ganesh |
Posted: Thu Mar 05, 2015 9:35 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
In the classpath of your project you can specify the path to the jar as shared-classes. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Mar 05, 2015 9:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
In your application, you can remove the association to the Java project. You can then tell the Java project to create a JAR file and add it to the application as an external dependency.
You can mark all the flows in your EG to be stopped at startup of the EG. You can then kill the EG process. You can then undeploy things after it restarts.
But what you really really need to do is figure out why the jar file isn't unloaded. |
|
Back to top |
|
 |
kash3338 |
Posted: Sun Mar 08, 2015 6:39 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
mqjeff wrote: |
In your application, you can remove the association to the Java project. You can then tell the Java project to create a JAR file and add it to the application as an external dependency. |
Thanks mqjeff!! But how do I add JAR as a external dependency to the IIB Application? I dont find any such options in the properties of the application. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Mar 08, 2015 4:48 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kash3338 wrote: |
mqjeff wrote: |
In your application, you can remove the association to the Java project. You can then tell the Java project to create a JAR file and add it to the application as an external dependency. |
Thanks mqjeff!! But how do I add JAR as a external dependency to the IIB Application? I dont find any such options in the properties of the application. |
Classpath in the project properties / build path...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|