I downloaded and unzipped the ZIP file for Synapse 1.2. The process to build the SimpleStockQuoteService seemed to go just fine. However, when I tried to start axis2 using axis2server.bat under Windows XP, I got this UnsupportedClassVersionError:
C:\PRO\synapse-1.2\samples\axis2Server>axis2server.bat "Starting Sample Axis2 Server ..." Using AXIS2_HOME: C:\PRO\SYNAPS~1.2\samples\AXIS2S~1\ Using JAVA_HOME: c:\pro\jdk1.5.0_12 --> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. WrapperSimpleApp: Unable to locate the class samples.util.SampleAxis2Server: java.lang.UnsupportedClassVersionError: samples/util/SampleAxis2Server (Unsupported major.minor version 49.0) WrapperSimpleApp Usage: java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments] Where: app_class: The fully qualified class name of the application to run. app_arguments: The arguments that would normally be passed to the application. <-- Wrapper Stopped Press any key to continue . . . My suspicion was that the Wrapper is picking up my *default* JRE, which is 1.4 -- i.e., it isn't passing JAVA_HOME thru. If we look at axis2server.bat, we see that the script does not appear to be passing JAVA_HOME thru: << snip of axis2server.bat >> rem rem Find the wrapper.conf rem :conf set _WRAPPER_CONF="%AXIS2_HOME%..\..\repository\conf\sample-server-wrapper.conf" <<< not here rem rem Start the Wrapper rem :startup "%_WRAPPER_EXE%" -c %_WRAPPER_CONF% wrapper.java.additional.1=%_HTTPPORT% wrapper.java.additional.2=%_HTTPSPORT% wrapper.java.additional.3=%_SERVERNAME% %_XDEBUG% <<< and not here, either <</snip>> And, if I set my Windows PATH in the command window where I start this to have the JRE 1.5 bin directory first, then the error does not occur. synapse.bat has the very same problem. (I expect all of the .bat files that user the wrapper do). JIRA time? (A likely cure would be to set the path to %JAVA_HOME%\bin;%PATH% before executing the wrapper program). (Also, FYI, if you print the Quick Start guide in IE, some text gets chopped off. Watch out for long lines. IE doesn't print that stuff properly) Jay Jaeger
