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
Expand all | Collapse all

Java service re-compilation error

  • 1.  Java service re-compilation error

    Posted Tue July 15, 2008 07:07 AM

    Hi,

    I careted a sample Java servcie and tried to save it.I was showing me class not found error.I have craeted a java service concat.java inside a folder “sample” inside package “test”.

    ie;Test/sample/concat.java

    When I try to save it i’m getting an error “Missing Class:Sample”

    Also Once I some how did not get any error while saving aftre so many tries and when I tried to run it I got the error “Class Test:Sample not operational.” and also I was aksed to recompile the class.

    Please find me a solution for this immediately.

    Regards,

    Kavitha.L


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


  • 2.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:03 AM

    To recompile a java file, goto the root dir where webMethods is installed thru command prompt
    rootDir\webmethod\IntegrationServer\bin
    on this location type: jcode makeall [packageName]

    where [packageName] is the name of the package where the java file exists. In your case this is test.
    I hope this helps.


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


  • 3.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:06 AM

    this needs to be done on the server where your IS is installed.


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


  • 4.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:25 AM

    Hi Hussain,

    I tried compiling like that in command prompt.And compilation didnt throw any error.But when I tried to run, it took the input values and again showing the error :

    Could not run ‘concat’

    com.wm.app.b2b.server.ServiceException: [ISS.0026.9102] Service ‘sample:conact’ is not operational. To run this service, first recompile the Java source.

    Why is it coming like this.Please reply immediately.


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


  • 5.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:29 AM

    DO one thing. First save ur java file in the dev by adding some space. Then recompile the file. and den save it once again.
    Hope it works


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


  • 6.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:40 AM

    Noo Hussain.Still asking me to recompile.I made changes ,saved and again tried to run.

    But same error
    Could not run ‘concat’

    com.wm.app.b2b.server.ServiceException: [ISS.0026.9102] Service ‘sample:conact’ is not operational. To run this service, first recompile the Java source.


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


  • 7.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:42 AM

    Is it because that I havent set any jar files?

    I dont think I need any jar file in this context

    This is my java service code:

    // pipeline
    IDataCursor pipelineCursor = pipeline.getCursor();
    String A = IDataUtil.getString( pipelineCursor, “inStr1” );
    String B= IDataUtil.getString( pipelineCursor, “inStr2” );


    String outStr= A+B;

    pipelineCursor.destroy();

    // pipeline
    IDataCursor pipelineCursor_1 = pipeline.getCursor();
    IDataUtil.put( pipelineCursor_1, “outStr”, outStr);
    pipelineCursor_1.destroy();

    Input:inStr1,inStr2
    Output:outStr


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


  • 8.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 08:49 AM

    Kavita,
    I copied/pasted your java code and it works perfectly fine. try creating the service in a new package.


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


  • 9.  RE: Java service re-compilation error

    Posted Tue July 15, 2008 10:16 PM

    Kavitha,

    You don’t need any special setup to compile and run this service (which I hope you have created just to try your hand at java services in IS). All you need to do is to ensure that the extended variable “watt.server.compile” is set, and is pointing to a valid javac on the machine where IS is installed.

    The service will be auto-compiled when you save it. To recompile it, you just need to save it again and to enable the save button, just add a space somewhere in the code or make a change and then undo it. Click the save button to save and recompile your service - if you get an error - share the error message, else your service is ready to execute.

    Roh


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


  • 10.  RE: Java service re-compilation error

    Posted Thu July 17, 2008 06:06 AM

    I did that but I was getting recompilation error again n again.

    But Finally I solved the problem.It was with server.bat file in integration server.
    The JAVA_DIR was pointing to JVM in the WM folder.

    SET JAVA_DIR=c:\program files\webmethods6\jvm\win142\jre

    Instead I changed it to point to the java folder in my machine.

    ie SET JAVA_DIR=c:\program files\Java\jdk1.5.0_07


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


  • 11.  RE: Java service re-compilation error

    Posted Thu September 26, 2013 02:32 PM

    The JAVA_DIR in the server.bat file (in IS) was pointing to JVM in the WM folder.

    I changed it to point to the java folder in my machine.

    ie SET JAVA_DIR=c:\program files\Java\jdk1.5.0_07

    Still it is asking me to recompile the java source.

    Error:

    Service ‘sample’ is not operational. To run this service, first recompile the Java source.

    Please help me.

    Thanks,
    Reethu


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