[Axis2] Axis2 userguide non-blocking async samples OK

2007-12-17 Thread Rick Isaacs
Hi,

I found the problem with the Axis2 EchoNonBlockingClient and
EchoNonBlockingDualClient.

Initially, I did not understand that the web service and the client would
need a different axis2.xml.

In the /userguide samples there is /conf/axis2.xml that used by the client.
I had changed this axis2.xml and the dual client

would hangup if a listener thread was started. The async dual sample did not
work correctly without changing the code.

After reinstalling the axis2.war, all the nonblocking samples worked as-is.

I also changed EchoNonBlockingClient to use the newer AxisCallback class,
instead of the older Callback, which also worked.

I also commented out

//options.setUseSeparateListener(true);

in all the non-blocking samples, since the listener did not need to be
explicitly set true.


Rick


[Axis2] Simple how I got the Axis2 samples to work

2007-12-17 Thread Rick Isaacs
Hi,

I need to move on to a new project and will be leaving Axis2 for awhile.

I wish to thank Martin, Sietse, Lahiru and Deepal for their suggestions,
patient help and fixes.

I have been able to get all the Axis2 1.3 samples to work correctly.

I have documented how I got the samples to work, with the suggestions and
changes I received.

Hope it helps. I tried to carefully document what all the steps, but I might
have left out something,

I have a very simple web page with a pdf, a changed sample code, and the two
axis2.xml I used.

http://members.inode.at/739846

Using the Axis2
Samples.pdfhttp://members.inode.at/739846/Using%20the%20Axis2%20Samples.pdf

AddressBookService.java.txthttp://members.inode.at/739846/AddressBookService.java.txt

tomcat-axis2.xml http://members.inode.at/739846/tomcat-axis2.xml

userguide-axis2.xml http://members.inode.at/739846/userguide-axis2.xml


Rick


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

2007-12-07 Thread Rick Isaacs
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 [EMAIL PROTECTED] wrote:

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


 On Dec 3, 2007 9:10 PM, Lahiru Sandakith [EMAIL PROTECTED]  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  [EMAIL PROTECTED] wrote:
 
   Hi Rick,
  
   On Dec 2, 2007 11:17 PM, Rick Isaacs [EMAIL PROTECTED] 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  [EMAIL PROTECTED]
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
 
  artifactIdaxis2-aar-maven-plugin/artifactId
  version 1.3-SNAPSHOT/version
 
  artifactIdaxis2-jaxws/artifactId
version1.3-SNAPSHOT/version
 
  to
 
  version1.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=1value2=3
  http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1value2=3
 
 
  response in browser
 
  faultstringjava.lang.NullPointerException/faultstring
 
 
  Tomcat shows
  faultstringjava.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

Re: Axis2 and java5 annotations

2007-12-07 Thread Rick Isaacs
Hi,

I just got the Axis2 1.3 sample \axis2\WEB-INF\samples\jaxws-calculator
to work that demonstrates an web service using annotations.

If you plan to run it, you will need a nightly build and maven 2.0.8.

I also reported a problem with this sample that was solved today.

Search for the subject jaws-calculator

There is only a README for the sample.

Rick


On Dec 7, 2007 1:20 PM, Ove Gram Nipen [EMAIL PROTECTED] wrote:

 Michele Mazzucco [mailto:[EMAIL PROTECTED] wrote:
 
  On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
  
   Using Axis is possible to expose methods as web-services in an
   Java5 annots fashion?
   Axis has features similar with what jax-ws2?
 
  yes.

 This sounds interesting. Do you have any pointers to documentation?

 --
 Regards,
 Ove Gram Nipen
 Delfi Data

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




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

2007-12-07 Thread Rick Isaacs
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-calculatormvn install

import: [EMAIL PROTECTED]
[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-calculatormvn
install


To build the sample service, type: mvn clan install



C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\jaxws-calculatormvn
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 [EMAIL PROTECTED] wrote:

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


 On Dec 3, 2007 9:10 PM, Lahiru Sandakith [EMAIL PROTECTED]  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  [EMAIL PROTECTED] wrote:
 
   Hi Rick,
  
   On Dec 2, 2007 11:17 PM, Rick Isaacs [EMAIL PROTECTED] 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  [EMAIL PROTECTED]
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
 
  artifactIdaxis2-aar-maven-plugin/artifactId
  version 1.3-SNAPSHOT/version
 
  artifactIdaxis2-jaxws/artifactId
version1.3-SNAPSHOT/version
 
  to
 
  version1.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

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

2007-12-07 Thread Rick Isaacs
Hi Sietse,

Thank you for your corrections.

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

artifactIdaxis2-aar-maven-plugin/artifactId
versionSNAPSHOT/version

to

artifactIdaxis2-aar-maven-plugin/artifactId
version1.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, [EMAIL PROTECTED] 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:[EMAIL PROTECTED]
 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  [EMAIL PROTECTED] wrote:


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

Thanks
Sandakith.


On Dec 3, 2007 9:10 PM, Lahiru Sandakith  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  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 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:


Hi Rick,


On Dec 2, 2007 11:17 PM, Rick Isaacs
 [EMAIL PROTECTED] 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  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:


Rick,
I also experienced some issues
 with jax-ws sample. That sample did

Re: Axis2 and java5 annotations

2007-12-07 Thread Rick Isaacs
Hi Martin,

Thank you for update.

You probably have seen that I have the calculator sample working using the
fix for the plugin,
a nightly build, and a lot of good advice.

The use of jira is something new for me.

When I have a problem, I have googled, then looked at the axis-users mailing
list.

Should I also look at the debug list and axis-developer mailing list in the
future?

Rick


On Dec 7, 2007 4:03 PM, Martin Gainty [EMAIL PROTECTED] wrote:

  Hi Rick-

 did'nt see the readme on 2.1.3 (all the other samples have readme)

 BTW: maven has a jira on the non-existent 'maven-clean-plugin'

 in any event please let me know when that works for you
 Thanks/
 M-

 - Original Message -
 *From:* Rick Isaacs [EMAIL PROTECTED]
 *To:* axis-user@ws.apache.org
 *Sent:* Friday, December 07, 2007 7:38 AM
 *Subject:* Re: Axis2 and java5 annotations


 Hi,

 I just got the Axis2 1.3 sample \axis2\WEB-INF\samples\jaxws-calculator
 to work that demonstrates an web service using annotations.

 If you plan to run it, you will need a nightly build and maven 2.0.8 .

 I also reported a problem with this sample that was solved today.

 Search for the subject jaws-calculator

 There is only a README for the sample.

 Rick


 On Dec 7, 2007 1:20 PM, Ove Gram Nipen  [EMAIL PROTECTED] wrote:

  Michele Mazzucco [mailto:[EMAIL PROTECTED] wrote:
  
   On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
   
Using Axis is possible to expose methods as web-services in an
Java5 annots fashion?
Axis has features similar with what jax-ws2?
  
   yes.
 
  This sounds interesting. Do you have any pointers to documentation?
 
  --
  Regards,
  Ove Gram Nipen
  Delfi Data
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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

2007-12-03 Thread Rick Isaacs
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-calculatormvn  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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 *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 [EMAIL PROTECTED] 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
  
   artifactIdaxis2-aar-maven-plugin/artifactId
   version 1.3-SNAPSHOT/version
  
   artifactIdaxis2-jaxws/artifactId
 version1.3-SNAPSHOT/version
  
   to
  
   version1.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

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

2007-12-03 Thread Rick Isaacs
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 *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-calculatormvn  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  [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
  *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 [EMAIL PROTECTED] 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

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

2007-12-02 Thread Rick Isaacs
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 [EMAIL PROTECTED] 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
 
  artifactIdaxis2-aar-maven-plugin/artifactId
  version 1.3-SNAPSHOT/version
 
  artifactIdaxis2-jaxws/artifactId
version1.3-SNAPSHOT/version
 
  to
 
  version1.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=1value2=3
  
 http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1value2=3
 
 
  response in browser
 
  faultstringjava.lang.NullPointerException/faultstring
 
 
  Tomcat shows
  faultstringjava.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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




[Axis2] Problem Axis2 sample - jaxws-calculator

2007-12-01 Thread Rick Isaacs
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

artifactIdaxis2-aar-maven-plugin/artifactId
version1.3-SNAPSHOT/version

artifactIdaxis2-jaxws/artifactId
  version1.3-SNAPSHOT/version

to

version1.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=1value2=3

response in browser

faultstringjava.lang.NullPointerException/faultstring


Tomcat shows
faultstringjava.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: Does Axis2 non-blocking async work on Windows?

2007-11-30 Thread Rick Isaacs
Hi Deepal and Martin,

Thank you for your suggestion and explanation.

I could see that an additional java process was started and thought that was
the problem.

I made the following tests using both your async client and the Axis2
nonblockingdual

Test1

   opts.setUseSeparateListener(true);
   AxisCallback callBack

  - the callback works, but the process hangs with an additional java
process active


Test2

    opts.setUseSeparateListener(true);
   AxisCallback callBack

  - the callback is not called, and the client waits forever.


Test3

opts.setUseSeparateListener(true);
Callback callback

  - the callback works, but the process hangs with an additional java
process active


Test4

    opts.setUseSeparateListener(true);
  Callback callback

  - the callback works OK and the client terminates OK


-

Nonblocking async does work, but only with the older class Callback.

The Axis2 dual sample enable a listener.  It is not clear what this sample
is demonstrating.

Thanks for the help.

Rick




Rick




On Nov 30, 2007 7:19 AM, Deepal Jayasinghe [EMAIL PROTECTED] wrote:


 
 
  It appears that a thread or process is still active.
 
  Is this correct?
 
 yes thats what happen when you do an invocation using two channel case,
 in that case Axis2 start a server at the client side and send that as
 the address to server to which that should reply.
 And though Axis2 start the server automatically it is is not going to
 stop that , so that is why you can see the thread is till running.

 Thanks
 Deepal



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




Re: Does Axis2 non-blocking async work on Windows?

2007-11-29 Thread Rick Isaacs
Hi Deepal,

Thank you for your email and assuring answer.

I downloaded your sample clients and studied

your AsyncServiceClient.java carefully.

I copied the important parts into the Axis2 sample
EchoNonBlockingDualClient.java

uncommented:options.setUseSeparateListener(true);

and used your

 AxisCallback callBack = new AxisCallback() {..}


// sender.engageModule(Constants.MODULE_ADDRESSING);
// options.setProperty(disableAddressingForOutMessages,Boolean.TRUE);


The client works correctly,. the callBack is called and exit main - all OK

but the process must be aborted with Ctrl-C


 [java] I am complete
 [java] - Callback isComplete
 [java] - finally cleanup
 [java] - Exit main
Terminate batch job (Y/N)? y


It appears that a thread or process is still active.

Is this correct?


Maybe I forgot to set a parameter.

Since this is a sample, I wanted to get it to work correctly.


The ant run.client build.xml is

target name=run.client.nonblocking depends=compile
java classname=userguide.clients.EchoNonBlockingClient
  classpathref=axis.classpath fork=true
jvmarg value=-Daxis2.repo=${mainDir}/repository/
jvmarg value=-Daxis2.xml=conf/axis2.xml/
/java
/target

This local axis2.xml enabled the phase name=loggingPhase/ and

 !-- the non blocking http transport based on HttpCore + NIO extensions --
is enabled for port 9000


Thanks,

Rick



On Nov 29, 2007 6:43 AM, Deepal jayasinghe [EMAIL PROTECTED] wrote:

 Rick Isaacs wrote:
 
  Hi
 
  I have been trying to get the non-blocking samples Dual working.
 
  I would like to know does nonblocking async work in this version?
 Of course yes :)
 
  I have posted the problem and still have not been able to get the
  Axis2 dual samples
  to terminate correctly.
 
  I am using Windows XP, Tomcat 5,5 and Java 5.0 Axis2 1.3
 
  I have read the following articles and even tried to get the some of
  the sample code to work,
  but without much success. Sometimes methods no longer exist in the
  class, the class
  is not longer used, or I could not get the sample to complete.
 I have hosted some of the samples in my home directory [1] please have a
 look at

 [1] : 
 people.apache.org/~deepal/coloradohttp://people.apache.org/%7Edeepal/colorado


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




Does Axis2 non-blocking async work on Windows?

2007-11-28 Thread Rick Isaacs
Hi

I have been trying to get the non-blocking samples Dual working.

I would like to know does nonblocking async work in this version?

I have posted the problem and still have not been able to get the Axis2 dual
samples
to terminate correctly.

I am using Windows XP, Tomcat 5,5 and Java 5.0 Axis2 1.3

I have read the following articles and even tried to get the some of the
sample code to work,
but without much success. Sometimes methods no longer exist in the class,
the class
is not longer used, or I could not get the sample to complete.

-
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html



-
http://today.java.net/pub/a/today/2006/06/22/axis-2-generated-client-code.html



- http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=4



- http://www.ibm.com/developerworks/webservices/library/ws-axis2/



- http://ws.apache.org/axis2/0_95/userguide3.html



- http://www.onjava.com/lpt/a/6076


A similar question was posted by Paul

- http://marc.info/?l=axis-userm=119563791420286w=2


Rick


non/blocking dual in AXIS2 almost works, but hangs, why?

2007-11-25 Thread Rick Isaacs
Hi,

I have been trying for several days to get the Axis2 blocking/nonblocking
dual samples working

with some success, except that when the client terminates (returns in main()
), the

client does not terminate, meaning that a thread is still active, blocking
the termination of the java process.

The request, response and the client listener executed OK (onComplete
called).

I have searched and tried various nonblocking samples, but either the
samples are too old to compile

or executes OK, but hangs.

Does the non/blocking dual correctly execute?

I am using tomcat 5.5, windows, and java 5.0

Rick


Axis2 Sample EchoBlockingDualClient - clients hangs, service times out

2007-11-23 Thread Rick Isaacs
Hi,

I am still trying to get the EchoBlockingDualClient from the Axis2
/Userguide to correctly terminate.

As I reported in a previous email, the client sample runs to completion,
then hangs waiting possibly for a socket operation(?)

The MyService is started, reads the request and sends a correct response,
but then the service times out with


LogHandler:InvocationRespons

[INFO] ?xml version='1.0' encoding='utf-8'?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; ...

[INFO] Unable to sendViaPost to url[
http://127.0.0.1:9000/axis2/services/MyService]

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)

I have added the options.setReplyTo(replyEPR) line to the client sample, but
I do not understand what the services wants to send or why.

I have read several articles about async communication with Axis2 and they
all seem to old to provide an answer.

I have traced the SOAP messages and see that there is a connection back to
the client using port 9000.

Has anyone got this sample work correctly?

Rick


Re: axis2.log missing

2007-11-23 Thread Rick Isaacs
Hi,

I had the same problem for the client as I wanted the log on the client
side.

I got logging to work in the /Userguide samples.

I put the following files in the \build dir

C:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\build\commons-logging.propertiesC:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\build\log4j.properties

and added the \build to the classpath in the build.xml

project name=userguide default=generate.service property
name=mainDir
  value=../../
  property name=classes.dir value=build/classes/
  path
  id=axis.classpath fileset dir=../../lib
  include name=*.jar/
   /fileset pathelement location=build/userguide.jar/

   pathelement location=build/

   /path

The files need to be class path, then the client will not display the WARN:
No appender could be

If you do a clean, the build dir will be deleted.

Hope this works.

Rick

On Nov 23, 2007 3:58 PM, aquaglia [EMAIL PROTECTED] wrote:


 Ensure you have copied log4j.jar under axis2\WEB-INF\lib


 vpl wrote:
 
  Hi,
 
  I've browsed the axis user mailing list and could not find a clear
 answer
  to this new-comer ... question. Please help
  I'm unsing the axis2.war deployed into a tomcat 6.0.14. In the
  catalina.out I see a log4j INFO when my Web-service is deployed.
  But I added on the server side some log4j code to trace my web-service
  activity.
  When I start my rpc.client I get the log4j WARM No appender could be
  found ..
  log4j file is never created, nowhere.
  I've also tried to insert a log4j.properties into the .aar generated by
 my
  ant when I compile my web-serivce (into the class root directory).
  NOTHING 
 
  Something wrong.
  Could somebody help me ?
 
  Thanks
 
 
  ===
  public class IcProvider {
private static org.apache.log4j.Logger log =
  Logger.getLogger(IcProvider.class);
public User logon(String userVal) {
if (userVal.equals(vpl)) {
log.info(user vpl logged);
return new User(vpl);
}
else
return null;
  }
 
  }
 
 
  # Set root category priority to INFO and its only appender to CONSOLE.
  log4j.rootCategory=INFO, CONSOLE
  #log4j.rootCategory=INFO, CONSOLE, LOGFILE
 
  # Set the enterprise logger priority to FATAL
  log4j.logger.org.apache.axis2.enterprise=FATAL
  log4j.logger.de.hunsicker.jalopy.io=FATAL
  log4j.logger.httpclient.wire.header=FATAL
  log4j.logger.org.apache.commons.httpclient=FATAL
 
  # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
  log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
 
  # LOGFILE is set to be a File appender using a PatternLayout.
  log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  log4j.appender.LOGFILE.File=axis2.log
  log4j.appender.LOGFILE.Append=true
  log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x -
 %m%n
 
 

 --
 View this message in context:
 http://www.nabble.com/axis2.log-missing-tf4508178.html#a13913667
 Sent from the Axis - User mailing list archive at Nabble.com.


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




Re: Does non-blocking / Async in AXIS2 really work ?

2007-11-21 Thread Rick Isaacs
Hi Jan,

I have also been having problems with the Axis2 /userguide sync dual sample

I tried the developerworks sample with the same results.

I got the dual sample to work,but it hangs after receiving the response.

See my post 2007-11-19 Axis2 Sample EchoBlockingDualClient - Working
a little better, but hangs

I am still trying to get the sample to terminate after receiving the response.

Rick


On Nov 16, 2007 6:32 PM, Axis User [EMAIL PROTECTED] wrote:



 Hi there,


 I have AXIS2 release 1.3 installed (on PC, Windows XP)
 I compile and deploy the ECHO service from
 \axis2\samples\userguide\src\userguide\example1 (MyService.java)
 I start the server from \axis2\bin\axis2server.bat
 I compile and run different  clients from
 \axis2\samples\userguide\src\userguide\clients
 Everything works fine and I can run different clients and request is sent to
 server and response comes back.

 Now I want to test the Async (non-blocking) aspect of Axis2:



 In server code in echo() function I put a thread sleep so that it keeps it
 busy before returning to client and I am expecting that Axis2 engine will
 take care of non-blocking aspect and will return back to Client in another
 channel (non-blocking async dual channel client) :



 I put below Thread sleep in server code in Echo() function:



 public class MyService {
 public OMElement echo(OMElement element) throws XMLStreamException

{

 element.build();

 element.detach();

 //This is put with Try/Catch but is removed here to see it better
 Thread.sleep(6);


 return element;
 }


 So when I run the client the server will simulate doing a job of 60 seconds
 (1 minute) which is more than the default Axis2 timeout of 30 seconds. What
 I would expect to see on client side is :

 OK - 1) If Sync client is run it should timeout as axis2 timeout is 30s and
 the server is not done with its job. So I run the EchoBlockingClient.java
 that's what I see it means it times out and the FAULT() function in client
 is called. So far so good.

 Not OK - 2) If Async(non-blocking dual or regular) is run I would expect
 that finaly I will receive the complete method of Client called
 (onComplete()) but it doesn't happen. I only get onError() or Axis.Fault()
 called.

 It means I assume that when I run the example EchoNonBlockingDualClient.java
 it is going to use 2 HTTP transport channels. The first one should timeout
 during request but the second one should be used when responese is sent back
 after 60seconds.

 But what happens is after 30 seconds the onError() function :

   public void onError(Exception e)

 inside Callback class is called. Then it just hangs and when the sleep on
 server side wakes up after 60 seconds I don't receive any callback anymore
 on Client side.

 In case of EchoNonBlockingDualClient.java the thread (eclipse IDE) or Dos
 Prompt is still active and waiting but in case of EchoNonBlockingClient.java
 the thread dies and you get the Dos Prompt released.

 I checked this article :
 http://www.ibm.com/developerworks/webservices/library/ws-axis2/

 And tried to play with services.xml with below:

 Listing 4. Associating message receivers with the IN-OUT MEP variable

 messageReceivers
 // other message receivers
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=
   org.apache.axis2.async.AsyncMessageReceiver/
 /messageReceivers

 But I get class not found error for
 org.apache.axis2.async.AsyncMessageReceiver. So probably this article is old
 and this class doesn't exist anymore in new Axis release ?

 I tried the code in this article:
 http://www.onjava.com/lpt/a/6076

 But most probably this article is old too as I get error in eclipse that it
 can't resolve this clas CALL :

 Call call = new Call();

 And nothing to import.

 In eclipse I also get depreciated warning for the included client code for
 Callback:

Callback callback = new Callback()

 I even change it to AxisCallback class in stead and its methods and run it
 but still same problem I only get one callback which is during axis2
 timeout.

 So Question:
 Has anybody got this non-blocking working?

 [I mean make it working when your server job is longer than the Axis2
 timeout, as we have a lot of tasks which will take half a day or day etc and
 we want to return to client longer than Axis2 timeout. I know you can change
 the Axis2 timeout to maximum 6 days or so (maximum of int) but that's not a
 good solution as we want to have network timeout in place don't want to wait
 6 days if it's network problem but our job might take longer than 6 days or
 so]

 Best Regards,
 Jan




  
 Get easy, one-click access to your favorites. Make Yahoo! your homepage.

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



Re: Error in deploying samples

2007-11-20 Thread Rick Isaacs
Hi,

I recently started working with Axis2 and worked thru most of the samples,

I am using Windows XP SP2
Tomcat 5.5,
Java 5.0,
Ant 1.7

I downloaded the axis2-1.3-war.zip and placed the war in
C:\apache-tomcat-5.5.25\webapps and started Tomcat.

The Axis2 samples are in

C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples.

Using the Readmes, I could build and copy the services to \services.

Rick




On Nov 21, 2007 6:18 AM, Hoda, Nadeem [USA] [EMAIL PROTECTED] wrote:



 Folks,

 I've tried to deploy the Axis2 samples out of the box, and I am getting the
 following error:

 Error: java.lang.NoSuchMethodError:
 org.w3c.dom.Document.getXmlEncoding()Ljava/lang/String;
 at
 org.apache.ws.commons.schema.utils.DOMUtil.getXmlEncoding(DOMUtil.java:604)
 at
 org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:388)
 at
 org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:140)
 at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2202)
 at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:384)
 at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:373)
 at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:321)
 at
 org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
 at
 org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:249)
 at
 org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:357)
 at
 org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:65)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:584)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:312)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71)
 at
 org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83)
 at java.util.TimerThread.mainLoop(Timer.java:432) at
 java.util.TimerThread.run(Timer.java:382)

 Anybody know what I am missing?

 I am using Java 1.4. Do I need to configure something specific for using
 Axis2 with Java 1.4?

 I have included xerces 2.9.1 into the app server (oc4j 10.1.2) as a global
 lib.

 Thanks,

 Nadeem

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



