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
>
> ..
>
>   
> class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
> 
> class="org.apache.axis2.transport.local.LocalTransportSender"/>
> 
> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender ">
> HTTP/1.1
> chunked
>
> ..
>
>
>
>
> 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

..

  


HTTP/1.1
chunked

..




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 mgainty
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 - 
  Wrom: OWCONEUQZAAFXI
  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

  ..


  
  
  HTTP/1.1
  chunked

  ..



   
  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


   
   
   



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

..

  


HTTP/1.1
chunked

..




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 Martin Gainty
Hi Rick-

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)

HTH
Martin
  - Original Message - 
  From: Rick Isaacs 
  To: axis-user@ws.apache.org 
  Sent: Monday, November 05, 2007 5:51 PM
  Subject: Re: Axis2 sample - pojoguide Unexpected EOF in prolog



  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.


HTTP/1.1
chunked





M--
  - Original Message - 
  From: Rick Isaacs 
  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 

  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 ");

  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




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.
>   class="
> org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> HTTP/1.1
> chunked
>
> 
> 
> 
>
> 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
");

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