RE: Article on Intalio|BPMS Community site

2006-07-20 Thread Arnaud Blandin
Hi Robert,

The axis team has already reported the issue at:
http://issues.apache.org/jira/browse/WSCOMMONS-11?page=all
I am not sure why the bug is reported as minor though.

Thanks,

Arnaud 

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 19, 2006 9:56 PM
> To: axis-user@ws.apache.org
> Subject: Re: Article on Intalio|BPMS Community site
> 
> Is there a JIRA for this issue? If not, could you please file one?
> From the links src download,
> src/com/intalio/bpms/tools/webservices/email/Body_type1.java
> 
> // This is horrible, but the OM implementation of 
> getElementText() does not obey the proper contract.  
> Specifically, it does
> // does not advance the reader to the END_ELEMENT.  
> This bug is triggered by calls to getElementText() 
> unpredictably, e.g. it
> // happens with outer (document) elements, but not 
> with inner elements.  The root bug is in OMStAXWrapper.java, 
> which is now part
> // of commons and so cannot just be fixed in axis2.  
> This method should be removed and the calls to it below replaced with
> // simple calls to getElementText() as soon as this 
> serious bug can be fixed.
> 
> Thanks,
> Robert
> http://www.braziloutsource.com/
> 
> On 7/19/06, Arnaud Blandin <[EMAIL PROTECTED]> wrote:
> > Dear Axis users and developers,
> >
> > We have just released an article detailling how you can write a web 
> > service with Axis 2 to later embed it in a business process 
> defined in
> > Intalio|BPMS.
> > The article details the process of writing a webservice to send an 
> > email and how you can leverage the Axis2 Code Generator and 
> Service Archiver.
> > There is also a section presenting the Axis2 project.
> >
> > You can find the article at:
> > http://bpms.intalio.com/content/view/114/84/
> >
> > Can you please add it in your list of articles on the Axis2 page?
> >
> > Do not hesitate to contact me if you need more information 
> about the 
> > article or Intalio|BPMS.
> >
> > Cheers,
> >
> > Arnaud
> >
> > EMEA Manager
> > Intalio, The OpenSource BPMS Company
> > www.intalio.com
> >
> > 
> -
> > 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: Article on Intalio|BPMS Community site

2006-07-19 Thread Arnaud Blandin
Hi Michele,

Thanks for noticing it, the site was asking you to actually register.
You can now freely see the article without registering. 

Thanks,

Arnaud

PS: if you are interested in registering, you can use the following
link:
http://bpms.intalio.com/component/option,com_comprofiler/task,registers/

> -Original Message-
> From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 19, 2006 2:45 PM
> To: axis-user@ws.apache.org
> Subject: Re: Article on Intalio|BPMS Community site
> 
> Arnaud,
> 
> it seems that the link is broken.
> 
> Michele
> 
> Arnaud Blandin wrote:
> > Dear Axis users and developers,
> > 
> > We have just released an article detailling how you can write a web 
> > service with Axis 2 to later embed it in a business process 
> defined in
> > Intalio|BPMS.
> > The article details the process of writing a webservice to send an 
> > email and how you can leverage the Axis2 Code Generator and 
> Service Archiver.
> > There is also a section presenting the Axis2 project.
> > 
> > You can find the article at:
> > http://bpms.intalio.com/content/view/114/84/
> > 
> > Can you please add it in your list of articles on the Axis2 page?
> > 
> > Do not hesitate to contact me if you need more information 
> about the 
> > article or Intalio|BPMS.
> > 
> > Cheers,
> > 
> > Arnaud
> > 
> > EMEA Manager
> > Intalio, The OpenSource BPMS Company
> > www.intalio.com
> > 
> > 
> -
> > 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]



Article on Intalio|BPMS Community site

2006-07-19 Thread Arnaud Blandin
Dear Axis users and developers,

We have just released an article detailling how you can write a web
service with Axis 2 to later embed it in a business process defined in
Intalio|BPMS.
The article details the process of writing a webservice to send an email
and how you can leverage the Axis2 Code Generator and Service Archiver.
There is also a section presenting the Axis2 project.

You can find the article at:
http://bpms.intalio.com/content/view/114/84/

Can you please add it in your list of articles on the Axis2 page?

Do not hesitate to contact me if you need more information about the
article or Intalio|BPMS.

Cheers,

Arnaud