Axis2 Sample EchoBlockingDualClient - Address already in use: JVM_Bind Error

2007-11-19 Thread Rick Isaacs
Hi

I have gotten all the Axis2 \Userguide samples to work except
EchoBlockingDualClient and EchoNonBlockingDualClient clients.

With options.setUseSeparateListener(true)

the request is sent to the service, the SOAPMonitor shows that the
request has been received and a response returned.

But the client never receives the response because of the JVM_Bind error.

The client stops without getting an response.


With options.setUseSeparateListener = FALSE - the client works.

Rick

---

Tomcat window output:

LogHandler:InvocationResponse

[INFO] ?xml version='1.0' encoding='utf-8'?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:wsa=http://www.w3.org/2005/08/addressing;
soapenv:Header
wsa:Tohttp://www.w3.org/2005/08/addressing/none/wsa:To
wsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address
/wsa:ReplyTowsa:MessageIDurn:uuid:76B5F5DB3D7474226D1195474410615/wsa:MessageID
wsa:Actionhttp://www.w3.org/2005/08/addressing/fault/wsa:Action
wsa:RelatesTourn:uuid:76B5F5DB3D7474226D1195474410604/wsa:RelatesTo
wsa:FaultDetailwsa:ProblemActionwsa:Actionurn:echoResponse/wsa:Action
/wsa:ProblemAction/wsa:FaultDetail
/soapenv:Headersoapenv:Bodysoapenv:Fault
faultcodewsa:ActionNotSupported/faultcode

