The xbean version used in latest snapshot incorporate the fix.
So you can not rely on servicemix class which has been removed,
but you must use the
  org.apache.xbean.spring.context.XmlWebApplicationContext
in your web.xml.
For an example, take a look at

http://svn.apache.org/repos/asf/incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml


On 8/29/06, Charles Souillard <[EMAIL PROTECTED]> wrote:

It is not a problem for me to use the following class but please give me
a bit more information on how to do that and which changes I have to do.
I am not familiar with xbean at all.
I give you the thread dealing with that problem :


In the mean time, you can use the
org.apache.servicemix.xbean.XmlWebApplicationContext class.

Cheers,
Guillaume Nodet

On 7/25/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote:

The patch is applied in xbean, but ServiceMix does not use the latest
version yet.
It should be done asap.

Cheers,
Guillaume Nodet


On 7/19/06, Charles Souillard <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am trying to deploy the SM web app into my J2EE app server and I am
> getting an error :
> java.lang.IllegalStateException: Could not find valid implementation
> for: 2.0-m5
>         at
>
>

org.apache.xbean.spring.context.XmlWebApplicationContext.createBeanDefinitionReader
(

> XmlWebApplicationContext.java:84)
>         at
>
>

org.apache.xbean.spring.context.XmlWebApplicationContext.loadBeanDefinitions

> (XmlWebApplicationContext.java:63)
>         at
>
>

org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
(

> AbstractRefreshableApplicationContext.java:89)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:278)
>         at
>
>

org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh
(

> AbstractRefreshableWebApplicationContext.java:156)
>         at
>
>
org.springframework.web.context.ContextLoader.createWebApplicationContext
> (ContextLoader.java:246)
>         at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(
> ContextLoader.java:184)
>         at
> org.springframework.web.context.ContextLoaderListener.contextInitialized
> (ContextLoaderListener.java:49)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java :3727)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java
> :4162)
>
> I saw that some bugs were created for that problem :
> http://issues.apache.org/jira/browse/XBEAN-21
> https://issues.apache.org/activemq/browse/SM-458
>
> In the XBEAN-21 bud, it is written that the patch is applied bug I still
> get the error with the latest sn from 2006/07/18.
> I tried to replace in my eclipse project the linked java file but
> nothing change. This error make me impossible using the web app in my
> J2EE app server.
>
> Perhaps I missed something in the way to bypass the error so can you
> tell me what I have to do ?
> Can you give me the exact status of this bug ? (it is still open in jira
> but a patch exist....)
>
> Thanks a lot
> Regards,
> Charles
>






