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.

 View Only
  • 1.  Java compile issue

    Posted Fri June 13, 2003 05:33 PM

    Hi. I’ve been working with IS 4.6 and Developer for some time now, but this is the first time I’ve ever required a Java service, so I’m having some troubles getting it going.

    Specifically, I needed to make use of the unicode “toChar” service that I found on wmUsers ( [url=“wmusers.com”]wmusers.com ) in order to specify segment delimiters. When I copy/paste the code into a new java service, then save it, I get an error:

    usr/local/opt/webMethods/IntegrationServer4/packages/PCS/code/source/EDI/util/lookup/JavaService.java:14: Superclass java.lang.Object of class EDI.util.lookup.JavaService not found.
    public final class JavaService

    I’ve tried moving the service around, and changing the name, all kinds of things. So, then just for a lark, I tried to recompile a java service that is delivered with IS 4.6 - I get a similar error, though this time it also had an import error. I tried to build sample.commandLineExec:fireCommandExec in the wmSamples package - here’s the errors that are generated:

    /usr/local/opt/webMethods/IntegrationServer4/packages/WmSamples/code/source/sample/commandLineExec.java:12: Package java.io not found in import.
    import java.io.*;
    ^
    /usr/local/opt/webMethods/IntegrationServer4/packages/WmSamples/code/source/sample/commandLineExec.java:15: Superclass java.lang.Object of class sample.commandLineExec not found.
    public final class commandLineExec
    ^
    2 errors

    I’m sure it’s just a setup issue, but I don’t know enough about java/webMethods to fix it on my own.

    Thanks in advance!


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


  • 2.  RE: Java compile issue

    Posted Fri June 13, 2003 05:46 PM


  • 3.  RE: Java compile issue

    Posted Fri June 13, 2003 06:12 PM

    Thanks. I’d read that thread, and wasn’t sure if it was my problem.

    I went and had a look at my server.cnf, and it doesn’t even have the watt.server.compile defined in it! I’m a little leery of changing the server.cnf though, because we’ve been having problems where the IS loses it’s license key somewhat spontaneously :confused:

    I think proper procedure is to

    1. shut down IS
    2. change server.cnf
    3. start IS up again

    but I want to make sure before I do anything.


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


  • 4.  RE: Java compile issue

    Posted Fri June 13, 2003 06:32 PM

    Gre,

    yes absolutly right steps,before adding or modifying any parameter in server.cnf file just shut down IS and start up again,so that it will re-initialize all its settings…

    Add java classpath on you client machine or point the java.exe in the server class path.

    And there are many threads which has answered same problems.

    HTH.


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


  • 5.  RE: Java compile issue

    Posted Fri June 13, 2003 06:34 PM