faultstringThe [action] cannot be processed at the
receiver./faultstringdetail
//soapenv:Fault/soapenv:Body/soapenv:Envelope


--

The output from the client is:

run.client.blockingdual:
 [java]  EchoBlockingDualClient
 [java] [INFO] Deploying module: addressing-1.3
 [java] [INFO] Deploying module: script-1.3
 [java] [INFO] Deploying module: sample-logging
 [java] [INFO] Deploying module: metadataExchange-1.3
 [java] [INFO] Deploying module: ping-1.3
 [java] [INFO] Deploying module: sample-logging
 [java] [INFO] Deploying module: soapmonitor-1.3
 [java] LoggingModule:init
 [java] [INFO] script module activated
 [java] [WARN] Attempt number 1 of 10 to reestalish connection
listener [EMAIL PROTECTED]
due to failure


 [java] java.net.BindException: Address already in use: JVM_Bind
 [java] at java.net.PlainSocketImpl.socketBind(Native Method)
 [java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
 [java] at java.net.ServerSocket.bind(ServerSocket.java:319)
 [java] at java.net.ServerSocket.init(ServerSocket.java:185)
 [java] at java.net.ServerSocket.init(ServerSocket.java:97)
 [java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
 [java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
 [java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
 [java] at java.lang.Thread.run(Thread.java:595)


...


[java] org.apache.axis2.AxisFault: Time out while waiting for the
server to send the response.
[java] at
org.apache.axis2.description.OutInAxisOperationClient$SyncCallBack.waitForCompletion(OutInAxisOperation.java:
[java] at
org.apache.axis2.description.OutInAxisOperationClient.sendAsync(OutInAxisOperation.java:286)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:207)
[java] at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
[java] [SimpleHTTPServer] Stop called
[java] [INFO] Shut down connection listener
[java] [INFO] Shut down HTTP processors
[java] [INFO] HTTP protocol handler shut down
[java] at userguide.clients.EchoBlockingDualClient.main(Unknown Source)
[java] LoggingModule:shutdown


-

SOAPMonitor:

Request:

?xml version='1.0' encoding='utf-8'?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:wsa=http://www.w3.org/2005/08/addressing;
  soapenv:Header
wsa:Tohttp://127.0.0.1:9080/axis2/services/MyService/wsa:To
wsa:ReplyTo
  
wsa:Addresshttp://192.168.33.1:8080/axis2/services/anonService1/wsa:Address
/wsa:ReplyTo
wsa:MessageIDurn:uuid:10C8754F7B8137CD031195475108469/wsa:MessageID
wsa:Actionurn:echo/wsa:Action
  /soapenv:Header
  soapenv:Body
example1:echo xmlns:example1=http://example1.org/example1;
  example1:TextAxis2 Echo String/example1:Text
/example1:echo
  /soapenv:Body
/soapenv:Envelope

Response:

?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
example1:echo xmlns:example1=http://example1.org/example1;
  example1:TextAxis2 Echo String/example1:Text

Axis2 Sample EchoBlockingDualClient - Working a little better, but hangs

2007-11-19 Thread Rick Isaacs
Hi

I got the Axis2 /Userguide sample EchoBlockingDualClient to execute better,

but the client hangs after the shutdown of the LoggingModule.

In 
C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\conf\axis2.xml,
I uncommented the following:

!-- = --
!-- Non-blocking http/s Transport Listener  --

!-- the non blocking http transport based on HttpCore + NIO extensions --

transportReceiver name=http
class=org.apache.axis2.transport.nhttp.HttpCoreNIOListener
parameter name=port locked=false9000/parameter
parameter name=non-blocking locked=falsetrue/parameter
/transportReceiver

Which is used by the client when started using the ant
run.client.blockingdual task.


Now the client runs to the end of main, then hangs as I do not know
how to terminate the listener thread.

run.client.nonblockingdual:
 [java] -- EchoNonBlockingDualClient
 [java] [INFO] Deploying module: addressing-1.3
 [java] [INFO] Deploying module: script-1.3
 [java] [INFO] Deploying module: sample-logging
 [java] [INFO] Deploying module: metadataExchange-1.3
 [java] [INFO] Deploying module: ping-1.3
 [java] [INFO] Deploying module: sample-logging
 [java] [INFO] Deploying module: soapmonitor-1.3
 [java] LoggingModule:init
 [java] [INFO] script module activated
 [java] [INFO] HTTP Listener starting on port : 9000
 [java] waiting
 [java] [INFO] Using simulated buffered Pipes for event-driven to
stream IO bridging
 [java] callback
 [java] ?xml version='1.0' encoding='utf-8'?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:wsa=http://www.w3.
 [java] [INFO] Listener Shutdown
 [java] [INFO] Listener shut down

 [java] LoggingModule:shutdown hangs here

ctrl-c
 [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 5 minutes 55 seconds
Terminate batch job (Y/N)?

The manual, probably old, that I was reading specified a
finalizeInvoke(), which in no longer available in the class.

The class Callback, used in the sample, is also deprecated.

Rick

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



Re: Axis2 sample problem - Userguide sample still a problem

2007-11-16 Thread Rick Isaacs
-

 - Original Message -
 From: Rick Isaacs [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Thursday, November 15, 2007 3:13 PM
 Subject: Axis2 sample problem - Userguide sample still a problem


  Hi,
 
  I tried to build the Userguide sample that Vy Bui had a problem.
 
  I have tried to run the Axis2 userguide sample, but I can not get the
  blocking dual samples to
  work. I keep getting the following error:
 
   [java] org.apache.axis2.AxisFault: Unable to engage module :
 addressing
 
  1.) The build.xml was corrected to compile using (A)
 
  2.) Commented out  jvmarg value= / for all the Ant tasks to not use
  the sample axis2.xml.
 
  I keep getting addressing errors for all the sample clients.
 
  3.)
 C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.
 xml
 
  file that is part of the original sample was not used.
 
  4.) I added the logging phases as outlined to axis2.xml in the Axis2
  manual a Userguide Readme.
 
  5.)  Running all the clients the dual samples keeping getting an
  addressing error. Why?
 
  
 
 
  BUILD.XML  - changed
 
 
  !--
  target name=generate.module
   --
 
  target name=generate.module depends=compile
  - (A)
 
  .
 
  target name=run.client.blocking depends=compile
  echo message=* run.client.blocking /
  java classname=userguide.clients.EchoBlockingClient
classpathref=axis.classpath fork=true
  !--
 (B)
 
  jvmarg value=-Daxis2.repo=${mainDir}/repository/
   don't use the sample axis2.xml
  jvmarg value=-Daxis2.xml=conf/axis2.xml/
   --
 
  /java
  /target
 
  target name=run.client.blockingdual depends=compile
  echo message=* run.client.blockingdual /
  java classname=userguide.clients.EchoBlockingDualClient
classpathref=axis.classpath fork=true
 
  !--   (B)
  jvmarg value=-Daxis2.repo=${mainDir}/repository/
  jvmarg value=-Daxis2.xml=conf/axis2.xml/
   --
 
  /java
  /target
 
 
  
 
  Not used from sample
 
 
 C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\origina
 l_axis2.xml
--(C)
 
  
 
  Changed C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xml
 
  
 
  !-- = --
  !-- Global Modules  --
  !-- = --
  !-- Comment this to disable Addressing --
 
  module ref=addressing/
 
  module ref=soapmonitor/
 
  
 
 !--  System predefined phases   --
  !--   After Postdispatch phase module author or service
  author can add any phase he want  --
  phase name=OperationInPhase/
  phase name=soapmonitorPhase/
 
  phase name=loggingPhase/
 
  /phaseOrder
  phaseOrder type=OutFlow
 
  .
 
  
 
  RUN.CLIENT.ALL - test
 
 
  run.client.ping: --- OK
   [echo] * run.client.ping
  run.client.blocking:
   [echo] * run.client.blocking   --- OK
   [java] 
   [java] Address: http://localhost:8080/axis2/services/WsaMappingTest
   [java] log4j:WARN No appenders could be found for logger
  (org.apache.axis2.util.Loader).
   [java] log4j:WARN Please initialize the log4j system properly.
 
  run.client.blockingdual: --- ERROR
   [echo] * run.client.blockingdual
   [java] log4j:WARN No appenders could be found for logger
  (org.apache.axis2.util.Loader).
   [java] log4j:WARN Please initialize the log4j system properly.
   [java] org.apache.axis2.AxisFault: Unable to engage module :
 addressing
   [java] at
  org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:339)
 
  run.client.nonblocking: --- OK
   [echo] * run.client.nonblocking
 
  run.client.nonblockingdual: --- ERROR
   [echo] * run.client.nonblockingdual
   [java] log4j:WARN No appenders could be found for logger
  (org.apache.axis2.util.Loader).
   [java] log4j:WARN Please initialize the log4j system properly.
   [java] org.apache.axis2.AxisFault: Unable to engage module :
 addressing
 
  run.client.servicewithmodule: --- OK
   [echo] * run.client.servicewithmodule
   [echo] ../..
   [echo] ../../repository/conf/axis2.xml
   [java] example1:echo
  xmlns:example1=http://example1.org/example1;example1:TextAxis2
  Echo String /example1:Text/e
 
  
 
  Rick Isaacs
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

