You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Martin Gainty <mg...@hotmail.com> on 2007/05/01 02:24:42 UTC

Re: Axis2 xmlbeans http transport error 302 found

Thanks Paul!

Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Paul Fremantle" <pz...@gmail.com>
To: <ax...@ws.apache.org>; "Martin Gainty" <mg...@hotmail.com>
Sent: Monday, April 30, 2007 4:42 PM
Subject: Re: Axis2 xmlbeans http transport error 302 found


Martin

I can't promise to keep answering Mule / XFire questions!!!

But I happen to know this one:

You need backport-util-concurrent-2.2.jar
http://dcl.mathcs.emory.edu/util/backport-util-concurrent/

By the way, the reason that Mule recommends XFire for .NET interop is
that Mule hasn't yet upgraded to Axis2 - they are still on Axis1 which
isn't the most interoperable, especially with WCF .NET 3.0 and 3.5.

If you want an extremely fast and highly interoperable ESB that
supports Axis2 take a look at Apache Synapse:
http://ws.apache.org/synapse

Paul



On 4/30/07, Martin Gainty <mg...@hotmail.com> wrote:
> Paul et al-
>
> I went to the mule site /downloaded the code and ran the example for
> LoanConsumer as follows
>
> C:\Mule\mule-1.3.3\examples\ant\loanbroker\build\classes>java -classpath
> ;C:\Mu
> le\mule-1.3.3\examples\ant\loanbroker\build\classes;C:\Commons_Beanutils\commons
> -beanutils-1.7.0\commons-beanutils.jar;C:\commons-digester\commons-digester-1.8\
> commons-digester-1.8.jar;C:\JDEVEL~1\jdev\lib\jdev\lib\ext\jmig.jar;C:\JDEVEL~1\
> jdev\lib\jdev\lib\ext\des.jar;C:\JDEVEL~1\jdev\lib\jdev\lib\ext;C:\BEA\weblogic8
> 1\server\lib\wlclient.jar;C:\BEA\weblogic81\server\lib\wl-j2ee-client.jar;C:\BEA
> \weblogic81\samples\server\medrec\build\utils.jar;C:\AXIS\Axis-1_3\lib\saaj.jar;
> C:\Jars\jaxrpc.jar;C:\Jars\commons-discovery-0.2.jar;.;C:\commons-logging\common
> s-logging-1.0.4\commons-logging-api.jar;C:\hsqldb\old\hsqldbr\lib\hsqldb.jar;C:\
> ANT\APACHE~1.5\lib\ant-junit.jar;C:\Junit\junit3.8.1\lib\junit.jar;C:\JAF\jaf-1.
> 0.2\activation.jar;C:\JavaMail\javamail-1.4ea\lib\mailapi.jar;C:\AXIS\Axis-1_3\l
> ib\axis.jar;C:\Jars\jakarta-tomcat-5.5.7\bin\jmx.jar;C:\Jars\jakarta-tomcat-5.5.
> 7\common\endorsed\xercesImpl.jar;C:\Jars\jakarta-tomcat-5.5.7\common\endorsed\xm
> l-apis.jar org.mule.samples.loanbroker.LoanConsumer
>
> ********************************************************************************
> * Welcome to the Mule Loan Broker example
> *
> ********************************************************************************
>
> Which SOAP stack would you like to use: [a]xis, [g]lue or [x]fire?
> x
>
> Would you like to run the [s]ynchronous or [a]synchronous version?
> s
> Loading Synchronous Loan Broker
> Exception in thread "main" java.lang.NoClassDefFoundError:
> edu/emory/mathcs/back
> port/java/util/concurrent/ArrayBlockingQueue
>
> where is
> edu.emory.mathcs.backport.java.util.concurrent.ArrayBlockingQueue.class 
> ????
>
> Thx
> Martin--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please 
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message -----
> From: "Paul Fremantle" <pz...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Friday, April 27, 2007 4:35 AM
> Subject: Re: Axis2 xmlbeans http transport error 302 found
>
>
> Markus
>
> In general Axis2 is compatible with .NET and C#. The other option is
> to enable much more logging on the Java side and take a look at the
> logs.
>
> A log4j.properties like this should do the trick:
>
> log4j.logger.TRACE_LOGGER = TRACE_APPENDER
> log4j.appender.TRACE_APPENDER.File=logs/trace.log
> log4j.appender.TRACE_APPENDER.Append=true
> log4j.appender.TRACE_APPENDER.layout=org.apache.log4j.PatternLayout
> log4j.appender.TRACE_APPENDER.layout.ConversionPattern=[%X{ip}]
> [%X{host}] [%t] %-5p %C{1} - %m %n
> log4j.category.org.apache=DEBUG
>
> Paul
>
> On 4/27/07, Markus F. <mf...@wolke7.net> wrote:
> >
> > Paul
> >
> > thanks for your engagement about this.
> > I'm sorry, the server is not available to public, you have to sign a 
> > test
> > account contract (as we did) with the company providing the service.
> >
> > This is also why i didnot post my code.
> > I know that that will not ease the whole thing to solve.
> > The only thing available is the wsdl, as its public, you could generate
> > client code off from it, I donĀ“t know if this would help, as long as you
> > want to fire off a request you have to have an account there.
> > Perhaps you see something in the generated code that would help finding
> > the
> > problem?
> >
> > As well it seems to me, that it might be a M$ C# incompatiblity with the
> > Java world, although web services should be interoperable, perhaps some
> > details where C# clients have other defaults, and that's why it works
> > there.
> > But only a guess. Otherwise I cannot explain that others use this 
> > service.
> >
> > If you would find it helpful I'll send the wsdl to you, but let me 
> > contact
> > the service company first, to assure that this would be OK
> >
> > Markus
> >
> >
> > pzfreo wrote:
> > >
> > > Markus
> > >
> > > Is this a publicly available server that we can try?
> > >
> > > Paul
> > >
> > > On 4/26/07, Markus F. <mf...@wolke7.net> wrote:
> > >>
> > >> Paul
> > >>
> > >> I guess I can't monitor a http*s* connection with tcpmon?
> > >> I mean I could but I would't see anything readable...
> > >> Unfortunately my service is only available over TLS, so I will not be
> > >> able
> > >> to figure out whats going over the line that easy.
> > >>
> > >> Is there no other way of debbuging?
> > >>
> > >> What I've also tried is to access the URL over the browser, after
> > >> authentication I get an SOAP error message saying something about
> > >> incomplete
> > >> request -> So the URL must be correct, right?
> > >>
> > >> What I did was trying out XFire, again with no success, but this time
> > >> it
> > >> seemed to be a binding issue with namespaces and JAXB which is the 
> > >> only
> > >> option when autogenerating a client with XFire, as I figured out. The
> > >> error
> > >> message said something about an unknown method even though the Class
> > >> was
> > >> there. I didnot understand what the real problem was, because the 
> > >> error
> > >> message was not very helpful to me.
> > >>  (org.codehaus.xfire.fault.XFireFault: Method 'Payment' not
> > >> implemented:
> > >> method name or namespace not recognized
> > >>         at
> > >> org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
> > >> ....  )
> > >>
> > >> Anyway, asking questions about xfire doesnot belong here.
> > >> What confuses about my axis2 variant, is that it talks about
> > >> redirecting,
> > >> and xfire does not.
> > >>
> > >> One of my intents why i chose to use a soap based communication with 
> > >> an
> > >> already working server implementation (there are users successfully
> > >> using
> > >> it, even though maybe not based on Java but C#) was that it should be
> > >> easy.
> > >> Generate a client and use it.
> > >>
> > >> But it seems to me, that the S in SOAP doesnot really mean simple, at
> > >> least
> > >> for me :(
> > >>
> > >> Markus
> > >>
> > >>
> > >>
> > >> pzfreo wrote:
> > >> >
> > >> > Markus
> > >> >
> > >> > I think you need to use tcpmon to trace the HTTP flow. It seems 
> > >> > like
> > >> > the server doesn't like    the URI that you are sending the request
> > >> > to. Its sending back an HTTP 302 Found code which is basically a
> > >> > redirect. I guess Axis2 should probably follow that redirect, but 
> > >> > at
> > >> > the same time the server shouldn't be publishing a URI in the WSDL
> > >> > that ends up with a redirect.
> > >> >
> > >> > If you trace it you can set the stub to go to the real URI and all
> > >> > should be fine.
> > >> >
> > >> > Paul
> > >> >
> > >> > On 4/25/07, Markus F. <mf...@wolke7.net> wrote:
> > >> >>
> > >> >> Hello list,
> > >> >> this is my first contact with axis2. I've to implemtent a client
> > >> >> using
> > >> a
> > >> >> 3rd
> > >> >> party service over https and username/passwd authentication.
> > >> >> I've been spending many hours on this and couldnot find any 
> > >> >> similar
> > >> >> errors
> > >> >> on the list or even on the web
> > >> >> I autogenerated the client with following command.
> > >> >>
> > >> >> wsdl2java.bat -o src\generated -s -p com.someservice.test -uri
> > >> >> src\wsdl\some.wsdl -d xmlbeans
> > >> >>
> > >> >> The wsdl makes use of complex type extension, so I'm using 
> > >> >> xmlbeans
> > >> for
> > >> >> binding.
> > >> >> I get the following error: org.apache.axis2.AxisFault: HTTP
> > >> >> Transport
> > >> >> error
> > >> >> : '302' - 'Found'
> > >> >> It must be something basic, what I'm missing here, because I get 
> > >> >> the
> > >> same
> > >> >> error when not providing the credentials.
> > >> >>
> > >> >> Any hints?
> > >> >> Thanks a lot.
> > >> >> Markus
> > >> >>
> > >> >>
> > >> >> Here's the stack trace:
> > >> >>
> > >> >> 25.04.2007 11:17:54 
> > >> >> org.apache.commons.httpclient.HttpMethodDirector
> > >> >> isRedirectNeeded
> > >> >> INFO: Redirect requested but followRedirects is disabled
> > >> >> org.apache.axis2.AxisFault: HTTP Transport error : '302' - 
> > >> >> 'Found';
> > >> >> nested
> > >> >> exception is:
> > >> >>         org.apache.axis2.AxisFault: HTTP Transport error : '302' -
> > >> >> 'Found'; nested
> > >> >> exception is:
> > >> >>         org.apache.axis2.AxisFault: HTTP Transport error : '302' -
> > >> >> 'Found'; nested
> > >> >> exception is:
> > >> >>         org.apache.axis2.AxisFault: HTTP Transport error : '302' -
> > >> >> 'Found'
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> > >> >>         at
> > >> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> > >> >>         ...
> > >> >> Caused by: org.apache.axis2.AxisFault: HTTP Transport error :
> > >> >> '302' -
> > >> >> 'Found'; nested exception is:
> > >> >>         org.apache.axis2.AxisFault: HTTP Transport error : '302' -
> > >> >> 'Found'
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> > >> >>         ... 5 more
> > >> >> Caused by: org.apache.axis2.AxisFault: HTTP Transport error :
> > >> >> '302' -
> > >> >> 'Found'
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
> > >> >>         at
> > >> >>
> > >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
> > >> >>         ... 6 more
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >> http://www.nabble.com/Axis2-xmlbeans-http-transport-error-302-found-tf3644416.html#a10177848
> > >> >> Sent from the Axis - User mailing list archive at Nabble.com.
> > >> >>
> > >> >>
> > >> >> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> > --
> > >> > Paul Fremantle
> > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >> >
> > >> > http://bloglines.com/blog/paulfremantle
> > >> > paul@wso2.com
> > >> >
> > >> > "Oxygenating the Web Service Platform", www.wso2.com
> > >> >
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >> >
> > >> >
> > >> >
> > >>
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/Axis2-xmlbeans-http-transport-error-302-found-tf3644416.html#a10199717
> > >> Sent from the Axis - User mailing list archive at Nabble.com.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > >> For additional commands, e-mail: axis-user-help@ws.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > Paul Fremantle
> > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >
> > > http://bloglines.com/blog/paulfremantle
> > > paul@wso2.com
> > >
> > > "Oxygenating the Web Service Platform", www.wso2.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Axis2-xmlbeans-http-transport-error-302-found-tf3644416.html#a10210946
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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



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