Defining custom AUIDs in XDM server?

17 views
Skip to first unread message

aayush bhatnagar

unread,
Sep 26, 2008, 7:29:54 AM9/26/08
to mobicent...@googlegroups.com
Hello,
I had some queries regarding XDM...

1. Is it possible for me to define my own Application Usage which is
specific to my IMS service? I could only find application usages
pertaining to presence. Can i configure a new app usage in the app
usage cache RA?
In presence......
2. It would be helpful if someone can elaborate on the dynamic user
provisioning property. What exactly is done as part of user
provisioning by the XDM ? It is not clear to me.

3. Can i make use of the element selector and attribute selector APIs,
if my custom application usage is not defined currently?

aayush.

aayush bhatnagar

unread,
Sep 29, 2008, 10:14:22 AM9/29/08
to mobicent...@googlegroups.com
Hello guys..
Some guidance really appreciated..
Thanks
aayush

Eduardo Martins

unread,
Sep 29, 2008, 10:46:11 AM9/29/08
to mobicent...@googlegroups.com
Be patient, I will reply to you as soon as possible, it's very easy to
add new app usages.

aayush bhatnagar

unread,
Sep 29, 2008, 10:47:47 AM9/29/08
to mobicent...@googlegroups.com
okies :) 

Eduardo Martins

unread,
Oct 1, 2008, 6:34:26 AM10/1/08
to mobicent...@googlegroups.com
Here it goes, a few slides on the matter, let me know if something
should be improved/missing

http://groups.google.com/group/mobicents-public/web/MobicentsSIPPresenceService_XDMS_CreatingXcapAppUsages.ppt

Eduardo

On Mon, Sep 29, 2008 at 3:47 PM, aayush bhatnagar

aayush bhatnagar

unread,
Oct 1, 2008, 11:38:18 AM10/1/08
to mobicent...@googlegroups.com
A very nice presentation indeed Eduardo..covers all the concepts nicely. 

I was going through the code myself today..which i should have before asking the question ! It is very convenient to add app usages indeed.

Aayush

Nitin Gupta

unread,
Nov 7, 2008, 6:07:47 AM11/7/08
to mobicent...@googlegroups.com
Hi Martins,
                  Today i was trying to add new AppUsuage in XDM as per ppt instructions.
but its not worked in my case.

actually what i have done as per instructions is :-
I have added three java files of IMSAppUsage, IMSAppUsageFactory and IMSAppUsageSBB
in this directory appusages\IMS\server\sbb\src\main\java\org\openxdm\xcap\server\slee\appusage\IMS.

and also put xsd file resources folder and updated sbb-jar.xml file

then tried to build XDM then i am getting error like " Could not find the model file ...IMS/Client."

so my question is, would i need to add client folder with jaxb and key packages like this omapresrules appusage
 "org.openxdm.xcap.client.appusage.omapresrules.jaxb" and "org.openxdm.xcap.client.appusage.omapresrules.key". 

and also what would be in files under these packages specific to custom-defined AppUsuage.

One more doubt that, would i be able to build this custom defined appusage after changing in corresponding maven pom files.

Thanks,

Regards:-
Nitin Gupta.
--
Regards:-
Nitin Gupta.

Eduardo Martins

unread,
Nov 7, 2008, 6:28:27 AM11/7/08
to mobicent...@googlegroups.com
Considering you kept the same maven project structure and since you don't want to build client components, you will have to remove the client <module/> from the root pom.xml.

Nitin Gupta

unread,
Nov 7, 2008, 6:40:31 AM11/7/08
to mobicent...@googlegroups.com
Thanks Martins,
Now i got success in building new AppUsuage :-)

but what is the use that client folder ?? i mean where and when it played role

Regards:-
Nitin Gupta.

Eduardo Martins

unread,
Nov 7, 2008, 9:19:28 AM11/7/08
to mobicent...@googlegroups.com
As the module name predicts it is for client applications. Instead of working with DOM or another generic XML API you can work with JAXB pojos. The keys are just to abstract the app usage details when using the provided XCAP client api.

Nitin Gupta

