This discussion is archived
9 Replies Latest reply: Oct 23, 2009 9:20 AM by 729423 RSS

Problem running simpapp example for SALT 10gR3

729423 Newbie
Currently Being Moderated
Hello,

I am trying to run the simpapp sample from SALT 10gR3 distribution.

I have run "ant all" task and everything is OK until the Axis2 client is generated. I think there is an error in SimpAppClient.java prepared file where there is "stub.ToUpperWS( request )" instead od "stub.toUpperWS( request )".

After correctin this I can invoke the WebService, however I obtain : "org.apache.axis2.AxisFault: Method 'ns1:ToUpperWS' not implemented: method name or namespace not recognized" Error.

I also tried "Web Services Explorer" tool from Eclipse Galileo JEE which generates similar request and obtains the same error response from SALT.

Has anybody run this example successfully ?

Are there any options to enable debug in SALT to see what exactly does not work. I cannot see any in ULOG according to this failed request.

My platform is Windows XP SP3, and Tuxedo 10gR3.

with best regard Olek
Poznan, Poland
  • 1. Re: Problem running simpapp example for SALT 10gR3
    651249 Journeyer
    Currently Being Moderated
    Poznan,

    I am not sure why you think the ToUpperWS is wrong ... In fact the name is specified by WSDL and the stub code assume it is ToUpperWS. Change to toUpperWS sure will result the error you met.

    Wayne
  • 2. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    Hello,

    When starting the Tuxedo with the tmboot -y i can see the following message :

    exec GWWS -A -- -i GWWS1 :
    CMDTUX_CAT:819: INFO: Process id=5560 Assume started (pipe).

    I cannot also find any GWWS process running on the system. Is it possible that GWWS does not start anymore ?

    The ULOG contents is as follows - I cannot see any entry about GWWS starting :

    062426.L375!BBL.836.2004.0: 10-22-2009: Tuxedo Version 10.3.0.0 with VS2005, 32-bit, Patch Level (none)
    062426.L375!BBL.836.2004.0: LIBTUX_CAT:262: INFO: Standard main starting
    062426.L375!simpserv.5188.1368.0: 10-22-2009: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    062426.L375!simpserv.5188.1368.0: LIBTUX_CAT:262: INFO: Standard main starting
    062426.L375!simpserv.5188.1368.0: TRACE:at: { tpsvrinit(14, "simpserv -C dom=simpapp -g 1 -i 1 -u L375 -U E:\oracle\tuxedo10gR3_VS2005\samples\salt\simpapp\work\ULOG -m 0 -A")
    062426.L375!simpserv.5188.1368.0: Welcome to the simple server
    062426.L375!simpserv.5188.1368.0: TRACE:at: } tpsvrinit = 0
    062426.L375!TMMETADATA.5464.796.0: 10-22-2009: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    062426.L375!TMMETADATA.5464.796.0: LIBTUX_CAT:262: INFO: Standard main starting
    062426.L375!TMMETADATA.5464.796.0: CMDTUX_CAT:6769: INFO: TMMETADATA server started with repository file E:\oracle\tuxedo10gR3_VS2005\samples\salt\simpapp\work\mdr_simpapp.repos


    regards Olek
  • 3. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    Dear Wayne,

    The SimpAppClient.java is prepared in the sample and when the Axis2 stuff is generated it is just wrong method call. Having simpapp contens out of the box I obtained compilation error at the ant task "buildaxis".

    regards Olek

    Poznan is the city in Poland :-)
  • 4. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    I disabled the GWWS serwer definition in the simpapp.ubb file, generated the tuxconfig again. I run the Tuxedo without GWWS server and I obtain the same error trying to invoke WebService "org.apache.axis2.AxisFault: Method 'ns1:ToUpperWS' not implemented: method name or namespace not recognized".

    Is seems that my GWWS is not starting anymore even if defined. How to known what is exacly happening ?

    regatrds Olek
  • 5. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    The same with tmadmin :
    printserver -i 1
    Prog Name Queue Name Grp Name ID RqDone Load Done Current Service
    --------- ---------- -------- -- ------ --------- ---------------
    simpserv.exe 00001.00001 GROUP1 1 0 0 ( IDLE )

    printserver -i 2
    Prog Name Queue Name Grp Name ID RqDone Load Done Current Service
    --------- ---------- -------- -- ------ --------- ---------------
    TMMETADATA.exe 00001.00002 GROUP1 2 0 0 ( IDLE )

    printserver -i 3
    TMADMIN_CAT:121: ERROR: No such server.



    The "3" is GWWS that is not running. Why ?

    regards Olek
  • 6. Re: Problem running simpapp example for SALT 10gR3
    651249 Journeyer
    Currently Being Moderated
    Olek,

    It looks a known issue on windows that MS VC library is not compatible between your system and SALT built. You may try to install vc express 2005 (not 2008!) and run tmboot again. The package can be found at http://www.softpedia.com/get/Programming/Other-Programming-Files/Microsoft-Visual-C-Toolkit.shtml.

    Wayne

    Edited by: Wayne Chen on Oct 23, 2009 12:05 AM
  • 7. Re: Problem running simpapp example for SALT 10gR3
    651249 Journeyer
    Currently Being Moderated
    Olek,

    I just repeat the simpapp sample, the whole sample looks good...

    genwsdl:
    [echo] "Generate WSDL by tmwsdlgen"
    [exec] WSCMD_CAT:9: INFO: WSDL file 'D:\simpapp/work/simpapp.wsdl' is generated.

    buildaxis:
    [mkdir] Created dir: D:\simpapp\work\build
    [mkdir] Created dir: D:\simpapp\work\build\work
    [mkdir] Created dir: D:\simpapp\work\build\classes
    [codegen] Retrieving document at 'file:///D:\simpapp/work/simpapp.wsdl'.
    [codegen] log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
    [codegen] log4j:WARN Please initialize the log4j system properly.
    [copy] Copying 1 file to D:\simpapp\work\build\work\com\bea\salt\examples\simpapp\axis2client
    [javac] Compiling 2 source files to D:\simpapp\work\build\classes
    [jar] Building jar: D:\simpapp\work\build\simpappaxis2.jar

    runaxiscli:
    [java] log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService).
    [java] log4j:WARN Please initialize the log4j system properly.
    [java] Sent 'Hello World!'
    [java] Got 'HELLO WORLD!'



    The task "buildaxis" looks,
    D:\simpapp>ant buildaxis
    Buildfile: build.xml

    buildaxis:
    [codegen] Retrieving document at 'file:///D:\simpapp/work/simpapp.wsdl'.
    [codegen] log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
    [codegen] log4j:WARN Please initialize the log4j system properly.
    [javac] Compiling 1 source file to D:\simpapp\work\build\classes
    [jar] Building jar: D:\simpapp\work\build\simpappaxis2.jar

    BUILD SUCCESSFUL
    Total time: 4 seconds

    The code of SimpappClient.java looks,
    package com.bea.salt.examples.simpapp.axis2client;

    public class SimpappClient {

    public static void main(String [] args) {
    try {
    String send = "Hello World!";

    TuxedoWebServiceStub stub = new TuxedoWebServiceStub();
    TuxedoWebServiceStub.ToUpperWS request = new TuxedoWebServiceStub.ToUpperWS();

    request.setInbuf( send );

    TuxedoWebServiceStub.ToUpperWSResponse
    response = stub.ToUpperWS( request );

    String ret = response.getOutbuf();
    System.out.println( "Sent '" + send + "'" );
    System.out.println( "Got '" + ret + "'" );
    } catch (Exception e) {
    System.err.println( e.toString() );
    }
    }
    }

    Wayne

    Edited by: Wayne Chen on Oct 23, 2009 12:05 AM
  • 8. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    Dear Wyne,

    Great thanks for your help !!!

    Indeed I have used 2008 Express. Now I have installed the Visual Studio 2005 and the sample works fine.

    However I still state that in prepared axisclient/src/SimpApp.client is wrong call :

    response = stub.ToUpperWS( request );

    I needed to correct it to :

    response = stub.toUpperWS( request );

    regards Olek
  • 9. Re: Problem running simpapp example for SALT 10gR3
    729423 Newbie
    Currently Being Moderated
    Tnaks for the link to Freeware 2005 Exxpress !!

    You are really great. I have been searching 2005 edition but I was always redirected to 2008 download page.

    regards Olek

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points