Re: Simple sample code for session management - client service

2007-11-15 Thread Rick Isaacs
Hi  Robert,

Thank you for the suggestions, the lecture notes and samples.

I find rereading the manual too many times can be confusing sometimes.

The presentation looks good, but my portuguese is a little rusty ;-).

I will look at your login code.

Thanks again,

Rick


On Nov 14, 2007 11:40 PM, robert lazarski [EMAIL PROTECTED] wrote:
 At this point, Axis2 seems to have an WS-SecureConversation
 implementation - i'd look there and see if both side support it.
 Beyond that, I've rolled my own a few times and recommend it actually
 - its pretty easy - sometimes easier then hunting down docs and hoping
 both ends follow what little specs exist.

 The best I can offer is some relatively ancient code from axis2 .94 -
 and the docs are in portuguese ;-) . Anyways, all the code is in user
 space so it should be fine.

 http://braziloutsource.com/wss2.html

 Search on UUID and it starts some xmlbeans code that generates a UUID
 and stores it via ehcache. The idea is to login, generate a token and
 return. Then pass the token back in and verify its valid and hasn't
 expired.

 HTH,
 Robert


 On Nov 14, 2007 5:14 PM, Rick Isaacs [EMAIL PROTECTED] wrote:
  Hi,
 
  Does anyone have a simple client and service code demonstrating
  session management?
 
  After reading the article
 
  http://www.developer.com/java/web/article.php/3620661
 
  and checking the mailing list and surfing, I have not been able to get
  a simple management session sample
 
  to work and I could not find any sample in Axis2 download.
 
  Rick
 
  -
  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]



