[Users] How to provide JMS as a Service Assembly

abbenoit abbenoit at sopragroup.com
Wed Mar 16 10:39:53 CET 2011


Hi,

I'm trying to provide a JMS (JORAM).

I successfully installed the jms binding component and the Joram's shared library.

I created a Service Unit using Petals Studio and obtained the following jbi.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	JBI descriptor for the Petals' "petals-bc-jms" component (JMS).
	Originally created for the version 3.0 of the component.
 -->
<jbi:jbi version="1.0" 
	xmlns:interfaceNs="intNs"
	xmlns:jbi="http://java.sun.com/xml/ns/jbi"
	xmlns:jms="http://petals.ow2.org/components/jms/version-3.0"
	xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-4.0"
	xmlns:serviceNs="servNs"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
	<jbi:services binding-component="true">
	
		<!-- Import a Service into Petals => provides a Service. -->
		<jbi:provides 		
			interface-name="interfaceNs:intN"
			service-name="serviceNs:serv"
			endpoint-name="autogenerate">
	
			<!-- CDK specific elements -->
			<petalsCDK:timeout>90</petalsCDK:timeout>
			<petalsCDK:wsdl xsi:nil="true" />
		
			<!-- Component specific elements -->	
			<jms:jndi-provider-url>scn://localhost:16400</jms:jndi-provider-url>
			<jms:jndi-initial-context-factory>fr.dyade.aaa.jndi2.client.NamingContextFactory</jms:jndi-initial-context-factory>
			<jms:jndi-destination-name>queue</jms:jndi-destination-name>
			<jms:jndi-connection-factory>qcf</jms:jndi-connection-factory>
			<jms:transacted>false</jms:transacted>
			<jms:max-active>10</jms:max-active>
			<jms:max-idle>5</jms:max-idle>
			<jms:max-wait>10000</jms:max-wait>
			<jms:test-while-idle>true</jms:test-while-idle>			
		</jbi:provides>
	</jbi:services>
</jbi:jbi>


When I created the corresponding Service Assembly and deploy it into Petals Platform, i get the following errors :


[Petals.Container.Components.petals-bc-jms]-INFO 2010-02-26 12:18:41,067 deployi
ng the service unit su-JMS-serv-provide
[Petals.JBI-Management.DeploymentServiceImpl]-WARNING 2010-02-26 12:18:43,333 Er
ror occured during the the registration or the deployment of a Service Unit
javax.jbi.management.DeploymentException: org.ow2.petals.component.framework.jbi
descriptor.CDKJBIDescriptorException: Failed to build jbi descriptor
        at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.depl
oy(AbstractServiceUnitManager.java:252)
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeploySUToCompon
entTask.deploySUtoComponent(DeploySUToComponentTask.java:111)
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeploySUToCompon
entTask.execute(DeploySUToComponentTask.java:65)
        at org.ow2.petals.jbi.management.TaskProcessor.process(TaskProcessor.jav
a:78)
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeployAllSUTask.
registerAndDeploySU(DeployAllSUTask.java:164)
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeployAllSUTask.
deploySUS(DeployAllSUTask.java:120)
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeployAllSUTask.
execute(DeployAllSUTask.java:78)
        at org.ow2.petals.jbi.management.TaskProcessor.process(TaskProcessor.jav
a:78)
        at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.deploy
(DeploymentServiceImpl.java:185)
        at org.objectweb.fractal.julia.generated.C7949fad8_0.deploy(INTERCEPTOR[
DeploymentServiceMBean])
        at org.objectweb.fractal.julia.generated.C7566203_0.deploy(INTERFACE[Dep
loymentServiceMBean])
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performD
eploySA(AutoLoaderServiceImpl.java:442)
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(
AutoLoaderServiceImpl.java:169)
        at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(In
stallDirectoryScanner.java:81)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: org.ow2.petals.component.framework.jbidescriptor.CDKJBIDescriptorExce
ption: Failed to build jbi descriptor
        at org.ow2.petals.component.framework.jbidescriptor.JBIDescriptorBuilder
.buildJavaJBIDescriptor(JBIDescriptorBuilder.java:228)
        at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.depl
oy(AbstractServiceUnitManager.java:249)
        ... 15 more
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was foun
d starting with element 'petalsCDK:timeout'. One of '{"http://petals.ow2.org/com
ponents/extensions/version-5":timeout, "http://petals.ow2.org/components/extensi
ons/version-5":retrypolicy, "http://petals.ow2.org/components/extensions/version
-5":su-interceptors, "http://petals.ow2.org/components/extensions/version-5":exc
hange-properties, "http://petals.ow2.org/components/extensions/version-5":messag
e-properties, "http://petals.ow2.org/components/extensions/version-5":validate-w
sdl, "http://petals.ow2.org/components/extensions/version-5":forward-security-su
bject, "http://petals.ow2.org/components/extensions/version-5":forward-message-p
roperties, "http://petals.ow2.org/components/extensions/version-5":forward-attac
hments, "http://petals.ow2.org/components/extensions/version-5":wsdl}' is expect
ed.]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalExcept
ion(AbstractUnmarshallerImpl.java:315)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmar
shalException(UnmarshallerImpl.java:510)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:215)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
nmarshallerImpl.java:190)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
nmarshallerImpl.java:241)
        at org.ow2.petals.component.framework.jbidescriptor.JBIDescriptorBuilder
.buildJavaJBIDescriptor(JBIDescriptorBuilder.java:222)
        ... 16 more
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid conten
t was found starting with element 'petalsCDK:timeout'. One of '{"http://petals.o
w2.org/components/extensions/version-5":timeout, "http://petals.ow2.org/componen
ts/extensions/version-5":retrypolicy, "http://petals.ow2.org/components/extensio
ns/version-5":su-interceptors, "http://petals.ow2.org/components/extensions/vers
ion-5":exchange-properties, "http://petals.ow2.org/components/extensions/version
-5":message-properties, "http://petals.ow2.org/components/extensions/version-5":
validate-wsdl, "http://petals.ow2.org/components/extensions/version-5":forward-s
ecurity-subject, "http://petals.ow2.org/components/extensions/version-5":forward
-message-properties, "http://petals.ow2.org/components/extensions/version-5":for
ward-attachments, "http://petals.ow2.org/components/extensions/version-5":wsdl}'
 is expected.
        at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseExc
eption(Util.java:109)
        at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdapto
r.error(ErrorHandlerAdaptor.java:104)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:382)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:316)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
rReporter.reportError(XMLSchemaValidator.java:429)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
chemaError(XMLSchemaValidator.java:3185)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
tartElement(XMLSchemaValidator.java:1831)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
ement(XMLSchemaValidator.java:705)
        at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerIm
pl.startElement(ValidatorHandlerImpl.java:335)
        at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.start
Element(ValidatingUnmarshaller.java:89)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SA
XConnector.java:137)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(AbstractSAXParser.java:533)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(XMLNSDocumentScannerImpl.java:330)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:211)
        ... 19 more
[Petals.JBI-Management.DeploymentServiceImpl]-SEVERE 2010-02-26 12:18:43,458 Una
ble to deploy the service assembly at 'file:/D:/projets/onema/guichet/softs/peta
ls/petals-platform/install/sa-JMS-serv-provide.zip'
javax.jbi.management.DeploymentException: The deployment of the Service Assembly
 'file:/D:/projets/onema/guichet/softs/petals/petals-platform/install/sa-JMS-ser
v-provide.zip' failed.
        at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.deploy
(DeploymentServiceImpl.java:189)
        at org.objectweb.fractal.julia.generated.C7949fad8_0.deploy(INTERCEPTOR[
DeploymentServiceMBean])
        at org.objectweb.fractal.julia.generated.C7566203_0.deploy(INTERFACE[Dep
loymentServiceMBean])
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performD
eploySA(AutoLoaderServiceImpl.java:442)
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(
AutoLoaderServiceImpl.java:169)
        at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(In
stallDirectoryScanner.java:81)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: javax.jbi.management.DeploymentException: All the Service Unit deploy
ment has failed
        at org.ow2.petals.jbi.management.task.deployment.deploy.DeployAllSUTask.
execute(DeployAllSUTask.java:81)
        at org.ow2.petals.jbi.management.TaskProcessor.process(TaskProcessor.jav
a:78)
        at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.deploy
(DeploymentServiceImpl.java:185)
        ... 7 more
[Petals.AutoLoaderServiceImpl]-SEVERE 2010-02-26 12:18:43,473 Error during the d
eployment of a service assembly:
java.lang.RuntimeException: The deployment of the Service Assembly 'file:/D:/pro
jets/onema/guichet/softs/petals/petals-platform/install/sa-JMS-serv-provide.zip'
 failed.
Caused by:All the Service Unit deployment has failed
        at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.deploy
(DeploymentServiceImpl.java:232)
        at org.objectweb.fractal.julia.generated.C7949fad8_0.deploy(INTERCEPTOR[
DeploymentServiceMBean])
        at org.objectweb.fractal.julia.generated.C7566203_0.deploy(INTERFACE[Dep
loymentServiceMBean])
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performD
eploySA(AutoLoaderServiceImpl.java:442)
        at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(
AutoLoaderServiceImpl.java:169)
        at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(In
stallDirectoryScanner.java:81)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

Any suggestions ?

Thanks in advance.




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications.

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=30493#30493

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/25d14c7a/attachment.htm>


More information about the Users mailing list