webMethods

webMethods

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 service error......

    Posted Sat September 01, 2007 07:54 AM

    [COLOR=Green]Hi am new in wM.i am using wM 6.1 version.I am trying to write a java service but i am getting following err.[/color]

    [B]////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////[/b]

    [COLOR=Red]The source was saved, but was not compiled due to the following errors:[/color]

    com.wm.app.b2b.server.ServiceException: com.wm.app.b2b.server.ServiceSetupException: ‘ourjava’ >> java.lang.UnsupportedClassVersionError: ourjava (Unsupported major.minor version 49.0)

    [COLOR=Purple]
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    [B]I have resolved one error and now getting following error:-

    Could not run ‘ourjava’.[/b]

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

    The source was saved, but was not compiled due to the following errors:
    Failed to load Main Class: com.sun.tools.javac.Main

    Any assistance will be appreciable
    [/COLOR]


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


  • 2.  RE: JAVA service error......

    Posted Sat September 01, 2007 02:32 PM

    I have faced to this exception. Please correct me if i am wrong. Upto me this is an issue with the JVM version. Seems the JVM does not support an advanced feature that we might have used in the code.


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


  • 3.  RE: JAVA service error......

    Posted Sat September 01, 2007 02:50 PM

    This is Java error. Google would have provided you with answer you’re looking for.
    This exception can occur when the source is built targeting a JDK that is not supported by the JDK attempting to run it. Check IS’s compiler version and the JDK version your code (including any imported Jar) targets.


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


  • 4.  RE: JAVA service error......

    Posted Mon September 03, 2007 06:56 AM

    Hi,

    Open server.bat and check if property JAVA_DIR is pointing to the jvm folder. For example
    SET JAVA_DIR=C:\webMethods65\jvm\win142

    Cheers,
    Beenu


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


  • 5.  RE: JAVA service error......

    Posted Sun September 23, 2007 11:30 PM

    Hi,

    U r going good… but I think u r forgetting something to set for this error…

    From my perspective v must hv to set classpath for jvm from webmethod…
    Please do it…U will get resolve ur problem…

    and do one more thing is remove all other java means jdk…

    In webMethod dont use jdk 1.6…

    cheers
    Isti


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


  • 6.  RE: JAVA service error......

    Posted Mon October 08, 2007 10:40 PM

    You can also point at concrete javac, by modificating those values using WmRoot web administration console:


    Settings > Extended

    Extended Settings Key=Value

    watt.server.compile=javac -classpath {0} -d {1} {2}
    watt.server.compile.unicode=javac -encoding Unicode -classpath {0} -d {1} {2}

    Extended settings are typically provided by webMethods Support

    to i.e.:
    watt.server.compile=/usr/java/sun/jdk/1.4.2/bin/javac -classpath {0} -d {1} {2}
    or:
    watt.server.compile=c:/usr/java/ibm/jdk/1.4.2/bin/javac -classpath {0} -d {1} {2}


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