Axis2 sample problem - Userguide sample still a problem

2007-11-15 Thread Rick Isaacs
Hi,

I tried to build the Userguide sample that Vy Bui had a problem.

I have tried to run the Axis2 userguide sample, but I can not get the
blocking dual samples to
work. I keep getting the following error:

 [java] org.apache.axis2.AxisFault: Unable to engage module : addressing

1.) The build.xml was corrected to compile using (A)

2.) Commented out  jvmarg value= / for all the Ant tasks to not use
the sample axis2.xml.

I keep getting addressing errors for all the sample clients.

3.) 
C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.xml

file that is part of the original sample was not used.

4.) I added the logging phases as outlined to axis2.xml in the Axis2
manual a Userguide Readme.

5.)  Running all the clients the dual samples keeping getting an
addressing error. Why?




BUILD.XML  - changed


!--
target name=generate.module
 --

target name=generate.module depends=compile
- (A)

.

target name=run.client.blocking depends=compile
echo message=* run.client.blocking /
java classname=userguide.clients.EchoBlockingClient
  classpathref=axis.classpath fork=true
!--
   (B)

jvmarg value=-Daxis2.repo=${mainDir}/repository/
 don't use the sample axis2.xml
jvmarg value=-Daxis2.xml=conf/axis2.xml/
 --

/java
/target

target name=run.client.blockingdual depends=compile
echo message=* run.client.blockingdual /
java classname=userguide.clients.EchoBlockingDualClient
  classpathref=axis.classpath fork=true

!--   (B)
jvmarg value=-Daxis2.repo=${mainDir}/repository/
jvmarg value=-Daxis2.xml=conf/axis2.xml/
 --

/java
/target




Not used from sample

C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\original_axis2.xml
  --(C)



Changed C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xml



!-- = --
!-- Global Modules  --
!-- = --
!-- Comment this to disable Addressing --

module ref=addressing/

module ref=soapmonitor/



   !--  System predefined phases   --
!--   After Postdispatch phase module author or service
author can add any phase he want  --
phase name=OperationInPhase/
phase name=soapmonitorPhase/

phase name=loggingPhase/

/phaseOrder
phaseOrder type=OutFlow

.



RUN.CLIENT.ALL - test


run.client.ping:
--- OK
 [echo] * run.client.ping
run.client.blocking:
 [echo] * run.client.blocking   --- OK
 [java] 
 [java] Address: http://localhost:8080/axis2/services/WsaMappingTest
 [java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
 [java] log4j:WARN Please initialize the log4j system properly.

run.client.blockingdual:
--- ERROR
 [echo] * run.client.blockingdual
 [java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
 [java] log4j:WARN Please initialize the log4j system properly.
 [java] org.apache.axis2.AxisFault: Unable to engage module : addressing
 [java] at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:339)

run.client.nonblocking: 
--- OK
 [echo] * run.client.nonblocking

run.client.nonblockingdual: 
--- ERROR
 [echo] * run.client.nonblockingdual
 [java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
 [java] log4j:WARN Please initialize the log4j system properly.
 [java] org.apache.axis2.AxisFault: Unable to engage module : addressing

run.client.servicewithmodule:   --- OK
 [echo] * run.client.servicewithmodule
 [echo] ../..
 [echo] ../../repository/conf/axis2.xml
 [java] example1:echo
xmlns:example1=http://example1.org/example1;example1:TextAxis2
Echo String /example1:Text/e



Rick Isaacs

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



Simple sample code for session management - client service

2007-11-14 Thread Rick Isaacs
Hi,

Does anyone have a simple client and service code demonstrating
session management?

After reading the article

http://www.developer.com/java/web/article.php/3620661

and checking the mailing list and surfing, I have not been able to get
a simple management session sample

to work and I could not find any sample in Axis2 download.

Rick

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



Re: where do i start with wsdl and axis2?

2007-11-09 Thread Rick Isaacs
Hi

I just started with Axis2 and Upul's suggestion to read and try the
quickstart guide is a
good suggestion and it demonstrates all the tools and ways to build,
deploy and test
a web service. You will need to spend a few days working thru a few examples.

Rick





On Nov 9, 2007 8:04 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote:
 hi,
 since you have the wsdl you have to start with the contract first approach.

 here is a good link to[1] wsd2java tool.

 http://today.java.net/pub/a/today/2006/06/22/axis-2-generated-client-code.html

 thanks,
 Amila.


 On Nov 8, 2007 10:20 PM, Upul Godage [EMAIL PROTECTED] wrote:
  Reading and trying out the samples of Axis2 Quick Start Guide would be
  a good starting point.  Given a WSDL, see how wsdl2java generate the
  code and how it is being used.
  http://ws.apache.org/axis2/1_3/quickstartguide.html
 
  Also you can browse the articles at http://wso2.org/library
 
  Upul
 
 
 
 
  On Nov 8, 2007 8:36 PM, forgiveness [EMAIL PROTECTED] wrote:
  
   Hi
  
   I'm new to web services and apache axis2.
   I have a wsdl file from a 3rd party, which i'm supposed to call it's
   services to retrieve some reports, and i've installed apache axis2.
  
   now what do i do? sounding stupid here, but i really appreciate any simple
   steps and guidance for me to get started. thank you.
   --
   View this message in context: 
   http://www.nabble.com/where-do-i-start-with-wsdl-and-axis2--tf4771475.html#a13648709
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
   -
   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]
 
 



 --
 Amila Suriarachchi,
 WSO2 Inc.


 -
 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]



Re: Axis2 sample - pojoguide Unexpected EOF in prolog

2007-11-08 Thread Rick Isaacs
Hi Martin,

I finally found the problem - it was the Kaspersky Anti virus 7.0 !!!

This is a new virus checker for me and I did not realize that it was
checking and blocking the local socket (8080) connection.

The http request was truncated or corrupted:


SOAPAction: urn:anonRobustOp
User-Agent: Axis2
Host: localhost
Transfer-Encoding: chunked

0 -- probably the
virus checker did this

0
-

There was no warning pop or I over looked the warning.

I have also checked my firewall

The solution was to stop the virus checker.