EMEA Manager
Intalio, The OpenSource BPMS Company
www.intalio.com

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



Axis2: JavaMail / ClassLoader issue

2006-04-27 Thread Arnaud Blandin
Axis team,

I just wanted to summarize the problem we faced recently and check with
you the possible alternatives.
We have just finished packaging a web-service that simply sends email.
The main problem is that we had to use the Sun distribution of javamail
and jaf.
Thus our service hierarchy looks like:

Service.aar
|_lib
  |_mail.jar
  |_jaf.jar
  |_...

However since Axis2 shipped by default with geronimo-javamail and
geronimo-activation which are not yet complete, there is class issue at
runtime.
In order to workaround this problem, we created our own class loader to
redirect javax.mail and javax.activation to the correct classes.
We unfortunately had no luck with this approach as we can only set the
Service class loader and we don't have access to the classloader that
loads initially the javax.mail libraries from the geronimo jars:

-
AxisService service =
 
msgContext.getOperationContext().getServiceContext().getAxisService();
service.setClassLoader(myOwnStuff);
-

The only workaround so far is to replace in the Axis2 distribution the
geronimo jars with the sun jars.
I hope I succeeded in describing the problem as it is not a common one
nor an easy one.

I have two questions:
  1- is it possible to have access to the ClassLoader that loads
initially the Axis2 libraries ?
  2- if not, is it possible to ship Axis2 with the Sun libraries. I
haven't seen something that would prevent to distribute it in the
license.

Many thanks,

Arnaud


RE: [AXIS2] Classloader problem

2006-04-06 Thread Arnaud Blandin
Hi Deepal,

Thanks for your answer. 
This is what I thought too about the classloader mechanism. However in
my case I really have a class conflict and axis2 is using the classes
loaded in /web-inf/lib.
My problem comes from the geronimo-javamail that doesn't implement all
the specification and thus I receive UnsupportedOperationException
whereas the sun distribution is located under 

myService
|_lib

I am deploying axis2 under Tomcat.

Thanks,

Arnaud 

> -Original Message-
> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 05, 2006 6:21 AM
> To: axis-user@ws.apache.org
> Subject: Re: [AXIS2] Classloader problem
> 
> Hi ;
> 
> Axis2 service classloaders work in child first scenario by 
> default , what that mean is it load classes from child class 
> loader before loading from parent class loader, so according 
> to ur picture , if there is some class in foo.jar inside 
> myService.aar then for the service it will use class in 
> myService.aar/lib/foo.jar  not from web-inf/lib/foo.jar.
> 
> So you dont need to do anything to get this is done , by 
> default Axis2 does the class loading as you require.
> 
> 
> 
> Arnaud Blandin wrote:
> 
> >Hi,
> >
> >I am sure you have been discussing about this problem in the 
> past but I 
> >couldn't find the relevant thread.
> >I apologize in advance if I am describing a known problem.
> >
> >I am currently building a service on top of AXIS2. This service is 
> >using classes that are conflicting with the classes distributed with 
> >the Axis2 web app.
> >The service is deployed as an aar file in the service 
> directory of the
> >axis2 web application.
> >
> >My question is simple: how can I ensure that the ClassLoader 
> tries to 
> >load first the classes packaged in my lib directory from the aar 
> >instead of looking at the 'lib' directory of the axis2 webapp.
> >
> >|_WEB-INF
> >  |_lib
> >|_foo.jar
> >  |_services
> >|_myService.aar
> >  |_lib
> >|_foo.jar
> >
> >I want to ensure that my service looks first for the 
> >myService.aar/lib/foo.jar As a workaround I tried to set the 
> following 
> >with no luck before invoking the Skeleton:
> >
> >ClassLoader previous = 
> Thread.currentThread().getContextClassLoader();
> >ClassLoader loader = msgContext.getAxisService().getClassLoader();
> >Thread.currentThread().setContextClassLoader(loader);
> >
> >Thanks,
> >
> >Arnaud
> >
> >
> >
> >  
> >
> 
> --
> Thanks,
> Deepal
> 
> ~Future is Open~ 
> 
> 
> 


[AXIS2] Classloader problem

2006-04-04 Thread Arnaud Blandin
Hi,

I am sure you have been discussing about this problem in the past but I
couldn't find the relevant thread.
I apologize in advance if I am describing a known problem.

