axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From root <salamli...@free.fr>
Subject Re: Quick start problem generate wsdl
Date Thu, 28 Feb 2008 10:09:52 GMT
Thanks charitha.first question, can you please explain what do you mean
by "generaed StockquoteService directory". I don't have such a
directory.
I have somehting like this(directory hierarchy)
	/opt
	axis2-1.3
	Samples
	qucikstart
	build
	classes
	samples
	qickstart
	service
	pojo
		then in pojo directory I have StockQuoteService.class.

For the moment, I copied pojo directory to the Axis2_home/bin directory,
executed the command you recommended, I got the same error

Salam
	
	
On Thu, 2008-02-28 at 07:10 +0600, Charitha Kankanamge wrote:
> Hi Salam,
> Can you please copy StockQuoteService class directory to Axis2_home/bin 
> and try the following steps.
> 
> - Copy the generaed StockquoteService directory to AXIS2_HOME/bin 
> (samples.quickstart.service.pojo.StockQuoteService)
> - Issue java2wsdl from AXIS2_HOME/bin as follows
> java2wsdl -cn samples.quickstart.service.pojo.StockQuoteService -cp . 
> -of StockQuoteService.wsdl
> 
> regards
> Charitha
> 
> root wrote:
> 
> >Hi,
> >I am new to Axis2 and trying to follow the quick start (POJO) tutorial.
> >I have setup everything correctly as I can browse
> >http://mymachine:8080/axis2/services and validate.
> >
> >When I try to generate the wsdl using the following command
> >
> >ant generate.wsdl, I get the following error :
> >
> >BUILD FAILED
> >/opt/axis2-1.3/samples/quickstart/build.xml:52:java.lang.ExceptionInInitializerError
> >
> >I have the following parameters in my env 
> >J2RE_HOME=/opt/jdk1.5.0_14
> >AXIS2_HOME=/opt/axis2-1.3
> >JAVA_HOME=/opt/jdk1.5.0_14
> >
> >I decided to build and compile the java class StockQuoteService, when I
> >run 
> >"javac StockQuoteService.java", I get a warning telling me to run javac
> >with  -Xlint:unchecked option. When I d so, I get the following
> >warning :
> >****************************************************************
> >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
> >****************************************************************
> >
> >But I find StockQuoteService.class in my directory. Following the
> >istructions in the quick start to generate manually the wsdl, I run 
> >
> >java2wsdl.sh -cp . -cn samples.quickstart.service.pojo.StockQuoteService
> >-of StockQuoteService.wsdl
> >
> >I get a differnet error as follows
> >
> >An error occured while generating codejava.lang.ClassNotFoundException:
> >samples.quickstart.service.pojo.StockQuoteService
> >
> >
> >Thanks for your help
> >Salam
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message