Author |
Message
|
megani |
Posted: Tue Jul 22, 2003 1:29 pm Post subject: IC01 Supportpac |
|
|
Apprentice
Joined: 19 Dec 2001 Posts: 27
|
Hello everyone, I'm hoping you can give me some help here. I'm working the IC01 supportpac. I'm trying to use the command mqsiexportmsgflows but am running into problems. I was initially getting at the DOS prompt the following: Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/ExportMsgFlows.
I got around this by setting my CLASSPATH. I am now pointing to the IC01.jar file. However, now, I'm continually getting: Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/ConfigManagerException
I have the mqsiexportmsgflows, the config file, the dtd and the ic01.jar file in mqsi-root dir\tool\bin. The supportpac mentioned that the utility should run from the mqsi-root dir\tool directory but when I do this I get the message 'java' is not recognized as an internal or external command. This is odd too because I am pointing to the directory where java.exe resides. Also, I'm doing this on a client machine not the server, does that matter?
Please advise, I would really appreciate it.
Thank you,
Paul
Please advise.
By the way |
|
Back to top |
|
 |
kirani |
Posted: Tue Jul 22, 2003 5:16 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I hope you have MQSeries classes for Java installed on your client box.
I changed my batch files to point it to java into Tool\bin directory and its working fine.
Code: |
...
.\bin\java -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.FilterMsgFlows %1 %2
...
.\bin\java -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.FilterMsgFlows -?
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
megani |
Posted: Wed Jul 23, 2003 6:56 am Post subject: |
|
|
Apprentice
Joined: 19 Dec 2001 Posts: 27
|
Hi Kiran, thanks for the reply. I'm not sure what you mean by batch files.
Also in the code snippet do you mean the beginning of the statement is
SET....
I'm not sure what the full statement would be.
Thanks again |
|
Back to top |
|
 |
kirani |
Posted: Wed Jul 23, 2003 10:59 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
All commands in SupportPac IC01 are actually the batch files, which are stored into WMQI\Tools\ directory. In my post I was asking you to change/edit the same (mqsiexportmsgflows.bat) batch file. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
megani |
Posted: Thu Jul 24, 2003 12:20 pm Post subject: |
|
|
Apprentice
Joined: 19 Dec 2001 Posts: 27
|
Ok Kiran, I got you. I did this and still got:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/util/ExprtMsgFlows.
Where should the ic01.jar file reside?
Also I believe I have the MQ Java classes. On my client I have
program files/mqseries client/Java/Lib/com.ibm.mq.amt.jar
Here's what the bat file looks like:
@echo off
set EMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
"c:\program files\ibm\websphere MQ integrator 2.1\tool\bin\java" -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.ExportMsgFlows %1 %2 %3
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
"c:\program files\ibm\websphere MQ integrator 2.1\tool\bin\java" -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.ExportMsgFlows -?
:end
===============================================
I'd appreciate any input.
Thank you so much |
|
Back to top |
|
 |
vmcgloin |
Posted: Thu Jul 24, 2003 12:49 pm Post subject: |
|
|
Knight
Joined: 04 Apr 2002 Posts: 560 Location: Scotland
|
Quote: |
Where should the ic01.jar file reside? |
Everything from the supportpac should be in <wmqi_root>\tool which is likely to be c:\program files\ibm\websphere MQ integrator 2.1\tool
You should also run it from there. If you still get an error saying java is not recognised then check that the path to java.exe and make sure it is in your PATH.
Cheers,
Vicky |
|
Back to top |
|
 |
kirani |
Posted: Thu Jul 24, 2003 1:18 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
This is how my batch file looks like...
Code: |
@echo off
set FMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
.\bin\java -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.FilterMsgFlows %1 %2
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
.\bin\java -cp "%FMF_CLASSPATH%" com.ibm.broker.config.util.FilterMsgFlows -?
:end
|
Also make sure com.ibm.mq.jar file is in your classpath. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
megani |
Posted: Fri Jul 25, 2003 9:49 am Post subject: |
|
|
Apprentice
Joined: 19 Dec 2001 Posts: 27
|
Thanks so much. I got this to work.
Cheers. |
|
Back to top |
|
 |
|