ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Problem with Web Credit Example (SP WA82)

Post new topic  Reply to topic
 Problem with Web Credit Example (SP WA82) « View previous topic :: View next topic » 
Author Message
nboucher
PostPosted: Wed May 01, 2002 6:07 am    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

Hi,

I have installed on Windows 2000 (stand-alone install):
- DB2 7.2 SP5
- WAS 4.0 SP2
- MQSeries 5.2
- MQSeries Workflow 3.2.2.
- Web Client

I downloaded the Web Credit Example (SP WA82) from the
http://www-4.ibm.com/software/ts/mqseries/txppacs/txpm4.html#mqw web site.

I have followed the installation instruction specified in the SP WA82 and downloaded/installed
the following to satisfied the prerequisites:

- SupportPac Ma88
- Xerces-J XML Parser version 2.0.1

I am currently using the Java-based UPES install (not the MQ Integrator).

I created the DB successfully.

I imported:

- starter.fdl
- WebCredit_UPES.fdl
- WebCredit.fdl

into buildtime and runtime without errors. However when I selected "Verify" under
Buildtime, I get the following warning:

...
FMC21926 Program Execution Server 'WEBCRED.FMCSYS.FMCGRP' referenced by 'Update_Loans' not found
FMC21926 Program Execution Server 'WEBCRED.FMCSYS.FMCGRP' referenced by 'Update_Tables' not found
...

Why? the queue WEBCRED is specified under the Network tab. and I added the WEBCREDITINPUT local queue in MQSeries
as specified in the instructions.

Also, I am having problem when starting the UPES. When I entered:
...scenarioWebCreditCustomerUPESCustomerUPES.bat, I get the following error:


" Exception in thread "main" java.lang.VerifyError:
(class: com/ibm/workflow/sample/upes/UPESBaseSAX,
method: decodeMessage signature: (Lcom/ibm/mq/MQMessage;)V)
Incompatible object argument for method call"


Any ideas how I can make this work?

Thanks
Back to top
View user's profile Send private message
jmac
PostPosted: Wed May 01, 2002 7:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Are you sure that the UPES got imported into Runtime?

Enter: fmcibie -uadmin -ppassword -eserver.fdl -c"EXPORT SERVER *"

If the UPES are not there, then they have not been imported into runtime

As far as the SAX problem, make sure you have the proper version of xerces.jar in your class path.

GOOD LUCK

_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
nboucher
PostPosted: Wed May 01, 2002 10:31 am    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

John,

Ok...I am progressing...

The UPES got imported into Runtime fine cause when I did:
Enter: fmcibie -uadmin -ppassword -eserver.fdl -c"EXPORT SERVER *"
I could see the description of my UPES...however the setting was wrong.
I think it now has the right setting.

As far as the SAX problem, it seems like you were also right, I didn't had the proper version of xerces.jar in my class path.

However, now when starting the UPES.
...scenarioWebCreditCustomerUPESCustomerUPES.bat

I get the following error:

MQSeries Workflow WebCredit Example (SupportPac WA82) - CustomerUPES
--------------------------------------------------------------------
Version 1.3

UPESBaseSAX initializing
Connecting to Queue Manager 'FMCQM'
Accessing queue WebCreditInput
Unable to load message catalog - mqji
com.ibm.mq.MQException: Message catalog not found
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1365)
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1410)
at com.ibm.workflow.sample.upes.UPESBaseSAX.<init>(UPESBaseSAX.java:95)
at com.ibm.workflow.sample.upes.UPESBaseAdapter.<init>(UPESBaseAdapter.j
ava:
at com.ibm.workflow.sample.upes.CustomerUPES.<init>(CustomerUPES.java:96
)
at com.ibm.workflow.sample.upes.CustomerUPES.main(CustomerUPES.java:74)



What is that "message catalog - mqji" ????

Thanks again for any help...

Back to top
View user's profile Send private message
jmac
PostPosted: Wed May 01, 2002 11:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Nadine:

If you getthe following into your Classpath, (I dont remember if you only need one or must have both) that error will go away.

mqji.properties
mqji_en_US.properties

GOOD LUCK

_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
nboucher
PostPosted: Thu May 02, 2002 6:49 am    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

John,

+++++++++++++++++++++++++++++
1)

