|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MB Email Adapter HELP!!!!! |
« View previous topic :: View next topic » |
Author |
Message
|
Monk |
Posted: Tue Apr 15, 2008 1:35 am Post subject: MB Email Adapter HELP!!!!! |
|
|
 Master
Joined: 21 Apr 2007 Posts: 282
|
Hi All,
I m trying to configure an email adapter for MB 5.0
following is what is used
1. WBI Adapter framework v2.6.3
2. EMail adapter
3. MB v5.0
4. Windows 2000
I have done the configuration as per the IBM documentation
Now when i try to run the batch file i get the following error
C:\IBM\WebSphereAdapters\connectors\EMail>start_Email.bat EMail QM -c EMailConnector.cfg
o/p
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM @echo off
C:\IBM\WEBSPH~2\CONNEC~1\EMail>call "C:\IBM\WebSphereAdapters"\bin\CWConnEnv
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM if WBIA_RUNTIME exists, do things the new way, otherwise use the old way
C:\IBM\WEBSPH~2\CONNEC~1\EMail>if "C:\IBM\WebSphereAdapters" == "" goto CROSSWORLDS
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM By default, use the WBIA.jar under lib. This is the jar built with the most
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM recent WBIA adapter framework.
C:\IBM\WEBSPH~2\CONNEC~1\EMail>set WBIA="C:\IBM\WebSphereAdapters"\lib\WBIA.jar
C:\IBM\WEBSPH~2\CONNEC~1\EMail>set JCLASSES=.;.;.;;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\mail.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\activation.jar;"C:\IBM\WebSphereAdapters"\lib\xerces.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CwDataHandler.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CustDataHandler.jar;"C:\IBM\WebSphereAdapters"\lib\vbjtools.jar;;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\mail.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\activation.jar;"C:\IBM\WebSphereAdapters"\lib\xerces.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CwDataHandler.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CustDataHandler.jar;"C:\IBM\WebSphereAdapters"\lib\vbjtools.jar;;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\mail.jar;""C:\IBM\WebSphereAdapters"\connectors\Email"\JavaMail-Sun\activation.jar;"C:\IBM\WebSphereAdapters"\lib\xerces.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CwDataHandler.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CustDataHandler.jar;"C:\IBM\WebSphereAdapters"\lib\vbjtools.jar;;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar;"C:\IBM\WebSphereAdapters"\lib\WBIA.jar
C:\IBM\WEBSPH~2\CONNEC~1\EMail>goto END
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM Define local batch PATH to insure we execute our jre
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM set the directory where the specific connector resides
C:\IBM\WEBSPH~2\CONNEC~1\EMail>set CONNDIR="C:\IBM\WebSphereAdapters"\connectors\EMail
C:\IBM\WEBSPH~2\CONNEC~1\EMail>REM goto the connector specific drive & directory
C:\IBM\WEBSPH~2\CONNEC~1\EMail>cd /d "C:\IBM\WebSphereAdapters"\connectors\EMail
C:\IBM\WebSphereAdapters\connectors\EMail>REM set the name to be the application connector that is starting
C:\IBM\WebSphereAdapters\connectors\EMail>set CONNAME=EMail
C:\IBM\WebSphereAdapters\connectors\EMail>REM set the package name to the connector package name
C:\IBM\WebSphereAdapters\connectors\EMail>set CONNPACKAGENAME=com.crossworlds.connectors.EMail.ConnectorAgent
C:\IBM\WebSphereAdapters\connectors\EMail>REM set the server name to be the interchange that is being targeted
C:\IBM\WebSphereAdapters\connectors\EMail>set SERVER=QM
C:\IBM\WebSphereAdapters\connectors\EMail>set DataHandler_JAR="C:\IBM\WebSphereAdapters"\DataHandlers\CwDataHandler.jar;"C:\IBM\WebSphereAdapters"\DataHandlers\CustDataHandler.jar
C:\IBM\WebSphereAdapters\connectors\EMail>if =="4.X" set XML_PARSER="C:\IBM\WebSphereAdapters"\lib\xerces.jar
=="4.X" was unexpected at this time.
I m stuck at this point.
Any help would be gadly appreciated.
Thanks in advance. _________________ Thimk |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Apr 15, 2008 2:17 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
did you configure the queue manager that you are using.
how you configured the cfg file
Mods move this to Adapter section
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 15, 2008 2:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Moved to Adaptor section _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Monk |
Posted: Tue Apr 15, 2008 3:50 am Post subject: |
|
|
 Master