The Axis2 samples \quickstartadb as well as a couple of the manual
samples now work as-is.

Thanks again, Martin.

At least I have read the Axis2 manual very carefully ;-)

Rick




On Nov 7, 2000 2:57 AM,  [EMAIL PROTECTED] wrote:


 Hi Rick-

 if you display the wsdl I'll try WSDL2Java to produce the service which I
 will then upload the aar/activate the service then
 write a client to extract at least 1 parameter..

 Thanks/
 Martin-



 - Original Message -
 From: Rick Isaacs
 To: axis-user@ws.apache.org
 Sent: Tuesday, November 06, 2007 8:18 AM
 Subject: Re: Axis2 sample - pojoguide Unexpected EOF in prolog


 Hi Martin,

 Thank you for your suggestions.

 I still the get the same prolog error for the pojoguide sample

 I checked and tried various ideas along with your suggestions without a
 sample client working.

 I dont believe CHUNKED_ENCODING is enabled as a default?.. to verify
 
 please display contents of
 %CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml
 
 Also prolog error codes are caused by the parser so verifying the version
 of xerces is critical
 
 My xerces is located at
 %CATALINA_HOME%/webapps/axis2/WEB-INF/lib/xercesImpl-2.8.1.jar
 (i.e. Xerces version 2.8.1)
 
 Martin


 1.) I un-installed the windows Tomcat installation and downloaded the
 tomcat5.5.25 zip and moved it on c/tomcat

 2.) using notepad %CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml

 my axis2.xml shows that encoding check is enabled.

 part of the standard axis2.xml

 ..

   transportSender name=tcp

 class=org.apache.axis2.transport.tcp.TCPTransportSender/
 transportSender name=local

 class=org.apache.axis2.transport.local.LocalTransportSender/
 transportSender name=http

 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender 
 parameter name=PROTOCOLHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter

 ..




 3.) I used filemon.exe and traced the startup of Tomcat


 12:26:13java.exe:3000READ
 C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xmlSUCCESS
 Offset: 0 Length: 24161

 to check that the correct file was read.


 4.) I used filemon to trace the run of sample pojoguide

 ant rpc.client.run

 12:30:41java.exe:3760READ
 C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\lib\xercesImpl-2.8.1.jar
 SUCCESSOffset: 1123181 Length: 89762

 to check that the correct file was read.


 The xeces*.jar and the axis2.xml seem to be correct and in the right place


 Maybe there is something else incorrectly configured?

 Is there any way to get more tracing information after the call to

  serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); ?

 Is there a site where I could compare my installation against a working one?


 Rick








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



RE: Axis2 sample - pojoguide Unexpected EOF in prolog

2007-11-07 Thread Rick Isaacs
Hi Martin,

The problem is that I can not get the Axis2 client samples to send a soapenv
in the http request,

thus the service tries to parse a http request that is missing.

I think the problem lies with how I am using the Axis2 sample Ant tasks and
not understanding the manual well enough.

I have reread and retried the examples. They build and the services deploy
OK, but no clients works, but builds OK.

I downloaded and unzipped

axis2-1.3-bin.zip from 26 Oct 07
axis2-1.3-docs.zip

I moved the axis2.war to Tomcat and restarted Tomcat to create the axis2
directory.

I moved the Axis2 \samples directory to C:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF

For \pojoguide, \quickstart and \quickstartadb, I used the README.txt to
build the services.

I used the AdminServlet to deploy the services and used the Ant client run.

Ant rpc.client or the Ant run.client to build and run the clients, with the
Prolog error.


If I could these samples to work, then I would be able to understand the
manual better.


Maybe the manual is not up to date or the samples are missing something or I
overlooked something.

Try to get the \quickstartadb to work.

Thank you for your patience and effort.

Rick

-

 Hi Rick-

if you display the wsdl I'll try WSDL2Java to produce the service which I
will then upload the aar/activate the service then
write a client to extract at least 1 parameter..
Thanks/
Martin-

- Original Message -
*From:* Rick Isaacs [EMAIL PROTECTED]
*To:* axis-user@ws.apache.org
*Sent:* Tuesday, November 06, 2007 8:18 AM
*Subject:* Re: Axis2 sample - pojoguide Unexpected EOF in prolog


Hi Martin,

Thank you for your suggestions.

I still the get the same prolog error for the pojoguide sample

I checked and tried various ideas along with your suggestions without a
sample client working.

I dont believe CHUNKED_ENCODING is enabled as a default?.. to verify

please display contents of
%CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml

Also prolog error codes are caused by the parser so verifying the version
of xerces is critical

My xerces is located at
%CATALINA_HOME%/webapps/axis2/WEB-INF/lib/xercesImpl-2.8.1.jar
(i.e. Xerces version 2.8.1)

Martin


1.) I un-installed the windows Tomcat installation and downloaded the
tomcat5.5.25 zip and moved it on c/tomcat

2.) using notepad %CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml

my axis2.xml shows that encoding check is enabled.

part of the standard axis2.xml

..

  transportSender name=tcp
 class=
org.apache.axis2.transport.tcp.TCPTransportSender/
transportSender name=local
 class=
org.apache.axis2.transport.local.LocalTransportSender/
transportSender name=http
 class=
org.apache.axis2.transport.http.CommonsHTTPTransportSender 
parameter name=PROTOCOLHTTP/1.1/parameter
parameter name=Transfer-Encodingchunked/parameter

..




3.) I used filemon.exe and traced the startup of Tomcat


12:26:13java.exe:3000READ C:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xmlSUCCESSOffset: 0
Length: 24161

to check that the correct file was read.


4.) I used filemon to trace the run of sample pojoguide

ant rpc.client.run

12:30:41java.exe:3760READC:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\lib\xercesImpl-2.8.1.jarSUCCESS
 Offset: 1123181 Length: 89762

to check that the correct file was read.


The xeces*.jar and the axis2.xml seem to be correct and in the right place


Maybe there is something else incorrectly configured?

Is there any way to get more tracing information after the call to

 serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); ?

Is there a site where I could compare my installation against a working one?


Rick


Re: Axis2 sample - pojoguide Unexpected EOF in prolog

2007-11-06 Thread Rick Isaacs
Hi Martin,

Thank you for your suggestions.

I still the get the same prolog error for the pojoguide sample

I checked and tried various ideas along with your suggestions without a
sample client working.

I dont believe CHUNKED_ENCODING is enabled as a default?.. to verify

please display contents of
%CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml

Also prolog error codes are caused by the parser so verifying the version
of xerces is critical

My xerces is located at
%CATALINA_HOME%/webapps/axis2/WEB-INF/lib/xercesImpl-2.8.1.jar
(i.e. Xerces version 2.8.1)

Martin


1.) I un-installed the windows Tomcat installation and downloaded the
tomcat5.5.25 zip and moved it on c/tomcat

2.) using notepad %CATALINA_HOME%/webapps/axis2/WEB-INF/conf/axis2.xml

my axis2.xml shows that encoding check is enabled.

part of the standard axis2.xml