I did what you suggest: added both mqji.properties and
mqji_en_US.properties in my classpath. However the error
was still there. Then I review the files in the SP WA82
and I noticed that the ...wa82scenarioWebCreditCustomerUPESCustomerUPES.properties
had the Db2 infos commented out. I uncommented the

- Database.Driver
- Database.Prefix
- Database.UserID
- Database.Password

..and updated with the appropriate values for my system...and it work fine!!!!! The UPES started
successfully...waiting for messages


THEN I TESTED EVERYTHING...in general the process work fine except for the 2 following issues:

+++++++++++++++++++++++++++++
2)

In the documentation for the SP WA82, it is mentionned on page 8 of 8 that I can start
a new process by entering: http://demo/MQWFClient/starter/WebCreditRequest.html
At this point:

- the "Apply for credit" screen appears.
- I can select [New Customer], the form to apply for a credit appears.
- I entered all the infos then I select [Apply for credit]

...and the following error appears:

-----------------------------
The parameter StarterUserID is missing.

com.ibm.workflow.servlet.client.ClientException: The parameter StarterUserID is missing.
at com.ibm.workflow.servlet.client.BuiltinHandler.createAndStartInstance(BuiltinHandler.java:1222)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.workflow.servlet.client.Util.invoke(Util.java:124)
at com.ibm.workflow.servlet.client.BuiltinHandler.execute(BuiltinHandler.java:130)
at com.ibm.workflow.servlet.client.ApplicationContextImpl.dispatch(ApplicationContextImpl.java:272)
at com.ibm.workflow.servlet.client.Main.doGet(Main.java:214)
at com.ibm.workflow.servlet.client.Main.doPost(Main.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
...
...
-----------------------------

I am actually getting the same error (specify above) if I entered a customer ID that
I previously created and login. The Apply for credit screen appears for me to updated
the infos but if I press [Apply for credit] then same problem...


+++++++++++++++++++++++++++++
3)
In the documentation for the SP WA82, it is mentionned on page 8 of 8 that
executed the process by logging on to the MQWF Web Client with user WEBBANK_CLERK
and start an activity...that process work fine except for one step:


Under the "Get Credit Approval" screen,
when I pressed the button [Display Credit History] the following error occured:


Error 500: C:WebSphereAppServerinstalledAppsMQWFWebClient_FMC1.earfmcohcli.warprogramsWebCredit_DisplayCreditHistory.jsp(133,0)
JSPG0059E: Unable to compile class for JSP JSPG0142E: An error occurred at line: 95
in the jsp file: C:/WebSphere/AppServer/installedApps/MQWFWebClient_FMC1.ear/fmcohcli.war/programs/WebCredit_DisplayCreditHistory.jsp

JSPG0144E: Generated servlet error: C:WebSphereAppServertempdemoWebClient_Server_-_FMC1demoMQWF_Web_Client_-_FMC1fmcohcli.warprograms_WebCredit_0005fDisplayCreditHistory_jsp_0.java:146:
Undefined variable or class name: context out.print(context.getURL("{_HTMLDir_}/starter/images/ebank.jpg" ) ); ^ 1 error

**** NOTE: The file WebCredit_DisplayCreditHistory uses the context variable
only in the following situation:
<td valign="top">
<img border="0"
src="<%=context.getURL("{_HTMLDir_}/starter/images/ebank.jpg" ) %>"
alt="EBank Image" width="167" height="510">
</td>

...but context, it is never define...how can I define it????





Any ideas/comments for 2) and 3) ????


Thanks...again
Back to top
View user's profile Send private message
jmac
PostPosted: Thu May 02, 2002 7:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Nadine:

for 2: you need to go to your web client properties file and "UNCOMMENT" the lines that relate to the starter. They come commented out by default, I believe there are 4 lines.

for 3): I'm really not sure, the context is in the usebean statement in most JSPs, but I've not run this example in a very long time, so I really don't know where it is.

GOOD LUCK

_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
nboucher
PostPosted: Thu May 02, 2002 7:37 am    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

John,

2)
You're right. I uncommented the following 4 lines in the
...fmcohcli.warWEB-INFWebClient.properties and it solve my problem #2.

StarterUserID=STARTER
StarterPassword=password
StarterSystemGroup=FMCGRP
StarterSystem=FMCSYS

3) Still investigating...

Thanks...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Problem with Web Credit Example (SP WA82)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.