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 Compiler issue

    Posted Fri October 11, 2002 04:24 PM

    I recently had to remove the java compilers off the system to solve another problem. I have now reinstalled 1.2.2.
    My problem is that none of my java services will complie now. These are services that previously compiled with the exception of one new one I’m trying to add.

    I have done the following:

    1. edited JAVA_ROOT in server bat and pointed it at C:\jdk1.2.2
    2. restarted my server

    My folder structure is as follows:
    CoCommon (package)
    —CoCommon (main folder)
    -----utils (sub folder)
    -------java services
    -------java services
    -------java services

    I continue to get the error when compiling any java service:
    C:\Program Files\webMethods\IntegrationServer4\packages\CoCommon\code\source\CoCommon\utils.java:19:
    illegal start of type
    extends {

    I’m using IS4.6 with SP1 on Win2K.

    What am I missing?
    Thanks.

    Chris


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


  • 2.  RE: Java Compiler issue

    Posted Fri October 11, 2002 06:33 PM

    Update

    The error is now after shutting the server down and starting again as opposed to just restarting the server.

    C:\Program Files\webMethods\IntegrationServer4\packages\CoCommon\code\source\CoCommon\utils.java:20:
    Identifier expected.

    extends {

        ^
    

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


  • 3.  RE: Java Compiler issue

    Posted Fri October 11, 2002 06:48 PM

    It sounds like a syntax error to me. There is one thing you may be missing besides changing JAVA_ROOT you have to see server.cnf entry related to java compiler and adjust these. See admin server docs on details I do not recall what entry it is.


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


  • 4.  RE: Java Compiler issue

    Posted Fri October 11, 2002 06:59 PM

    Igor

    It seems wm is generating an extends but does not specify the class that it is extending.

    public final class utils

    extends {
    // —( internal utility methods )—

    I will look at the admin docs in the meantime.


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


  • 5.  RE: Java Compiler issue

    Posted Fri October 11, 2002 11:19 PM

    Chris,

    Check the shared tab of your service. Make sure that there is no whitespace in the extends input field. If you accidently put a space in that field the Integration Server thinks it is a class name and tries to extend it.


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


  • 6.  RE: Java Compiler issue

    Posted Tue October 15, 2002 02:20 PM

    Rupinder,

    Thanks that did it! There was one white space in in the input field.

    Chris


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