root wrote:

So many thanks, yes now it worked without errors and a wsdl file created
inside the bin directory. I will continue the tutorial.
Can you please very shortly explain why we need to copy the whole bunch
of directories and not the .class file.
StockQuoteService.class is included in samples.quickstart.service.pojo package. Therefore you need to have the complete directory path.

Thanks again
On Thu, 2008-02-28 at 17:15 +0600, Charitha Kankanamge wrote:
Hi Salam,
It should be 'Generated'. What I meant to was the class file which generated after running ant build. Please copy 'samples' directory (NOT pojo directory) to Axis2_home/bin and try again.

regards
Charitha
root wrote:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to