Re: trouble redeploying handlers

2006-01-31 Thread Deepal Jayasinghe
hmmm , that can  not be unless you have some files in commons lib , or the 
lib that CCL pick up , I have test that and I don't have any problem , any 
way pls try it again ,

1. do the changes
2. re-create mar file
3. re-deploy that
4. re-start the server

if you still have the problem pls create JIRA

Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Brian Shields" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, January 31, 2006 11:08 PM
Subject: trouble redeploying handlers



Hello,
I am having some trouble redeploying a handler .mar file in axis2. The 
engine seems to have an old reference to the classes inside my module and 
any changes i make are not being reflected when i repackage the module and 
redeploy it. I am restarting the web server and it is still referencing 
the older version of the classes!! Any ideas?


--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.






Re: [Axis2] services.xml

2006-01-31 Thread Deepal Jayasinghe

hi Tony

pls see my comments below;

Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Tony Dean" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, February 01, 2006 6:25 AM
Subject: [Axis2] services.xml


Hi,

Can anyone answer a few simple questions:

1) I don't think this is possible, but wanted to ask.  Can you define more 
than one service in services.xml?


yes , you can have more than one serivce element in services.xml and that we 
called service group; and the way is as follows


 
 






2) I have seen serviceGroups defined, but do not know their exact purpose 
(somehow relating services together)?

Couldn't find any documentation on the subject.


well that is easy way of deploying mutiple services in one aar file , and in 
the meanwhile at the run time you can manage sessions accros services using 
serviceGroup contex for that service group




3) Can the service implementation class reside in lib/my.jar or does it have 
to be in top level class?  I assume
it can be in a bundled jar in the .aar just like other dependent jars 
(assuming classloading is working properly),
but haven't tried it.  I have always deployed with the implementation class 
unjar'ed.




yes you can put ur service impl class itself as a seperate jar inside aar




Thanks.

Tony Dean
SAS Institute Inc.
919.531.6704
[EMAIL PROTECTED]

SAS... The Power to Know
http://www.sas.com





Re: How to use soap 1.2 ?

2006-01-31 Thread Jarmo Doc
Thanks for the diplomatic correction, Anne.  Re. my flawed suggestion, I'm 
sure that I either read it somewhere semi-authoritative or saw it in code -- 
I will obviously have to go and burn that source!




From: Anne Thomas Manes <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: How to use soap 1.2 ?
Date: Fri, 27 Jan 2006 07:21:45 -0500

Almost -- but not quite. You indicate whether you are using SOAP 1.1 or 
SOAP

1.2 in the wsdlsoap namespace declaration:

xmlns:wsdlsoap11="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdlsoap12="http://schemas.xmlsoap.org/wsdl/soap12/";

You actually use the same transport URI for both, but the soap binding
element is in a different namespace:

http://schemas.xmlsoap.org/soap/http";
style="document" />
http://schemas.xmlsoap.org/soap/http";
style="document" />

There's also a new attribute on the binding operation definition:
soapActionRequired

 http://tempuri.org/SayHelloWorld";
soapActionRequired="true" style="document" />

There's also a new SOAP encoding URI:

 http://www.w3.org/2001/12/soap-encoding"; />

An example of a SOAP 1.2 WSDL is available through the soapbuilders
discussion list on yahoogroups (you must be a member to access it):
http://f3.grp.yahoofs.com/v1/QAvaQ8bN6IevGcPZTnUJEqhfEu4ipMPbHSiIbrZjmQL6bkfrZmCyEd-8GQCjJVc6m4OzFDRFAXw-0Q7kQ6KAi8w-9NM1_dk/soap12WSDL.htm

I don't know how to tell Axis to use SOAP 1.2, but I assume there's a
parameter in java2wsdl and in the WSDD.

Anne

Anne

On 1/26/06, Jarmo Doc <[EMAIL PROTECTED]> wrote:
>
> I believe that it's all in the transport binding:
>
> - transport="http://schemas.xmlsoap.org/soap/http"; (SOAP 1.1)
> - transport="http://www.w3.org/2003/05/soap-envelope"; (SOAP 1.2)
>
>
> >From: Nicolas De Loof <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: How to use soap 1.2 ?
> >Date: Thu, 26 Jan 2006 11:45:33 +0100
> >
> >
> >How to configure Axis servlet to use SOAP 1.2 ?


_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




RE: axis.development.system

2006-01-31 Thread Jarmo Doc

Ah, seems to be a known bug:

http://issues.apache.org/jira/browse/AXIS-1642



From: "Jarmo Doc" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: axis.development.system
Date: Sat, 28 Jan 2006 13:49:25 -0800

I have switched off axis.development.system in my server-config.wsdd file 
yet Axis 1.3 continues to attach server-side stack trace to every fault.  
Is there another setting that takes precedence?



 


Thanks.


_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




Re: [Axis2] services.xml

2006-01-31 Thread Eran Chinthaka


Tony Dean wrote:

>Hi,
>
>Can anyone answer a few simple questions:
>
>1) I don't think this is possible, but wanted to ask.  Can you define more 
>than one service in services.xml?
>  
>
Yes, thats the reason why it was renamed to services.xml from service.xml.

>2) I have seen serviceGroups defined, but do not know their exact purpose 
>(somehow relating services together)?
>Couldn't find any documentation on the subject.
>  
>
Yep, it is to categorize related services together so that one can share
some information across services using ServiceGroupContext.

>3) Can the service implementation class reside in lib/my.jar or does it have 
>to be in top level class?  I assume
>it can be in a bundled jar in the .aar just like other dependent jars 
>(assuming classloading is working properly),
>but haven't tried it.  I have always deployed with the implementation class 
>unjar'ed.
>  
>
I think yes. You can put the service impl classes as a jar in lib folder.

-- Chinthaka

>Thanks.
>
>Tony Dean
>SAS Institute Inc.
>919.531.6704
>[EMAIL PROTECTED]
>
>SAS... The Power to Know
>http://www.sas.com
>
>
>  
>


signature.asc
Description: OpenPGP digital signature


[Axis2] services.xml

2006-01-31 Thread Tony Dean
Hi,

Can anyone answer a few simple questions:

1) I don't think this is possible, but wanted to ask.  Can you define more than 
one service in services.xml?

2) I have seen serviceGroups defined, but do not know their exact purpose 
(somehow relating services together)?
Couldn't find any documentation on the subject.

3) Can the service implementation class reside in lib/my.jar or does it have to 
be in top level class?  I assume
it can be in a bundled jar in the .aar just like other dependent jars (assuming 
classloading is working properly),
but haven't tried it.  I have always deployed with the implementation class 
unjar'ed.

Thanks.

Tony Dean
SAS Institute Inc.
919.531.6704
[EMAIL PROTECTED]

SAS... The Power to Know
http://www.sas.com



Re: java client to invoke webservice(TIBCO)

2006-01-31 Thread mm jj
yes i did use WSDL to JAVA stuff and its generated two java files according to my WSDL. the two java files are WS-REQUEST and WS-REPLY.     now what i have to do in my existing java client? thanks     Anne Thomas Manes <[EMAIL PROTECTED]> wrote:  WSDL, please? Did you try compiling a stub from the WSDL?Anne  On 1/30/06, mm jj <[EMAIL PROTECTED]> wrote:  I NEED some help..here is my Java client. i am trying to invoke a webservice(TIBCO) through java client     import
 org.apache.axis.client.*;import javax.xml.rpc.ParameterMode;import org.apache.axis.encoding.XMLType;import org.apache.axis.utils.Options;     public class FibClient {  public static void main(String[] args) throws Exception {    String endpoint = " http://DUSU41009X1:80/Processes/SOAPServer";    //String endpoint = "http://DUSU41009X1:8080/Processes_sp_Definition ";    String Sub = "SUBJECT";    String Data = "";    Service service = new Service();    Call call = (Call) service.createCall();   
 call.setTargetEndpointAddress(endpoint);    call.setOperationName("Operation");    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped");    call.addParameter("op1", XMLType.XSD_STRING , ParameterMode.IN);    call.addParameter("op2", XMLType.XSD_STRING, ParameterMode.IN);    call.setReturnType(XMLType.XSD_STRING);    call.setReturnType(XMLType.XSD_STRING);    String ret = (String) call.invoke(new Object[]{Sub, Data});    System.out.println("Got result : " + ret);              }}     i am getting following errors..pls help        init:deps-jar:compile-single:run-single:- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMulti
 p art).
 Attachment support is disabled.AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client  faultSubcode:  faultString: No handler for body element faultActor:  faultNode:  faultDetail:     {}detail: http://DUSU41009X1:80/Processes/SOAPServer""Operation  No handler for body element    at org.apache.axis.message.SOAPFaultBuilder.createFault (SOAPFaultBuilder.java:222)    at
 org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java :1087)    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)     at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :667)    at
 org.apache.crimson.parser.Parser2.parse(Parser2.java:337)    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java :696)    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke (AxisClient.java:206)    at
 org.apache.axis.client.Call.invokeEngine(Call.java:2784)    at org.apache.axis.client.Call.invoke(Call.java:2767)    at org.apache.axis.client.Call.invoke(Call.java:2443)    at org.apache.axis.client.Call.invoke(Call.java:2366)    at org.apache.axis.client.Call.invoke(Call.java:1812)    at FibClient.main(FibClient.java :24)Exception in thread "main" Java Result: 1BUILD SUCCESSFUL (total time: 2 seconds)     Bring words and photos together (easily) withPhotoMail - it's free and works with Yahoo! M
 ail.  
   
		  
What are the most popular cars? Find out at Yahoo! Autos 

RE: Generated code not Thread safe

2006-01-31 Thread Ferguson, Neil, VF-NZ
Hi Laheeb.

Good find. This looks like this issue:
https://issues.apache.org/jira/browse/AXIS-2284. Seems like it's been
fixed, but after the 1.3 release, and there doesn't seem to be a fix
version specified.

Neil.

-Original Message-
From: Alsarraf, Laheeb (NIH/OD) [C] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 February 2006 8:36 a.m.
To: axis-user@ws.apache.org
Subject: RE: Generated code not Thread safe


I tested that the web service is Not causing the lock. I opened multiple
JVMs and ran the same code as simultaneously as I could press the enter
button.

Below is the thread dump on Windows. The lock happens in
org.apache.axis.utils.JavaUtils.java method isEnumClass():

Attribute enumMap is not Thread safe. Maybe Axis should replace HashMap
with Hashtable:


private static HashMap enumMap = new HashMap();

public static boolean isEnumClass(Class cls)
{
Boolean b = (Boolean)enumMap.get(cls);
if(b == null)
{
b = isEnumClassSub(cls) ? Boolean.TRUE : Boolean.FALSE;
enumMap.put(cls, b);
}
return b.booleanValue();
}

===
Full thread dump Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode):
===
"Thread-5" prio=5 tid=0x00a620f8 nid=0xb5c runnable [304f000..304fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589da0> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-4" prio=5 tid=0x00a61f78 nid=0x848 runnable [300f000..300fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589de8> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-3" prio=5 tid=0x00a84be8 nid=0x148 runnable [2fcf000..2fcfd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589e30> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-2" prio=5 tid=0x00a84a88 nid=0x8ac runnable [2d7f000..2d7fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589e78> (a
gov

array serialization in 1.3

2006-01-31 Thread Erik Wright
Hi,

I have noticed that array parameters (in or out) seem to be serialized
incorrectly in Axis 1.3. I am attaching a sample WSDL here, along with
the corresponding input and output. In summary, instead of creating an
element for the array parameter (containing the array members) it
creates one element for each member, without any all-enclosing parent. 

Note that we are using WSDL2Java to generate the service implementation
from existing wsdl.

WSDL snippet (complete wsdl attached):

  



  

Serialized output (simplified slightly - complete output attached):

  

  hello


  good


  bye

11.7
  

In Axis 1.1 this worked as expected. Is there anyway to get this to
serialize as:

  

  
hello
  


  
good
  
  
bye
  

11.7
  

Thanks for your help in advance.

-Erik

http://demo.radialpoint.com/service";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:impl="http://demo.radialpoint.com/service";
  xmlns:type="http://demo.radialpoint.com/type";>
  
http://demo.radialpoint.com/type";
  xmlns="http://www.w3.org/2001/XMLSchema";>
  
  
  

  
  
  
  
  

  
  
  
  
  

  
  
  
  
  

  
  


http://demo.radialpoint.com/service";
  xmlns="http://www.w3.org/2001/XMLSchema";>
  http://demo.radialpoint.com/type"/>

  

  

  


  

  

  

  

  


  

  

  

  

  


  

  

  


  

  

  

  


  
  
  

  

  


  

  



  

  

  
  
  

  

  
http://schemas.xmlsoap.org/soap/http"; />

  
  
http://schemas.xmlsoap.org/soap/encoding/";
  namespace="http://demo.radialpoint.com/service";
  use="literal" />
  
  
http://schemas.xmlsoap.org/soap/encoding/";
  namespace="http://demo.radialpoint.com/service";
  use="literal" />
  
  
http://schemas.xmlsoap.org/soap/encoding/";
  namespace="http://demo.radialpoint.com/service";
  use="literal"/>
  

  

  

  http://localhost:7001/demo-service/services/demo-service/1.0"; 
/>

  

POST /demo-service/services/demo-service/1.0 HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: localhost:7001
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 499

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://demo.radialpoint.com/service";>boing 
boingnyuk 
nyukda da 
da
HTTP/1.1 200 OK
Connection: close
Date: Tue, 31 Jan 2006 20:25:43 GMT
Content-Type: text/xml; charset=utf-8
X-Powered-By: Servlet/2.4 JSP/2.0


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://demo.radialpoint.com/service";>http://demo.radialpoint.com/type";>hellohttp://demo.radialpoint.com/type";>goodhttp://demo.radialpoint.com/type";>byehttp://demo.radialpoint.com/service";>11.7


Re: trouble redeploying handlers

2006-01-31 Thread iksrazal
I think I seen this a while back, and since then, what I do is simple but 
effective: stop server, remove all mar's and aar's neccesary, re-start 
server, stop server, reinstall, start server. 

If that works, try writing a test case and filing a jira. Or reply to the list 
- I'm working on axis2 handlers at the moment and I may be able to confirm 
the behavior. (got other probelms at the moment ;-) ) . 

HTH,
iksrazal
http://www.braziloutsource.com/

Em Terça 31 Janeiro 2006 15:08, o Brian Shields escreveu:
> Hello,
> I am having some trouble redeploying a handler .mar file in axis2. The
> engine seems to have an old reference to the classes inside my module
> and any changes i make are not being reflected when i repackage the
> module and redeploy it. I am restarting the web server and it is still
> referencing the older version of the classes!! Any ideas?

-- 


RE: Generated code not Thread safe

2006-01-31 Thread Ebert, Chris
Hashtable might fix the problem you're seeing, but it won't fix the
underlying thread safety issue: the 'put' could be executed multiple
times. Maybe it's not a big deal, but isEnumClassSub might still be
called more than once for a given class *and* the 'put' might modify
Entry.next while a 'get' is in progress. Using a Hashtable won't
necessarily solve that. Safest to synchronize the whole method (or put
the code in a block synchronized to enumMap).
Chris


-Original Message-
From: Alsarraf, Laheeb (NIH/OD) [C] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 11:36
To: axis-user@ws.apache.org
Subject: RE: Generated code not Thread safe

I tested that the web service is Not causing the lock. I opened multiple
JVMs and ran the same code as simultaneously as I could press the enter
button.

Below is the thread dump on Windows. The lock happens in
org.apache.axis.utils.JavaUtils.java method isEnumClass():

Attribute enumMap is not Thread safe. Maybe Axis should replace HashMap
with Hashtable:


private static HashMap enumMap = new HashMap();

public static boolean isEnumClass(Class cls)
{
Boolean b = (Boolean)enumMap.get(cls);
if(b == null)
{
b = isEnumClassSub(cls) ? Boolean.TRUE : Boolean.FALSE;
enumMap.put(cls, b);
}
return b.booleanValue();
}

===
Full thread dump Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode):
===
"Thread-5" prio=5 tid=0x00a620f8 nid=0xb5c runnable [304f000..304fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589da0> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-4" prio=5 tid=0x00a61f78 nid=0x848 runnable [300f000..300fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589de8> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-3" prio=5 tid=0x00a84be8 nid=0x148 runnable [2fcf000..2fcfd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589e30> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-2" prio=5 tid=0x00a84a88 nid=0x8ac runnable [2d7f000..2d7fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
Serializer

RE: Generated code not Thread safe

2006-01-31 Thread Alsarraf, Laheeb \(NIH/OD\) [C]
I tested that the web service is Not causing the lock. I opened multiple
JVMs and ran the same code as simultaneously as I could press the enter
button.

Below is the thread dump on Windows. The lock happens in
org.apache.axis.utils.JavaUtils.java method isEnumClass():

Attribute enumMap is not Thread safe. Maybe Axis should replace HashMap
with Hashtable:


private static HashMap enumMap = new HashMap();

public static boolean isEnumClass(Class cls)
{
Boolean b = (Boolean)enumMap.get(cls);
if(b == null)
{
b = isEnumClassSub(cls) ? Boolean.TRUE : Boolean.FALSE;
enumMap.put(cls, b);
}
return b.booleanValue();
}

===
Full thread dump Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode):
===
"Thread-5" prio=5 tid=0x00a620f8 nid=0xb5c runnable [304f000..304fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589da0> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-4" prio=5 tid=0x00a61f78 nid=0x848 runnable [300f000..300fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589de8> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-3" prio=5 tid=0x00a84be8 nid=0x148 runnable [2fcf000..2fcfd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589e30> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-2" prio=5 tid=0x00a84a88 nid=0x8ac runnable [2d7f000..2d7fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1060)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerialize
rFactory.java:49)
at
org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSeriali
zerFactory.java:42)
at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:235)
at
org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.createCall(EUt
ilsServiceSoapStub.java:10286)
- locked <0x10589e78> (a
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceS
oapStub)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoapStub.run_eSummary(E
UtilsServiceSoapStub.java:10513)
at
gov.nih.nihms.www.soap.nihmssrv1_cgi.NIHMSClient.run(NIHMSClient.java
:77)

"Thread-1" prio=5 tid=0x00a58d00 nid=0x914 runnable [2d3f000..2d3fd8c]
at java.util.HashMap.get(HashMap.java:325)
at
org.apache.axis.utils.JavaUtils.isEn

trouble redeploying handlers

2006-01-31 Thread Brian Shields

Hello,
I am having some trouble redeploying a handler .mar file in axis2. The 
engine seems to have an old reference to the classes inside my module 
and any changes i make are not being reflected when i repackage the 
module and redeploy it. I am restarting the web server and it is still 
referencing the older version of the classes!! Any ideas?


--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.


Help with TypeMapping

2006-01-31 Thread Vinicius Carvalho
Hello there! I'm using spring + axis in my application. I've extended
the org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean
class in order to register my Beans.
Well It was working for a simpler kind of bean, but for the WSDL bellow
I'm confused on how register it. 

1st - I've noticed that both Assinante and AssinantePK have the same
namespace, is this ok? I mean, don't I need a unique namespace for each
object?
2nd - Where can I find an deep material about Serializers?
3rd - I've read the article  recommend at the Axis site about the
WSDL types  which one use, but that explains for the SOAP envelop
only, where can I find reference about differences for the type
mappings?

If someone cares to give me a hand here I'd be grategfull.

Regards

 
  http://impl.alterarplano.services.cplus.way.com"
xmlns="http://www.w3.org/2001/XMLSchema">
   http://assinante.persistence.model.cplus.way.com"/>
   http://pacote.persistence.model.cplus.way.com"/>
   http://cidade.persistence.model.cplus.way.com"/>
   
    
 
  
  
 
    
   
   
    
 
    
   
   
    
   
  
  http://cidade.persistence.model.cplus.way.com"
xmlns="http://www.w3.org/2001/XMLSchema">
   http://assinante.persistence.model.cplus.way.com"/>
   http://pacote.persistence.model.cplus.way.com"/>
   http://impl.alterarplano.services.cplus.way.com"/>
   
    
 
 
    
   
  
  http://assinante.persistence.model.cplus.way.com"
xmlns="http://www.w3.org/2001/XMLSchema">
   http://pacote.persistence.model.cplus.way.com"/>
   http://impl.alterarplano.services.cplus.way.com"/>
   http://cidade.persistence.model.cplus.way.com"/>
   
    
 
 
    
   
   
    
 
 
 
 
    
   
  
  http://pacote.persistence.model.cplus.way.com"
xmlns="http://www.w3.org/2001/XMLSchema">
   http://assinante.persistence.model.cplus.way.com"/>
   http://impl.alterarplano.services.cplus.way.com"/>
   http://cidade.persistence.model.cplus.way.com"/>
   
    
 
 
    
   
   
    
 
 
 
 
 
 
    
   
  
 




Re: java client to invoke webservice(TIBCO)

2006-01-31 Thread mm jj
thanks for reply.this is my frist time using AXIS. i just follow the steps on AXIS website and wrote the client(which i sent to you).. actually i am a TIBCO developer. so i created a TIBCO process using SOAP (which is server)..and i am trying to invoke that SOAP services from java client.here is the WSDL.see below. do i need to use WSDL to JAVA command? i am totally new..i thought, i just have to write the following java client and provide the endpoint of the WSDL and the services will be invoked..but i don't know what else i need? your prompt response and  help needed..thanks        -     www.example.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xmlns.example.com/1138118522394/OperationImpl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Untitled" targetNamespace="http://xmlns.example.com/1138118522394/OperationImpl">        www.example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="www.example.com">            Generic web service request                            insert the reply XML here   
                             Generic web service
 request                       
     insert the request XML here                   
                                                    
             http://schemas.xmlsoap.org/soap/http"/>        The operation has no documentation                                                http://DUSU41009X1:80/Processes/SOAPServer"/>   
     Anne Thomas Manes <[EMAIL PROTECTED]> wrote:  WSDL, please? Did you try compiling a stub from the WSDL?Anne  On 1/30/06, mm jj <[EMAIL PROTECTED]> wrote:  I NEED some help..here is my Java client. i am trying to invoke a webservice(TIBCO) through java client     import org.apache.axis.client.*;import javax.xml.rpc.ParameterMode;import org.apache.axis.encoding.XMLType;import org.apache.axis.utils.Options;     public class
 FibClient {  public static void main(String[] args) throws Exception {    String endpoint = " http://DUSU41009X1:80/Processes/SOAPServer";    //String endpoint = "http://DUSU41009X1:8080/Processes_sp_Definition ";    String Sub = "SUBJECT";    String Data = "";    Service service = new Service();    Call call = (Call) service.createCall();    call.setTargetEndpointAddress(endpoint);    call.setOperationName("Operation");    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped");    call.addParameter("op1", XMLType.XSD_STRI
 NG ,
 ParameterMode.IN);    call.addParameter("op2", XMLType.XSD_STRING, ParameterMode.IN);    call.setReturnType(XMLType.XSD_STRING);    call.setReturnType(XMLType.XSD_STRING);    String ret = (String) call.invoke(new Object[]{Sub, Data});    System.out.println("Got result : " + ret);              }}     i am getting following errors..pls help        init:deps-jar:compile-single:run-single:- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultip art). Attachment support is disabled.AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Cli
 ent
  faultSubcode:  faultString: No handler for body element faultActor:  faultNode:  faultDetail:     {}detail: http://DUSU41009X1:80/Processes/SOAPServer""Operation  No handler for body element    at org.apache.axis.message.SOAPFaultBuilder.createFault (SOAPFaultBuilder.java:222)    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java :1087)  &nbs
 p; at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)     at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :667)    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)    at
 javax.xml.parsers.SAXParser.parse(SAXParser.java:345)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPP

RE: Using BeanSerializer in standalone applications

2006-01-31 Thread glenn bech
First of all I’m a bit curious why you want to use axis and bean
serialization in a stand alone application. There are far better
frameworks than Axis for converting beans to XML. 

For example, check out JAXB and reference implementations
http://java.sun.com/webservices/jaxb/index.jsp
Castor can also be used.

If you *really* want to do this, you should check out the static typedesc
data, in the generated Axis xlasses. 
The typedescriptions define how the fields of the object is mapped to XML
(and back I believe) 

Example type description section follows. Notice the
elemField.setFieldName("companyName"); This is the “bean property” of the
local
object, and a method “getcompanyName()” is required in the bean. 

The following typedescription is for an entity called “Company” with two
members “companyName” and “companyAddress”

private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(SetCompanyType.class,
true);

static {
typeDesc.setXmlType(new
javax.xml.namespace.QName("http://schemas.company.com";, "Company"));
org.apache.axis.description.ElementDesc elemField = new
org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyName");
elemField.setXmlName(new
javax.xml.namespace.QName("http://schemas.company.com";, "companyName"));
elemField.setXmlType(new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);

elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyAddress");
elemField.setXmlName(new
javax.xml.namespace.QName("http://schemas.company.com/";, "companyAddress"));
elemField.setXmlType(new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}

Glenn Richard Bech



From: sol myr [mailto:[EMAIL PROTECTED] 
Sent: 31. januar 2006 15:01
To: axis-user@ws.apache.org
Subject: Using BeanSerializer in standalone applications

Hi,
 
I'm trying to use Axis BeanSerializer in a stand-alone application
(converting between java objects & xml).
Example (assuming you have a "Customer" bean):
 Customer cust=new Customer("john", "ibm"); 
     BeanSerializer ser=new BeanSerializer(Customer.class, null);
     SerializationContext ctx=new SerializationContext(new
FileWriter("cust.xml"));
 ser.serialize(someQName, null, cust, ctx);
 
My question: 
Can I *customize* this BeanSerializer, so as to control the XML output ?
For example:
- Configure xml namespaces
- Configure xml tag-names 
 (e.g. java field "Customer.surName" should be mapped to xml "< last-name >"
). 
 
Does axis allow such customization (from a stand-alone app) ? Is it
somewhere on the API ? Or can you configure it from a file (similar to wsdd)
?
 
Thanx.

Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.




Re: Handlers in Axis2

2006-01-31 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi Brian,

Small clarification. OperationContext is not only for request-response
(In-Out). It is per MEP. But for the time being we support InOut and
In only MEPs.

- -- Chinthaka

Brian Shields wrote:

> Thanks Srinath, using the OperationContext I can persist object
> state between the request and the reply. Regards, Brian.
>
> Srinath Perera wrote:
>
>> Hi Brian;
>>
>> Handlers are stateless across multiple invocations. You should
>> store the states in the OperationContext
>> (msgctx.getOperationContext()). Get back if that do not solve
>> your problem.
>>
>> Thanks Srinath
>>
>> On 1/31/06, Brian Shields <[EMAIL PROTECTED]>
>> wrote:
>>
>>
>>> Hello, When using the same handler for inflow and outflow
>>> messages, does axis2 create a seperate object of the handler
>>> for the different flow. It uses the same object for all
>>> inflows, but is there a second object for all outflow messages?
>>> It is confusing as the two instances of the handler (if there
>>> are two instances) have the same object hashCode, yet when
>>> using a java collection object within the handler, the outflow
>>> cannot see the same collection object as the inflow?? Any
>>> suggestions?
>>>
>>> -- Brian Shields BSc. MSc., PhD Candidate, Department of
>>> Information Technology, National University of Ireland, Galway,
>>> Ireland.
>>>
>>>
>>
>>
>>
>> --  Srinath Perera:
>> http://www.cs.indiana.edu/~hperera/
>> http://www.bloglines.com/blog/hemapani
>>
>>
>>
>>
>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
 
iD8DBQFD33mrjON2uBzUhh8RAqZRAKCVhs22wm+y3Li53GXGhqdOs2R1xwCgqeo0
C3/4iz1DlcUzrSgbZSShfeQ=
=PZnG
-END PGP SIGNATURE-



Re: [axis2]module.xml not found for the module

2006-01-31 Thread Ruchith Fernando
Hi,

This is because addressing.mar cannot be found and this is a known
issue with the 0.94 release.
Solution From:  http://ws.apache.org/axis2/download.cgi
--
* Remove .axis2 directory from your home directory, if present.
* Create a directory named .axis2 inside your home directory.
  o If you are using MS Windows, please use the command prompt
and type md .axis2
* Create a directory named modules in the .axis2 directory you just created.
* Copy addressing.mar from the modules/ directory of the standard
distribution into the .axis2/modules directory in your home directory.
--

Thanks,
Ruchith

On 1/31/06, Yves Langisch <[EMAIL PROTECTED]> wrote:
> I have exactly the same problem. Disabling the addressing module in the
> axis2.xml and removing it from modules directory didn't help.
>
> Thanks
> Yves
>
> On Sun, 2006-01-29 at 22:15 -0800, thilina madu wrote:
> >
> > Hi all,
> > I tried to access service bellow mention way.
> > There give error why ?
> >
> >
> > public class Test {
> >public static void main(String args[]) throws AxisFault,
> > XMLStreamException {
> >EndpointReference targetechoint = new
> > EndpointReference("http://127.0.0.1:8080/axis2/services/InteropTest/echoInteger";);
> >
> > System.out.println();
> > System.out.println("9.Echoing the Integer");
> > System.out.println( "Enter the Integer");
> > BufferedReader intbuf=new BufferedReader(new
> > InputStreamReader(System.in));
> > String intstr="";
> > try{
> > intstr=intbuf.readLine();
> > } catch(IOException excep){
> > excep.getStackTrace();
> > }
> > OMFactory intfactory=OMAbstractFactory.getOMFactory();
> > OMNamespace
> > omintnames=intfactory.createOMNamespace("http://example1.org/example1","examint";);
> > OMElement
> > omintelement=intfactory.createOMElement("echointelemen",omintnames);
> > omintelement.setText(intstr);
> >
> > Options options = new Options();
> > options.setTo(targetechoint);
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> > options.setUseSeparateListener(false);
> > ServiceClient servi ceClient = new ServiceClient();
> > serviceClient.setOptions(options);
> > OMElement result =
> > serviceClient.sendReceive(omintelement);
> > System.out.println();
> > System.out.println("Check the get values from the
> > Omelemany");
> > StringWriter writer = new StringWriter();
> > result.serialize(XMLOutputFactory.newInstance()
> > .createXMLStreamWriter(writer));
> > writer.flush();
> > System.out.println(writer.toString());
> > }
> >
> >
> >
> >
> >
> > ERRRO given is :
> >
> > 9.Echoing the Integer
> > Enter the Integer
> > 4
> > org.apache.axis2.deployment.DeploymentException: module.xml not found
> > for the module :   addressing; nested exception is:
> >  org.apache.axis2.deployment.DeploymentException: module.xml not found
> > for the module :   addressing; nested exception is:
> >  org.apache.axis2.deployment.DeploymentException: module.xml not found
> > for the module :   addressing; nested exception is:
> >  org.apache.axis2.deployment.DeploymentException: module.xml not found
> > for the module :   addressing
> >  at
> > org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:542)
> > &n bsp;at
> > org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)
> >  at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39)
> >  at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)
> >  at
> > org.apache.axis2.client.ServiceClient.(ServiceClient.java:86)
> >  at
> > org.apache.axis2.client.ServiceClient.(ServiceClient.java:148)
> >  at Test.main(Test.java:62)
> >  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:324)
> >  at
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> > Caused by: org.apache.axis2.deployment.DeploymentException: module.xml
> > not found  for the module :   addressing; nested exception is:
> >  org.apache.axis2.deployment.DeploymentException: module.xml not found
> > for the module :   addressing
> >  at
> > org.apache.axis2.deployment.repository.util.Ar

Re: [axis2]module.xml not found for the module

2006-01-31 Thread Yves Langisch
I have exactly the same problem. Disabling the addressing module in the
axis2.xml and removing it from modules directory didn't help.

Thanks
Yves

On Sun, 2006-01-29 at 22:15 -0800, thilina madu wrote:
> 
> Hi all,
> I tried to access service bellow mention way.
> There give error why ?
>  
>  
> public class Test {
>public static void main(String args[]) throws AxisFault,
> XMLStreamException {
>EndpointReference targetechoint = new
> EndpointReference("http://127.0.0.1:8080/axis2/services/InteropTest/echoInteger";);
>   
> System.out.println();
> System.out.println("9.Echoing the Integer");
> System.out.println( "Enter the Integer");
> BufferedReader intbuf=new BufferedReader(new
> InputStreamReader(System.in));
> String intstr="";
> try{
> intstr=intbuf.readLine();
> } catch(IOException excep){
> excep.getStackTrace();
> }
> OMFactory intfactory=OMAbstractFactory.getOMFactory();
> OMNamespace
> omintnames=intfactory.createOMNamespace("http://example1.org/example1","examint";);
> OMElement
> omintelement=intfactory.createOMElement("echointelemen",omintnames);
> omintelement.setText(intstr);
>  
> Options options = new Options();
> options.setTo(targetechoint);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> options.setUseSeparateListener(false);
> ServiceClient servi ceClient = new ServiceClient();
> serviceClient.setOptions(options);
> OMElement result =
> serviceClient.sendReceive(omintelement);
> System.out.println();
> System.out.println("Check the get values from the
> Omelemany");
> StringWriter writer = new StringWriter();
> result.serialize(XMLOutputFactory.newInstance()
> .createXMLStreamWriter(writer));
> writer.flush();
> System.out.println(writer.toString());
> }
>  
>  
>  
>  
>  
> ERRRO given is :
> 
> 9.Echoing the Integer
> Enter the Integer
> 4
> org.apache.axis2.deployment.DeploymentException: module.xml not found
> for the module :   addressing; nested exception is: 
>  org.apache.axis2.deployment.DeploymentException: module.xml not found
> for the module :   addressing; nested exception is: 
>  org.apache.axis2.deployment.DeploymentException: module.xml not found
> for the module :   addressing; nested exception is: 
>  org.apache.axis2.deployment.DeploymentException: module.xml not found
> for the module :   addressing
>  at
> org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:542)
> &n bsp;at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)
>  at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39)
>  at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)
>  at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:86)
>  at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:148)
>  at Test.main(Test.java:62)
>  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:324)
>  at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> Caused by: org.apache.axis2.deployment.DeploymentException: module.xml
> not found  for the module :   addressing; nested exception is: 
>  org.apache.axis2.deployment.DeploymentException: module.xml not found
> for the module :   addressing
>  at
> org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:193)
>  at
> org.apache.axis2.engine.AxisConfiguration.loadModulefromResources(AxisConfiguration.java:385)
>  at
> org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:328)
>  at
> org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:502)
>  at
> org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:537)
>  ... 11 more
> Caused by: org.apache.axis2.deployment.DeploymentException: module.xml
> not found  for the module :   addressing
>  at
> org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:158)
>  ... 15 more
> Exception in thread "main" 
> Process finished with exit code 1
>  
> Any kind of help is higly appreciate
>  
> madushan thilina
> 
> __
> Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more
> on n

Re: Generated code not Thread safe

2006-01-31 Thread Cyrille Le Clerc
Hello Laheeb,

   By default, Axis client relies on its internal HTTPSender. You can
instead use Jakarta Commons HttpClient (with the CommonsHTTPSender) to
gain performances. This is done using the CommonsHTTPSender.

   To change this http transport implementation, you have to play with
the client-config.wsdd config file.

Q : Is there a file client-config.wsdd in your classpath ? If yes, was
is the class associated with http transport ?

More details on Jakarta Commons Http Client integration in Axis here :
http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP

   Cyrille
--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 1/31/06, Alsarraf, Laheeb (NIH/OD) [C] <[EMAIL PROTECTED]> wrote:
> Cyrille,
>
>
> I checked the generated code and I could not find any reference to
> either HTTPSender or CommonsHTTPSender. I could not find anywhere in my
> code where I use them. Where should I check for that?
>
> Laheeb Alsarraf
> Contractor, AC Technologies
> E-mail:  [EMAIL PROTECTED]
> Office:  301.451.1783
>
> -Original Message-
> From: Cyrille Le Clerc [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 30, 2006 1:06 PM
> To: axis-user@ws.apache.org
> Subject: Re: Generated code not Thread safe
>
>Hello Laheeb,
>
>Could you generate a thread dump ? I searched for "synchronized"
> blocks or other tricks in the source code (1.3) and did not find
> anything.
>
>By the way, do you use HTTPSender or CommonsHTTPSender ?
>
>Cyrille
>
> --
> Cyrille Le Clerc
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> On 1/30/06, Alsarraf, Laheeb (NIH/OD) [C] <[EMAIL PROTECTED]> wrote:
> > Neil,
> >
> > I checked out the discussion thread and I do use a new Stub object but
> > the generated code still hangs unless I use Synchronize around my
> call.
> > Here is the run() method I use in my test class which extends Thread.
> >
> >   public void run(){
> > System.out.println("Starting Thread:" + threadName);
> > try{
> > EUtilsServiceLocator eUtilService = new
> > EUtilsServiceLocator();
> > EUtilsServiceSoap utils =
> > eUtilService.geteUtilsServiceSoap();
> >
> > ESummaryRequest params = new ESummaryRequest();
> > params.setDb("pubmed");
> > params.setId(pubMedId);
> > Date startTimeEsum_ = new Date();
> > System.out.println("Thread:" + threadName + ".
> "
> > + "Calling utils.run_eSummary
> > ");
> >
> > // When I use this line as is then the code hangs.
> > ESummaryResult eSummaryRes = utils.run_eSummary(params);
> >
> > /* When I replace the above code line with this commented code then
> the
> > client returns successfully.
> >
> >   ObjectLock obj = ObjectLock.getInstance();
> >   synchronized(obj) {
> > ESummaryResult eSummaryRes = utils.run_eSummary(params);
> >   }
> > */
> >
> > }catch(Exception e){
> > System.out.println("Exception in Thread:" + threadName +
> > "\n" + e);
> > stop();
> > }
> > }// End run()
> >
> >
> >
> > Thanks
> > Laheeb Alsarraf
> >
> >
> > -Original Message-
> > From: Ferguson, Neil, VF-NZ [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, January 29, 2006 7:17 PM
> > To: axis-user@ws.apache.org
> > Subject: RE: Generated code not Thread safe
> >
> > Hi.
> >
> > You might find this recent discussion on this mailing helpful:
> > http://marc.theaimsgroup.com/?l=axis-user&m=113771126214607&w=2
> >
> > Basically, the generated stub doesn't seem to be thread-safe, but it
> > doesn't seem to be very expensive to create a new stub each time you
> > want one. The service locator does seem to be thread-safe (and is
> > relatively expensive to create), so you can cache this.
> >
> > Hope this helps.
> >
> > Neil.
> >
> >
> > -Original Message-
> > From: Alsarraf, Laheeb (NIH/OD) [C] [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, 28 January 2006 8:51 a.m.
> > To: axis-user@ws.apache.org
> > Subject: Generated code not Thread safe
> >
> >
> > Hello,
> >
> > I have used axis 1.1.2 and axis 1.1.3 to generate client code for a
> web
> > service. I tested the generated code for multithreading and the
> program
> > deadlocks. I added "Synchronized" keyword in the method createCall()
> of
> > the generated code and that solved the problem.
> >
> > Has anyone had thread safety problems with web service client code
> > generated using axis.
> >
> > Here is the command I use to generate the code:
> >
> > java -cp %AXISCP% org.apache.axis.wsdl.WSDL2Java --timeout -1 %*
> >
> >
> > Thanks
> >
> > Laheeb Alsarraf
> >
> >
> 
> > ---
> >
> > Have you seen our website? http://www.vodafone.co.nz
> >
> > Manage Your Account, check your Vodafone Mail and send web2TXT online:
> > http://www.vodafone.co.nz/myvodafone
> >
> > CAUTION: This correspondence is confidential and intende

Using BeanSerializer in standalone applications

2006-01-31 Thread sol myr
Hi,     I'm trying to use Axis BeanSerializer in a stand-alone application (converting between java objects & xml).  Example (assuming you have a "Customer" bean):   Customer cust=new Customer("john", "ibm");        BeanSerializer ser=new BeanSerializer(Customer.class, null);     SerializationContext ctx=new SerializationContext(new FileWriter("cust.xml")); ser.serialize(someQName, null, cust, ctx);     My question:   Can I *customize* this BeanSerializer, so as to control the XML output ?  For example:  - Configure xml namespaces  - Configure xml tag-names  (e.g. java field "Customer.surName" should be mapped to xml "< last-name >" ).      Does axis
  allow
 such customization (from a stand-alone app) ? Is it somewhere on the API ? Or can you configure it from a file (similar to wsdd) ?     Thanx.
		Bring words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.

Re: Large File Streaming?

2006-01-31 Thread Davanum Srinivas
that is not the sample u should try. please read up the jira issue
(http://issues.apache.org/jira/browse/AXIS-2221)

thanks,
dims

On 1/31/06, Melhem, Michael <[EMAIL PROTECTED]> wrote:
> Hello Dims,
>
> Thank you for your response!
>
> Re Svn Axis (1.4)
> I have tried the sample attachment code "EchoAttachment" using an
> attachment file size of approx 300M but again get an "out-of-mem" error.
> I will investigate if the error is coming from the "sample code" or from
> inside Axis.
>
> I assume axis2 can handle arbitrary size attachments?
>
> Thanks
> Michael Melhem
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 31 January 2006 1:19 AM
> To: axis-user@ws.apache.org
> Subject: Re: Large File Streaming?
>
> Try latest SVN of Axis 1.X, it has support for streaming attachments
> (no intermediate buffer)
>
> thanks,
> dims
>
> On 1/29/06, Melhem, Michael <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi People,
> >
> >
> >
> > Does anyone have any experience sending very large files with Axis. We
> seem
> > to be having "out-of-mem" issues uploading large files.
> >
> >
> >
> > Basic Question:
> >
> > When uploading a file from an axis client to axis server, does axis
> require
> > that the whole file be read into memory before it can be handled (eg
> written
> > in to disk or database)?? Reading files into memory would be
> unacceptable
> > for large file sizes.
> >
> >
> >
> > Any help or pointers on this would be much appreciated.
> >
> >
> >
> > Many thanks,
> >
> > Michael Melhem
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


RE: Generated code not Thread safe

2006-01-31 Thread Alsarraf, Laheeb \(NIH/OD\) [C]
Cyrille,


I checked the generated code and I could not find any reference to
either HTTPSender or CommonsHTTPSender. I could not find anywhere in my
code where I use them. Where should I check for that? 

Laheeb Alsarraf
Contractor, AC Technologies
E-mail:  [EMAIL PROTECTED]
Office:  301.451.1783

-Original Message-
From: Cyrille Le Clerc [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 1:06 PM
To: axis-user@ws.apache.org
Subject: Re: Generated code not Thread safe

   Hello Laheeb,

   Could you generate a thread dump ? I searched for "synchronized"
blocks or other tricks in the source code (1.3) and did not find
anything.

   By the way, do you use HTTPSender or CommonsHTTPSender ?

   Cyrille

--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 1/30/06, Alsarraf, Laheeb (NIH/OD) [C] <[EMAIL PROTECTED]> wrote:
> Neil,
>
> I checked out the discussion thread and I do use a new Stub object but
> the generated code still hangs unless I use Synchronize around my
call.
> Here is the run() method I use in my test class which extends Thread.
>
>   public void run(){
> System.out.println("Starting Thread:" + threadName);
> try{
> EUtilsServiceLocator eUtilService = new
> EUtilsServiceLocator();
> EUtilsServiceSoap utils =
> eUtilService.geteUtilsServiceSoap();
>
> ESummaryRequest params = new ESummaryRequest();
> params.setDb("pubmed");
> params.setId(pubMedId);
> Date startTimeEsum_ = new Date();
> System.out.println("Thread:" + threadName + ".
"
> + "Calling utils.run_eSummary
> ");
>
> // When I use this line as is then the code hangs.
> ESummaryResult eSummaryRes = utils.run_eSummary(params);
>
> /* When I replace the above code line with this commented code then
the
> client returns successfully.
>
>   ObjectLock obj = ObjectLock.getInstance();
>   synchronized(obj) {
> ESummaryResult eSummaryRes = utils.run_eSummary(params);
>   }
> */
>
> }catch(Exception e){
> System.out.println("Exception in Thread:" + threadName +
> "\n" + e);
> stop();
> }
> }// End run()
>
>
>
> Thanks
> Laheeb Alsarraf
>
>
> -Original Message-
> From: Ferguson, Neil, VF-NZ [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 29, 2006 7:17 PM
> To: axis-user@ws.apache.org
> Subject: RE: Generated code not Thread safe
>
> Hi.
>
> You might find this recent discussion on this mailing helpful:
> http://marc.theaimsgroup.com/?l=axis-user&m=113771126214607&w=2
>
> Basically, the generated stub doesn't seem to be thread-safe, but it
> doesn't seem to be very expensive to create a new stub each time you
> want one. The service locator does seem to be thread-safe (and is
> relatively expensive to create), so you can cache this.
>
> Hope this helps.
>
> Neil.
>
>
> -Original Message-
> From: Alsarraf, Laheeb (NIH/OD) [C] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 28 January 2006 8:51 a.m.
> To: axis-user@ws.apache.org
> Subject: Generated code not Thread safe
>
>
> Hello,
>
> I have used axis 1.1.2 and axis 1.1.3 to generate client code for a
web
> service. I tested the generated code for multithreading and the
program
> deadlocks. I added "Synchronized" keyword in the method createCall()
of
> the generated code and that solved the problem.
>
> Has anyone had thread safety problems with web service client code
> generated using axis.
>
> Here is the command I use to generate the code:
>
> java -cp %AXISCP% org.apache.axis.wsdl.WSDL2Java --timeout -1 %*
>
>
> Thanks
>
> Laheeb Alsarraf
>
>

> ---
>
> Have you seen our website? http://www.vodafone.co.nz
>
> Manage Your Account, check your Vodafone Mail and send web2TXT online:
> http://www.vodafone.co.nz/myvodafone
>
> CAUTION: This correspondence is confidential and intended for the
named
> recipient(s) only.
> If you are not the named recipient and receive this correspondence in
> error, you must not copy,
> distribute or take any action in reliance on it and you should delete
it
> from your system and
> notify the sender immediately.  Thank you.
>
> Unless otherwise stated, any views or opinions expressed are solely
> those of the author and do
> not represent those of Vodafone New Zealand Limited.
>
> Vodafone New Zealand Limited
> 20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1030
> Telephone + 64 9 355 2000
> Facsimile + 64 9 355 2001
>


Re: Handlers in Axis2

2006-01-31 Thread Brian Shields
Thanks Srinath, using the OperationContext I can persist object state 
between the request and the reply.

Regards,
Brian.

Srinath Perera wrote:


Hi Brian;

Handlers are stateless across multiple invocations. You should store
the states in the OperationContext (msgctx.getOperationContext()). Get
back if that do not solve your problem.

Thanks
Srinath

On 1/31/06, Brian Shields <[EMAIL PROTECTED]> wrote:
 


Hello,
When using the same handler for inflow and outflow messages, does axis2
create a seperate object of the handler for the different flow. It uses
the same object for all inflows, but is there a second object for all
outflow messages? It is confusing as the two instances of the handler
(if there are two instances) have the same object hashCode, yet when
using a java collection object within the handler, the outflow cannot
see the same collection object as the inflow?? Any suggestions?

--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.

   




--

Srinath Perera:
  http://www.cs.indiana.edu/~hperera/
  http://www.bloglines.com/blog/hemapani


 



--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.


Re: Handlers in Axis2

2006-01-31 Thread Srinath Perera
Hi Brian;

Handlers are stateless across multiple invocations. You should store
the states in the OperationContext (msgctx.getOperationContext()). Get
back if that do not solve your problem.

Thanks
Srinath

On 1/31/06, Brian Shields <[EMAIL PROTECTED]> wrote:
> Hello,
> When using the same handler for inflow and outflow messages, does axis2
> create a seperate object of the handler for the different flow. It uses
> the same object for all inflows, but is there a second object for all
> outflow messages? It is confusing as the two instances of the handler
> (if there are two instances) have the same object hashCode, yet when
> using a java collection object within the handler, the outflow cannot
> see the same collection object as the inflow?? Any suggestions?
>
> --
> Brian Shields BSc. MSc.,
> PhD Candidate,
> Department of Information Technology,
> National University of Ireland,
> Galway,
> Ireland.
>


--

Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani


Handlers in Axis2

2006-01-31 Thread Brian Shields

Hello,
When using the same handler for inflow and outflow messages, does axis2 
create a seperate object of the handler for the different flow. It uses 
the same object for all inflows, but is there a second object for all 
outflow messages? It is confusing as the two instances of the handler 
(if there are two instances) have the same object hashCode, yet when 
using a java collection object within the handler, the outflow cannot 
see the same collection object as the inflow?? Any suggestions?


--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.


RE: Axis not interoperable with JWSDP?

2006-01-31 Thread Fernando.Matomira








Thanks. Adding that parameter got the program
working through the WSDL.

 

However, now I make a call and I get the
following error when returning long[]:

 

Exception in thread
"AWT-EventQueue-0" deserialization error: 

java.lang.ClassCastException:
[J

    at 

com.sun.xml.rpc.encoding.ArraySerializerBase.deserialize(ArraySerializerBase.java:277)

    ...

 

CAUSE:

 

java.lang.ClassCastException:
[J

   
at 

com.sun.xml.rpc.encoding.ObjectArraySerializer.deserializeArrayInstance(ObjectArraySerializer.java:178)

    ...

 

 

 

The dynamically generated WSDL has this
type for the response:

 





type="impl:ArrayOf_xsd_long"/>



 









From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006
6:05 PM
To: axis-user@ws.apache.org
Subject: Re: Axis not
interoperable with JWSDP?



 

Add this parameter to
your WSDD:

   

Anne



On 1/30/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]
> wrote:



I have
Axis 1.2 Final on the server, JWSDP 1.6 on the client.

 

When
I try to connect, I get the following error regarding the WSDL:

 

Exception in thread "main" unexpected array element
type: 

expected={http://www.w3.org/2001/XMLSchema}string , 

actual={http://schemas.xmlsoap.org/soap/encoding/}string


    at 

com.sun.xml.rpc.encoding.ArraySerializerBase.verifyArrayElementType(ArraySerializerBase.java:399)

 

 

Is
there any way to avoid this (eg., by upgrading the server to Axis 1.3 Final)?

 

Thanks





 








Re: alternative configuration to server-config.wsdd ?

2006-01-31 Thread Nicolas De Loof


Interesting idea, I'll take a look at ant XSLT support.
Thanks a lot !

Daniel Beland a écrit :




If you use maven (or ant), why don't you simply perform XSLT to 
integrate each deploy.wsdd in the server-config.wsdd.


That's what I did in a war:webapp postGoal.



On 1/26/06, *Nicolas De Loof* <[EMAIL PROTECTED] 
> wrote:



I have to replace the className parameter in generated deploy.wsdd and
add some custom typeMappings.
Replacing className is easy, but adding typeMapping elements is more
difficult in my ant (maven.xml) build script.

I'm trying another solution :

It extends AxisServlet and it's init method :
It loads the (wsdl2java generated) deploy.wsdd, and uses WSDDService
methods to replace className parameter, append typemappings
defined in
another xml file and deploy the service using
"ServiceAdmin.deployService(wsddService);"

This doesn't work exactly as expected but I'm working on it...

Nico.

Tony Ingraldi a écrit :

> Nicolas,
>
> Have you considered using org.apache.axis.utils.Admin?  It can be
> used to create a server-config.wsdd file from a deploy.wsdd file.
>
> i.e.
>
> java -cp $AXISCLASSPATH org.apache.axis.utils.Admin server
> deploy.wsdd
>
>
> You may need to tweak the generated server-config.wsdd file, but the
> tweaking could potentially be automated with your scripting
language
> of preference.
>
>
> On Jan 26, 2006, at 2:56 AM, Nicolas De Loof wrote:
>
>> The deploy.wsdd is generated as part of the build process (as
>> endpoint interface is not yet stable), but it requires to manually
>> update the server-config.wsdd to include the deploy.wsdd content.
>> Using AdminClient to deploy is not a solution as the web
service  has
>> to be started with the webapp (axis configuration is static)
>>
>> Is there any way to replace WEB-INF/server-config.wsdd based
>> configuration by a "programmable" configuration ? I'd like
to  extend
>> AxisServlet and automatically deploy my web service
at  application
>> startup from it's generated deploy.wsdd.
>
>
> --
>   Tony Ingraldi
>   [EMAIL PROTECTED] 
>

This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are
not the intended recipient,  you are not authorized to read,
print, retain, copy, disseminate,  distribute, or use this message
or any part thereof. If you receive this  message in error, please
notify the sender immediately and delete all  copies of this message.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: alternative configuration to server-config.wsdd ?

2006-01-31 Thread Daniel Beland
If you use maven (or ant), why don't you simply perform XSLT to integrate each deploy.wsdd in the server-config.wsdd.That's what I did in a war:webapp postGoal.
On 1/26/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
I have to replace the className parameter in generated deploy.wsdd andadd some custom typeMappings.Replacing className is easy, but adding typeMapping elements is moredifficult in my ant (maven.xml) build script.
I'm trying another solution :It extends AxisServlet and it's init method :It loads the (wsdl2java generated) deploy.wsdd, and uses WSDDServicemethods to replace className parameter, append typemappings defined in
another xml file and deploy the service using"ServiceAdmin.deployService(wsddService);"This doesn't work exactly as expected but I'm working on it...Nico.Tony Ingraldi a écrit :
> Nicolas,>> Have you considered using org.apache.axis.utils.Admin?  It can be> used to create a server-config.wsdd file from a deploy.wsdd file.>> i.e.>> java -cp $AXISCLASSPATH 
org.apache.axis.utils.Admin server> deploy.wsdd>>> You may need to tweak the generated server-config.wsdd file, but the> tweaking could potentially be automated with your scripting language
> of preference.>>> On Jan 26, 2006, at 2:56 AM, Nicolas De Loof wrote:>>> The deploy.wsdd is generated as part of the build process (as>> endpoint interface is not yet stable), but it requires to manually
>> update the server-config.wsdd to include the deploy.wsdd content.>> Using AdminClient to deploy is not a solution as the web service  has>> to be started with the webapp (axis configuration is static)
 Is there any way to replace WEB-INF/server-config.wsdd based>> configuration by a "programmable" configuration ? I'd like to  extend>> AxisServlet and automatically deploy my web service at  application
>> startup from it's generated deploy.wsdd.>>> -->   Tony Ingraldi>   [EMAIL PROTECTED]>This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [axis2] exception handling

2006-01-31 Thread Juergen Umbrich
Sorry for my next email,
but i didn´t understand it yet.
I have declared in my WSDL file a sopa:fault tag with the including the
binding, message and element/type
now axis2 creates me an MyException object.

class MyException extends org.apache.axis2.databinding.ADBBean{
public static final javax.xml.namespace.QName MY_QNAME =
new javax.xml.namespace.QName(  

"http://www.example.org/muller/";, "MyException", "ns1");
private java.lang.String localFault;
public java.lang.String getFault() {
return localFault;
}
public void setFault(java.lang.String param) {
this.localFault = param;
}
public javax.xml.stream.XMLStreamReader getPullParser(
javax.xml.namespace.QName qName) {
. }
public static MyException
parse(javax.xml.stream.XMLStreamReader reader)
throws java.lang.Exception {
.. }

Can i use this object now in the details? and if, can you explain me how
please?!
sorry that i have to ask this, but i cannot find any way to implement
your solution :-(
can you please post the whole example code


Thanks
Jürgen
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>  
> Create SOAPFaultDetail element and fill your stuff there.
> 
> Then put that as a property of the message context before throwing an
> AxisFault.
> 
> messageCtxt.setProperty(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
> soapFaultDetail);
> 
> Axis2 will do the rest for you.
> 
> - -- Chinthaka
> 
> Juergen Umbrich wrote:
> 
>>
>> Ok thanks you for the informations can you explain me please how i
>> can add something to the detail header, ?
>>
>> Jürgen
>>
> 
>> If I understand the question correct, you want to rename faultcode
>> in to MyException.
>>
>> Unfortunately that can not be done according to the SOAP
>> specification. Both SOAP 1.1 and SOAP 1.2 specifications have
>> defined the strcture of a fault. Maximum you can do is, you can add
>> something under the detail header of the SOAP fault.
>>
>> -- Chinthaka
>>
>> Juergen Umbrich wrote:
>>
>>
>>> Hi
>>
>>> i have scanned the mailinglist for a example or explanation of
>>> the fault handling.But i didn´t find any solution for my problem.
>>>
>>
>>> So what i didn´t understand is, how i can create a own exception
>>> and what i have to implement to get my exception as the standart
>>> exception.
>>
>>> is it possible to get instead of the the -tag my
>>>  Message -tag? Of which class should i
>>> extende my exception class ? perhaps i have to change the
>>> messagereciever class?
>>
>>> i would be lucky if someone has an example for me.
>>
>>> thanks in advance Jürgen
>>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.2 (MingW32)
>  
> iD8DBQFD3kytjON2uBzUhh8RAiXNAJ9qaOH7ORnVeOipNtwNHib6/MZ3LgCeJ9Ux
> pzo+sQaRRuEEMnuD6XAoS/M=
> =eYfQ
> -END PGP SIGNATURE-
>