I am currently building a service on top of AXIS2. This service is using
classes that are conflicting with the classes distributed with the Axis2
web app.
The service is deployed as an aar file in the service directory of the
axis2 web application.

My question is simple: how can I ensure that the ClassLoader tries to
load first the classes packaged in my lib directory from the aar instead
of looking at the 'lib' directory of the axis2 webapp.

|_WEB-INF
  |_lib
|_foo.jar
  |_services
|_myService.aar
  |_lib
|_foo.jar

I want to ensure that my service looks first for the
myService.aar/lib/foo.jar
As a workaround I tried to set the following with no luck before
invoking the Skeleton:

ClassLoader previous = Thread.currentThread().getContextClassLoader();
ClassLoader loader = msgContext.getAxisService().getClassLoader();
Thread.currentThread().setContextClassLoader(loader);

Thanks,

Arnaud



RE: ADB and Cardinality

2006-04-02 Thread Arnaud Blandin
Hi,

Thanks for your reply.
The bug is filed at: http://issues.apache.org/jira/browse/AXIS2-543

Regards,

Arnaud 

> -Original Message-
> From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, April 01, 2006 8:31 AM
> To: axis-user@ws.apache.org
> Subject: Re: ADB and Cardinality
> 
> Hi Arnaud,
> Seems like a bug in the code generator! I guess you should be 
> reporting a Jira (Appreciate if you can attach your schema also)
> 
> Ajith
> 
> On 3/31/06, Arnaud Blandin <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I am trying to use ADB in order to reduce the footprint of the 
> > generated code in AXIS2 and I am facing a problem with 
> cardinalities:
> > Roughly speaking, my WSDL defines a schema structure like:
> >
> >  > maxOccurs="unbounded"/>
> >  > maxOccurs="unbounded"/>
> >  > maxOccurs="unbounded"/>
> >
> > The first problem (minor) comes from the generated code that doesn't
> > compile:
> >
> > java.lang.String[] textArray = stateMachine1.getTextArray();
> > object.setTo((java.lang.String[])
> >
> > org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
> >  java.lang.String.class,stateMachine1.getTextArray()));
> > // Move to a start element
> > event = reader.getEventType();
> > while (event!= javax.xml.stream.XMLStreamReader.START_ELEMENT) {
> > event = reader.next();
> > }
> >
> > org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine
> > stateMachine2 = new
> > org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine();
> > stateMachine2.setElementNameToTest(new
> > javax.xml.namespace.QName("http://www.example.com","B";));
> > stateMachine2.read(reader);
> > java.lang.String[] textArray = stateMachine2.getTextArray();
> >
> > ---> textArray is declared a second time and it is not used in the
> > class.
> >
> > My second problem lies when I want to process like:
> > foo
> > bar
> > bar
> >
> > The engine sends an IllegalState as it somehow assumes that 
> a B will 
> > be there.
> >
> > Can you please let me know if I am missing something or if 
> I encovered 
> > a bug?
> > I am using AXIS2 0.95 release.
> >
> > Thanks,
> >
> > Arnaud
> >
> 
> 
> --
> Ajith Ranabahu
> 


ADB and Cardinality

2006-03-31 Thread Arnaud Blandin
 
Hi,

I am trying to use ADB in order to reduce the footprint of the generated
code in AXIS2 and I am facing a problem with cardinalities:
Roughly speaking, my WSDL defines a schema structure like:





The first problem (minor) comes from the generated code that doesn't
compile:

java.lang.String[] textArray = stateMachine1.getTextArray();
object.setTo((java.lang.String[])
 
org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
 java.lang.String.class,stateMachine1.getTextArray()));
// Move to a start element
event = reader.getEventType();
while (event!= javax.xml.stream.XMLStreamReader.START_ELEMENT) {
event = reader.next();
}

org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine
stateMachine2 = new
org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine();
stateMachine2.setElementNameToTest(new
javax.xml.namespace.QName("http://www.example.com","B";));
stateMachine2.read(reader);
java.lang.String[] textArray = stateMachine2.getTextArray();

---> textArray is declared a second time and it is not used in the
class.

My second problem lies when I want to process like:
foo
bar
bar

The engine sends an IllegalState as it somehow assumes that a B will be
there.

Can you please let me know if I am missing something or if I encovered a
bug?
I am using AXIS2 0.95 release.

Thanks,

Arnaud