Configure SIP RA DU from maven

23 views
Skip to first unread message

David Rivas

unread,
Nov 19, 2009, 5:24:30 AM11/19/09
to mobicents-public
Hello everyone,

There is any way to deploy and most important, configure the SIP RA
entity, entity configuration, and entity links, with MAVEN ?

Thankyou

David Rivas

Eduardo Martins

unread,
Nov 19, 2009, 6:02:26 AM11/19/09
to mobicent...@googlegroups.com
Just edit the deploy-config.xml in the META-INF dir inside the DU jar.

-- Eduardo

David Rivas

unread,
Nov 19, 2009, 7:07:53 AM11/19/09
to mobicents-public
Has anyone a project example? Please

Bartosz Baranowski

unread,
Nov 19, 2009, 7:10:29 AM11/19/09
to mobicent...@googlegroups.com
Project of DU?
deploy-config.xml is generated by maven DU plugin, this file needs to be edited to provide custom conf. browse through DU.jar structure.
--
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Eduardo Martins

unread,
Nov 19, 2009, 7:11:23 AM11/19/09
to mobicent...@googlegroups.com
I think it is fairly easier to open the sip RA du jar with an utility such as 7zip and edit the META-INF/deploy-config.xml but if you want checkout the sip ra sources and the deploy-config.xml file is at du/src/main/resources/META-INF/deploy-config.xml

-- Eduardo

Eduardo Martins

unread,
Nov 19, 2009, 7:11:59 AM11/19/09
to mobicent...@googlegroups.com
It is not generated, the plugin generates deployable-unit.xml and ant scripts.

-- Eduardo

Bartosz Baranowski

unread,
Nov 19, 2009, 7:24:17 AM11/19/09
to mobicent...@googlegroups.com
ops, was thinking about it, said other, sorry for confusion.

David Rivas

unread,
Nov 19, 2009, 10:52:29 AM11/19/09
to mobicents-public
I got the deploy-config unziping the DU

<?xml version="1.0" encoding="UTF-8"?>
<deploy-config>
<ra-entity resource-adaptor-
id="JainSipResourceAdaptor#net.java.slee.sip#1.2" entity-name="SipRA">
<properties file="" />
<ra-link name="SipRA" />
</ra-entity>
</deploy-config>

But when I do a mvn install I got the next error:

Unable to install (project) DU has incompatible components. SBB which
depend on RAs contained in the DU. Please split them


which parts of the RA have I to split in the DU POM.xml and SBB
POM.xml ?

Eduardo Martins

unread,
Nov 19, 2009, 3:03:24 PM11/19/09
to mobicent...@googlegroups.com
The SIP RA has no sbbs, what are you doing? :)

Let us see what is the deploy config you are defining.

Anyway, the "mvn install" will rebuild the DU jar and deploy it, if that is what you are using then edit the deploy-config.xml in du/src/main/resources/META-INF. When I said to edit the file inside the jar was thinking that you had a DU jar already built (for instance, using the binary release) and wanted to edit the default configuration without rebuild...

-- Eduardo

David Rivas

unread,
Nov 20, 2009, 4:39:01 AM11/20/09
to mobicents-public
Hi Eduard,

My propose is install a JAIN SLEE project with a SBB that requires the
SIP RA. I supose this error of SBB is realtionated with my project
sbb.

My deploy config is this:

<?xml version="1.0" encoding="UTF-8"?>
<deploy-config>
<ra-entity resource-adaptor-
id="JainSipResourceAdaptor#net.java.slee.sip#1.2" entity-name="SipRA">
<properties file="">
<property name="port" value="5060" />
<property name="transport" value="udp" />
<property name="ip" value="192.168.48.121" />
</properties>
<ra-link name="SipRA" />
</ra-entity>
</deploy-config>

As I have seen in some examples that I have to declare the sip-ratype
dependency on sbb POM.xml
Have I to declare some dependency more on sbb POM.xml or du POM.xml?

