Can axis.jar can be part of Share lib inside a container?

2008-04-23 Thread Agila Govindaraju

Hi All,

  I wanted to know whether we can place axis.jar inside shared library 
of OC4j container?


Thanx,
Agila

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



Is it possible to call jws service in Axis2?

2008-04-23 Thread Chinmoy Chakraborty
Is it possible to call jws service in Axis2? If yes, then how?

Chinmoy


Re: Client Jars conflicting - Work around

2008-04-23 Thread Brennan Spies
Hari,

If using  is not working, then (assuming you have 
Weblogic v. 9.2 or later) you might want to try using a filtering classloader

http://edocs.bea.com/wls/docs92/programming/classloading.html#wp1097187


  - Original Message - 
  From: Hari C 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, April 23, 2008 5:50 PM
  Subject: Re: Client Jars conflicting - Work around


  Hi Faraz,

  Thnakyou very much for the reply. I think this option of PARENT_FIRST is 
available in websphere and iam using weblogic app server. Even if it is there 
it wont solve my problem becuase that will affect other jars(applications) 
running inside the same WAR. I was wondering why this conflict is happening. I 
have noticed that the QName(String;String;String;)in stax-api.jar is having 3 
parameters and the one used inside weblogic.jar is having only two.

  Is it something like we cant have Axis client if other applications running 
inside weblogic are using server classpath jars?. I thought it is a cake walk 
implementing the client.

  Regards

  Hari Pillai


  On Wed, Apr 23, 2008 at 6:25 PM, faraz masood <[EMAIL PROTECTED]> wrote:

Hi Hari,

Have you tried changing the class loader policies for your EAR .

somewhere in your deployment.xml 

<

deployedObject xmi:type="appdeployment:ApplicationDeployment" 
xmi:id="ApplicationDeployment_1207830167461" startingWeight="1" 
warClassLoaderPolicy="SINGLE"> 
change this to MULTIPLE 


 
change this to PARENT_LAST 

Best Regards, 
/Faraz


On Wed, Apr 23, 2008 at 7:16 AM, Hari C <[EMAIL PROTECTED]> wrote:


  Hi all

  I am really stuck with the stax-api.jar conflicting with weblogic.jar.I 
know that this problem is posted before in this forum.The solutions which are 
told are not solving my problem.I have explained it towards the end of the 
mail.  My webservice client is throwing following error during runtime

  
<[ServletContext(id=12698664,name=fflyer,context-path=/fflyer)] Root cause of 
ServletExcepti 
  on. 
  java.lang.NoSuchMethodError: 
javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
 
  at 
au.com.qantas.fflyer.loyaltypointsconverter.services.AnySeatRedemptionServiceStub$GetAnySeatParameters.(AnySeatRedemptionServiceStub
 
  .java:1885) 
  at 
au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.createAnySeatParamResponse(ASRBookingConversionHelper.java:90)
 
  at 
au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.getConversionStr(ASRBookingConversionHelper.java:65)
 
  at 
au.com.qantas.asrbooking.tripflow.impl.ASRPointsConverterAccessorImpl.getConvertionString(ASRPointsConverterAccessorImpl.java:26)
 
  at 
au.com.qantas.asrbooking.tripflow.impl.ASRSelectionAccessorImpl.getConversionData(ASRSelectionAccessorImpl.java:328)
 
  at 
au.com.qantas.asrbooking.tripflow.ASRTripflowExecutionContext.(ASRTripflowExecutionContext.java:64)
 
  at 
au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.generateTripflow(ASRBookingSearchBusinessDelegate.java:89)
 
  at 
au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.getTripflowURL(ASRBookingSearchBusinessDelegate.java:53)
 
  at 
au.com.qantas.asrbooking.application.ASRBookingSearchAction.execute(ASRBookingSearchAction.java:183)
 
  at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 
  at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) 
  at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
  at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
  at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
 
  at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
 
  at 
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) 
  at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) 
  at 
au.com.qantas.ecomm.registration.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:104)
 
  at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) 
  at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
 
  at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 
  at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) 
  at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Web

Re: OMElements, REST, deeply nested Objects, Complex-Types

2008-04-23 Thread Deepal jayasinghe



hi,

from the Quickstart-Guide and the Samples I know that a remote-method 
that can be called via SOAP and REST must look like that:

public OMElement echo(OMElement element) throws XMLStreamException

but how to send back custom elements? How to build a OMElement element 
from scratch and send that back?
How do you deal for example if you got a LinkedHashMap with deeply 
nested children's.
I mean I would like to send back a OMElement with deep nested Objects, 
Pojo's Objects, Lists et cetera. How to deal with that? Is there an 
example how to deal with deep nested OMElements?

http://www.developer.com/java/other/article.php/3726461


Is there any book about axis2 in general available?

Will available soon :)

Thank you!
Deepal

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



Re: useOriginalWsdl generates error when set to true.

2008-04-23 Thread Deepal jayasinghe

Could you please send me the service aar file.

Thank you!
Deepal

Hi guys,

I've been working on an Axis2 service and keep getting the same error.  What
I WANT to do is use the original wsdl but modify the soap address and I
can't seem to do that.  When I access the wsdl I would like to set the
original wsdl to true and access the service at:
http://server.com/axis2/services/service?wsdl but I get the error:

error>
Unable to generate WSDL 1.1 for this service

If you wish Axis2 to automatically generate the WSDL 1.1, then please +set
useOriginalwsdl as false in your services.xml



