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.  [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Wed April 09, 2003 09:07 AM

    I have this problem in my DEV environment when trying to compile a Java Service. I already checked my server.sh for JAVA path, .profile of the user, and environment variable and it looks good to me.

    Here is the error message in Developer console:
    "The source was saved, but was not compiled due to the following errors:

    com.wm.app.b2b.server.ServiceException: [B2BSERV.0014.9116] Unable to locate or start compiler"

    server.sh

    JAVA_ROOT=/usr/j2sdk1_3_1_02/jre

    if [ “$1” = “local” ]; then
    shift
    B2B_ROOT=/opt/webMethods/IntegrationServer4_6
    JAVA_PATH=which java
    JAVA_ROOT=/usr/j2sdk1_3_1_02/jre
    RUNLOCAL=“true”
    else
    RUNLOCAL=“false”
    fi

    jcode.sh

    #!/bin/sh

    B2B_ROOT=/opt/webMethods/IntegrationServer4_6
    JAVA_ROOT=/usr/j2sdk1_3_1_02/jre

    JCMD=“${JAVA_ROOT}/bin/java”

    $JCMD -cp ${B2B_ROOT}/lib/client.jar:${B2B_ROOT}/lib/server.jar com.wm.app.b2b.s
    erver.NodeUtil ${B2B_ROOT} $*

    Is there any workaround here? Or is it safe to reinstall IS4.6?


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Wed April 09, 2003 09:46 AM

    Make sure that your javac.exe is in your path.
    Your current path seams to point to the runtime environment, not the
    compiler.
    Regards,
    sf


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Mon April 14, 2003 01:17 PM

    I think this is a late response to your email, but wanted to share this information with you…

    In the /config/server.cnf file, there is a parameter watt.server.compile which will be use to compile your java code. By default, it points to javac -classpath {0} -d {1} {2}.

    Change this to /usr/j2sdk1_3_1_02/bin/javac -classpath {0} -d {1} {2} so that it points to your java location (please remember to shutdown your IS before editing the server.cnf file, otherwise your changes will not be saved).

    Best of luck!!


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Tue April 15, 2003 09:28 AM

    Hi,

    I already did that step, shutdown IS before changing the server.cnf file and I still get this error. What I did before is backup all the files and packages and uninstall IS and then reinstall. The problem goes away and I was able to compile the Java services several times. And then after 3 hours, the problem suddenly exist again.

    Here is my server.cnf file:

    watt.server.compile=/usr/j2sdk1_3_1_02/bin/javac -classpath {0} -d {1} {2}
    watt.server.compile.readFromStdErr=true
    watt.server.compile.unicode=/usr/j2sdk1_3_1_02/bin/javac -encoding Unicode -classpath {0} -d {1} {2}

    server.sh:

    B2B_ROOT=/u01/home/wmdev/webMethods/IntegrationServer4
    JAVA_ROOT=/usr/j2sdk1_3_1_02/jre

    Directory list:

    /usr/j2sdk1_3_1_02/jre> ls
    bin COPYRIGHT plugin
    CHANGES lib README
    ControlPanel.html LICENSE Welcome.html
    /usr/j2sdk1_3_1_02/jre>

    /usr/j2sdk1_3_1_02/bin> ls
    appletviewer jar javah oldjava rmiregistry
    awt_robot jarsigner javald oldjavac serialver
    ControlPanel java javap oldjdb sparc
    extcheck java-rmi.cgi jdb policytool tnameserv
    HtmlConverter javac keytool rmic
    idlj javadoc native2ascii rmid
    /usr/j2sdk1_3_1_02/bin>

    .profile (UNIX)

    This is the default standard profile provided to a user.

    They are expected to edit it to meet their own needs.

    MAIL=/usr/mail/${LOGNAME:?}
    export PS1='$PWD> ’
    export WM_HOME=/opt/webMethods/wmdev/IntegrationServer4

    WM_HOME is symlink to B2B_ROOT. did i miss something?


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 5.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Wed April 16, 2003 11:36 AM

    I found out that this error occurs only when I change my Java heap size memory to (min) 512 max (1024) in server.sh.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 6.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Thu April 17, 2003 11:08 AM

    May be the lack of memory, corrupting your server.sh. Some time back we had some problem with server.sh when we utilized all of our disk space. May be its affecting the configuration files as well, I am not sure…

    Anyway, you figured out the problem!!


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: [B2BSERV.0014.9116] Unable to locate or start compiler

    Posted Mon May 31, 2004 12:38 PM

    thanks for the reporting on the memory problem!!!

    I had the same problem on Sun Solaris wM 6.1.

    I really couldn’t figure out what was wrong. I modified all possible settings and still the message appeared.

    After I had shut down another server running on the same machine he was able to compile.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB