I was trying to reproduce this issue. I got the same warnings in the
first step. (samples\quickstart\service\pojo\StockQuoteService.java uses
unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked
for details.)
However I was able to generate the wsdl without getting any errors in
the second step. Please check the wsdl generation again.
regards
Charitha
Note :- Tested with java version "1.5.0_06"
Thilina Gunarathne (JIRA) wrote:
Axis2 Quick Start Guide is not working with JDK 1.5
---------------------------------------------------
Key: AXIS2-1951
URL: https://issues.apache.org/jira/browse/AXIS2-1951
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Environment: java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
Linux fawad-desktop 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006
i686 GNU/Linux
Reporter: Thilina Gunarathne
Priority: Blocker
Creating a JIRA as per the request from an user..
Hi,
I am following the Axis2 Quick Start Guide section (Getting Ready).
There are two steps for creating a WSDL file:
1.Create and compile the Java class.
For this i am using the sample java class
samples/quickstart/service/pojo/StockQuoteService.java.
then i compiled the file.
[EMAIL PROTECTED]:~/project/cobra/axis/axis2-1.1/samples/quickstart/src$
javac samples/quickstart/service/pojo/StockQuoteService.javaNote:
samples/quickstart/service/pojo/StockQuoteService.java uses unchecked or
unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
I got the above error, then i did this:
[EMAIL PROTECTED]:~/project/cobra/axis/axis2-1.1/samples/quickstart/src$
javac -Xlint:unchecked
samples/quickstart/service/pojo/StockQuoteService.javasamples/quickstart/service/pojo/StockQuoteService.java:17:
warning: [unchecked] unchecked call to put(K,V) as a member of the raw
type java.util.HashMap
map.put(symbol, new Double(price));
^
1 warning
Then i got the above mentioned warning. Is there anyway to get rid of this
warning??
My java version is:
[EMAIL PROTECTED]:~/project/cobra/axis/axis2-1.1/samples/quickstart/src$
java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
2.The step two was: Generate the WSDL using the following command:
[EMAIL PROTECTED]:~/project/cobra/axis/axis2-1.1/samples/quickstart/src$
$AXIS2_HOME/bin/java2wsdl.sh -cp . -cn
samples.quickstart.service.pojo.StockQuoteService -of
StockQuoteService.wsdl
Using AXIS2_HOME: /home/fawad/project/cobra/axis/axis2-1.1
Using JAVA_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08
Unrecognized option: -cn
Could not create the Java virtual machine.
I got the above error. Please help me understand this and get rid of this.
Thanks...
--
Fawad Nazir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]