As a result I am forced the use the address with a .wsdl suffix when
referencing my service via clients.  It works, but since it doesn't modify
the wsdl port address I must manually modify the URL on the client side,
which is needless work. I'm currently using Axis2.1.3 on OAS.

My service.xml





http://www.w3.org/ns/wsdl/in-out";
class="ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut"/>

ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton
true
true
http://www.w3.org/ns/wsdl/in-out";>
ExtractAAFCProfile
   
//schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse

TranslatorException




My wsdl service name:



http://localhost:8080/axis2/services/ExtractAAFCProfile"; />


http://localhost:8080/axis2/services/ExtractAAFCProfile"; />




  



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



Re: Stringe Axis2 Error

2008-04-23 Thread Deepal jayasinghe

So do you think this is a bug in Axis2 ?
is there a way to look at the message going out , I mean can you send 
the request via the TCP monitor and see whats Axis2 sending.


Thank you!
Deepal

I'm posting this on a number of site including the ASP.NET forum.  I've got
an Axix2 client running in Tomcat 5.0 on Solaris.  The client is calling a
C# ASP.NET web service running on, obviously, Windows Server 2003.  This is
working on the development server but when moved to QA it fails.  No one has
been able to find anything different from a code or machine configuration
angle but I keep getting the following error:

org.apache.axis2.AxisFault: Server was unable to process request. -->
Keyword not supported: 'asm-108;persist security info'.
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

Any help here would be greatly appreciated...

  



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



Security Policy Subjects

2008-04-23 Thread Sukma Agung Verdianto
Hi All,
I have question regarding Rampart security policy subjects.
Looking at the example provided by Rampart (sampe02), I see the following
policy is attached under wsdl:service, but in the specs it should be in
wsdl:binding or wsdl:port

... ommited parts ...



http://schemas.xmlsoap.org/ws/2004/09/policy";
Id="SigOnly">





http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

... ommited parts ...











... ommited parts ...


Is there any reason why it is there?
We need to know about this since standards is really important for us.
Any advice would be appreciated

Regards,
Sukma


Re: POST operation on REST endpoint

2008-04-23 Thread keith chapman
It depends on the schema totally. If the content Type of your POST is
application/XML then it should look as below.

Here is the request corresponding to the schema below, Here my operation is
expected to send the element foo.

keith26chapmantrue


−






−

−








But if your contentType remains to be x-form-URL-encoded then you cannot
call this operation as you cannot send complex type in that serialization.
You can also call this using the multipart/form-data content Type.

Thanks,
Keith.

On Thu, Apr 24, 2008 at 5:20 AM, Chris Richmond <[EMAIL PROTECTED]>
wrote:

>  So how do I do a POST to a REST endpoint, especially with a complex
> object of strings/numeric/date types from a non axis2/java client.  For
> instance if I wanted to post from a javascript or from php or something less
> robust, what is the format that my post would have to have to the endpoint?
>   I don't need to see how to use the axis2 library on the client to perform
> a POST to my endpoint, but I need to see what the raw content of the post
> should look like, with complex and simple types, as I am not planning on
> using the GET call on the URL(although knowing how to submit complex types
> there would be helpful as well for future reference).
>
> And I am assuming that the response is the same whether using POST or
> GET/URL?
>
>  Thanks,
>
>
> Chris
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Client Jars conflicting - Work around

2008-04-23 Thread Hari C
Hi Faraz,

Thnakyou very much for the reply. I think this option of PARENT_FIRST is
available in websphere and iam using weblogic app server. Even if it is
there it wont solve my problem becuase that will affect other
jars(applications) running inside the same WAR. I was wondering why this
conflict is happening. I have noticed that the
QName(String;String;String;)in stax-api.jar is having 3 parameters and the
one used inside weblogic.jar is having only two.

Is it something like we cant have Axis client if other applications running
inside weblogic are using server classpath jars?. I thought it is a cake
walk implementing the client.

Regards

Hari Pillai

On Wed, Apr 23, 2008 at 6:25 PM, faraz masood <[EMAIL PROTECTED]> wrote:

> Hi Hari,
>
> Have you tried changing the class loader policies for your EAR .
>
> somewhere in your deployment.xml
>
>
> <
> deployedObject xmi:type="appdeployment:ApplicationDeployment" 
> xmi:id="ApplicationDeployment_1207830167461"
> startingWeight="1" warClassLoaderPolicy="SINGLE">
> change this to MULTIPLE
>
> 
> change this to PARENT_LAST
> Best Regards,
> /Faraz
>
>   On Wed, Apr 23, 2008 at 7:16 AM, Hari C <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Hi all
> >
> > I am really stuck with the stax-api.jar conflicting with weblogic.jar.I
> > know that this problem is posted before in this forum.The solutions which
> > are told are not solving my problem.I have explained it towards the end of
> > the mail.  My webservice client is throwing following error during runtime
> >
> >
> > <[ServletContext(id=12698664,name=fflyer,context-path=/fflyer)] Root cause
> > of ServletExcepti
> > on.
> > java.lang.NoSuchMethodError:
> > javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
> >
> > at
> > au.com.qantas.fflyer.loyaltypointsconverter.services.AnySeatRedemptionServiceStub$GetAnySeatParameters.(AnySeatRedemptionServiceStub
> >
> > .java:1885)
> > at
> > au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.createAnySeatParamResponse(ASRBookingConversionHelper.java:90)
> >
> > at
> > au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.getConversionStr(ASRBookingConversionHelper.java:65)
> >
> > at
> > au.com.qantas.asrbooking.tripflow.impl.ASRPointsConverterAccessorImpl.getConvertionString(ASRPointsConverterAccessorImpl.java:26)
> >
> > at
> > au.com.qantas.asrbooking.tripflow.impl.ASRSelectionAccessorImpl.getConversionData(ASRSelectionAccessorImpl.java:328)
> >
> > at
> > au.com.qantas.asrbooking.tripflow.ASRTripflowExecutionContext.(ASRTripflowExecutionContext.java:64)
> >
> > at
> > au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.generateTripflow(ASRBookingSearchBusinessDelegate.java:89)
> >
> > at
> > au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.getTripflowURL(ASRBookingSearchBusinessDelegate.java:53)
> >
> > at
> > au.com.qantas.asrbooking.application.ASRBookingSearchAction.execute(ASRBookingSearchAction.java:183)
> >
> > at
> > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
> >
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
> >
> > at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
> >
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
> >
> > at
> > weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> > at
> > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > at
> > au.com.qantas.ecomm.registration.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:104)
> >
> > at
> > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > at
> > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
> >
> > at
> > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> >
> > at
> > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
> >
> > at
> > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
> >
> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> >
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> > >
> >
> >
> >
> > The solutions which i know are
> >
> > 1. Adding th

