• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Not able to register Controller command in WCS 5.1

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all, I am working on WCS 5.1 Pro for Win 2000. I am not able to deploy the simple Controller command on WCSuite, but the same command is working fine in WTE. Following is description of the problem.
What we have done:
1-Installed Commerce Suite 5.1 and created an instance called 'WCS' and published 'InFashion' successfully
2- Installed Commerce Studio
3- Installed VAJava 3.5
4-Followed the 'ProgrammersGuide.pdf' Ch8. Imported the _WCSSamples repository and changed the ownership to WCS Developer Started writing new command "MyNewControllerCmd" under "com.ibm.commerce.sample.commands" package.
5- Added a record in URLREG, VIEWREG, and CMDREG tables with classname, interface name, desc etc.
6-Added a field in MyNewControllerCmd:
defaultCommandClassName = "com.ibm.commerce.sample.commands.MyNewControllerCmdImpl".
7-Uncommented Section 1 and Section 5 in "performExecute" method of "MyNewControllerCmdImpl" class
8-Exported the class files to a jar file. (samplecmd.jar)
9-Added samplecmd.jar in the WCS\lib\ folder
10-Added in extended classpath of Application server console.
11-Restarted the Appserver
12-When we tried the Servlet in the browser "http://wcs/webapp/wcs/stores/servlet/MyCmdControllerCmd"
_ERR_CMD_CANNOT_INSTANTIATE_COMMAND errror has come.
We need help to:
1- Find out why this error is coming?
2- What can we do to fix it?
3- Is there some better way of looking up for error description using the error codes that WCS displays?
Thanks in advance.
Janardhan

 
And inside of my fortune cookie was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic