IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Very Basic question Failed to read class MyJavaClass from input stream

    Posted 09/21/05 04:44 PM

    Hi,

    I am new to using webMethods. I created a folder “MyJavaClass” and have a Java service inside that. I compiled it and can see the class files in “…..\code\classes”. When I try to run my Java Serviceby putting input parameters, getting an error “Failed to read class “MyJavaClass” from input stream”.

    Any idea what I am doing wrong?

    Thanks
    Gautham


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Very Basic question Failed to read class MyJavaClass from input stream

    Posted 09/21/05 05:09 PM

    Hi,

    In extended settings, look for the parameter:
    watt.server.compile=javac -classpath {0} -d…
    modify it by adding the path to your java compiler as follows:
    watt.server.compile=JDK_directory/bin/javac -classpath…

    You should note that the java version used should NOT be 1.5.

    Hope this helps,


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Very Basic question Failed to read class MyJavaClass from input stream

    Posted 09/21/05 05:10 PM

    For a complete guide:

    Specify the Compiler Command
    If you want Integration Server to use a JDK other than the default JDK to compile Java
    services developed using Developer, follow these steps:
    1 Start Integration Server and open Integration Server Administrator.
    2 Go to the Settings > Extended page and click Show and Hide Keys. Integration Server
    Administrator displays a list of Integration Server configuration properties you can
    change using Integration Server Administrator.
    3 Select the check box next to the watt.server.compile and watt.server.compile.unicode
    properties.
    4 Click Save Changes. Integration Server Administrator displays the selected properties
    in the Extended Settings box.
    5 Click Edit Extended Settings. In the Extended Settings box, set the properties as follows:
    �� watt.server.compile=JDK_directory/bin/javac -classpath {0} -d
    {1}{2}
    �� watt.server.compile.unicode=JDK_directory/bin/javac
    -encoding Unicode -classpath {0} -d {1}{2}
    6 Click Save Changes.
    7 Restart Integration Server.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services