unread,
Nov 7, 2008, 10:25:23 AM11/7/08
to mobicent...@googlegroups.com
okay..
Thank very much !!!


Regards:-
Nitin Gupta

aayush bhatnagar

unread,
Nov 10, 2008, 4:10:52 AM11/10/08
to mobicent...@googlegroups.com
Hi Eduardo, I was following the steps outlined in the presentation for defining new application usages. Things were going ok until I got this error: java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl Before this line, i get an error log on the console that says : 

Unable to load app usage schemas from file system. I traced this error down to the SchemaContext.java class. It is able to find my XSDs in the file system, but is unable to load them. Appreciate your help on this. Best Regards Aayush
--
sent from my J-phone :-)

Eduardo Martins

unread,
Nov 10, 2008, 4:36:14 AM11/10/08
to mobicent...@googlegroups.com
The class SchemaContext combines all provided schemas into a single one, be sure there is no schema missing, such as the base xml.xsd targeting namespace http://www.w3.org/2001/XMLSchema. Try to use and debug the class in a separated project, eliminating the need for SLEE.

aayush bhatnagar

unread,
Nov 10, 2008, 4:57:18 AM11/10/08
to mobicent...@googlegroups.com
Hi !
It works ok now.

The comments in the XSD were not being parsed properly. Once the
commenting was removed..the error is no longer there.

It seems that this might be a xerces bug. What do u think?

thanks.
Aayush.

>>>>>>> in this directory *


>>>>>>> appusages\IMS\server\sbb\src\main\java\org\openxdm\xcap\server\slee\appusage\IMS

>>>>>>> *.


>>>>>>>
>>>>>>> and also put xsd file resources folder and updated sbb-jar.xml file
>>>>>>>
>>>>>>> then tried to build XDM then i am getting error like " Could not find
>>>>>>> the model file ...IMS/Client."
>>>>>>>
>>>>>>> so my question is, would i need to add client folder with jaxb and
>>>>>>> key
>>>>>>> packages like this omapresrules appusage

>>>>>>> "*org.openxdm.xcap.client.appusage.omapresrules.jaxb*" and


>>>>>>> "org.openxdm.xcap.client.appusage.omapresrules.key".
>>>>>>>
>>>>>>> and also what would be in files under these packages specific to
>>>>>>> custom-defined AppUsuage.
>>>>>>>
>>>>>>> One more doubt that, would i be able to build this custom defined

>>>>>>> *appusage
>>>>>>> *after changing in corresponding maven pom files.

Eduardo Martins

unread,
Nov 10, 2008, 5:58:10 AM11/10/08
to mobicent...@googlegroups.com
Please create an issue and add the schemas as attach, let's try to find out if a fix is possible.

aayush bhatnagar

unread,
Nov 10, 2008, 6:36:15 AM11/10/08
to mobicent...@googlegroups.com
Okay,