Thankyou

Bartosz Baranowski

unread,
Nov 20, 2009, 4:48:07 AM11/20/09
to mobicent...@googlegroups.com
I would follow this hint You get from mvn/jslee:


"Unable to install (project) DU has incompatible components. SBB which
depend on RAs contained in the DU. Please split them"


Really, those are there for reason. Ratype and events should be declared I think.

Eduardo Martins

unread,
Nov 20, 2009, 5:36:34 AM11/20/09
to mobicent...@googlegroups.com
David, if your sbb code depends on the sip ra type then you need to add it as a dependency, in the module that compiles the sbb (I will guess it is the one you have named sbb). Now  dependencies in the du/pom.xml are collected and packed in the deployable unit jar, in your sbb it should probably just be the sbb module, if you declare the sip ra type there the maven plugin will pack it in the sbb deployable unit...

Look at examples such as sip11-b2bua in the svn, sounds like the kind of maven project you want...

-- Eduardo

David Rivas

unread,
Nov 20, 2009, 8:07:51 AM11/20/09
to mobicents-public
I have solved the error of incompatibility but when I wan to deploy
any project (examples included) I got the next error:

+-- SipInvite-DU-1.0.0.jar
+-- depends on ResourceAdaptorTypeID[JAIN SIP#javax.sip#1.2]
MISSING!

It is caused by the resource adaptor type binding on sbb-jar.xml

<resource-adaptor-type-binding>
<resource-adaptor-type-ref>
<resource-adaptor-type-name>JAIN SIP</resource-adaptor-
type-name>
<resource-adaptor-type-vendor>javax.sip</resource-
adaptor-type-vendor>
<resource-adaptor-type-version>1.2</resource-adaptor-
type-version>
</resource-adaptor-type-ref>
<activity-context-interface-factory-name>slee/resources/
jainsip/1.2/acifactory</activity-context-interface-factory-name>
<resource-adaptor-entity-binding>
<resource-adaptor-object-name>slee/resources/jainsip/
1.2/provider</resource-adaptor-object-name>
<resource-adaptor-entity-link>SipRA</resource-adaptor-
entity-link>
</resource-adaptor-entity-binding>
</resource-adaptor-type-binding>

I am going crazy with this project !!

Regards

On Nov 20, 11:36 am, Eduardo Martins <emmart...@gmail.com> wrote:
> David, if your sbb code depends on the sip ra type then you need to add it
> as a dependency, in the module that compiles the sbb (I will guess it is the
> one you have named sbb). Now  dependencies in the du/pom.xml are collected
> and packed in the deployable unit jar, in your sbb it should probably just
> be the sbb module, if you declare the sip ra type there the maven plugin
> will pack it in the sbb deployable unit...
>
> Look at examples such as sip11-b2bua in the svn, sounds like the kind of
> maven project you want...
>
> -- Eduardo
>
> On Fri, Nov 20, 2009 at 9:48 AM, Bartosz Baranowski <baran...@gmail.com>wrote:
>
>
>
> > I would follow this hint You get from mvn/jslee:
>
> > *"Unable to install (project) DU has incompatible components. SBB which
> > depend on RAs contained in the DU. Please split them"*
>
> > Really, those are there for reason. Ratype and events should be declared I
> > think.
>

Eduardo Martins

unread,
Nov 20, 2009, 8:28:36 AM11/20/09
to mobicent...@googlegroups.com
You need to install the SIP RA too, not just your example deployable unit.

-- Eduardo

David Rivas

unread,
Nov 23, 2009, 5:06:48 AM11/23/09
to mobicents-public
and install SIP RA with maven is possible?

aayush bhatnagar

unread,
Nov 23, 2009, 8:18:11 AM11/23/09
to mobicent...@googlegroups.com
Deploy the SIP RA DU jar in the jboss /deploy directory.
--
aayush
http://in.linkedin.com/in/abhatnagar19
======
Reply all
Reply to author
Forward
0 new messages