Guillaume Nodet wrote:
> The latest snapshots use xbean-2.6-snapshot (which should be upgrade to
> xbean-2.6 final in a few days) which should fix any xbean related
> problem.
> Which specific problem are you refering to ?
>
> On 8/29/06, Charles Souillard <[EMAIL PROTECTED]> wrote:
>>
>> I can only find here 3.0M2 release which is not a good one for me as
you
>> said :
>> "make sure you use a post M2 release (a snapshot)". And when I choose
>> development snapshot, I can find snapshots from :
>> 06/20 = the same date as the 3.0M2
>> and then snapshots from 08/08 and later.
>> I know that the xbean problem was present ont the 07/19 so it means I
>> can not find any build later than 3.0M2 and before the xbean problem
>> occurs ?
>>
>> Thanks
>> Charles
>>
>> Guillaume Nodet wrote:
>> > Have you tried http://servicemix.goopen.org/site/download.html ?
>> >
>> > On 8/29/06, Charles Souillard <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi Guillaume,
>> >>
>> >> I can see in the mailling list that the 3.0 M2 was released on the
>> 20th
>> >> of june. Is that correct ?
>> >> I am currently using a personnal build from the 19th of june...
>> >> As I explained in a previous thread (07/19/06), I can not use for
the
>> >> moment the current nightly build because of the error concerning the
>> >> xbean jar file...
>> >>
>> >> Can you tell me if I can find (and where) a nightly build containing
>> the
>> >> fix without the xbean problem ?
>> >>
>> >> Thanks a lot
>> >> Charles
>> >>
>> >> Guillaume Nodet wrote:
>> >> > Implementing a factorial using sendSync is the worst possible
>> >> example !
>> >> > This is the one I used in a previous thread to explain how you
>> could
>> >> > easily deadlock ServiceMix :)  Unless you have an unlimited number
>> >> > of threads available.
>> >> >
>> >> > Anyway, to answer your questions, there is one and only one
channel
>> >> > for each component, and a message exchange can not be *reused*.
>> >> >
>> >> > Also, make sure you use a post M2 release (a snapshot) as a
>> critical
>> >> > bug has been fixed which was causing deadlocks when exchanges
>> >> > were send from a component to itself (it may be another endpoint,
>> >> > but in the same component).
>> >> >
>> >> > On 8/24/06, Charles Souillard <[EMAIL PROTECTED]>
>> wrote:
>> >> >>
>> >> >> Hi all,
>> >> >>
>> >> >> I am currently working on a SE. My problem is to understand how
>> >> channels
>> >> >> are managed into the jbi container. My use case is the following
:
>> >> >>
>> >> >> the NMR calls my BPEL SE. I receive a messageExchange and I
>> send the
>> >> xml
>> >> >> document to my BPEL engine. In some cases the process must call
>> some
>> >> >> other services (invoke statement of the BPEL) which are deployed
>> >> on the
>> >> >> NMR. In my particular case, I am trying to execute a factorial
>> >> service
>> >> >> (it give the mathematical result of the factorial operand : 10!
>> for
>> >> >> example). I can summarize my problem as the following :
>> >> >>
>> >> >> NMR - 1 > BPEL SE - 2 > BPEL engine - 3 > BPEL SE - 4 > NMR - 5 >
>> >> BPEL
>> >> >> SE - 6 > BPEL Engine - 7 > BPEL SE ....
>> >> >>
>> >> >> So is ity mandatory to use the same channel / exchage in all of
>> these
>> >> >> flows ?
>> >> >>
>> >> >> In my case, I use the given exchange for the arrow #1 and for
>> >> arrow #4
>> >> I
>> >> >> can get the BPEL SE component channel and then I create a new
>> >> >> exchange...
>> >> >> Is that correct ?
>> >> >>
>> >> >> In that case, when I perform the following code, after the arrow
>> >> #4 the
>> >> >> message is sent but no response is given in return to my RR
>> call...
>> :
>> >> >>
>> >> >> Element body = <myBody>
>> >> >> URI mep = URI.create("http://www.w3.org/2004/08/wsdl/in-out";);
>> >> >> MessageExchangeFactory factory = channel.createExchangeFactory();
>> >> >> MessageExchange me = factory.createExchange(mep);
>> >> >> me.setInterfaceName(new QName(portTypeNS,portTypeName));
>> >> >> QName serviceQN = new QName(serviceNS,serviceName);
>> >> >> me.setService(serviceQN);
>> >> >> me.setEndpoint(this.component.getComponentContext
>> >> >> ().getEndpoint(serviceQN,portName));
>> >> >> me.setOperation(new QName(operationNS,operationName));
>> >> >> NormalizedMessage nm = me.createMessage();
>> >> >> me.setMessage(nm, "in");
>> >> >> nm.setContent(new DOMSource(body));
>> >> >> boolean res = this.channel.sendSync(me);
>> >> >> System.out.println("after sendSync, res = "+res);       => I get
>> >> res =
>> >> >> true
>> >> >> if (!res) {
>> >> >>   throw new Exception("OrchestraMessageListener.onMessage,
Timeout
>> on
>> >> >> sending request/response message");
>> >> >> }
>> >> >> if (me.getStatus() == ExchangeStatus.ACTIVE) {
>> >> >>   if (me.getFault == null) {
>> >> >>     nm = me.getMessage("out");
>> >> >>     if (nm != null) {
>> >> >>       newBody = ((Document)
>> >> >> this.transformer.toDOMNode(nm)).getDocumentElement();
>> >> >>       System.out.println("newBody = "+newBody);
>> >> >>     }
>> >> >>   }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> I have tried to activate and understand traces but it is hard for
>> >> me...
>> >> >> I can give then to you if you have an idea ?
>> >> >>
>> >> >> DEBUG - DeliveryChannelImpl            - SendSync
>> >> >> ID:frec445363-48773-1156420954393-5:0 in
>> DeliveryChannel{Orchestra}
>> >> >> DEBUG - DeliveryChannelImpl            - Sent: MessageExchange[
>> >> >>   id: ID:frec445363-48773-1156420954393-5:0
>> >> >>   status: Active
>> >> >>   role: consumer
>> >> >>   interface: {urn:factorialService:bpel:bsoap}FactorialServicePT
>> >> >>   service:
>> {urn:factorialService:bpel:bsoap}FactorialServiceServiceBP
>> >> >>   endpoint: FactorialServicePT
>> >> >>   operation: {urn:factorialService:bpel:bsoap}process
>> >> >>   in: <?xml version="1.0" encoding="UTF-8"?><process
>> >> >> xmlns="urn:factorialService:bpel:bsoap"><value
>> >> >> xmlns="">2.0</value></process>
>> >> >> ]
>> >> >> DEBUG - DefaultBroker                  - Routing exchange
>> >> >> MessageExchange[
>> >> >>   id: ID:frec445363-48773-1156420954393-5:0
>> >> >>   status: Active
>> >> >>   role: provider
>> >> >>   interface: {urn:factorialService:bpel:bsoap}FactorialServicePT
>> >> >>   service:
>> {urn:factorialService:bpel:bsoap}FactorialServiceServiceBP
>> >> >>   endpoint: FactorialServicePT
>> >> >>   operation: {urn:factorialService:bpel:bsoap}process
>> >> >>   in: <?xml version="1.0" encoding="UTF-8"?><process
>> >> >> xmlns="urn:factorialService:bpel:bsoap"><value
>> >> >> xmlns="">2.0</value></process>
>> >> >> ] to:
>> >> >>
>> >> >>
>> >>
>>
ServiceEndpoint[service={urn:factorialService:bpel:bsoap}FactorialServiceServiceBP,endpoint=FactorialServicePT]
>>
>> >>
>> >> >>
>> >> >> DEBUG - SedaFlow                       - Called Flow send
>> >> >> DEBUG - DeliveryChannelImpl            - Waiting for exchange
>> >> >> ID:frec445363-48773-1156420954393-5:0 (10f29f) to be answered in
>> >> >> DeliveryChannel{Orchestra} from sendSync
>> >> >> DEBUG - SedaQueue                      -
>> >> >> [EMAIL PROTECTED]
>> dequeued
>> >> >> exchange: MessageExchange[
>> >> >>   id: ID:frec445363-48773-1156420954393-5:0
>> >> >>   status: Active
>> >> >>   role: provider
>> >> >>   interface: {urn:factorialService:bpel:bsoap}FactorialServicePT
>> >> >>   service:
>> {urn:factorialService:bpel:bsoap}FactorialServiceServiceBP
>> >> >>   endpoint: FactorialServicePT
>> >> >>   operation: {urn:factorialService:bpel:bsoap}process
>> >> >>   in: <?xml version="1.0" encoding="UTF-8"?><process
>> >> >> xmlns="urn:factorialService:bpel:bsoap"><value
>> >> >> xmlns="">2.0</value></process>
>> >> >> ]
>> >> >> DEBUG - DeliveryChannelImpl            - Processing inbound
>> exchange:
>> >> >> MessageExchange[
>> >> >>   id: ID:frec445363-48773-1156420954393-5:0
>> >> >>   status: Active
>> >> >>   role: provider
>> >> >>   interface: {urn:factorialService:bpel:bsoap}FactorialServicePT
>> >> >>   service:
>> {urn:factorialService:bpel:bsoap}FactorialServiceServiceBP
>> >> >>   endpoint: FactorialServicePT
>> >> >>   operation: {urn:factorialService:bpel:bsoap}process
>> >> >>   in: <?xml version="1.0" encoding="UTF-8"?><process
>> >> >> xmlns="urn:factorialService:bpel:bsoap"><value
>> >> >> xmlns="">2.0</value></process>
>> >> >> ]
>> >> >> DEBUG - DeliveryChannelImpl            - Notifying exchange
>> >> >> ID:frec445363-48773-1156420954393-5:0(10f29f) in
>> >> >> DeliveryChannel{Orchestra} from processInboundSynchronousExchange
>> >> >> DEBUG - DeliveryChannelImpl            - Notified:
>> >> >> ID:frec445363-48773-1156420954393-5:0(10f29f) in
>> >> >> DeliveryChannel{Orchestra} from sendSync
>> >> >> after sendSync, res = true
>> >> >> status = Active
>> >> >> fault = null
>> >> >> error = null
>> >> >> out = null
>> >> >> newBody = null
>> >> >>
>> >> >>
>> >> >> Thanks a lot
>> >> >> Charles
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>>
>
>
>




--
Cheers,
Guillaume Nodet

Reply via email to