Author |
Message
|
jbanoop |
Posted: Fri Apr 01, 2011 7:08 am Post subject: Class not found - JAR deployed to EG - MB 7 |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
All,
env:
WMB 7.0.0.1
AIX 6
We are facing a strange issue with a deployment.
We have a ESQL compute node in a flow which is calling a java method.
The jar is also deployed to the same EG as the flow. However at runtime, it throws out an error ..
Code: |
The Java Method com.aaa.utils.FileUtils.changeFilePermissions' could not be found as its containing class could not be found in the broker classpath |
Has anyone faced the same issue? Any direction on how to approach this would be greatly appreciated.
Regards, |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Apr 01, 2011 7:35 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Maybe an old version of the Jar is being found first. This is one reason I prefer to deploy any third party Jars to shared-classes rather than to EGs. It leaves me only one place to update the Jars. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
jbanoop |
Posted: Fri Apr 01, 2011 7:57 am Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
We checked for the deployed jar file in the EG runtime folder
Code: |
/var/mqsi/components/QWBRK/08f0ce83-2801-0000-0080-84095360e286/config/JAR |
and we see that the jar deployed there does not have the class file in it.
However the jar in the bar file contains .class file inside. Weird behavior I would think.
Wondering if anyone has seen this before.... |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Apr 01, 2011 8:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
This indicates the BAR file deployment was not fully successful. You can check /var/log/messages or /var/mqsi/components/QWBRK/08f0ce83-2801-0000-0080-84095360e286/stdout /var/mqsi/components/QWBRK/08f0ce83-2801-0000-0080-84095360e286/stderr
to see possible causes.
Please try to redeploy the BAR file. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
jbanoop |
Posted: Tue Apr 05, 2011 1:27 pm Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
The stderr did not have any errors pertaining to the same.
However, the issue was resolved by redeployment although we could not identify any particular root cause. |
|
Back to top |
|
 |
|