I have created one issue at google-code (issue #461) and attached the XML docs i am using:


Thanks ! 

Aayush

Eduardo Martins

unread,
Nov 10, 2008, 6:37:08 AM11/10/08
to mobicent...@googlegroups.com
Thank you, will have a look at it later.

Nitin Gupta

unread,
Nov 10, 2008, 4:44:26 AM11/10/08
to mobicent...@googlegroups.com
I think if there is are some comments lines exists in xsd file then its not able to parse the xsd file..
after removing comments its working fine.

Regards:-
Nitin Gupta.

Eduardo Martins

unread,
Nov 20, 2008, 8:04:29 AM11/20/08
to mobicent...@googlegroups.com
Issue fixed, will be included in a new spin of the BETA3 release, to go out today.

-- Eduardo

aayush bhatnagar

unread,
Nov 20, 2008, 8:20:16 AM11/20/08
to mobicent...@googlegroups.com
Just for my information and learning, if you can explain briefly how
the issue was fixed..where exactly was the change made ? Did you
override xerces logic for comment parsing ?

Much appreciated.

Thanks in advance

Aayush

>>>>>>>>> in this directory *


>>>>>>>>> appusages\IMS\server\sbb\src\main\java\org\openxdm\xcap\server\slee\appusage\IMS

>>>>>>>>> *.


>>>>>>>>>
>>>>>>>>> and also put xsd file resources folder and updated sbb-jar.xml file
>>>>>>>>>
>>>>>>>>> then tried to build XDM then i am getting error like " Could not
>>>>>>>>> find the model file ...IMS/Client."
>>>>>>>>>
>>>>>>>>> so my question is, would i need to add client folder with jaxb and
>>>>>>>>> key packages like this omapresrules appusage

>>>>>>>>> "*org.openxdm.xcap.client.appusage.omapresrules.jaxb*" and


>>>>>>>>> "org.openxdm.xcap.client.appusage.omapresrules.key".
>>>>>>>>>
>>>>>>>>> and also what would be in files under these packages specific to
>>>>>>>>> custom-defined AppUsuage.
>>>>>>>>>
>>>>>>>>> One more doubt that, would i be able to build this custom defined

>>>>>>>>> *appusage
>>>>>>>>> *after changing in corresponding maven pom files.

Eduardo Martins

unread,
Nov 20, 2008, 9:22:07 AM11/20/08
to mobicent...@googlegroups.com
The patch is on the issue but it was as simple as document.getDocumentElement() instead of document.getFirstChild(), so it was a bug on the XDM code, not Xerces.

-- Eduardo

mobincent developer

unread,
Aug 24, 2010, 4:02:46 AM8/24/10
to Eduardo Martins, mobicent...@googlegroups.com
Hi ,

I have installed maven in my system i was able to run mvn
install on the mobicent project. The install was successful but i did
not get a complete jar of the application. When i navigated to the
folders i found the respective jars for each module being formed in
the target folders. Is there as specific setting needed in the project
pom.xml to get the entire application jar.

--Mobicents

On Nov 7 2008, 7:19 pm, "Eduardo Martins" <emmart...@gmail.com> wrote:
> As the module name predicts it is for client applications. Instead of
> working with DOM or another generic XML API you can work with JAXB pojos.
> The keys are just to abstract the app usage details when using the provided
> XCAP client api.
>

> On Fri, Nov 7, 2008 at 11:40 AM, Nitin Gupta <it.ni...@gmail.com> wrote:
> > Thanks Martins,
> > Now i got success in building new AppUsuage :-)
>
> > but what is the use that client folder ?? i mean where and when it played
> > role
>
> > Regards:-
> > Nitin Gupta.
>

> > On Fri, Nov 7, 2008 at 4:58 PM, Eduardo Martins <emmart...@gmail.com>wrote:
>
> >> Considering you kept the same maven project structure and since you don't
> >> want to build client components, you will have to remove the client
> >> <module/> from the root pom.xml.
>

> >> On Fri, Nov 7, 2008 at 11:07 AM, Nitin Gupta <it.ni...@gmail.com> wrote:
>
> >>> Hi Martins,
> >>>                   Today i was trying to add new AppUsuage in XDM as per
> >>> ppt instructions.
> >>> but its not worked in my case.
>
> >>> actually what i have done as per instructions is :-
> >>> I have added three java files of IMSAppUsage, IMSAppUsageFactory and
> >>> IMSAppUsageSBB

> >>> in this directory *


> >>> appusages\IMS\server\sbb\src\main\java\org\openxdm\xcap\server\slee\appusage\IMS

> >>> *.


>
> >>> and also put xsd file resources folder and updated sbb-jar.xml file
>
> >>> then tried to build XDM then i am getting error like " Could not find the
> >>> model file ...IMS/Client."
>
> >>> so my question is, would i need to add client folder with jaxb and key
> >>> packages like this omapresrules appusage

> >>>  "*org.openxdm.xcap.client.appusage.omapresrules.jaxb*" and


> >>> "org.openxdm.xcap.client.appusage.omapresrules.key".
>
> >>> and also what would be in files under these packages specific to
> >>> custom-defined AppUsuage.
>

> >>> One more doubt that, would i be able to build this custom defined *appusage
> >>> *after changing in corresponding maven pom files.


>
> >>> Thanks,
>
> >>> Regards:-
> >>> Nitin Gupta.
>