Joined: 21 Apr 2007 Posts: 282
|
Quote: |
"did you configure the queue manager that you are using.
how you configured the cfg file " |
I have followed the steps given by IBM.
here's the link
http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp
but the adapter hasn't successfully run.
The batch script stops in between ,
a batch file called 'CWConnEnv.bat' , sets certain variables, which is required to start the adapter.
But they are not setting it
this is because the 'CWConnEnv.bat'
is as follows
=============================================
REM if WBIA_RUNTIME exists, do things the new way, otherwise use the old way
if "%WBIA_RUNTIME%"=="" goto CROSSWORLDS
REM By default, use the WBIA.jar under lib. This is the jar built with the most
REM recent WBIA adapter framework.
set WBIA="%WBIA_RUNTIME%"\lib\WBIA.jar
set JCLASSES=%JCLASSES%;%WBIA%
goto END
:CROSSWORLDS
REM Possible values for CWVERSION are 4.1.X, 4.2, 4.2.2 needs to be
REM 4.2 needs to be set for both 4.2.0 and 4.2.1 releases.
REM Change CWVERSION to 4.2.2 and WBIA.jar to be taken from lib/4.2.0 for
REM CWVERSION setting of 4.2.
set CWVERSION="4.2.2"
REM Invoke CWSharedEnv.bat for post 4.2.2 release. This will set the
REM ORB_HOST,ORB_PORT and ORB_PROPERTY flags.
if %CWVERSION%=="4.2.2" call "%CROSSWORLDS%"\bin\CWSharedEnv
REM ORBCLASS for pre 4.3 releases.
if %CWVERSION%=="4.2" set ORBCLASS=com.inprise.vbroker.orb.ORB
if %CWVERSION%=="4.1.X" set ORBCLASS=com.inprise.vbroker.orb.ORB
REM Set ORB_PROPERTY for pre 4.2.2 releases.For 4.2.2, it is set in
REM CWSharedEnv.bat
if %CWVERSION%=="4.2" set ORB_PROPERTY=-Dorg.omg.CORBA.ORBClass=%ORBCLASS% -Dorg.omg.CORBA.ORBSingletonClass=%ORBCLASS%
if %CWVERSION%=="4.1.X" set ORB_PROPERTY=-Dorg.omg.CORBA.ORBClass=%ORBCLASS% -Dorg.omg.CORBA.ORBSingletonClass=%ORBCLASS%
REM Define local batch PATH to insure we execute our jre
set PATH="%CROSSWORLDS%"\bin;%PATH%
set RT="%CROSSWORLDS%"\lib\rt.jar
set CWCLASSES="%CROSSWORLDS%"\lib\crossworlds.jar
if %CWVERSION%=="4.1.X" set MQ="%CROSSWORLDS%"\lib\mq.jar;"%CROSSWORLDS%"\MA88\Java\lib\properties.jar
if %CWVERSION%=="4.1.X" set MQ_LIB="%CROSSWORLDS%"\MA88\Java\lib
set ORB1="%CROSSWORLDS%"\lib\vbjorb.jar
set ORB2="%CROSSWORLDS%"\lib\vbjapp.jarc
set DATAHANDLER=%CROSSWORLDS%\DataHandlers\CwDataHandler.jar;"%CROSSWORLDS%"\DataHandlers\CustDataHandler.jar;"%CROSSWORLDS%"\DataHandlers\CwXMLDataHandler.jar;"%CROSSWORLDS%"\DataHandlers\CwEDIDataHandler.jar
REM Set ODK dependencies
set ODK_LIB="%CROSSWORLDS%"\lib\CwODK.jar
set XML_LIB="%CROSSWORLDS%"\lib\xerces.jar
set ORION_LIB="%CROSSWORLDS%"\lib\cworion.jar
set SSLJ="%CROSSWORLDS%"\lib\sslj.jar
set CERTJ="%CROSSWORLDS%"\lib\certj.jar
set JSAFE="%CROSSWORLDS%"\lib\jsafe.jar
REM Use JAVA_PROPERTY from CWSharedEnv.bat for 4.2.2.
if %CWVERSION%=="4.1.X" set JAVA_SECURITY="%CROSSWORLDS%"\lib\ibmjcefw.jar;"%CROSSWORLDS%"\lib\ibmjceprovider.jar;"%CROSSWORLDS%"\lib\local_policy.jar;"%CROSSWORLDS%"\lib\US_export_policy.jar
if %CWVERSION%=="4.2" set JAVA_SECURITY="%CROSSWORLDS%"\lib\ibmjcefw.jar;"%CROSSWORLDS%"\lib\ibmjceprovider.jar;"%CROSSWORLDS%"\lib\local_policy.jar;"%CROSSWORLDS%"\lib\US_export_policy.jar
REM By default, use the WBIA.jar under lib. This is the jar built with the most
REM recent WBIA adapter framework.
set WBIA="%CROSSWORLDS%"\lib\WBIA.jar
if %CWVERSION%=="4.1.X" set WBIA="%CROSSWORLDS%"\lib\WBIA\4.1.1\WBIA.jar
if %CWVERSION%=="4.2" set WBIA="%CROSSWORLDS%"\lib\WBIA\4.2.0\WBIA.jar
REM set CWJAVA for pre-4.2.2 releases.
if %CWVERSION%=="4.1.X" set CWJAVA="%CROSSWORLDS%\bin\java"
if %CWVERSION%=="4.2" set CWJAVA="%CROSSWORLDS%\bin\java"
REM Set JAVA variable to point to rt.jar for pre 4.2.2 releases.
if %CWVERSION%=="4.1.X" set JAVA="%CROSSWORLDS%"\lib\rt.jar
if %CWVERSION%=="4.2" set JAVA="%CROSSWORLDS%"\lib\rt.jar
set JCLASSES=.;%JAVA%;%CWCLASSES%;%MQ%;"%MQ_LIB%";"%CROSSWORLDS%"\connectors;%ORB1%;%ORB2%;%SSLJ%;%CERTJ%;%JSAFE%;%DATAHANDLER%;%WBIA%;%JAVA_SECURITY%;%ODK_LIB%;%XML_LIB%;%ORION_LIB%
:END
=======================================
the CWVERSION varaible doesn't get set
because IBM says
REM if WBIA_RUNTIME exists, do things the new way, otherwise use the old way
if "%WBIA_RUNTIME%"=="" goto CROSSWORLDS
and WBIA_RUNTIME is set always.
Should i remove this?
IS this the correct way or I m missing something here. _________________ Thimk |
|
Back to top |
|
 |
Monk |
Posted: Tue Apr 15, 2008 3:54 am Post subject: |
|
|
 Master
Joined: 21 Apr 2007 Posts: 282
|
i have also nulled the environment variable
WBIA_RUNTIME,
if I do that and run the adapter. I get the following error message
==========================================
andler.jar;"C:\IBM\WebSphereAdapters"\lib\vbjtools.jar;;"C:\IBM\WebSphereAdapters"\connectors\EMail\CWEMail.jar; AppEndWrap
per -lcom.crossworlds.connectors.EMail.ConnectorAgent -nEMailConnector -sT.CON.BRK.01 -c EMailConnector.cfg
[Time: 2008/04/15 17:23:12.190] [System: Server] [Thread: wbia_main (#1153029797)] [Mesg: Configuration file C:\IBM\WebSphe
reAdapters\InterchangeSystem.cfg could not be read.]
===============================================
Why does it look for InterChangeSystem.cfg?.
I m not using ICS , I m using Broker v5.0
Something very wrong here.
Now i m thinking of writing my own email adapter. _________________ Thimk |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|