..

  transportSender name=tcp
 class=
org.apache.axis2.transport.tcp.TCPTransportSender/
transportSender name=local
 class=
org.apache.axis2.transport.local.LocalTransportSender/
transportSender name=http
 class=
org.apache.axis2.transport.http.CommonsHTTPTransportSender
parameter name=PROTOCOLHTTP/1.1/parameter
parameter name=Transfer-Encodingchunked/parameter

..




3.) I used filemon.exe and traced the startup of Tomcat


12:26:13java.exe:3000READ C:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xmlSUCCESSOffset: 0
Length: 24161

to check that the correct file was read.


4.) I used filemon to trace the run of sample pojoguide

ant rpc.client.run

12:30:41java.exe:3760READC:\apache-
tomcat-5.5.25\webapps\axis2\WEB-INF\lib\xercesImpl-2.8.1.jarSUCCESS
 Offset: 1123181 Length: 89762

to check that the correct file was read.


The xeces*.jar and the axis2.xml seem to be correct and in the right place


Maybe there is something else incorrectly configured?

Is there any way to get more tracing information after the call to

 serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); ?

Is there a site where I could compare my installation against a working one?


Rick


Re: Axis2 sample - pojoguide Unexpected EOF in prolog

2007-11-05 Thread Rick Isaacs
Hi Martin,

Thanks for the very quick answer. The sample services work OK using when
accessing the browser,

but I still can not get any of the java clients to work.

I have checked my axis2.xml and the transportSender for http is correct.

I have tried building other java clients using the ant build.xml provided as
these clients do not work and

I keep getting a request error.

Maybe I have made so basic error.

1.) downloaded axis2-1.3-bin.zip 26/10
   axis2-1.3-docs.zip


2.) Unzipped and put the axis2-1.3\dist\axis2.war in

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapp.

3.) After starting Tomcat the war was expanded and created the directories
axis2\axis2-web

4.) axis2 samples directory was copied to

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\axis2\WEB-INF

 which contains the \services and \repository\services directories,
where the ant copies the aar services

5.) Open a cmd window in \samples

and set the following

set PATH=
set PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_09\bin
set PATH=%PATH%;C:\Downloads\Axis\apache-ant-1.7.0\bin
set PATH=%PATH%;C:\WINDOWS\system32
set PATH=%PATH%;C:\downloads\Ant\ant\bin

set CLASSPATH=
set CLASSPATH=%CLASSPATH%;C:\Program Files\Java\jdk1.5.0_09

set ANT_HOME=C:\Downloads\Axis\apache-ant-1.7.0

set AXIS2_HOME=C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\axis2\WEB-INF

set AXIS2_LIB=%AXIS2_HOME%\lib

set AXISCLASSPATH=
set AXISCLASSPATH=%AXISCLASSPATH%;%AXIS2_LIB%\commons-discovery-0.2.jar



set AXISCLASSPATH=%AXISCLASSPATH%;%AXIS2_LIB%\XmlSchema-1.3.2.jar

6.) changed to the \pojoguide directory

7.) $ant - to build WeatherService.aar

8.) installed the aar using the AdminServlet

9.) $ ant rpc.client - the prolog error

What am I doing wrong or leaving out?

Yours truly,

Rick Isaacs





On 11/5/07, Martin Gainty [EMAIL PROTECTED] wrote:

  Rick-
 Please verify chunked transfer-encoding is enabled in axis2.xml e.g.
 transportSender name=http
  class=
 org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOLHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter

 !-- If following is set to 'true', optional action part of the
 Content-Type will not be added to the SOAP 1.2 messages --
 !--  parameter name=OmitSOAP12Actiontrue/parameter  --
 /transportSender

 M--

 - Original Message -
 *From:* Rick Isaacs [EMAIL PROTECTED]
 *To:* axis-user@ws.apache.org
 *Sent:* Monday, November 05, 2007 2:40 AM
 *Subject:* Axis2 sample - pojoguide Unexpected EOF in prolog

 Hi

 Using Windows XP, Tomcat 5.5, Java 5.0, Ant 1.7, I can not get the Axis2
 sample pojoguide client program, WeatherRPCClient, to send a correct SOAP
 request to the the uploaded  WeatherService.

 The service was correctly built using the ant task and uploaded using the
 AdminServlet.

 With a browser:

 http://127.0.0.1:8080/axis2/services/WeatherService?wsdl
 http://127.0.0.1:8080/axis2/services/WeatherService?wsdl+

 The service is OK

 Here is a part of the client:

 public class WeatherRPCClient {

 public static void main(String[] args1) throws AxisFault {

 RPCServiceClient serviceClient = new RPCServiceClient();

 Options options = serviceClient.getOptions ();

 EndpointReference targetEPR = new 
 EndpointReference(http://localhost:80/axis2/services/WeatherService
 http://localhost/axis2/services/WeatherService);

 options.setTo (targetEPR);

 // Setting the weather

 QName opSetWeather = new QName(http://service.pojo.sample/xsd ,
 setWeather);


 When I start the client


  ant rpc.client


 I receive the error:

  org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFExcepti on:
 Unexpected EOF in prolog

 And the tcpmon shows the Http request:


 -
 SOAPAction: urn:anonRobustOp
 User-Agent: Axis2
 Host: localhost
 Transfer-Encoding: chunked

 0

 0
 -

 The classpath. AXISCLASSPATH, path are set to Axis2, java and ant


 Directory structure:

 Tomcat 5.5/axis2/axis2-web/WEB-INF/samples/pojoguide

 Rick Isaacs




Axis2 sample - pojoguide Unexpected EOF in prolog

2007-11-04 Thread Rick Isaacs
Hi

Using Windows XP, Tomcat 5.5, Java 5.0, Ant 1.7, I can not get the Axis2
sample pojoguide client program, WeatherRPCClient, to send a correct SOAP
request to the the uploaded  WeatherService.

The service was correctly built using the ant task and uploaded using the
AdminServlet.

With a browser:

http://127.0.0.1:8080/axis2/services/WeatherService?wsdl

The service is OK

Here is a part of the client:

public class WeatherRPCClient {

public static void main(String[] args1) throws AxisFault {

RPCServiceClient serviceClient = new RPCServiceClient();

Options options = serviceClient.getOptions ();

EndpointReference targetEPR = new
EndpointReference(http://localhost:80/axis2/services/WeatherService
http://localhost/axis2/services/WeatherService);

options.setTo (targetEPR);

// Setting the weather

QName opSetWeather = new QName(http://service.pojo.sample/xsd ,
setWeather);


When I start the client


 ant rpc.client


I receive the error:

 org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected
EOF in prolog

And the tcpmon shows the Http request:


-
SOAPAction: urn:anonRobustOp
User-Agent: Axis2
Host: localhost
Transfer-Encoding: chunked

0

0
-

The classpath. AXISCLASSPATH, path are set to Axis2, java and ant


Directory structure:

Tomcat 5.5/axis2/axis2-web/WEB-INF/samples/pojoguide

Rick Isaacs