> >>> On Wed, Oct 1, 2008 at 4:04 PM, Eduardo Martins <emmart...@gmail.com>wrote:
>
> >>>> Here it goes, a few slides on the matter, let me know if something
> >>>> should be improved/missing
>

> >>>>http://groups.google.com/group/mobicents-public/web/MobicentsSIPPrese...


>
> >>>> Eduardo
>
> >>>> On Mon, Sep 29, 2008 at 3:47 PM, aayush bhatnagar
> >>>> <abhatnagar192...@gmail.com> wrote:
> >>>> > okies :)
>

> >>>> > On Mon, Sep 29, 2008 at 8:16 PM, Eduardo Martins <emmart...@gmail.com


>
> >>>> > wrote:
>
> >>>> >> Be patient, I will reply to you as soon as possible, it's very easy
> >>>> to
> >>>> >> add new app usages.
>
> >>>> >> On Mon, Sep 29, 2008 at 3:14 PM, aayush bhatnagar
> >>>> >> <abhatnagar192...@gmail.com> wrote:
>
> >>>> >> > Hello guys..
> >>>> >> > Some guidance really appreciated..
> >>>> >> > Thanks
> >>>> >> > aayush
>

Eduardo Martins

unread,
Aug 24, 2010, 7:36:36 AM8/24/10
to mobincent developer, mobicent...@googlegroups.com
mvn -f xdm/server/installer/pom.xml install

or

mvn -f integrated/server/installer/pom.xml install

depending if you want just the XDM Server or the full Presence
Service, which includes the Presence Server and Resource List Server.

-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco

mobincent developer

unread,
Aug 24, 2010, 8:45:21 AM8/24/10
to Eduardo Martins, mobicent...@googlegroups.com
Hi,

I have a few queries.
From which location i need to execute the below command?
When i execute the below command from the location where the main pom.xml is placed i get the below error for both the commands specified :

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

If i change the command to

mvn -f pom.xml install

The build is successful but i dont find any jar or ear file in the location where the main pom.xml is or the main folder where code is.

--mobicents

Eduardo Martins

unread,
Aug 24, 2010, 9:04:17 AM8/24/10
to mobincent developer, mobicent...@googlegroups.com
The XDM or Integrated Server is not a jar or ear, it's a big set of
Java EE and JAIN SLEE components, the commands I was giving to you
install these components in the Mobicents JAIN SLEE container
available at $JBOSS_HOME.

Before we start please tell me why are you building the server from source.

Btw do you know that there are daily binary snapshots?

See http://hudson.jboss.org/hudson/view/Mobicents/job/MobicentsSipPresenceRelease/lastSuccessfulBuild/artifact/

Also it may be good to start with the reading of the user guide, even
if content is not that great at this time:

http://hudson.jboss.org/hudson/view/Mobicents/job/MobicentsBooks/lastSuccessfulBuild/artifact/sip-presence/index.html

-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco

mobincent developer

unread,
Aug 25, 2010, 12:15:03 AM8/25/10
to Eduardo Martins, mobicent...@googlegroups.com
Hi,

I want to add a new appusage to the xdm server.
So i wanted to first try deploying the current code in my system.
I have set the JBOSS_HOME in the environment variable but i could not find any components installed in the deploy folder.
I have JBOSS 4.0.4.GA . Thanks for the reference and the replies i shall go through them and get back in case i have any queries.

--mobicents

aayush

unread,
Aug 25, 2010, 12:18:44 AM8/25/10
to mobicent...@googlegroups.com

Please download latest mobicents distribution. It comes bundled with jboss.

On Aug 25, 2010 9:45 AM, "mobincent developer" <mobice...@gmail.com> wrote:

Hi,

I want to add a new appusage to the xdm server.
So i wanted to first try deploying the current code in my system.
I have set the JBOSS_HOME in the environment variable but i could not find any components installed in the deploy folder.
I have JBOSS 4.0.4.GA . Thanks for the reference and the replies i shall go through them and get back in case i have any queries.

--mobicents



On Tue, Aug 24, 2010 at 6:34 PM, Eduardo Martins <emma...@gmail.com> wrote:
>

> The XDM or Integ...

Reply all
Reply to author
Forward
0 new messages