[Axis2] JiBX Mapping

2007-01-22 Thread Alexander Grivnin
Dennis,

 In one of your responses in the JiBX forum you've mentioned that if
class packages overlap, their mapping definitions should be defined in a
single mapping file. Otherwise, if binding reside in multiple files,
generated classes gets overridden in subsequent compilations. 

 We tried to put everything in a single mapping file, but that requires
that mapping file will not have the following construct:



Without that construct, we saw situations when namespace was not added
to some arbitrary xml elements in the SOAP message, which in turn
resulted in a communication failure. 

Do you know of any other options we can try?

Thanks,
Alex

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



[Axis2] JiBX and WS-Security

2007-01-19 Thread Alexander Grivnin
Dennis,

 I saw you've added content in the
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx regarding security
problem you've found. Can you please elaborate about your findings?

Thanks,
Alex 

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



RE: [Axis2] Manual module deployment

2007-01-19 Thread Alexander Grivnin
Thanks Deepal,

 Is it in the plans?

 I understand that loading modules does not change the chain of
handling, but I just wanted the loading itself.

 As a shortcut, may be you can point out the place in the code where the
load takes place? I'm thinking of filtering modules, axis trying to
load, by their names.

Thanks,
Alex

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 18, 2007 8:19 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Manual module deployment

Hi Alexander ;

>Hello,
>
> Is it possible to tell axis to load only a specific module instead of
>going over "modules" directory?
>
>
>
In the current implementation there is no way to control the behavior
and it will load all the mar files in the modules directory. But loading
module will not change and configurations or handler chains ,
configuration will be change only when you engage a module.

>  Our server receives and calls external web services. When it is in a
>mode to call external web service - axis2 goes over "modules" directory
>and deploys all .mar files it encounters. But we want it only pickup a
>certain module - rampart, and not waste time on processing the entire
>directory.
>
> One possible solution is to create a separate module folder that will
>have only rampart.mar, but we want to avoid duplication.
>
>Thanks for your help,
>
>Alex
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>


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


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



[Axis2] Manual module deployment

2007-01-18 Thread Alexander Grivnin
Hello,

 Is it possible to tell axis to load only a specific module instead of
going over "modules" directory?
 
  Our server receives and calls external web services. When it is in a
mode to call external web service - axis2 goes over "modules" directory
and deploys all .mar files it encounters. But we want it only pickup a
certain module - rampart, and not waste time on processing the entire
directory. 

 One possible solution is to create a separate module folder that will
have only rampart.mar, but we want to avoid duplication.

Thanks for your help,

Alex

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



[Axis2] Explicit headers with JiBX

2007-01-16 Thread Alexander Grivnin
Hi Dennis,

 Thanks for the detailed axis2-JiBX wiki page!
 
 Do you know if headers are supported in the latest (1.1.1) release? I
tried to use explicit headers in a wsdl and there is a compilation error
saying that no mapping was defined for the header type. Should the
header be also in the mapping?

 Thanks for all your help,

 Alex

--

WSDL file:

...




...


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



http://mercury.com/ppm/rm/msg/1.0"/>



http://mercury.com/ppm/rm/msg/1.0"/>


...

Exception:

[echo] wsdl file =
N:\Kintana\KntaDev\SourceCode\java\pm\webservices\conf\wsdl/ResourceServ
ice.wsdl
 [java] Retrieving schema at '../xsd/Resource.xsd', relative to
'file:/N:/Kintana/KntaDev/SourceCode/java/pm/webservices/conf/wsdl/'.
 [java] Retrieving schema at '../xsd/Common.xsd', relative to
'file:/N:/Kintana/KntaDev/SourceCode/java/pm/webservices/conf/xsd/Resour
ce.xsd'.
 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping defined for element
{http://mercury.com/ppm/common/1.0}AuditHeader
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:224)
 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 [java] Caused by: java.lang.RuntimeException: No mapping defined for
element {http://mercury.com/ppm/common/1.0}AuditHeader
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtili
ty.java:928)
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUti
lity.java:922)
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
.java:340)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi
on.java:74)
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:177)
 [java] ... 2 more

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



[Axis2] Client call using JiBX and rampart

2007-01-12 Thread Alexander Grivnin
Hi,

 The usage of JiBX binding for issuing client calls works fine. But when we try 
adding WS-SECURITY to the picture axis throws the following exception.

 Any ideas?

 Thanks,

 Alex

 

[junit] Caused by: org.apache.axis2.AxisFault: WSDoAllReceiver: Error in 
converting to Document;

 nested exception is:

[junit] org.apache.ws.security.WSSecurityException: Error in converting 
SOAP Envelope to Doc

ument; nested exception is:

[junit] org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:249)

[junit] at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:86)

[junit] ... 23 more

[junit] Caused by: org.apache.ws.security.WSSecurityException: Error in 
converting SOAP Envelope

 to Document; nested exception is:

[junit] org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:121)

 

[junit] at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:247)

[junit] ... 24 more

[junit] Caused by: org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)

[junit] at 
org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:469)

[junit] at 
org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:476)

[junit] at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:107)

 

[junit] ... 25 more

[junit] Caused by: javax.xml.stream.XMLStreamException

[junit] at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:952

)

[junit] at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:913)

[junit] at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:116)

[junit] ... 28 more

 

[junit] Test com.mercury.itg.ws.dm.SampleDemandServiceJibxTest FAILED

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

RE: [Axis2] JiBX with Faults

2007-01-11 Thread Alexander Grivnin
Dennis,

 Yes the NPE went away and now I'm getting a different exception.

 Can it be that faults supported only for wrapped generation style?

Thanks,
Alex 

Exception:
---
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping defined for element {
http://mercury.com/ppm/common/1.0}PPMFault
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:224)
 [java] at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main
(WSDL2Java.java:21)
 [java] Caused by: java.lang.RuntimeException: No mapping defined
for element { http://mercury.com/ppm/common/1.0}PPMFault
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtili
ty.java:928)
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUti
lity.java:914)
 [java] at org.apache.axis2.jibx.CodeGenerationUtility.engage
(CodeGenerationUtility.java:396)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a :39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage
(JiBXExtension.java:74)
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:177)
 [java] ... 2 more
 [java] Exception in thread "main"
 [java] Java Result: 1


---



-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 6:10 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] JiBX with Faults

You should probably update to the new Axis 1.1.1 release - I haven't
seen this exception before, but I know there was an Axiom change for
1.1.1 that was related to NPEs with namespaces.

  - Dennis

Alexander Grivnin wrote:
> Thanks Dennis,
>
>  After I removed the abstract keyword from the mapping it started to
> throw NPE. And it seems to be from namespace resolution. I'm posting
the
> stack here.
>
> Thanks very much for your help,
> Alex
>
> ---
> [java] java.lang.NullPointerException
> [java] at
>
org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrapper.j
> ava:455)
> [java] at
>
org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(Unmarshalling
> Context.java :3125
> [java] at org.jibx.runtime.QName.deserialize(QName.java:234)
> [java] at
>
org.jibx.binding.model.MappingElement.setQualifiedTypeName(MappingElemen
> t.java:261)
> [java] at
> org.jibx.binding.model.MappingElement.JiBX_binding_unmarshalAttr_5_0
> (MappingElement.java)
> [java] at
> org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal()
> [java] at
>
org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(Binding
> Element.java)
> [java] at
> org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal()
> [java] at
>
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshallin
> gContext.java:253
> [java] at org.jibx.binding.model.BindingElement.readBinding
> (BindingElement.java:609)
> [java] at
>
org.jibx.binding.model.IncludeElement.prevalidate(IncludeElement.java:15
> 1)
> [java] at
>
org.apache.axis2.jibx.CodeGenerationUtility$IncludePrevalidationVisitor.
> visit(CodeGenerat
> [java] at
> org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:163)
> [java] at
> org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
> [java] at org.jibx.binding.model.TreeContext.tourTree
> (TreeContext.java:122)
> [java] at
>
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
> .java:244)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> [java] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:324)
> [java] at
>
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi
> on.java:74)
> [java] at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
> onEngine.java:177
> [java] at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32)
> [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> [java] org.apache.axis2.wsdl.codegen.Co

RE: [Axis2] JiBX with Faults

2007-01-10 Thread Alexander Grivnin
Thanks Dennis,

 After I removed the abstract keyword from the mapping it started to
throw NPE. And it seems to be from namespace resolution. I'm posting the
stack here.

Thanks very much for your help,
Alex

---
[java] java.lang.NullPointerException
[java] at
org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrapper.j
ava:455)
[java] at
org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(Unmarshalling
Context.java :3125
[java] at org.jibx.runtime.QName.deserialize(QName.java:234)
[java] at
org.jibx.binding.model.MappingElement.setQualifiedTypeName(MappingElemen
t.java:261)
[java] at
org.jibx.binding.model.MappingElement.JiBX_binding_unmarshalAttr_5_0
(MappingElement.java)
[java] at
org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal()
[java] at
org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(Binding
Element.java)
[java] at
org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal()
[java] at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshallin
gContext.java:253
[java] at org.jibx.binding.model.BindingElement.readBinding
(BindingElement.java:609)
[java] at
org.jibx.binding.model.IncludeElement.prevalidate(IncludeElement.java:15
1)
[java] at
org.apache.axis2.jibx.CodeGenerationUtility$IncludePrevalidationVisitor.
visit(CodeGenerat 
[java] at
org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:163)
[java] at
org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
[java] at org.jibx.binding.model.TreeContext.tourTree
(TreeContext.java:122)
[java] at
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
.java:244)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi
on.java:74)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:177
[java] at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: invalid jibx
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
(CodeGenerationEngine.java:224
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
[java] Caused by: java.lang.RuntimeException : invalid jibx binding
definition file N:\Kintana\KntaDev\S
[java] at
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
.java:246)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi
on.java:74)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
(CodeGenerationEngine.java:177
[java] ... 2 more
[java] Exception in thread "main"
---
 

-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 5:23 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] JiBX with Faults

Hi Alex,

Because of the way Axis2 handles faults, you need to use a non-abstract
mapping for the fault element even when unwrapping. I'll post an example
on the JiBX-Axis2 wiki page later today to illustrate.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Grivnin wrote:
> Hi,
>
>  We are using JiBX serialization mechanism (from 1.1.1-RC1) and
decided
> to add custom faults to the WSDL. For some reason the wsdl2java
> compilation fails complaining that it does not find any corresponding
> mapping for the fault type.
>
>  Any ideas?
>
> Thanks in advance,
> Alex
>
>
> Here is the WSDL fragment:
> --
>
> 
>   
> 
> ...
> 
>   
>   
>message="axis2:PPMFaultMessage"/>
> 
>
>
> The xsd fragment:
> -
>
> 
>   
>   
>   
> 
>
>
> Th

[Axis2] JiBX with Faults

2007-01-10 Thread Alexander Grivnin
Hi,

 We are using JiBX serialization mechanism (from 1.1.1-RC1) and decided
to add custom faults to the WSDL. For some reason the wsdl2java
compilation fails complaining that it does not find any corresponding
mapping for the fault type.

 Any ideas?

Thanks in advance,
Alex


Here is the WSDL fragment:
--




...







The xsd fragment:
-








The mapping fragment:
-

http://mercury.com/ppm/common/1.0";>

http://mercury.com/ppm/common/1.0";
prefix="common"  />







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



[axis2] Jibx mapping

2007-01-08 Thread Alexander Grivnin
Hello,

 We are trying to build several JiBX mapping files that share a single
common mapping. If the bind ant task uses "bindingfileset" element and
includes all mapping files, JiBX generates incorrect set of factories
and munge adapters. 
 It seems like it depends on the order of the mappings it the binding
compiler processes. 

Are there any guidelines?

Thanks,
Alex

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



RE: [Axis2] Jibx with Attachments

2007-01-06 Thread Alexander Grivnin
Not yet.
 
I'll give it a try.
 
Thanks,
Alex



From: Dennis Sosnoski [mailto:[EMAIL PROTECTED]
Sent: Sun 1/7/2007 12:04 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Jibx with Attachments



The problem as I see it is that the JiBX code generation doesn't
currently support the special AXIOM elements that handle attachments.
However, I haven't looked into the details of how the general Axis2 code
generation handles attachments, so it's possible that this can actually
operate in the situation you described without any cooperation from
JiBX. Have you tried this out to see what happens?

  - Dennis

Alexander Grivnin wrote:
> Hi Dennis,
>
>  Thanks for clarifications.
>  Basically we want to enable attachments for the operations whose parameters 
> are of primitive types and do not contain any mapped classes. In this case it 
> sounds like JiBX serialization mechanism is not invoked and the attachments 
> in this case supposed to work, no?
>
>  Thanks for your help,
>  Alex
> 
>
> From: Dennis Sosnoski [mailto:[EMAIL PROTECTED]
> Sent: Fri 1/5/2007 11:35 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Jibx with Attachments
>
>
>
> Hi Alex,
>
> Not at present, at least without doing something like hand-modifying the
> generated message receiver and client stub. This is something I'm
> planning to add support for in JiBX 1.2.
>
>   - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Alexander Grivnin wrote:
>
>> Hello,
>>
>> Is it possible to work with attachment using Jibx mapping? Most
>> importantly we are looking for an ability to send attachments in the
>> response message.
>>
>> Thanks in advance,
>>
>> Alex
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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





RE: [Axis2] Jibx with Attachments

2007-01-05 Thread Alexander Grivnin
Hi Dennis,
 
 Thanks for clarifications. 
 Basically we want to enable attachments for the operations whose parameters 
are of primitive types and do not contain any mapped classes. In this case it 
sounds like JiBX serialization mechanism is not invoked and the attachments in 
this case supposed to work, no?
 
 Thanks for your help,
 Alex


From: Dennis Sosnoski [mailto:[EMAIL PROTECTED]
Sent: Fri 1/5/2007 11:35 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Jibx with Attachments



Hi Alex,

Not at present, at least without doing something like hand-modifying the
generated message receiver and client stub. This is something I'm
planning to add support for in JiBX 1.2.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Grivnin wrote:
>
> Hello,
>
> Is it possible to work with attachment using Jibx mapping? Most
> importantly we are looking for an ability to send attachments in the
> response message.
>
> Thanks in advance,
>
> Alex
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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



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

[Axis2] Jibx with Attachments

2007-01-05 Thread Alexander Grivnin
  
Hello,

Is it possible to work with attachment using Jibx mapping? Most
importantly we are looking for an ability to send attachments in the
response message.

Thanks in advance,

Alex 


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



IllegalStateException when custom module is enabled.

2006-12-28 Thread Alexander Grivnin

Hello,

 I'm getting the exception when enabling a simple custom module in the
axis2.xml file. Binding is done using jibx. Module is enabled only in
the InFlow order. The module is called but after that the execution
fails with IllegalStateException.

 I'm attaching axis2.xml, module.xml, wsdl, xsd and mapping files.

 The test is done with 1.1.1-RC1, but I think it was the same with 1.1.
The application runs with jboss 3.2.8 configured with tomcat 5.0.

Any help is greatly appreciated,
Thanks,
Alex

[java]
JSESSIONID=4646ED247FB0A1CC9E6504D7E3F2BE72.localhost,USERNAME=:http-0.0
.0.0-8080-Processor25:org.jboss.web.localhost.Engine:2006/12/28-19:40:31
.534 PST: ApplicationDispatcher[/itg] Servlet.service() for servlet jsp
threw exception
[java] java.lang.IllegalStateException: getOutputStream() has
already been called for this response
[java] at
org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:5
99)
[java] at
org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseF
acade.java:163)
[java] at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
[java] at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
15)
[java] at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
90)
[java] at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:115)
[java] at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:75)
[java] at
org.apache.jsp.web.knta.global.Error_jsp._jspService(Error_jsp.java:352)
[java] at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
[java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
[java] at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
[java] at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
[java] at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
[java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:704)
[java] at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:474)
[java] at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:409)
[java] at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:312)
[java] at
com.kintana.core.web.filter.ControlFilter.doForwardURL(ControlFilter.jav
a:876)
[java] at
com.kintana.core.web.filter.ControlFilter.applyFilter(ControlFilter.java
:778)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.MultipartRequestFilter.applyFilter(Multipart
RequestFilter.java:81)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.I18nFilter.applyFilter(I18nFilter.java:44)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.Log4jFilter.applyFilter(Log4jFilter.java:43)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:75)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
[java]  

IllegalStateException when custom module is enabled.

2006-12-28 Thread Alexander Grivnin
Hello,

 I'm getting the exception when enabling a simple custom module in the
axis2.xml file. Binding is done using jibx. Module is enabled only in
the InFlow order. The module is called but after that the execution
fails with IllegalStateException.

 I'm attaching axis2.xml, module.xml, wsdl, xsd and mapping files.

 The test is done with 1.1.1-RC1, but I think it was the same with 1.1.
The application runs with jboss 3.2.8 configured with tomcat 5.0.

Any help is greatly appreciated,
Thanks,
Alex

[java]
JSESSIONID=4646ED247FB0A1CC9E6504D7E3F2BE72.localhost,USERNAME=:http-0.0
.0.0-8080-Processor25:org.jboss.web.localhost.Engine:2006/12/28-19:40:31
.534 PST: ApplicationDispatcher[/itg] Servlet.service() for servlet jsp
threw exception
[java] java.lang.IllegalStateException: getOutputStream() has
already been called for this response
[java] at
org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:5
99)
[java] at
org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseF
acade.java:163)
[java] at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
[java] at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
15)
[java] at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
90)
[java] at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:115)
[java] at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:75)
[java] at
org.apache.jsp.web.knta.global.Error_jsp._jspService(Error_jsp.java:352)
[java] at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
[java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
[java] at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
[java] at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
[java] at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
[java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:704)
[java] at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:474)
[java] at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:409)
[java] at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:312)
[java] at
com.kintana.core.web.filter.ControlFilter.doForwardURL(ControlFilter.jav
a:876)
[java] at
com.kintana.core.web.filter.ControlFilter.applyFilter(ControlFilter.java
:778)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.MultipartRequestFilter.applyFilter(Multipart
RequestFilter.java:81)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.I18nFilter.applyFilter(I18nFilter.java:44)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
com.kintana.core.web.filter.Log4jFilter.applyFilter(Log4jFilter.java:43)
[java] at
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:75)
[java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
[java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
[java] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
[java]   

RE: Re: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Re: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


RE: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Strange WSDL generation

2005-10-26 Thread Alexander Grivnin
Hello,

 From time to time we are getting incorrectly generated WSDLs from the
server (uses axis 1.2.1).  That is the service's operation names are
duplicated. 

 We use Macromedia's flex engine for our client application. The client can
request multiple WSDLs simultaneously (from concurrent threads). This
probably makes axis to generate duplicate operation definitions. That in
turn prevents client from running correctly.

 Did anyone experience this before? Is there any way to avoid this behavior?


Thanks in advance,
Alex Grivnin

Mercury Interactive


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__