POST operation on REST endpoint

2008-04-23 Thread Chris Richmond
So how do I do a POST to a REST endpoint, especially with a complex object
of strings/numeric/date types from a non axis2/java client.  For instance if
I wanted to post from a javascript or from php or something less robust,
what is the format that my post would have to have to the endpoint?   I
don't need to see how to use the axis2 library on the client to perform a
POST to my endpoint, but I need to see what the raw content of the post
should look like, with complex and simple types, as I am not planning on
using the GET call on the URL(although knowing how to submit complex types
there would be helpful as well for future reference).

And I am assuming that the response is the same whether using POST or
GET/URL?



Thanks,


Chris



setting max memory

2008-04-23 Thread Chris Richmond
Hello, all..

 

How do I set the maximum memory for the axis/tomcat jvm to use?



I put the following line in the Catalina.bat:

 

..

rem

rem   JRE_HOMEMust point at your Java Runtime installation.

rem   Defaults to JAVA_HOME if empty.

rem

set JAVA_OPTS = -Xms512m -Xmx512m

rem   JAVA_OPTS   (Optional) Java runtime options used when the "start",

rem   "stop", or "run" command is executed

rem

rem   JSSE_HOME   (Optional) 



 

But whether I have that line added in or not, I get the same value for:

 

   Runtime rt = Runtime.getRuntime();

return rt.maxMemory();

 

which always yields the same value:

 

66650112 

 

So it seems like I am not setting memory correctly.

Can someone suggest what I might be doing wrong?

 

Thanks

 

Chris



RE: Transport error: 403 Error: access forbidden

2008-04-23 Thread Chris Richmond
Vikas,

 

I tried modifying the Catalina.bat to use:

 

set JAVA_OPTS=  Xms512 and Xmx512 

 

but I still get the same error after about the same number of rapid calls.
Keeping in  mind that my service is also a wrapper for another web service
so each call handles the incoming request and instantiates an ADB client to
another service(.net service) to pass through and pass results back again,
is there possibly someplace else I need to modify memory settings?

 

Thanks

 

Chris

 

 

 

 

  _  

From: Vikas Gujjar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 22, 2008 5:39 PM
To: axis-user@ws.apache.org
Subject: Re: Transport error: 403 Error: access forbidden

 

Hi Chris,

It turned out that dev instance I was using had pretty low JVM memory
settings (much lower than the previously tuned and tested value).  Once the
settings was fixed, The error has disappeared... We took a hundred hits from
the .NET client and all is fine.

Thanks,
Vikas

On Fri, Apr 18, 2008 at 4:41 PM, Chris Richmond <[EMAIL PROTECTED]>
wrote:

Did you ever resolve it?  

 

Was your service like mine, where your service implementation actually
instantiaded an adb client to another service itself..sort of as a
passthrough service?  I'm trying to determine if that part of the
problem..although I don't know why it should be, unless Axis libraries are
very poorly implemented.

 

So how did you get yours system production ready with such low performance
threshold?

 

Thanks,


Chris

 

  _  

From: Vikas Gujjar [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 12:17 PM
To: axis-user@ws.apache.org
Subject: Re: Transport error: 403 Error: access forbidden

 

Hi Chris,

I faced this issue a short while back (rather still facing it). I
temporarily inserted a catch throwable around the web service implementation
class and discovered that one of the operation I was performing was
resulting in OutOfMemoryError after few calls from the client.

Hope this helps.

Thanks,
Vikas

On Wed, Apr 16, 2008 at 11:03 PM, Deepal Jayasinghe <[EMAIL PROTECTED]>
wrote:

hi Chris ,
Any possibility of creating test case ? if so that would be a great help to
fix the issue.
Or even send you service aar file.

Thank you!
Deepal

 


Hello all,

 
I am having a strange problem. I have built a POJO web service that is
itself an ADB client to another ws(.NET) and all works fine,  but I notice
for some reason when I use my test client make calls multiple times..and I
don't even mean load testing..but just manually call via a button click like
once a second..or even less.by 10 calls or so it throws an exception on the
server(shown below) .   I can loop calls and it will run 10 or so ok, then
start throwing this exception for several, then run a few more ok, then
throw this exception back and forth like that.  I am not using SSL, https,
or any other thing like that either , and as I said I'm using ADB.  It seems
like some sort of loading/performance issue, but I never see any spike in
CPU usage and as I said, I am doing ridiculously low call frequency.
Perhaps there is a resource issue by having an Axis2 web service that is
both a service and a client to another WS? That should work fine, but maybe
I need to take special steps?  If anyone has any ideas on this, please help
me out.

 
Thanks,

 
Chris

 
[ERROR] org.apache.axis2.AxisFault: Transport error: 403 Error: Access
Forbidden

java.lang.reflect.InvocationTargetException

   at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)

   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

   at java.lang.reflect.Method.invoke(Method.java:597)

   at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)

   at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.java:98)

   at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
AbstractInOutMessageReceiver.jav

:40)

   at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe
ceiver.java:96)

   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)

   at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:275)

   at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:175)

   at
org.apache.catalina.core.StandardHostValve.invoke(StandardH

RE: Transport error: 403 Error: access forbidden

2008-04-23 Thread Chris Richmond
I was thinking the same thing, but got moved onto something else before I
tested it out.  I will try that?

 

 

So a question arises from this for me?  What sorts of jvm memory numbers are
people using for axis2 deployed webservices?

 

Thanks,

 

Chris

 

  _  

From: Vikas Gujjar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 22, 2008 5:39 PM
To: axis-user@ws.apache.org
Subject: Re: Transport error: 403 Error: access forbidden

 

Hi Chris,

It turned out that dev instance I was using had pretty low JVM memory
settings (much lower than the previously tuned and tested value).  Once the
settings was fixed, The error has disappeared... We took a hundred hits from
the .NET client and all is fine.

Thanks,
Vikas

On Fri, Apr 18, 2008 at 4:41 PM, Chris Richmond <[EMAIL PROTECTED]>
wrote:

Did you ever resolve it?  

 

Was your service like mine, where your service implementation actually
instantiaded an adb client to another service itself..sort of as a
passthrough service?  I'm trying to determine if that part of the
problem..although I don't know why it should be, unless Axis libraries are
very poorly implemented.

 

So how did you get yours system production ready with such low performance
threshold?

 

Thanks,


Chris

 

  _  

From: Vikas Gujjar [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 12:17 PM
To: axis-user@ws.apache.org
Subject: Re: Transport error: 403 Error: access forbidden

 

Hi Chris,

I faced this issue a short while back (rather still facing it). I
temporarily inserted a catch throwable around the web service implementation
class and discovered that one of the operation I was performing was
resulting in OutOfMemoryError after few calls from the client.

Hope this helps.

Thanks,
Vikas

On Wed, Apr 16, 2008 at 11:03 PM, Deepal Jayasinghe <[EMAIL PROTECTED]>
wrote:

hi Chris ,
Any possibility of creating test case ? if so that would be a great help to
fix the issue.
Or even send you service aar file.

Thank you!
Deepal

 


Hello all,

 
I am having a strange problem. I have built a POJO web service that is
itself an ADB client to another ws(.NET) and all works fine,  but I notice
for some reason when I use my test client make calls multiple times..and I
don't even mean load testing..but just manually call via a button click like
once a second..or even less.by 10 calls or so it throws an exception on the
server(shown below) .   I can loop calls and it will run 10 or so ok, then
start throwing this exception for several, then run a few more ok, then
throw this exception back and forth like that.  I am not using SSL, https,
or any other thing like that either , and as I said I'm using ADB.  It seems
like some sort of loading/performance issue, but I never see any spike in
CPU usage and as I said, I am doing ridiculously low call frequency.
Perhaps there is a resource issue by having an Axis2 web service that is
both a service and a client to another WS? That should work fine, but maybe
I need to take special steps?  If anyone has any ideas on this, please help
me out.

 
Thanks,

 
Chris

 
[ERROR] org.apache.axis2.AxisFault: Transport error: 403 Error: Access
Forbidden

java.lang.reflect.InvocationTargetException

   at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)

   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

   at java.lang.reflect.Method.invoke(Method.java:597)

   at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)

   at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.java:98)

   at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
AbstractInOutMessageReceiver.jav

:40)

   at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe
ceiver.java:96)

   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)

   at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:275)

   at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:175)

   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)

   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)

   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

   at
org.apache.catalina.co

Re: useOriginalWsdl generates error when set to true.

2008-04-23 Thread silver17

I've uploaded the WSDL. On inspection of the console window for OC4J I also
found this error:

"Could not create URL from 'META-INF/ExtractAAFCProfile.wsdl' and
'http://www.w3.org/2005/05/xmlmime";

This seems like a major issue.





silver17 wrote:
> 
> Hi guys,
> 
> I've been working on an Axis2 service and keep getting the same error. 
> What I WANT to do is use the original wsdl but modify the soap address and
> I can't seem to do that.  When I access the wsdl I would like to set the
> original wsdl to true and access the service at:
> http://server.com/axis2/services/service?wsdl but I get the error:
> 
> error>
> Unable to generate WSDL 1.1 for this service
>   
> If you wish Axis2 to automatically generate the WSDL 1.1, then please +set
> useOriginalwsdl as false in your services.xml
> 
> 
> 
> As a result I am forced the use the address with a .wsdl suffix when
> referencing my service via clients.  It works, but since it doesn't modify
> the wsdl port address I must manually modify the URL on the client side,
> which is needless work. I'm currently using Axis2.1.3 on OAS.
> 
> My service.xml
> 
> 
> 
> 
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut"/>
> 
>  name="ServiceClass">ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton
> true
> true
>  mep="http://www.w3.org/ns/wsdl/in-out";>
> ExtractAAFCProfile
>
> //schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse
>  faultName="TranslatorFault">TranslatorException
> 
> 
> 
> 
> My wsdl service name:
> 
>   
>  binding="nlwis:ExtractAAFCProfile_SOAP12Binding">
>  
> location="http://localhost:8080/axis2/services/ExtractAAFCProfile"; />
>   
>  binding="nlwis:ExtractAAFCProfile_SOAP11Binding">
>  
> location="http://localhost:8080/axis2/services/ExtractAAFCProfile"; />
>   
>   
> 
> 
> 
http://www.nabble.com/file/p16834721/ExtractAAFCProfile.wsdl
ExtractAAFCProfile.wsdl 
-- 
View this message in context: 
http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p16834721.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Stringe Axis2 Error

2008-04-23 Thread charlesvgoff

I'm posting this on a number of site including the ASP.NET forum.  I've got
an Axix2 client running in Tomcat 5.0 on Solaris.  The client is calling a
C# ASP.NET web service running on, obviously, Windows Server 2003.  This is
working on the development server but when moved to QA it fails.  No one has
been able to find anything different from a code or machine configuration
angle but I keep getting the following error:

org.apache.axis2.AxisFault: Server was unable to process request. -->
Keyword not supported: 'asm-108;persist security info'.
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

Any help here would be greatly appreciated...

-- 
View this message in context: 
http://www.nabble.com/Stringe-Axis2-Error-tp16834695p16834695.html
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: No type was mapped to the name Security (WS-Security)

2008-04-23 Thread Vinh Nguyen (vinguye2)
No, that only defines the "wsse" namespace prefix in your wsdl.  You
need something like:
 
   
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss
-wssecurity-secext-1.0.xsd
 ">
   

   


 


From: Ariel Janson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 23, 2008 6:22 AM
To: axis-user@ws.apache.org
Subject: Re: No type was mapped to the name Security (WS-Security)


At the top of the WSDL I have a wsdl definitions tag with a xmlns:wsse
pointing to the xsd like this: 

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
curity-secext-1.0.xsd">


...







Isnt that enough?


Ariel

On Wed, Apr 23, 2008 at 5:27 AM, Vinh Nguyen (vinguye2)
<[EMAIL PROTECTED]> wrote:


Do you have the "wsse:Security" element defined/imported in your
wsdl?  It's referenced by your "Header" message.
 



From: Ariel Janson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 22, 2008 1:32 PM
To: axis-user@ws.apache.org
Subject: No type was mapped to the name Security (WS-Security)



I'm experiencing this weird error when I try to run wsdl2java on
a
WS-Security enabled web service.

Here is the full error:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was mapped
to the name Security with namespace

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at

org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:265)
at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was mapped
to the name Security with namespace

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.emitStub(AxisServiceBasedMultiLanguageEmitter.java:532)
at

org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:254)
... 2 more
Caused by:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type
was mapped to the name Security with namespace

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at

org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(
TypeMappingAdapter.java:82)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.getParameterElementList(AxisServiceBasedMultiLanguageEmitter.java:314
0)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2633)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2196)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2122)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmit
ter.java:1149)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1115)
at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.emitStub(AxisServiceBasedMultiLanguageEmitter.java:495)
... 3 more

The WSDL has this defined at the header:

xmlns:wsse="

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
"

 

and then this:





Any ideas?

Ariel




useOriginalWsdl generates error when set to true.

2008-04-23 Thread silver17

Hi guys,

I've been working on an Axis2 service and keep getting the same error.  What
I WANT to do is use the original wsdl but modify the soap address and I
can't seem to do that.  When I access the wsdl I would like to set the
original wsdl to true and access the service at:
http://server.com/axis2/services/service?wsdl but I get the error:

error>
Unable to generate WSDL 1.1 for this service

If you wish Axis2 to automatically generate the WSDL 1.1, then please +set
useOriginalwsdl as false in your services.xml



As a result I am forced the use the address with a .wsdl suffix when
referencing my service via clients.  It works, but since it doesn't modify
the wsdl port address I must manually modify the URL on the client side,
which is needless work. I'm currently using Axis2.1.3 on OAS.

My service.xml





http://www.w3.org/ns/wsdl/in-out";
class="ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut"/>

ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton
true
true
http://www.w3.org/ns/wsdl/in-out";>
ExtractAAFCProfile
   
//schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse
TranslatorException




My wsdl service name:



http://localhost:8080/axis2/services/ExtractAAFCProfile"; />


http://localhost:8080/axis2/services/ExtractAAFCProfile"; />




-- 
View this message in context: 
http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p16834658.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Axis 1.4 NoClassDefFoundError on JBoss

2008-04-23 Thread Nadeem Awad

Hi all,
We have an application deployed on JBoss 4.0.4. Some parts of the
application depend on accessing some web services. We are using Apache Axis
1.4 for that.
We had a need to deploy another version of a running application on the same
server. After doing so, I noticed that the EJB classes are loaded in a
shared class loader, which caused the web application to call the wrong
EJBs. Consequently, we’ve changed the JBoss configuration to isolate EAR
deployments as follows:



ear-deployer.xml:

true




Then the two applications were successfully deployed on the same server.
However, since then we’ve started receiving some unexpected exceptions from
the server, when the application is trying to access any of the web services
using the Axis client. The problem is that the exception message is not
descriptive at all, and there’s no specific scenario to trigger them.  When
we first start up the JBoss, everything works fine. After a certain period
of time, this exception happens and we have to restart the JBoss again to
resolve it.
The exception stack trace is as follows:



Caused by: javax.ejb.EJBException: Unexpected Error
java.lang.NoClassDefFoundError
at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at
com.elm.ais.services.erissuance.client.ExitEntryVisaLocator.(ExitEntryVisaLocator.java:14)
at
com.elm.ais.services.erissuance.ExitEntryVisaClient.getServiceProxy(ExitEntryVisaClient.java:229)
at
com.elm.ais.services.erissuance.ExitEntryVisaClient.validateAlienInformation(ExitEntryVisaClient.java:69)
at
com.elm.ais.ejb.blbeans.FunctionsBean.validateAlienInformation(FunctionsBean.java:2951)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at
org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:64)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy93.validateAlienInformation(Unknown Source)
at
com.elm.ais.ejb.AISFacadeBean.validateAlienInformation(AISFacadeBean.java:2688)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at
org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpo

OMElements, REST, deeply nested Objects, Complex-Types

2008-04-23 Thread Sebastian Wagner
hi,

from the Quickstart-Guide and the Samples I know that a remote-method that
can be called via SOAP and REST must look like that:
public OMElement echo(OMElement element) throws XMLStreamException

but how to send back custom elements? How to build a OMElement element from
scratch and send that back?
How do you deal for example if you got a LinkedHashMap with deeply nested
children's.
I mean I would like to send back a OMElement with deep nested Objects,
Pojo's Objects, Lists et cetera. How to deal with that? Is there an example
how to deal with deep nested OMElements?

Is there any book about axis2 in general available?
I found one releasing at May 2008. Any other recommendations?

thank you,
sebastian

-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
[EMAIL PROTECTED]


Re: No type was mapped to the name Security (WS-Security)

2008-04-23 Thread Ariel Janson
At the top of the WSDL I have a wsdl definitions tag with a xmlns:wsse
pointing to the xsd like this:
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">

...




Isnt that enough?

Ariel

On Wed, Apr 23, 2008 at 5:27 AM, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]>
wrote:

>  Do you have the "wsse:Security" element defined/imported in your wsdl?
> It's referenced by your "Header" message.
>
>
>  --
> *From:* Ariel Janson [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, April 22, 2008 1:32 PM
> *To:* axis-user@ws.apache.org
> *Subject:* No type was mapped to the name Security (WS-Security)
>
>  I'm experiencing this weird error when I try to run wsdl2java on a
> WS-Security enabled web service.
>
> Here is the full error:
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
> mapped
> to the name Security with namespace
>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> at
>
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
> mapped
> to the name Security with namespace
>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:532)
> at
>
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:254)
> ... 2 more
> Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
> type
> was mapped to the name Security with namespace
>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> at
>
> org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getParameterElementList(AxisServiceBasedMultiLanguageEmitter.java:3140)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2633)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2196)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2122)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1149)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1115)
> at
>
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:495)
> ... 3 more
>
> The WSDL has this defined at the header:
>
> xmlns:wsse="
>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
>
>
>
> and then this:
>
> 
> 
> 
>
> Any ideas?
>
> Ariel
>


Re: Axis2 cluster not working on Amazon EC2

2008-04-23 Thread Afkham Azeez
Hi Jeff,
Axis2 clustering does not work on EC2 at the moment. This is because the
Group Membership Protocol (GMP) uses multicast based member discovery.
However, when you start two nodes on EC2, generally, the IP is randomly
assigned by Amazon from a list of available IPs, unless you use elastic IPs.
Even if elastic IPs are used, you cannot request for a specific IP address,
hence it is difficult to get the two IPs such that they belong to the same
multicast domain. Anyway, Amazon disallows multicasting at the moment.

We are investigating whether we can use some other mechanism for group
membership management.

HTH
Azeez

On Sun, Apr 20, 2008 at 2:52 PM, Jeff Tomas <[EMAIL PROTECTED]> wrote:

> We are planning to use Axis2 for a deployment on Amazon EC2. I have created
> an AMI containing an Axis2 instance which is configured for clustering. I
> have specified a group name. I started two instances of this AMI, and on
> this AMIs I started an Axis2 instance each. However, I found that these
> Axis2 nodes cannot communicate with each other. I have enabled the cluster
> section in my axis2.xml file. Is there any other configuration that needs to
> be set to enable clustering? Any help is highly appreciated.
>
> Thanks in advance
> Jeff
>



-- 
Thanks
Afkham Azeez

http://azeez78.blogspot.com
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760


Is it possible to invoke jws service in Axis2?

2008-04-23 Thread Chinmoy Chakraborty
Is it possible to invoke jws service in Axis2? if yes, then how? Do I need
to create .aar file for that?

Chinmoy


GUID-like wsu:Id

2008-04-23 Thread A Andrew
Hi all!

I've configured WSDoAllSender for my client application as follows:


   
   
   
   
   
   


AXIS client generates the following request with

wsu:Id="UsernameToken-19653053"
and
wsu:Id="Timestamp-8897128"

How can I make these wsu:Ids GUID-like
(for example wsu:Id="Timestamp-7ffcec19-5e0b-497b-a1d6-130270590788">)

Thanks!

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



How to deploy a service on 2 different ports?

2008-04-23 Thread Sanjay Vivek
Hi all,

How do I go about deploying the same service on 2 different ports? What
do I have to configure or edit with respect to config files? I would be
really grateful if anyone could point me in the right direction. Cheers.

Regards
--
Sanjay Vivek
Web Analyst
Middleware Team
ISS
University of Newcastle Upon Tyne

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



Problem retrieving cookie information

2008-04-23 Thread Rajat Bhushan


Hi guys.

  I am facing some problems at client side using AXIS2 to access 
multiple cookies returned to the java client by a .NET web service. I 
had posted this problem earlier but it got lost in the mailing list. Can 
somebody please help me with some other method or documentation to 
access multiple cookies with same tcp header key "Set-Cookie" from the 
web service response.


Thanks in advance,
Rajat Bhushan



 Original Message 
Subject:Problem retrieving cookie information
Date:   Tue, 15 Apr 2008 20:18:26 +0530
From:   Rajat Bhushan <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org



Hi .

  I am writing a Java client to call a .NET web service which is used 
for authentication purposes. This authentication service return me 2 
cookies. One with attribute name : ".ASPXAUTH"

and other one with attribute name : "PWA656".
I was having problem accessing the cookie. So I used the following code 
snippet :



  OMElement loginRequest = loginRequest(username,password);
  Options options = new Options();
  options.setAction(NAMESPACELogin+"Login");
  options.setTimeOutInMilliSeconds(TIMEOUT);
  options.setTo(targetEPR1);
  client.setOptions(options);
  OMElement result = client.sendReceive(loginRequest); 
if(((CommonsTransportHeaders)((MessageContext)client.getServiceContext().getLastOperationContext().getMessageContexts().get("In")).getProperty("TRANSPORT_HEADERS")).get("Set-Cookie") 
!= null) {
this.setCookie(((CommonsTransportHeaders)((MessageContext)client.getServiceContext().getLastOperationContext().getMessageContexts().get("In")).getProperty("TRANSPORT_HEADERS")).get("Set-Cookie").toString());

}


Now my problem is that a "getProperty" operation on 
CommonsTransportHeaders object actually accesses a HeaderMap which is a 
HashMap. When this HashMap is initialized, the cookie value is 
overwritten as they both have same key "Set-Cookie". So I am able to 
access only one of them. The one I need is overwritten and is not 
accessible.


Can someone please suggest a method by which I can access both the 
cookies so that I may use the one I need or point me to some other post 
where this problem is addressed.


Thanks,
Rajat Bhushan




Re: REST with Axis 2

2008-04-23 Thread keith chapman
If you are using a newer version of Axis2 (If I remember right >1.1) Both
REST and SOAP are served off the same endpoint. Also REST is enabled by
default unless u explicitly turn it off.

Thanks,
Keith.

On Wed, Apr 23, 2008 at 11:58 AM, <[EMAIL PROTECTED]> wrote:

>  Hello,
>
> I want built a Rest Service with Axis 2. Normally , Axis automatically
> built 2 Services, one for EPR and one for REST.
>
> On my machine I only get a SOAP Service. So, what do I have to do for
> getting a REST Service with Axis2 ?
>
> I think , it's something with the parameters in axis2.xml, I do not know,
> which parameters I have to change to get
> a REST Endpoint automaticly .
>
> So , if You have 2 Endpoint, it would be nice, when you send me your
> Config parameters.
>
>
> Thanks a lot.
>
>
> Best regards
> Jörn
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: No type was mapped to the name Security (WS-Security)

2008-04-23 Thread Vinh Nguyen (vinguye2)
Do you have the "wsse:Security" element defined/imported in your wsdl?
It's referenced by your "Header" message.
 



From: Ariel Janson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 22, 2008 1:32 PM
To: axis-user@ws.apache.org
Subject: No type was mapped to the name Security (WS-Security)



I'm experiencing this weird error when I try to run wsdl2java on a
WS-Security enabled web service.

Here is the full error:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped
to the name Security with namespace
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped
to the name Security with namespace
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.emitStub(AxisServiceBasedMultiLanguageEmitter.java:532)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:254)
... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type
was mapped to the name Security with namespace
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(
TypeMappingAdapter.java:82)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.getParameterElementList(AxisServiceBasedMultiLanguageEmitter.java:314
0)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2633)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2196)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2122)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmit
ter.java:1149)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1115)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitt
er.emitStub(AxisServiceBasedMultiLanguageEmitter.java:495)
... 3 more

The WSDL has this defined at the header:

xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd
"

 

and then this:





Any ideas?

Ariel



Re: Client Jars conflicting - Work around

2008-04-23 Thread faraz masood
Hi Hari,

Have you tried changing the class loader policies for your EAR .

somewhere in your deployment.xml



change this to MULTIPLE



change this to PARENT_LAST

Best Regards,
/Faraz

On Wed, Apr 23, 2008 at 7:16 AM, Hari C <[EMAIL PROTECTED]> wrote:

>
> Hi all
>
> I am really stuck with the stax-api.jar conflicting with weblogic.jar.I
> know that this problem is posted before in this forum.The solutions which
> are told are not solving my problem.I have explained it towards the end of
> the mail.  My webservice client is throwing following error during runtime
>
>
> <[ServletContext(id=12698664,name=fflyer,context-path=/fflyer)] Root cause
> of ServletExcepti
> on.
> java.lang.NoSuchMethodError:
> javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
>
> at
> au.com.qantas.fflyer.loyaltypointsconverter.services.AnySeatRedemptionServiceStub$GetAnySeatParameters.(AnySeatRedemptionServiceStub
>
> .java:1885)
> at
> au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.createAnySeatParamResponse(ASRBookingConversionHelper.java:90)
>
> at
> au.com.qantas.asrbooking.tripflow.ASRBookingConversionHelper.getConversionStr(ASRBookingConversionHelper.java:65)
>
> at
> au.com.qantas.asrbooking.tripflow.impl.ASRPointsConverterAccessorImpl.getConvertionString(ASRPointsConverterAccessorImpl.java:26)
>
> at
> au.com.qantas.asrbooking.tripflow.impl.ASRSelectionAccessorImpl.getConversionData(ASRSelectionAccessorImpl.java:328)
>
> at
> au.com.qantas.asrbooking.tripflow.ASRTripflowExecutionContext.(ASRTripflowExecutionContext.java:64)
>
> at
> au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.generateTripflow(ASRBookingSearchBusinessDelegate.java:89)
>
> at
> au.com.qantas.asrbooking.bom.ASRBookingSearchBusinessDelegate.getTripflowURL(ASRBookingSearchBusinessDelegate.java:53)
>
> at
> au.com.qantas.asrbooking.application.ASRBookingSearchAction.execute(ASRBookingSearchAction.java:183)
>
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
>
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
>
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
>
> at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> au.com.qantas.ecomm.registration.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:104)
>
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
>
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
>
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
>
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> >
>
>
>
> The solutions which i know are
>
> 1. Adding the stax-api.jar before weblogic.jar in the startup script.
>
>  I cant implement this solution because i have lot of applications working
> inside the same ear and client is not permitting this configuraton change as
> this may affect the other systems
>
>
> 2.Make  to true forcing weblogic to pick the jars
> from the webinf lib
>
>  This also creates problem for me as other applications running inside the
> server is expectting so many jars from the server class path.
>
>
> I cant apply these two solutions, could any one suggest some other work
> around. Does it mean that we cant have axis client running in weblogic if
> some other applications are also running.Hope this is not the case and some
> other better solution is there.
> Regards
>
> Hari
>
>
> --
> Hari.C
>


Re: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL

2008-04-23 Thread Eric Chow
Hi Keith,

I know this. But the WSDL was provide by the service provider. I am
now going to use this WSDL to generate a stub but failed.
I tried to use Axis2's OMElement with ServiceClient to invoke the
service, it works. How strange is it? Would you please to teach me how
 I can generate the stub for that WSDL?

Best regards,
Eric



On Tue, Apr 22, 2008 at 5:34 PM, keith chapman <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> Your schema contains duplicate entries for ConfigurationContext (Lines
> 445-482)
>
> 
> 
> 
>  
>  name="axisConfiguration" nillable="true" type="ax244:AxisConfiguration"/>
>   nillable="true" type="xs:string"/>
>  nillable="true" type="ax244:ListenerManager"/>
>   nillable="true" type="ns10:ConfigurationContext"/>
>  name="serviceContextPath" nillable="true" type="xs:string"/>
>   name="serviceGroupContextIDs" nillable="true" type="xs:string"/>
>  name="serviceGroupContextTimoutInterval" type="xs:long"/>
>   name="serviceGroupContexts" nillable="true" type="xs:anyType"/>
>  nillable="true" type="xs:string"/>
>   nillable="true" type="ax247:ThreadFactory"/>
>  name="transportManager" nillable="true" type="ax244:ListenerManager"/>
>  
> 
> 
> 
> 
>  
> 
> 
>  name="axisConfiguration" nillable="true" type="ax244:AxisConfiguration"/>
>   nillable="true" type="xs:string"/>
>  nillable="true" type="ax244:ListenerManager"/>
>   nillable="true" type="ns10:ConfigurationContext"/>
>  name="serviceContextPath" nillable="true" type="xs:string"/>
>   name="serviceGroupContextIDs" nillable="true" type="xs:string"/>
>  name="serviceGroupContextTimoutInterval" type="xs:long"/>
>   name="serviceGroupContexts" nillable="true" type="xs:anyType"/>
>  nillable="true" type="xs:string"/>
>   nillable="true" type="ax247:ThreadFactory"/>
>  name="transportManager" nillable="true" type="ax244:ListenerManager"/>
>  
> 
> 
> 
>
> Thanks,
> Keith.
>
>
>
>  On Tue, Apr 22, 2008 at 2:46 PM, Eric Chow <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hello,
> >
> > When I tried to use wsdl2java to generate the Java Stub client, it
> > just raised the CodeGenerationException: Error parsing WSDL.
> >
> > The attachment is my WSDL.
> >
> > Please help me how can I generate the Java Client with Axis2 or Axis-1.4 ?
> >
> >
> >
> > The following is the exception when using Axis2:
> >
> > Buildfile: D:\Projects\workspace\office\eDocAlert\build.xml
> > init:
> > wsdl2java:
> >[java] log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
> >[java] log4j:WARN Please initialize the log4j system properly.
> >[java] Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > WSDL
> >[java] at
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:147)
> >[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> >[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> >[java] Caused by: org.apache.axis2.AxisFault: Schema for
> > namespace 'http://context.axis2.apache.org/xsd' already contains type
> > 'ConfigurationContext
> >[java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> >[java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:291)
> >[java] at
> >
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
> >[java] at
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:141)
> >[java] ... 2 more
> >[java] Caused by: java.lang.RuntimeException: Schema for
> > namespace 'http://context.axis2.apache.org/xsd' already contains type
> > 'ConfigurationContext
> >[java] at
> > org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:311)
> >[java] at
> >
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:158)
> >[java] at
> >
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCo

Best way to call a RPC/Encoded style webservice

2008-04-23 Thread Christophe Hamerling
Hi all,

I need to call a RPC/Encoded WS. Unfortunatly, this style has been
deprecated and it is not possible to build Stub from WSDL with codegen.
So, I know that it is possible to build the payload myself with AXIOM. But
is there any other solution? For example something like a proxy or something
else?

Thanks a lot
Christophe

-- 
Christophe Hamerling
PEtALS ESB Research Engineer / Product Manager @ eBM WebSourcing
Phone : +33534320314
Skype : christophe.hamerling