You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rick Isaacs <re...@gmail.com> on 2007/12/01 19:15:05 UTC

[Axis2] Problem Axis2 sample - jaxws-calculator

Hi,

I am trying to get the axis2-1.3\samples\jaxws-calculator sample to work,
but I get
the error in Tomcat

java.lang.ClassNotFoundException:
org.apache.axis2.jaxws.calculator.Calculator


- downloaded and installed maven

- called maven package for the the sample, but maven could not download the
necessary files

- changed the pom.xml

    <artifactId>axis2-aar-maven-plugin</artifactId>
        <version>1.3-SNAPSHOT</version>

    <artifactId>axis2-jaxws</artifactId>
      <version>1.3-SNAPSHOT</version>

to

<version>1.3</version>

- maven package downloaded many files and built
samples\jaxws-calculator\target\jaxws-calculator-1.3.aar

- copied aar file to /services to deploy

- service is found by the Axis2 Service servlet along with wsdl

-
http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3

response in browser

<faultstring>java.lang.NullPointerException</faultstring>


Tomcat shows
<faultstring>java.lang.NullPointerException</faultstring>


I could not find an documentation for this sample, so I am not sure, how to
correctly install this sample.

Maybe I am missing some jars.

Thanks,
Rick

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Martin and Sandakith,

Thank you for telling me why the maven clean did not work
and the issue with JAXWS.

I will use the night build as I am not building from the sources.

Thanks,

Rick

On Dec 3, 2007 9:10 PM, Martin Gainty <mg...@hotmail.com> wrote:

>  that means the maven-clean-plugin is inaccessible
> until all the poms and all the maven files are changed to correct public
> repositories which have all correctly versioned plugins
> axis will need to get all the plugins built into one snapshot
>
> M--
>
> ----- Original Message -----
> *From:* Rick Isaacs <re...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Monday, December 03, 2007 11:03 AM
> *Subject:* Re: [Axis2] Problem Axis2 sample - jaxws-calculator
>
> Hi Martin,
>
> Thank you for your suggestion.
>
> I have not used maven before and I am learning how to use it - the sample
> required it.
>
> I am using maven 2.0.8
>
> >mvn --version
> Maven version: 2.0.8
> Java version: 1.5.0_09
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> --------------------------------
>
> >the better solution is to request the release manager to incorporate all
> plugins into a Version >SNAPSHOT distros
>
>
> I do not understand what you mean as I have only used maven for this
> sample.
>
> Maybe you could tell me how to correct the sample pom.xml for the
> jaxws-calculator sample.
>
> I tried to change the pom.xml (start of this thread) and it maybe be
> incorrect.
>
> Thanks,
> Rick
>
>
> When I run the following
>
> \WEB-INF\samples\jaxws-calculator>mvn  clean   // using original pom.xml
>
> [INFO] Scanning for projects...
> Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1
> .
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNA
>
> Downloading: http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom
>
> Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1
> .
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SN
>
> Downloading: http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.axis2
> ArtifactId: axis2-aar-maven-plugin
> Version: 1.3-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>   org.apache.axis2:axis2-aar-maven-plugin:pom:1.3-SNAPSHOT
>
> from the specified remote repositories:
>   apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
>   central ( http://repo1.maven.org/maven2),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   maven2 ( http://repo1.maven.org/maven2/)
>
>
> ----------------------------------------------------------------------------------------------------------------------------
>
>
> On Dec 2, 2007 9:33 PM, Martin Gainty < mgainty@hotmail.com> wrote:
>
> >  Hi Rick-
> >
> > the problem happens with the older versions of maven
> > I found that pom builds correctly under maven 2.0.8
> >
> > http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.8-bin.zip
> > (change your path to use the 2.0.8 new mvn.<bat/sh>)
> > the better solution is to request the release manager to incorporate all
> > plugins into a Version SNAPSHOT distros..we had the same thing happen in
> > another apache project and once we had all the plugins included into the
> > 'SNAPSHOT' then that build worked for everyone
> >
> > HTH/
> > Martin
> >
> > ----- Original Message -----
> > *From:* Rick Isaacs <re...@gmail.com>
> > *To:* axis-user@ws.apache.org
> > *Sent:* Sunday, December 02, 2007 12:47 PM
> > *Subject:* Re: [Axis2] Problem Axis2 sample - jaxws-calculator
> >
> >
> > Hi Charitha,
> >
> > Thank you for your email and that you have reported this problem.
> >
> > I am not familiar with the Axis2 snapshot releases.
> >
> > Where can I find out more about snapshots?
> >
> > I noticed that the maven project was using a 1.3-snapshot.
> >
> > Thanks,
> > Rick
> >
> >
> > On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:
> >
> > > Rick,
> > > I also experienced some issues with jax-ws sample. That sample did not
> > > have any document and I had reported a jira sometime back
> > > (https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > A seperate jira was reported for the nullpointer exception.
> > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > >
> > > Hope these issues will be resolved in the snapshot builds ASAP.
> > >
> > > regards
> > > Charitha
> > >
> > > Rick Isaacs wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > > > work, but I get
> > > > the error in Tomcat
> > > >
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.axis2.jaxws.calculator.Calculator
> > > >
> > > >
> > > > - downloaded and installed maven
> > > >
> > > > - called maven package for the the sample, but maven could not
> > > > download the necessary files
> > > >
> > > > - changed the pom.xml
> > > >
> > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > >         <version> 1.3-SNAPSHOT</version>
> > > >
> > > >     <artifactId>axis2-jaxws</artifactId>
> > > >       <version>1.3-SNAPSHOT</version>
> > > >
> > > > to
> > > >
> > > > <version>1.3</version>
> > > >
> > > > - maven package downloaded many files and built
> > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > >
> > > > - copied aar file to /services to deploy
> > > >
> > > > - service is found by the Axis2 Service servlet along with wsdl
> > > >
> > > > -
> > > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > >
> > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > >
> > > >
> > > > response in browser
> > > >
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > Tomcat shows
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > I could not find an documentation for this sample, so I am not sure,
> > > > how to correctly install this sample.
> > > >
> > > > Maybe I am missing some jars.
> > > >
> > > > Thanks,
> > > > Rick
> > > >
> > >
> > >
> > > --
> > > Charitha Kankanamge
> > > WSO2 inc.
> > > Flower Road, Colombo 07
> > > +94 714268070
> > >
> > > A bug in the hand is better than one as yet undetected
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
>

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Martin Gainty <mg...@hotmail.com>.
that means the maven-clean-plugin is inaccessible
until all the poms and all the maven files are changed to correct public repositories which have all correctly versioned plugins
axis will need to get all the plugins built into one snapshot

M--
  ----- Original Message ----- 
  From: Rick Isaacs 
  To: axis-user@ws.apache.org 
  Sent: Monday, December 03, 2007 11:03 AM
  Subject: Re: [Axis2] Problem Axis2 sample - jaxws-calculator


  Hi Martin,

  Thank you for your suggestion.

  I have not used maven before and I am learning how to use it - the sample required it.

  I am using maven 2.0.8

  >mvn --version
  Maven version: 2.0.8
  Java version: 1.5.0_09
  OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

  --------------------------------

  >the better solution is to request the release manager to incorporate all plugins into a Version >SNAPSHOT distros


  I do not understand what you mean as I have only used maven for this sample.

  Maybe you could tell me how to correct the sample pom.xml for the jaxws-calculator sample.

  I tried to change the pom.xml (start of this thread) and it maybe be incorrect.

  Thanks,
  Rick


  When I run the following

  \WEB-INF\samples\jaxws-calculator>mvn  clean   // using original pom.xml

  [INFO] Scanning for projects... 
  Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1 .
  Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNA 
  Downloading: http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom 
  Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1 .
  Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SN 
  Downloading: http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom 

  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Failed to resolve artifact. 

  GroupId: org.apache.axis2
  ArtifactId: axis2-aar-maven-plugin
  Version: 1.3-SNAPSHOT

  Reason: Unable to download the artifact from any repository

    org.apache.axis2:axis2-aar-maven-plugin:pom:1.3-SNAPSHOT 

  from the specified remote repositories:
    apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
    central ( http://repo1.maven.org/maven2),
    apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
    maven2 ( http://repo1.maven.org/maven2/)

  ----------------------------------------------------------------------------------------------------------------------------



  On Dec 2, 2007 9:33 PM, Martin Gainty < mgainty@hotmail.com> wrote:

    Hi Rick-

    the problem happens with the older versions of maven
    I found that pom builds correctly under maven 2.0.8
    http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.8-bin.zip 
    (change your path to use the 2.0.8 new mvn.<bat/sh>)

    the better solution is to request the release manager to incorporate all plugins into a Version SNAPSHOT distros..we had the same thing happen in another apache project and once we had all the plugins included into the 'SNAPSHOT' then that build worked for everyone

    HTH/
    Martin
      ----- Original Message ----- 
      From: Rick Isaacs 
      To: axis-user@ws.apache.org 
      Sent: Sunday, December 02, 2007 12:47 PM
      Subject: Re: [Axis2] Problem Axis2 sample - jaxws-calculator



      Hi Charitha,

      Thank you for your email and that you have reported this problem.

      I am not familiar with the Axis2 snapshot releases.

      Where can I find out more about snapshots?

      I noticed that the maven project was using a 1.3-snapshot.

      Thanks,
      Rick



      On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:

        Rick,
        I also experienced some issues with jax-ws sample. That sample did not
        have any document and I had reported a jira sometime back
        (https://issues.apache.org/jira/browse/AXIS2-3091 ).
        A seperate jira was reported for the nullpointer exception.
        (https://issues.apache.org/jira/browse/AXIS2-3382)

        Hope these issues will be resolved in the snapshot builds ASAP. 

        regards
        Charitha


        Rick Isaacs wrote:

        >
        > Hi,
        >
        > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
        > work, but I get 
        > the error in Tomcat
        >
        > java.lang.ClassNotFoundException:
        > org.apache.axis2.jaxws.calculator.Calculator
        >
        >
        > - downloaded and installed maven
        >
        > - called maven package for the the sample, but maven could not 
        > download the necessary files
        >
        > - changed the pom.xml
        >
        >     <artifactId>axis2-aar-maven-plugin</artifactId>
        >         <version> 1.3-SNAPSHOT</version>
        > 
        >     <artifactId>axis2-jaxws</artifactId>
        >       <version>1.3-SNAPSHOT</version>
        >
        > to
        >
        > <version>1.3</version>
        >
        > - maven package downloaded many files and built 
        > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
        >
        > - copied aar file to /services to deploy
        >
        > - service is found by the Axis2 Service servlet along with wsdl
        >
        > -
        > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3 
        > < http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3>
        >
        > response in browser
        >
        > <faultstring>java.lang.NullPointerException</faultstring>
        >
        >
        > Tomcat shows
        > <faultstring>java.lang.NullPointerException</faultstring>
        >
        >
        > I could not find an documentation for this sample, so I am not sure,
        > how to correctly install this sample. 
        >
        > Maybe I am missing some jars.
        >
        > Thanks,
        > Rick
        >



        --
        Charitha Kankanamge
        WSO2 inc.
        Flower Road, Colombo 07
        +94 714268070

        A bug in the hand is better than one as yet undetected 



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






Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Martin,

Thank you for your suggestion.

I have not used maven before and I am learning how to use it - the sample
required it.

I am using maven 2.0.8

>mvn --version
Maven version: 2.0.8
Java version: 1.5.0_09
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

--------------------------------

>the better solution is to request the release manager to incorporate all
plugins into a Version >SNAPSHOT distros


I do not understand what you mean as I have only used maven for this sample.

Maybe you could tell me how to correct the sample pom.xml for the
jaxws-calculator sample.

I tried to change the pom.xml (start of this thread) and it maybe be
incorrect.

Thanks,
Rick


When I run the following

\WEB-INF\samples\jaxws-calculator>mvn  clean   // using original pom.xml

[INFO] Scanning for projects...
Downloading:
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1
.
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNA
Downloading:
http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1
.
Downloading:
http://people.apache.org/repo/m2-snapshot-repository//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SN
Downloading:
http://repo1.maven.org/maven2//org/apache/axis2/axis2-aar-maven-plugin/1.3-SNAPSHOT/axis2-aar-maven-plugin-1.3-SNAPSHOT.pom

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.axis2
ArtifactId: axis2-aar-maven-plugin
Version: 1.3-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.axis2:axis2-aar-maven-plugin:pom:1.3-SNAPSHOT

from the specified remote repositories:
  apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
  central (http://repo1.maven.org/maven2),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  maven2 (http://repo1.maven.org/maven2/)

----------------------------------------------------------------------------------------------------------------------------


On Dec 2, 2007 9:33 PM, Martin Gainty <mg...@hotmail.com> wrote:

>  Hi Rick-
>
> the problem happens with the older versions of maven
> I found that pom builds correctly under maven 2.0.8
>
> http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.8-bin.zip
> (change your path to use the 2.0.8 new mvn.<bat/sh>)
> the better solution is to request the release manager to incorporate all
> plugins into a Version SNAPSHOT distros..we had the same thing happen in
> another apache project and once we had all the plugins included into the
> 'SNAPSHOT' then that build worked for everyone
>
> HTH/
> Martin
>
> ----- Original Message -----
> *From:* Rick Isaacs <re...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Sunday, December 02, 2007 12:47 PM
> *Subject:* Re: [Axis2] Problem Axis2 sample - jaxws-calculator
>
>
> Hi Charitha,
>
> Thank you for your email and that you have reported this problem.
>
> I am not familiar with the Axis2 snapshot releases.
>
> Where can I find out more about snapshots?
>
> I noticed that the maven project was using a 1.3-snapshot.
>
> Thanks,
> Rick
>
>
> On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:
>
> > Rick,
> > I also experienced some issues with jax-ws sample. That sample did not
> > have any document and I had reported a jira sometime back
> > (https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > A seperate jira was reported for the nullpointer exception.
> > (https://issues.apache.org/jira/browse/AXIS2-3382)
> >
> > Hope these issues will be resolved in the snapshot builds ASAP.
> >
> > regards
> > Charitha
> >
> > Rick Isaacs wrote:
> >
> > >
> > > Hi,
> > >
> > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > > work, but I get
> > > the error in Tomcat
> > >
> > > java.lang.ClassNotFoundException:
> > > org.apache.axis2.jaxws.calculator.Calculator
> > >
> > >
> > > - downloaded and installed maven
> > >
> > > - called maven package for the the sample, but maven could not
> > > download the necessary files
> > >
> > > - changed the pom.xml
> > >
> > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > >         <version> 1.3-SNAPSHOT</version>
> > >
> > >     <artifactId>axis2-jaxws</artifactId>
> > >       <version>1.3-SNAPSHOT</version>
> > >
> > > to
> > >
> > > <version>1.3</version>
> > >
> > > - maven package downloaded many files and built
> > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > >
> > > - copied aar file to /services to deploy
> > >
> > > - service is found by the Axis2 Service servlet along with wsdl
> > >
> > > -
> > >
> > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > >
> > >
> > > response in browser
> > >
> > > <faultstring>java.lang.NullPointerException</faultstring>
> > >
> > >
> > > Tomcat shows
> > > <faultstring>java.lang.NullPointerException</faultstring>
> > >
> > >
> > > I could not find an documentation for this sample, so I am not sure,
> > > how to correctly install this sample.
> > >
> > > Maybe I am missing some jars.
> > >
> > > Thanks,
> > > Rick
> > >
> >
> >
> > --
> > Charitha Kankanamge
> > WSO2 inc.
> > Flower Road, Colombo 07
> > +94 714268070
> >
> > A bug in the hand is better than one as yet undetected
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Martin Gainty <mg...@hotmail.com>.
Hi Rick-

the problem happens with the older versions of maven
I found that pom builds correctly under maven 2.0.8
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.8-bin.zip
(change your path to use the 2.0.8 new mvn.<bat/sh>)

the better solution is to request the release manager to incorporate all plugins into a Version SNAPSHOT distros..we had the same thing happen in another apache project and once we had all the plugins included into the 'SNAPSHOT' then that build worked for everyone

HTH/
Martin
  ----- Original Message ----- 
  From: Rick Isaacs 
  To: axis-user@ws.apache.org 
  Sent: Sunday, December 02, 2007 12:47 PM
  Subject: Re: [Axis2] Problem Axis2 sample - jaxws-calculator



  Hi Charitha,

  Thank you for your email and that you have reported this problem.

  I am not familiar with the Axis2 snapshot releases.

  Where can I find out more about snapshots?

  I noticed that the maven project was using a 1.3-snapshot.

  Thanks,
  Rick



  On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:

    Rick,
    I also experienced some issues with jax-ws sample. That sample did not
    have any document and I had reported a jira sometime back
    (https://issues.apache.org/jira/browse/AXIS2-3091 ).
    A seperate jira was reported for the nullpointer exception.
    (https://issues.apache.org/jira/browse/AXIS2-3382)

    Hope these issues will be resolved in the snapshot builds ASAP. 

    regards
    Charitha


    Rick Isaacs wrote:

    >
    > Hi,
    >
    > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
    > work, but I get 
    > the error in Tomcat
    >
    > java.lang.ClassNotFoundException:
    > org.apache.axis2.jaxws.calculator.Calculator
    >
    >
    > - downloaded and installed maven
    >
    > - called maven package for the the sample, but maven could not 
    > download the necessary files
    >
    > - changed the pom.xml
    >
    >     <artifactId>axis2-aar-maven-plugin</artifactId>
    >         <version> 1.3-SNAPSHOT</version>
    > 
    >     <artifactId>axis2-jaxws</artifactId>
    >       <version>1.3-SNAPSHOT</version>
    >
    > to
    >
    > <version>1.3</version>
    >
    > - maven package downloaded many files and built 
    > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
    >
    > - copied aar file to /services to deploy
    >
    > - service is found by the Axis2 Service servlet along with wsdl
    >
    > -
    > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
    > < http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3>
    >
    > response in browser
    >
    > <faultstring>java.lang.NullPointerException</faultstring>
    >
    >
    > Tomcat shows
    > <faultstring>java.lang.NullPointerException</faultstring>
    >
    >
    > I could not find an documentation for this sample, so I am not sure,
    > how to correctly install this sample. 
    >
    > Maybe I am missing some jars.
    >
    > Thanks,
    > Rick
    >



    --
    Charitha Kankanamge
    WSO2 inc.
    Flower Road, Colombo 07
    +94 714268070

    A bug in the hand is better than one as yet undetected 



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




Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Sandakith,

There is still a problem with the maven install and the README seems to be
incorrect - No aar file is built.

I downloaded the zipped war and bin from Index of /dist/axis2/nightly for 6
Dec.

Installed the axis2.war by restarting tomcat.

Copied the unzipped samples, bin, respository dirs to the axis2\WEB-INF.

Using Maven version: 2.0.8 I tried to install using

\axis2\WEB-INF\samples\jaxws-calculator>mvn install

import: org.codehaus.classworlds.Entry@3fee19d8
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal '
org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find the
mojo 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the plugin
      'org.apache.axis2:axis2-aar-maven-plugin'

org/apache/maven/archiver/MavenArchiveConfiguration


C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\jaxws-calculator>mvn
install


To build the sample service, type: mvn clan install



C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\jaxws-calculator>mvn
clan install

[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Invalid task 'clan': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal






On Dec 6, 2007 7:49 AM, Lahiru Sandakith <sa...@gmail.com> wrote:

> This fix is now committed to the trunk with the latest revision.
> Thanks
> Sandakith.
>
>
> On Dec 3, 2007 9:10 PM, Lahiru Sandakith <sandakith@gmail.com > wrote:
>
> > Hi ,
> > we found that this was an issue with JAXWS MR could not found the
> > service impl class,
> > I have attached a patch to the https://issues.apache.org/jira/browse/AXIS2-3382
> >
> > And it addresses the class loading issue and now,
> > With the patch if we build axis2 jaxws-calculator and deploy it in axis2
> >
> >
> > Both code generate stubs with client invocation and rest like invocation
> > works for me.
> > Could not commit since there are some test failures in the kernel module
> > currently in the trunk.
> > Can someone who is more familiar with JAXWS look more at the issue and
> > the patch.
> > The patch address a class loader switch from service to current and vise
> > versa at the time needed to load the impl service class.
> >
> >
> > Thanks
> > Sandakith.
> >
> >
> > On Dec 3, 2007 8:42 AM, Lahiru Sandakith < sandakith@gmail.com> wrote:
> >
> > > Hi Rick,
> > >
> > > On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
> > >
> > > >
> > > > Hi Charitha,
> > > >
> > > > Thank you for your email and that you have reported this problem.
> > > >
> > > > I am not familiar with the Axis2 snapshot releases.
> > > >
> > > > Where can I find out more about snapshots?
> > >
> > >
> > > If you need the latest snapshot build its available here,
> > > http://people.apache.org/dist/axis2/nightly/
> > > One more thing, if you are building axis2 from the source, it is
> > > recommended to use latest maven version (I have 2.0.7)
> > >
> > > I tried to look at the issue that you have reported against the
> > > jaxws-calcualter service archive with the axis2 with the latest snapshot
> > > build. I noticed that the service getting deployed with correct operations,
> > > and its seems to be an issue with the rest like way of invoking the service.
> > > Will update you more on this as soon as I have more info.
> > > Thanks
> > > Sandakith.
> > >
> > > >
> > > >
> > > > I noticed that the maven project was using a 1.3-snapshot.
> > > >
> > > > Thanks,
> > > > Rick
> > > >
> > > >
> > > >
> > > > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com>
> > > > wrote:
> > > >
> > > > > Rick,
> > > > > I also experienced some issues with jax-ws sample. That sample did
> > > > > not
> > > > > have any document and I had reported a jira sometime back
> > > > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > > > A seperate jira was reported for the nullpointer exception.
> > > > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > > > >
> > > > > Hope these issues will be resolved in the snapshot builds ASAP.
> > > > >
> > > > > regards
> > > > > Charitha
> > > > >
> > > > > Rick Isaacs wrote:
> > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample
> > > > > to
> > > > > > work, but I get
> > > > > > the error in Tomcat
> > > > > >
> > > > > > java.lang.ClassNotFoundException:
> > > > > > org.apache.axis2.jaxws.calculator.Calculator
> > > > > >
> > > > > >
> > > > > > - downloaded and installed maven
> > > > > >
> > > > > > - called maven package for the the sample, but maven could not
> > > > > > download the necessary files
> > > > > >
> > > > > > - changed the pom.xml
> > > > > >
> > > > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > > > >         <version> 1.3-SNAPSHOT</version>
> > > > > >
> > > > > >     <artifactId>axis2-jaxws</artifactId>
> > > > > >       <version>1.3-SNAPSHOT</version>
> > > > > >
> > > > > > to
> > > > > >
> > > > > > <version>1.3</version>
> > > > > >
> > > > > > - maven package downloaded many files and built
> > > > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > > > >
> > > > > > - copied aar file to /services to deploy
> > > > > >
> > > > > > - service is found by the Axis2 Service servlet along with wsdl
> > > > > >
> > > > > > -
> > > > > >
> > > > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > >
> > > > > >
> > > > > > response in browser
> > > > > >
> > > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > > >
> > > > > >
> > > > > > Tomcat shows
> > > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > > >
> > > > > >
> > > > > > I could not find an documentation for this sample, so I am not
> > > > > sure,
> > > > > > how to correctly install this sample.
> > > > > >
> > > > > > Maybe I am missing some jars.
> > > > > >
> > > > > > Thanks,
> > > > > > Rick
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Charitha Kankanamge
> > > > > WSO2 inc.
> > > > > Flower Road, Colombo 07
> > > > > +94 714268070
> > > > >
> > > > > A bug in the hand is better than one as yet undetected
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > >
> > >
> > > --
> > > Thanks
> > > Lahiru Sandakith
> > >
> > > http://sandakith.wordpress.com/
> > > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01
> > > 9A0F
> >
> >
> >
> >
> > --
> > Thanks
> > Lahiru Sandakith
> >
> > http://sandakith.wordpress.com/
> > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
> >
> >
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
>

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Sietse,

Thank you for your corrections.

1.) In the pom.xml file for the jaws-calculator I changed

                <artifactId>axis2-aar-maven-plugin</artifactId>
                <version>SNAPSHOT</version>

to

                <artifactId>axis2-aar-maven-plugin</artifactId>
                <version>1.3</version>


2.) Then >mvn clean install    // which executed without any error

3.) I copied the

\jaxws-calculator\target\jaxws-calculator-SNAPSHOT.aar to the \services

4.) And using the README displayed the wsdl and added 1 to 34.

The sample now works fine!

I have only started using maven for this sample and will check the
lifecycles site.

Thank,

Rick




On Dec 7, 2007 11:06 AM, <si...@bt.com> wrote:

> Hi Rick,
>
> 1. The dependency is set wrong. The version of the
> axis2-aar-maven-plugin is SNAPSHOT. I checked the main maven repo and
> 1.3 is the newest version. You have to change that in order to get the
> latest plugin.
>
> 2. This seams like a typo. It should most likely be: "mvn clean install"
> The lifecycles are listed on the maven website.
>
> Regards,
> Sietse
>
> ________________________________
>
> From: Rick Isaacs [mailto:reg.isaacs@gmail.com]
> Sent: 07 December 2007 09:38
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Problem Axis2 sample - jaxws-calculator
>
>
>
> Hi Sandakith,
>
> I accidentally sent my reply without finishing the email.
>
> I will continue
>
> 1.) The  >mvn install had the following error:
>
> [INFO] Internal error in the plugin manager executing goal '
> org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find
> the mojo
>
> 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the plugin
> 'org.apache.axis2:axis2-aar-maven-plugin'
>
>
> 2.) The README instruction was
>
> To build the sample service, type: mvn clan install
>
>
> [ERROR] BUILD FAILURE
> [INFO] Invalid task 'clan': you must specify a valid lifecycle phase, or
> a goal in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
>
> Thanks,
> Rick
>
> ------------------------------------------------------------------------
> ------------------------------------------
>
>
> On Dec 6, 2007 7:49 AM, Lahiru Sandakith < sandakith@gmail.com> wrote:
>
>
>        This fix is now committed to the trunk with the latest revision.
>
>        Thanks
>        Sandakith.
>
>
>        On Dec 3, 2007 9:10 PM, Lahiru Sandakith < sandakith@gmail.com
> <ma...@gmail.com> > wrote:
>
>
>                Hi ,
>                we found that this was an issue with JAXWS MR could not
> found the service impl class,
>                I have attached a patch to the
> https://issues.apache.org/jira/browse/AXIS2-3382
>                And it addresses the class loading issue and now,
>                With the patch if we build axis2 jaxws-calculator and
> deploy it in axis2
>
>                Both code generate stubs with client invocation and rest
> like invocation works for me.
>                Could not commit since there are some test failures in
> the kernel module currently in the trunk.
>                Can someone who is more familiar with JAXWS look more at
> the issue and the patch.
>                The patch address a class loader switch from service to
> current and vise versa at the time needed to load the impl service
> class.
>
>
>                Thanks
>                Sandakith.
>
>
>                On Dec 3, 2007 8:42 AM, Lahiru Sandakith <
> sandakith@gmail.com <ma...@gmail.com> > wrote:
>
>
>                        Hi Rick,
>
>
>                        On Dec 2, 2007 11:17 PM, Rick Isaacs
> <re...@gmail.com> wrote:
>
>
>
>                                Hi Charitha,
>
>                                Thank you for your email and that you
> have reported this problem.
>
>                                I am not familiar with the Axis2
> snapshot releases.
>
>                                Where can I find out more about
> snapshots?
>
>
>                        If you need the latest snapshot build its
> available here, http://people.apache.org/dist/axis2/nightly/
>                        One more thing, if you are building axis2 from
> the source, it is recommended to use latest maven version (I have 2.0.7)
>
>                        I tried to look at the issue that you have
> reported against the jaxws-calcualter service archive with the axis2
> with the latest snapshot build. I noticed that the service getting
> deployed with correct operations, and its seems to be an issue with the
> rest like way of invoking the service. Will update you more on this as
> soon as I have more info.
>                        Thanks
>                        Sandakith.
>
>
>
>
>                                I noticed that the maven project was
> using a 1.3-snapshot.
>
>                                Thanks,
>                                Rick
>
>
>
>                                On Dec 2, 2007 2:37 AM, Charitha
> Kankanamge < charitha@wso2.com <ma...@wso2.com> > wrote:
>
>
>                                        Rick,
>                                        I also experienced some issues
> with jax-ws sample. That sample did not
>                                        have any document and I had
> reported a jira sometime back
>                                        (
> https://issues.apache.org/jira/browse/AXIS2-3091
> <https://issues.apache.org/jira/browse/AXIS2-3091> ).
>                                        A seperate jira was reported for
> the nullpointer exception.
>
> (https://issues.apache.org/jira/browse/AXIS2-3382)
>
>                                        Hope these issues will be
> resolved in the snapshot builds ASAP.
>
>                                        regards
>                                        Charitha
>
>
>                                        Rick Isaacs wrote:
>
>                                        >
>                                        > Hi,
>                                        >
>                                        > I am trying to get the
> axis2-1.3\samples\jaxws-calculator sample to
>                                        > work, but I get
>                                        > the error in Tomcat
>                                        >
>                                        >
> java.lang.ClassNotFoundException:
>                                        >
> org.apache.axis2.jaxws.calculator.Calculator
>                                        >
>                                        >
>                                        > - downloaded and installed
> maven
>                                        >
>                                        > - called maven package for the
> the sample, but maven could not
>                                        > download the necessary files
>                                        >
>                                        > - changed the pom.xml
>                                        >
>                                        >
> <artifactId>axis2-aar-maven-plugin</artifactId>
>                                        >         <version>
> 1.3-SNAPSHOT</version>
>                                        >
>                                        >
> <artifactId>axis2-jaxws</artifactId>
>                                        >
> <version>1.3-SNAPSHOT</version>
>                                        >
>                                        > to
>                                        >
>                                        > <version>1.3</version>
>                                        >
>                                        > - maven package downloaded
> many files and built
>                                        >
> samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
>                                        >
>                                        > - copied aar file to /services
> to deploy
>                                        >
>                                        > - service is found by the
> Axis2 Service servlet along with wsdl
>                                        >
>                                        > -
>                                        >
> http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&valu
> e2=3
>                                        > <
> http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&valu
> e2=3
> <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&val
> ue2=3> >
>                                        >
>                                        > response in browser
>                                        >
>                                        >
> <faultstring>java.lang.NullPointerException</faultstring>
>                                        >
>                                        >
>                                        > Tomcat shows
>                                        >
> <faultstring>java.lang.NullPointerException</faultstring>
>                                        >
>                                        >
>                                        > I could not find an
> documentation for this sample, so I am not sure,
>                                        > how to correctly install this
> sample.
>                                        >
>                                        > Maybe I am missing some jars.
>                                        >
>                                        > Thanks,
>                                        > Rick
>                                        >
>
>
>
>                                        --
>                                        Charitha Kankanamge
>                                        WSO2 inc.
>                                        Flower Road, Colombo 07
>                                        +94 714268070
>
>                                        A bug in the hand is better than
> one as yet undetected
>
>
>
>
> ---------------------------------------------------------------------
>                                        To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
>                                        For additional commands, e-mail:
> axis-user-help@ws.apache.org
>
>
>
>
>
>
>
>                        --
>                        Thanks
>                        Lahiru Sandakith
>
>                        http://sandakith.wordpress.com/
>                        GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC
> 1AB1 FE5E 7464 1F01 9A0F
>
>
>
>
>                --
>                Thanks
>                Lahiru Sandakith
>
>                http://sandakith.wordpress.com/
>                GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1
> FE5E 7464 1F01 9A0F
>
>
>
>
>        --
>        Thanks
>        Lahiru Sandakith
>
>        http://sandakith.wordpress.com/
>        GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464
> 1F01 9A0F
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

RE: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by si...@bt.com.
Hi Rick,

1. The dependency is set wrong. The version of the
axis2-aar-maven-plugin is SNAPSHOT. I checked the main maven repo and
1.3 is the newest version. You have to change that in order to get the
latest plugin.

2. This seams like a typo. It should most likely be: "mvn clean install"
The lifecycles are listed on the maven website.

Regards,
Sietse

________________________________

From: Rick Isaacs [mailto:reg.isaacs@gmail.com] 
Sent: 07 December 2007 09:38
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problem Axis2 sample - jaxws-calculator



Hi Sandakith,

I accidentally sent my reply without finishing the email. 

I will continue 

1.) The  >mvn install had the following error:

[INFO] Internal error in the plugin manager executing goal '
org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find
the mojo 

'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the plugin
'org.apache.axis2:axis2-aar-maven-plugin'


2.) The README instruction was

To build the sample service, type: mvn clan install


[ERROR] BUILD FAILURE
[INFO] Invalid task 'clan': you must specify a valid lifecycle phase, or
a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal 

Thanks,
Rick

------------------------------------------------------------------------
------------------------------------------


On Dec 6, 2007 7:49 AM, Lahiru Sandakith < sandakith@gmail.com> wrote:


	This fix is now committed to the trunk with the latest revision.

	Thanks 
	Sandakith. 


	On Dec 3, 2007 9:10 PM, Lahiru Sandakith < sandakith@gmail.com
<ma...@gmail.com> > wrote:
	

		Hi , 
		we found that this was an issue with JAXWS MR could not
found the service impl class, 
		I have attached a patch to the
https://issues.apache.org/jira/browse/AXIS2-3382 
		And it addresses the class loading issue and now,
		With the patch if we build axis2 jaxws-calculator and
deploy it in axis2 
		
		Both code generate stubs with client invocation and rest
like invocation works for me. 
		Could not commit since there are some test failures in
the kernel module currently in the trunk.
		Can someone who is more familiar with JAXWS look more at
the issue and the patch.
		The patch address a class loader switch from service to
current and vise versa at the time needed to load the impl service
class. 
		
		
		Thanks 
		Sandakith. 


		On Dec 3, 2007 8:42 AM, Lahiru Sandakith <
sandakith@gmail.com <ma...@gmail.com> > wrote:
		

			Hi Rick, 
			
			
			On Dec 2, 2007 11:17 PM, Rick Isaacs
<re...@gmail.com> wrote:
			


				Hi Charitha,
				
				Thank you for your email and that you
have reported this problem.
				
				I am not familiar with the Axis2
snapshot releases.
				
				Where can I find out more about
snapshots?


			If you need the latest snapshot build its
available here, http://people.apache.org/dist/axis2/nightly/ 
			One more thing, if you are building axis2 from
the source, it is recommended to use latest maven version (I have 2.0.7)
			
			I tried to look at the issue that you have
reported against the jaxws-calcualter service archive with the axis2
with the latest snapshot build. I noticed that the service getting
deployed with correct operations, and its seems to be an issue with the
rest like way of invoking the service. Will update you more on this as
soon as I have more info. 
			Thanks 
			Sandakith.
			



				I noticed that the maven project was
using a 1.3-snapshot.
				
				Thanks,
				Rick 



				On Dec 2, 2007 2:37 AM, Charitha
Kankanamge < charitha@wso2.com <ma...@wso2.com> > wrote:
				

					Rick,
					I also experienced some issues
with jax-ws sample. That sample did not
					have any document and I had
reported a jira sometime back
					(
https://issues.apache.org/jira/browse/AXIS2-3091
<https://issues.apache.org/jira/browse/AXIS2-3091> ).
					A seperate jira was reported for
the nullpointer exception.
	
(https://issues.apache.org/jira/browse/AXIS2-3382)
					
					Hope these issues will be
resolved in the snapshot builds ASAP. 
					
					regards
					Charitha
					

					Rick Isaacs wrote:
					
					>
					> Hi,
					>
					> I am trying to get the
axis2-1.3\samples\jaxws-calculator sample to
					> work, but I get 
					> the error in Tomcat
					>
					>
java.lang.ClassNotFoundException:
					>
org.apache.axis2.jaxws.calculator.Calculator
					>
					>
					> - downloaded and installed
maven
					>
					> - called maven package for the
the sample, but maven could not 
					> download the necessary files
					>
					> - changed the pom.xml
					>
					>
<artifactId>axis2-aar-maven-plugin</artifactId>
					>         <version>
1.3-SNAPSHOT</version>
					> 
					>
<artifactId>axis2-jaxws</artifactId>
					>
<version>1.3-SNAPSHOT</version>
					>
					> to
					>
					> <version>1.3</version>
					>
					> - maven package downloaded
many files and built 
					>
samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
					>
					> - copied aar file to /services
to deploy
					>
					> - service is found by the
Axis2 Service servlet along with wsdl
					>
					> - 
					>
http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&valu
e2=3
					> <
http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&valu
e2=3
<http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&val
ue2=3> >
					>
					> response in browser
					>
					>
<faultstring>java.lang.NullPointerException</faultstring>
					>
					>
					> Tomcat shows
					>
<faultstring>java.lang.NullPointerException</faultstring>
					>
					>
					> I could not find an
documentation for this sample, so I am not sure,
					> how to correctly install this
sample. 
					>
					> Maybe I am missing some jars.
					>
					> Thanks,
					> Rick
					>
					
					
					
					--
					Charitha Kankanamge
					WSO2 inc.
					Flower Road, Colombo 07
					+94 714268070
					
					A bug in the hand is better than
one as yet undetected 
					
					
					
	
---------------------------------------------------------------------
					To unsubscribe, e-mail:
axis-user-unsubscribe@ws.apache.org 
					For additional commands, e-mail:
axis-user-help@ws.apache.org
					
					


			
			
			
			-- 
			Thanks
			Lahiru Sandakith
			
			http://sandakith.wordpress.com/ 
			GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC
1AB1 FE5E 7464 1F01 9A0F 




		-- 
		Thanks
		Lahiru Sandakith
		
		http://sandakith.wordpress.com/
		GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1
FE5E 7464 1F01 9A0F 




	-- 
	Thanks
	Lahiru Sandakith
	
	http://sandakith.wordpress.com/
	GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464
1F01 9A0F 



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


Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Sandakith,

I accidentally sent my reply without finishing the email.

I will continue

1.) The  >mvn install had the following error:

[INFO] Internal error in the plugin manager executing goal '
org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find the
mojo

'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the plugin  '
org.apache.axis2:axis2-aar-maven-plugin'


2.) The README instruction was

To build the sample service, type: mvn clan install


[ERROR] BUILD FAILURE
[INFO] Invalid task 'clan': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal

Thanks,
Rick

------------------------------------------------------------------------------------------------------------------

On Dec 6, 2007 7:49 AM, Lahiru Sandakith <sa...@gmail.com> wrote:

> This fix is now committed to the trunk with the latest revision.
> Thanks
> Sandakith.
>
>
> On Dec 3, 2007 9:10 PM, Lahiru Sandakith <sandakith@gmail.com > wrote:
>
> > Hi ,
> > we found that this was an issue with JAXWS MR could not found the
> > service impl class,
> > I have attached a patch to the https://issues.apache.org/jira/browse/AXIS2-3382
> >
> > And it addresses the class loading issue and now,
> > With the patch if we build axis2 jaxws-calculator and deploy it in axis2
> >
> >
> > Both code generate stubs with client invocation and rest like invocation
> > works for me.
> > Could not commit since there are some test failures in the kernel module
> > currently in the trunk.
> > Can someone who is more familiar with JAXWS look more at the issue and
> > the patch.
> > The patch address a class loader switch from service to current and vise
> > versa at the time needed to load the impl service class.
> >
> >
> > Thanks
> > Sandakith.
> >
> >
> > On Dec 3, 2007 8:42 AM, Lahiru Sandakith < sandakith@gmail.com> wrote:
> >
> > > Hi Rick,
> > >
> > > On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
> > >
> > > >
> > > > Hi Charitha,
> > > >
> > > > Thank you for your email and that you have reported this problem.
> > > >
> > > > I am not familiar with the Axis2 snapshot releases.
> > > >
> > > > Where can I find out more about snapshots?
> > >
> > >
> > > If you need the latest snapshot build its available here,
> > > http://people.apache.org/dist/axis2/nightly/
> > > One more thing, if you are building axis2 from the source, it is
> > > recommended to use latest maven version (I have 2.0.7)
> > >
> > > I tried to look at the issue that you have reported against the
> > > jaxws-calcualter service archive with the axis2 with the latest snapshot
> > > build. I noticed that the service getting deployed with correct operations,
> > > and its seems to be an issue with the rest like way of invoking the service.
> > > Will update you more on this as soon as I have more info.
> > > Thanks
> > > Sandakith.
> > >
> > > >
> > > >
> > > > I noticed that the maven project was using a 1.3-snapshot.
> > > >
> > > > Thanks,
> > > > Rick
> > > >
> > > >
> > > >
> > > > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com>
> > > > wrote:
> > > >
> > > > > Rick,
> > > > > I also experienced some issues with jax-ws sample. That sample did
> > > > > not
> > > > > have any document and I had reported a jira sometime back
> > > > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > > > A seperate jira was reported for the nullpointer exception.
> > > > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > > > >
> > > > > Hope these issues will be resolved in the snapshot builds ASAP.
> > > > >
> > > > > regards
> > > > > Charitha
> > > > >
> > > > > Rick Isaacs wrote:
> > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample
> > > > > to
> > > > > > work, but I get
> > > > > > the error in Tomcat
> > > > > >
> > > > > > java.lang.ClassNotFoundException:
> > > > > > org.apache.axis2.jaxws.calculator.Calculator
> > > > > >
> > > > > >
> > > > > > - downloaded and installed maven
> > > > > >
> > > > > > - called maven package for the the sample, but maven could not
> > > > > > download the necessary files
> > > > > >
> > > > > > - changed the pom.xml
> > > > > >
> > > > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > > > >         <version> 1.3-SNAPSHOT</version>
> > > > > >
> > > > > >     <artifactId>axis2-jaxws</artifactId>
> > > > > >       <version>1.3-SNAPSHOT</version>
> > > > > >
> > > > > > to
> > > > > >
> > > > > > <version>1.3</version>
> > > > > >
> > > > > > - maven package downloaded many files and built
> > > > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > > > >
> > > > > > - copied aar file to /services to deploy
> > > > > >
> > > > > > - service is found by the Axis2 Service servlet along with wsdl
> > > > > >
> > > > > > -
> > > > > >
> > > > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > >
> > > > > >
> > > > > > response in browser
> > > > > >
> > > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > > >
> > > > > >
> > > > > > Tomcat shows
> > > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > > >
> > > > > >
> > > > > > I could not find an documentation for this sample, so I am not
> > > > > sure,
> > > > > > how to correctly install this sample.
> > > > > >
> > > > > > Maybe I am missing some jars.
> > > > > >
> > > > > > Thanks,
> > > > > > Rick
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Charitha Kankanamge
> > > > > WSO2 inc.
> > > > > Flower Road, Colombo 07
> > > > > +94 714268070
> > > > >
> > > > > A bug in the hand is better than one as yet undetected
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > >
> > >
> > > --
> > > Thanks
> > > Lahiru Sandakith
> > >
> > > http://sandakith.wordpress.com/
> > > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01
> > > 9A0F
> >
> >
> >
> >
> > --
> > Thanks
> > Lahiru Sandakith
> >
> > http://sandakith.wordpress.com/
> > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
> >
> >
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
>

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Lahiru Sandakith <sa...@gmail.com>.
This fix is now committed to the trunk with the latest revision.
Thanks
Sandakith.

On Dec 3, 2007 9:10 PM, Lahiru Sandakith <sa...@gmail.com> wrote:

> Hi ,
> we found that this was an issue with JAXWS MR could not found the service
> impl class,
> I have attached a patch to the https://issues.apache.org/jira/browse/AXIS2-3382
>
> And it addresses the class loading issue and now,
> With the patch if we build axis2 jaxws-calculator and deploy it in axis2
>
> Both code generate stubs with client invocation and rest like invocation
> works for me.
> Could not commit since there are some test failures in the kernel module
> currently in the trunk.
> Can someone who is more familiar with JAXWS look more at the issue and the
> patch.
> The patch address a class loader switch from service to current and vise
> versa at the time needed to load the impl service class.
>
>
> Thanks
> Sandakith.
>
>
> On Dec 3, 2007 8:42 AM, Lahiru Sandakith <sa...@gmail.com> wrote:
>
> > Hi Rick,
> >
> > On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
> >
> > >
> > > Hi Charitha,
> > >
> > > Thank you for your email and that you have reported this problem.
> > >
> > > I am not familiar with the Axis2 snapshot releases.
> > >
> > > Where can I find out more about snapshots?
> >
> >
> > If you need the latest snapshot build its available here,
> > http://people.apache.org/dist/axis2/nightly/
> > One more thing, if you are building axis2 from the source, it is
> > recommended to use latest maven version (I have 2.0.7)
> >
> > I tried to look at the issue that you have reported against the
> > jaxws-calcualter service archive with the axis2 with the latest snapshot
> > build. I noticed that the service getting deployed with correct operations,
> > and its seems to be an issue with the rest like way of invoking the service.
> > Will update you more on this as soon as I have more info.
> > Thanks
> > Sandakith.
> >
> > >
> > >
> > > I noticed that the maven project was using a 1.3-snapshot.
> > >
> > > Thanks,
> > > Rick
> > >
> > >
> > >
> > > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com>
> > > wrote:
> > >
> > > > Rick,
> > > > I also experienced some issues with jax-ws sample. That sample did
> > > > not
> > > > have any document and I had reported a jira sometime back
> > > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > > A seperate jira was reported for the nullpointer exception.
> > > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > > >
> > > > Hope these issues will be resolved in the snapshot builds ASAP.
> > > >
> > > > regards
> > > > Charitha
> > > >
> > > > Rick Isaacs wrote:
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample
> > > > to
> > > > > work, but I get
> > > > > the error in Tomcat
> > > > >
> > > > > java.lang.ClassNotFoundException:
> > > > > org.apache.axis2.jaxws.calculator.Calculator
> > > > >
> > > > >
> > > > > - downloaded and installed maven
> > > > >
> > > > > - called maven package for the the sample, but maven could not
> > > > > download the necessary files
> > > > >
> > > > > - changed the pom.xml
> > > > >
> > > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > > >         <version> 1.3-SNAPSHOT</version>
> > > > >
> > > > >     <artifactId>axis2-jaxws</artifactId>
> > > > >       <version>1.3-SNAPSHOT</version>
> > > > >
> > > > > to
> > > > >
> > > > > <version>1.3</version>
> > > > >
> > > > > - maven package downloaded many files and built
> > > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > > >
> > > > > - copied aar file to /services to deploy
> > > > >
> > > > > - service is found by the Axis2 Service servlet along with wsdl
> > > > >
> > > > > -
> > > > >
> > > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > >
> > > > >
> > > > > response in browser
> > > > >
> > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > >
> > > > >
> > > > > Tomcat shows
> > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > >
> > > > >
> > > > > I could not find an documentation for this sample, so I am not
> > > > sure,
> > > > > how to correctly install this sample.
> > > > >
> > > > > Maybe I am missing some jars.
> > > > >
> > > > > Thanks,
> > > > > Rick
> > > > >
> > > >
> > > >
> > > > --
> > > > Charitha Kankanamge
> > > > WSO2 inc.
> > > > Flower Road, Colombo 07
> > > > +94 714268070
> > > >
> > > > A bug in the hand is better than one as yet undetected
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> >
> >
> > --
> > Thanks
> > Lahiru Sandakith
> >
> > http://sandakith.wordpress.com/
> > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
> >
>
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
>



-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Lahiru Sandakith <sa...@gmail.com>.
This fix is now committed to the trunk with the latest revision.
Thanks
Sandakith.

On Dec 3, 2007 9:10 PM, Lahiru Sandakith <sa...@gmail.com> wrote:

> Hi ,
> we found that this was an issue with JAXWS MR could not found the service
> impl class,
> I have attached a patch to the https://issues.apache.org/jira/browse/AXIS2-3382
>
> And it addresses the class loading issue and now,
> With the patch if we build axis2 jaxws-calculator and deploy it in axis2
>
> Both code generate stubs with client invocation and rest like invocation
> works for me.
> Could not commit since there are some test failures in the kernel module
> currently in the trunk.
> Can someone who is more familiar with JAXWS look more at the issue and the
> patch.
> The patch address a class loader switch from service to current and vise
> versa at the time needed to load the impl service class.
>
>
> Thanks
> Sandakith.
>
>
> On Dec 3, 2007 8:42 AM, Lahiru Sandakith <sa...@gmail.com> wrote:
>
> > Hi Rick,
> >
> > On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
> >
> > >
> > > Hi Charitha,
> > >
> > > Thank you for your email and that you have reported this problem.
> > >
> > > I am not familiar with the Axis2 snapshot releases.
> > >
> > > Where can I find out more about snapshots?
> >
> >
> > If you need the latest snapshot build its available here,
> > http://people.apache.org/dist/axis2/nightly/
> > One more thing, if you are building axis2 from the source, it is
> > recommended to use latest maven version (I have 2.0.7)
> >
> > I tried to look at the issue that you have reported against the
> > jaxws-calcualter service archive with the axis2 with the latest snapshot
> > build. I noticed that the service getting deployed with correct operations,
> > and its seems to be an issue with the rest like way of invoking the service.
> > Will update you more on this as soon as I have more info.
> > Thanks
> > Sandakith.
> >
> > >
> > >
> > > I noticed that the maven project was using a 1.3-snapshot.
> > >
> > > Thanks,
> > > Rick
> > >
> > >
> > >
> > > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com>
> > > wrote:
> > >
> > > > Rick,
> > > > I also experienced some issues with jax-ws sample. That sample did
> > > > not
> > > > have any document and I had reported a jira sometime back
> > > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > > A seperate jira was reported for the nullpointer exception.
> > > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > > >
> > > > Hope these issues will be resolved in the snapshot builds ASAP.
> > > >
> > > > regards
> > > > Charitha
> > > >
> > > > Rick Isaacs wrote:
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample
> > > > to
> > > > > work, but I get
> > > > > the error in Tomcat
> > > > >
> > > > > java.lang.ClassNotFoundException:
> > > > > org.apache.axis2.jaxws.calculator.Calculator
> > > > >
> > > > >
> > > > > - downloaded and installed maven
> > > > >
> > > > > - called maven package for the the sample, but maven could not
> > > > > download the necessary files
> > > > >
> > > > > - changed the pom.xml
> > > > >
> > > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > > >         <version> 1.3-SNAPSHOT</version>
> > > > >
> > > > >     <artifactId>axis2-jaxws</artifactId>
> > > > >       <version>1.3-SNAPSHOT</version>
> > > > >
> > > > > to
> > > > >
> > > > > <version>1.3</version>
> > > > >
> > > > > - maven package downloaded many files and built
> > > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > > >
> > > > > - copied aar file to /services to deploy
> > > > >
> > > > > - service is found by the Axis2 Service servlet along with wsdl
> > > > >
> > > > > -
> > > > >
> > > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > >
> > > > >
> > > > > response in browser
> > > > >
> > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > >
> > > > >
> > > > > Tomcat shows
> > > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > > >
> > > > >
> > > > > I could not find an documentation for this sample, so I am not
> > > > sure,
> > > > > how to correctly install this sample.
> > > > >
> > > > > Maybe I am missing some jars.
> > > > >
> > > > > Thanks,
> > > > > Rick
> > > > >
> > > >
> > > >
> > > > --
> > > > Charitha Kankanamge
> > > > WSO2 inc.
> > > > Flower Road, Colombo 07
> > > > +94 714268070
> > > >
> > > > A bug in the hand is better than one as yet undetected
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> >
> >
> > --
> > Thanks
> > Lahiru Sandakith
> >
> > http://sandakith.wordpress.com/
> > GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
> >
>
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
>



-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi ,
we found that this was an issue with JAXWS MR could not found the service
impl class,
I have attached a patch to the
https://issues.apache.org/jira/browse/AXIS2-3382
And it addresses the class loading issue and now,
With the patch if we build axis2 jaxws-calculator and deploy it in axis2

Both code generate stubs with client invocation and rest like invocation
works for me.
Could not commit since there are some test failures in the kernel module
currently in the trunk.
Can someone who is more familiar with JAXWS look more at the issue and the
patch.
The patch address a class loader switch from service to current and vise
versa at the time needed to load the impl service class.


Thanks
Sandakith.

On Dec 3, 2007 8:42 AM, Lahiru Sandakith <sa...@gmail.com> wrote:

> Hi Rick,
>
> On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
>
> >
> > Hi Charitha,
> >
> > Thank you for your email and that you have reported this problem.
> >
> > I am not familiar with the Axis2 snapshot releases.
> >
> > Where can I find out more about snapshots?
>
>
> If you need the latest snapshot build its available here,
> http://people.apache.org/dist/axis2/nightly/
> One more thing, if you are building axis2 from the source, it is
> recommended to use latest maven version (I have 2.0.7)
>
> I tried to look at the issue that you have reported against the
> jaxws-calcualter service archive with the axis2 with the latest snapshot
> build. I noticed that the service getting deployed with correct operations,
> and its seems to be an issue with the rest like way of invoking the service.
> Will update you more on this as soon as I have more info.
> Thanks
> Sandakith.
>
> >
> >
> > I noticed that the maven project was using a 1.3-snapshot.
> >
> > Thanks,
> > Rick
> >
> >
> >
> > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com> wrote:
> >
> > > Rick,
> > > I also experienced some issues with jax-ws sample. That sample did not
> > > have any document and I had reported a jira sometime back
> > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > A seperate jira was reported for the nullpointer exception.
> > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > >
> > > Hope these issues will be resolved in the snapshot builds ASAP.
> > >
> > > regards
> > > Charitha
> > >
> > > Rick Isaacs wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > > > work, but I get
> > > > the error in Tomcat
> > > >
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.axis2.jaxws.calculator.Calculator
> > > >
> > > >
> > > > - downloaded and installed maven
> > > >
> > > > - called maven package for the the sample, but maven could not
> > > > download the necessary files
> > > >
> > > > - changed the pom.xml
> > > >
> > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > >         <version> 1.3-SNAPSHOT</version>
> > > >
> > > >     <artifactId>axis2-jaxws</artifactId>
> > > >       <version>1.3-SNAPSHOT</version>
> > > >
> > > > to
> > > >
> > > > <version>1.3</version>
> > > >
> > > > - maven package downloaded many files and built
> > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > >
> > > > - copied aar file to /services to deploy
> > > >
> > > > - service is found by the Axis2 Service servlet along with wsdl
> > > >
> > > > -
> > > >
> > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > >
> > > >
> > > > response in browser
> > > >
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > Tomcat shows
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > I could not find an documentation for this sample, so I am not sure,
> > > > how to correctly install this sample.
> > > >
> > > > Maybe I am missing some jars.
> > > >
> > > > Thanks,
> > > > Rick
> > > >
> > >
> > >
> > > --
> > > Charitha Kankanamge
> > > WSO2 inc.
> > > Flower Road, Colombo 07
> > > +94 714268070
> > >
> > > A bug in the hand is better than one as yet undetected
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi ,
we found that this was an issue with JAXWS MR could not found the service
impl class,
I have attached a patch to the
https://issues.apache.org/jira/browse/AXIS2-3382
And it addresses the class loading issue and now,
With the patch if we build axis2 jaxws-calculator and deploy it in axis2

Both code generate stubs with client invocation and rest like invocation
works for me.
Could not commit since there are some test failures in the kernel module
currently in the trunk.
Can someone who is more familiar with JAXWS look more at the issue and the
patch.
The patch address a class loader switch from service to current and vise
versa at the time needed to load the impl service class.


Thanks
Sandakith.

On Dec 3, 2007 8:42 AM, Lahiru Sandakith <sa...@gmail.com> wrote:

> Hi Rick,
>
> On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:
>
> >
> > Hi Charitha,
> >
> > Thank you for your email and that you have reported this problem.
> >
> > I am not familiar with the Axis2 snapshot releases.
> >
> > Where can I find out more about snapshots?
>
>
> If you need the latest snapshot build its available here,
> http://people.apache.org/dist/axis2/nightly/
> One more thing, if you are building axis2 from the source, it is
> recommended to use latest maven version (I have 2.0.7)
>
> I tried to look at the issue that you have reported against the
> jaxws-calcualter service archive with the axis2 with the latest snapshot
> build. I noticed that the service getting deployed with correct operations,
> and its seems to be an issue with the rest like way of invoking the service.
> Will update you more on this as soon as I have more info.
> Thanks
> Sandakith.
>
> >
> >
> > I noticed that the maven project was using a 1.3-snapshot.
> >
> > Thanks,
> > Rick
> >
> >
> >
> > On Dec 2, 2007 2:37 AM, Charitha Kankanamge < charitha@wso2.com> wrote:
> >
> > > Rick,
> > > I also experienced some issues with jax-ws sample. That sample did not
> > > have any document and I had reported a jira sometime back
> > > ( https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > > A seperate jira was reported for the nullpointer exception.
> > > (https://issues.apache.org/jira/browse/AXIS2-3382)
> > >
> > > Hope these issues will be resolved in the snapshot builds ASAP.
> > >
> > > regards
> > > Charitha
> > >
> > > Rick Isaacs wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > > > work, but I get
> > > > the error in Tomcat
> > > >
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.axis2.jaxws.calculator.Calculator
> > > >
> > > >
> > > > - downloaded and installed maven
> > > >
> > > > - called maven package for the the sample, but maven could not
> > > > download the necessary files
> > > >
> > > > - changed the pom.xml
> > > >
> > > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > > >         <version> 1.3-SNAPSHOT</version>
> > > >
> > > >     <artifactId>axis2-jaxws</artifactId>
> > > >       <version>1.3-SNAPSHOT</version>
> > > >
> > > > to
> > > >
> > > > <version>1.3</version>
> > > >
> > > > - maven package downloaded many files and built
> > > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > > >
> > > > - copied aar file to /services to deploy
> > > >
> > > > - service is found by the Axis2 Service servlet along with wsdl
> > > >
> > > > -
> > > >
> > > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > >
> > > >
> > > > response in browser
> > > >
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > Tomcat shows
> > > > <faultstring>java.lang.NullPointerException</faultstring>
> > > >
> > > >
> > > > I could not find an documentation for this sample, so I am not sure,
> > > > how to correctly install this sample.
> > > >
> > > > Maybe I am missing some jars.
> > > >
> > > > Thanks,
> > > > Rick
> > > >
> > >
> > >
> > > --
> > > Charitha Kankanamge
> > > WSO2 inc.
> > > Flower Road, Colombo 07
> > > +94 714268070
> > >
> > > A bug in the hand is better than one as yet undetected
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi Rick,

On Dec 2, 2007 11:17 PM, Rick Isaacs <re...@gmail.com> wrote:

>
> Hi Charitha,
>
> Thank you for your email and that you have reported this problem.
>
> I am not familiar with the Axis2 snapshot releases.
>
> Where can I find out more about snapshots?


If you need the latest snapshot build its available here,
http://people.apache.org/dist/axis2/nightly/
One more thing, if you are building axis2 from the source, it is recommended
to use latest maven version (I have 2.0.7)

I tried to look at the issue that you have reported against the
jaxws-calcualter service archive with the axis2 with the latest snapshot
build. I noticed that the service getting deployed with correct operations,
and its seems to be an issue with the rest like way of invoking the service.
Will update you more on this as soon as I have more info.
Thanks
Sandakith.

>
>
> I noticed that the maven project was using a 1.3-snapshot.
>
> Thanks,
> Rick
>
>
>
> On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:
>
> > Rick,
> > I also experienced some issues with jax-ws sample. That sample did not
> > have any document and I had reported a jira sometime back
> > (https://issues.apache.org/jira/browse/AXIS2-3091 ).
> > A seperate jira was reported for the nullpointer exception.
> > (https://issues.apache.org/jira/browse/AXIS2-3382)
> >
> > Hope these issues will be resolved in the snapshot builds ASAP.
> >
> > regards
> > Charitha
> >
> > Rick Isaacs wrote:
> >
> > >
> > > Hi,
> > >
> > > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > > work, but I get
> > > the error in Tomcat
> > >
> > > java.lang.ClassNotFoundException:
> > > org.apache.axis2.jaxws.calculator.Calculator
> > >
> > >
> > > - downloaded and installed maven
> > >
> > > - called maven package for the the sample, but maven could not
> > > download the necessary files
> > >
> > > - changed the pom.xml
> > >
> > >     <artifactId>axis2-aar-maven-plugin</artifactId>
> > >         <version> 1.3-SNAPSHOT</version>
> > >
> > >     <artifactId>axis2-jaxws</artifactId>
> > >       <version>1.3-SNAPSHOT</version>
> > >
> > > to
> > >
> > > <version>1.3</version>
> > >
> > > - maven package downloaded many files and built
> > > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> > >
> > > - copied aar file to /services to deploy
> > >
> > > - service is found by the Axis2 Service servlet along with wsdl
> > >
> > > -
> > >
> > http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > > <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > >
> > >
> > > response in browser
> > >
> > > <faultstring>java.lang.NullPointerException</faultstring>
> > >
> > >
> > > Tomcat shows
> > > <faultstring>java.lang.NullPointerException</faultstring>
> > >
> > >
> > > I could not find an documentation for this sample, so I am not sure,
> > > how to correctly install this sample.
> > >
> > > Maybe I am missing some jars.
> > >
> > > Thanks,
> > > Rick
> > >
> >
> >
> > --
> > Charitha Kankanamge
> > WSO2 inc.
> > Flower Road, Colombo 07
> > +94 714268070
> >
> > A bug in the hand is better than one as yet undetected
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Rick Isaacs <re...@gmail.com>.
Hi Charitha,

Thank you for your email and that you have reported this problem.

I am not familiar with the Axis2 snapshot releases.

Where can I find out more about snapshots?

I noticed that the maven project was using a 1.3-snapshot.

Thanks,
Rick


On Dec 2, 2007 2:37 AM, Charitha Kankanamge <ch...@wso2.com> wrote:

> Rick,
> I also experienced some issues with jax-ws sample. That sample did not
> have any document and I had reported a jira sometime back
> (https://issues.apache.org/jira/browse/AXIS2-3091).
> A seperate jira was reported for the nullpointer exception.
> (https://issues.apache.org/jira/browse/AXIS2-3382)
>
> Hope these issues will be resolved in the snapshot builds ASAP.
>
> regards
> Charitha
>
> Rick Isaacs wrote:
>
> >
> > Hi,
> >
> > I am trying to get the axis2-1.3\samples\jaxws-calculator sample to
> > work, but I get
> > the error in Tomcat
> >
> > java.lang.ClassNotFoundException:
> > org.apache.axis2.jaxws.calculator.Calculator
> >
> >
> > - downloaded and installed maven
> >
> > - called maven package for the the sample, but maven could not
> > download the necessary files
> >
> > - changed the pom.xml
> >
> >     <artifactId>axis2-aar-maven-plugin</artifactId>
> >         <version> 1.3-SNAPSHOT</version>
> >
> >     <artifactId>axis2-jaxws</artifactId>
> >       <version>1.3-SNAPSHOT</version>
> >
> > to
> >
> > <version>1.3</version>
> >
> > - maven package downloaded many files and built
> > samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
> >
> > - copied aar file to /services to deploy
> >
> > - service is found by the Axis2 Service servlet along with wsdl
> >
> > -
> >
> http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> > <
> http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3
> >
> >
> > response in browser
> >
> > <faultstring>java.lang.NullPointerException</faultstring>
> >
> >
> > Tomcat shows
> > <faultstring>java.lang.NullPointerException</faultstring>
> >
> >
> > I could not find an documentation for this sample, so I am not sure,
> > how to correctly install this sample.
> >
> > Maybe I am missing some jars.
> >
> > Thanks,
> > Rick
> >
>
>
> --
> Charitha Kankanamge
> WSO2 inc.
> Flower Road, Colombo 07
> +94 714268070
>
> A bug in the hand is better than one as yet undetected
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

Posted by Charitha Kankanamge <ch...@wso2.com>.
Rick,
I also experienced some issues with jax-ws sample. That sample did not 
have any document and I had reported a jira sometime back 
(https://issues.apache.org/jira/browse/AXIS2-3091).
A seperate jira was reported for the nullpointer exception. 
(https://issues.apache.org/jira/browse/AXIS2-3382)

Hope these issues will be resolved in the snapshot builds ASAP.

regards
Charitha

Rick Isaacs wrote:

>
> Hi,
>
> I am trying to get the axis2-1.3\samples\jaxws-calculator sample to 
> work, but I get
> the error in Tomcat
>
> java.lang.ClassNotFoundException: 
> org.apache.axis2.jaxws.calculator.Calculator
>
>
> - downloaded and installed maven
>
> - called maven package for the the sample, but maven could not 
> download the necessary files
>
> - changed the pom.xml
>
>     <artifactId>axis2-aar-maven-plugin</artifactId>
>         <version> 1.3-SNAPSHOT</version>
>
>     <artifactId>axis2-jaxws</artifactId>
>       <version>1.3-SNAPSHOT</version>
>
> to
>
> <version>1.3</version>
>
> - maven package downloaded many files and built   
> samples\jaxws-calculator\target\jaxws-calculator-1.3.aar
>
> - copied aar file to /services to deploy
>
> - service is found by the Axis2 Service servlet along with wsdl
>
> - 
> http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3 
> <http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1&value2=3>
>
> response in browser
>
> <faultstring>java.lang.NullPointerException</faultstring>
>
>
> Tomcat shows
> <faultstring>java.lang.NullPointerException</faultstring>
>
>
> I could not find an documentation for this sample, so I am not sure, 
> how to correctly install this sample.
>
> Maybe I am missing some jars.
>
> Thanks,
> Rick
>


-- 
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



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