Hi Jay
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
.....
WrapperSimpleApp: Unable to locate the class samples.util.SampleAxis2Server:
java.lang.UnsupportedClassVersionError: samples/util/SampleAxis2Server
(Unsupported major.minor version 49.0)
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:
...
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).
Generally whenever I set a JDK, I set both the JAVA_HOME and put the
$JAVA_HOME/bin into my PATH. I think its wrong for the JAVA_HOME to
point to one, while the PATH contains another - since even the Java
tools will be picked up from the PATH. However we could certainly make
the modification you request, if you still think its valid..
(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)
I do not use IE anymore.. and this is one area where we could definitely
make use of some user contributions :-)
cheers
asankha
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com