Search This Blog

[mobicents-public] Re: Troubles creating jain slee 1.1 service with mobicents 2.3 and maven

Hi Alexandre,

That solution really workout, my confusion was related with the fact
that my Eclipse don't recognize javax.sip as a dependency, only
javax.servet.sip-api. And when I used maven-archetypes I didn't need
to add any library, so I thought that for add any more libraries, I
needed to edit maven-archetypes, and create a new project.
But with you help I realize that I just need to edit the pom.xml and
the reference in libs/pom.xml.
Really thanks for the help.

Best regards,
Teresa

On 26 Mar, 01:39, Alexandre Mendonça <brains...@gmail.com> wrote:
> Hi Teresa,
>
> Where do you need the jar to be included ? in the eclipse project classpath
> or in the deployable unit jar ?
>
> For the first, add the dependency to the pom and do mvn mobicents:eclipse,
> it should fix it.
> For the latter, add the dependency to a library pom, it should be included
> in the deployed DU.
>
> Regards,
>
> --
> *Alexandre Mendonça* // JBoss R&Dhttp://ammendonca.blogspot.com/
>
>
>
>
>
>
>
> On Fri, Mar 25, 2011 at 19:15, Teresa Reis <zizata...@gmail.com> wrote:
> > Hi,
>
> > It came to me a small question, if I want to add a new .jar to the service
> > created, how can I do that, I need to create a new achetype-catalog? I just
> > can add the jar in the main pom?
>
> > For example, I'm trying to add javax.sip.RequestEvent, and in my sbb but it
> > don't recognize javax.sip, I add jain-sip in my pom, but I still can´t get
> > javax.sip.
>
> > Best regards,
>
> > ziza
>
> > 2011/3/25 Teresa Reis <zizata...@gmail.com>
>
> >> Hi Bartosz,
>
> >> That solution really solves my problem, thank you. I hope that in the
> >> future eclipse-plugin work with Maven 3.x.
>
> >> Now I will continue my learning in Mobicents JAIN SLEE, and I point my
> >> work in some resources that join Android and IPTV (two areas that I work),
> >> so I hope in the future contribute for this great project ;)
>
> >> Thanks for all help.
>
> >> Best regards,
>
> >> ziza
>
> >> 2011/3/25 Teresa Reis <zizata...@gmail.com>
>
> >>> Hi Bartosz
>
> >>> I can not use the command mvn install but if I use the following
> >>> sequence:
>
> >>> Mvn install
>
> >>> I got:
>
> >>> [INFO] Mobicents :: Service :: slee-11-service-parent .... SUCCESS
> >>> [0.157s]
>
> >>> [INFO] Mobicents :: Service :: slee-11-service-library ... SUCCESS
> >>> [0.437s]
>
> >>> [INFO] Mobicents :: Service :: slee-11-service-events .... SUCCESS
> >>> [0.984s]
>
> >>> [INFO] Mobicents :: Service :: slee-11-service-sbb ....... SUCCESS
> >>> [0.516s]
>
> >>> [INFO] Mobicents :: Service :: slee-11-service-du ........ FAILURE
> >>> [0.141s]
>
> >>> And next if I use
>
> >>> mvn <goals> -rf :slee-11-service-du
>
> >>> I can make the build and deploy in Mobicents JSLEE server, this does not
> >>> make any sense, what is sopose to be in
>
> >>> \workspace\slee-11-service\library\target\classes
>
> >>> For he make the full build using mvn install.
>
> >>> Really sorry for the spam, but I want to start using Mobicents JAIN SLEE
> >>> because I believe that is a powerful tool, and I want to show in the group I
> >>> work how to develop using this technologies.
>
> >>> Thanks again,
>
> >>> ziza
>
> >>> 2011/3/25 Teresa Reis <zizata...@gmail.com>
>
> >>>> First I use eclipse, and I made like in the picture, Run as -> maven
> >>>> install.
>
> >>>> I had the error presented in this post. Then I use the windows console,
> >>>> I start Mobicents JAIN SLEE, ant in the project directory I use the command
> >>>> mvn install, but o got the same error as before.
>
> >>>> I need to build before using mvn install? Which Goals and Profiles I
> >>>> shold use?
>
> >>>> Best regards,
>
> >>>> ziza
>
> >>>> 2011/3/25 Bartosz Baranowski <baran...@gmail.com>
>
> >>>>> How did you run it? I dont have problems with building it:
>
> >>>>> ......................
>
> >>>>> [INFO] No tests to run.
> >>>>> [INFO] [library:create {execution: default-create}]
> >>>>> [INFO] Library Refs Configuration:
> >>>>> null
> >>>>> [INFO] EventType Refs:
> >>>>> null
> >>>>> [INFO] ProfileSpec Refs:
> >>>>> null
> >>>>> [INFO] RA Type Refs:
> >>>>> null
> >>>>> [INFO] SBB Refs:
> >>>>> null
> >>>>> [INFO] I depend on: [junit#junit#4.1] @ compile
> >>>>> [INFO] Generated Library descriptor:
> >>>>> E:\workspace\slee-11-service\library\target\classes\META-INF\library-jar.xml
> >>>>> <?xml version="1.0" encoding="UTF-8"?>
> >>>>> <!DOCTYPE library-jar PUBLIC
> >>>>>                 "-//Sun Microsystems, Inc.//DTD JAIN SLEE Library
> >>>>> 1.1//EN"
> >>>>>                 "http://java.sun.com/dtd/slee-library-jar_1_1.dtd">
>
> >>>>> <library-jar>
> >>>>>         <library>
> >>>>>                 <library-name>slee-11-service</library-name>
> >>>>>                 <library-vendor>org.mobicents.example</library-vendor>
> >>>>>                 <library-version>1.0-SNAPSHOT</library-version>
>
> >>>>>                 <jar>
> >>>>>                         <jar-name>jars/junit-4.1.jar</jar-name>
> >>>>>                 </jar>
> >>>>>         </library>
> >>>>> </library-jar>
>
> >>>>> [INFO] Building jar:
> >>>>> E:\workspace\slee-11-service\library\target\slee-11-service-library-1.0-SNAPSHOT.jar
> >>>>> [INFO] Installing
> >>>>> E:\workspace\slee-11-service\library\target\slee-11-service-library-1.0-SNAPSHOT.jar
> >>>>> to
> >>>>> C:\Users\baranowb\.m2\repository\org\mobicents\example\slee-11-service-library\1.0-SNAPSHOT\sl
> >>>>> ee-11-service-library-1.0-SNAPSHOT.jar
> >>>>> [INFO] [install:install {execution: default-install}]
> >>>>> [INFO] Installing
> >>>>> E:\workspace\slee-11-service\library\target\slee-11-service-library-1.0-SNAPSHOT.jar
> >>>>> to
> >>>>> C:\Users\baranowb\.m2\repository\org\mobicents\example\slee-11-service-library\1.0-SNAPSHOT\sl
> >>>>> ee-11-service-library-1.0-SNAPSHOT.jar
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
>
> >>>>> .......................
>
> >>>>> <!DOCTYPE deployable-unit PUBLIC "-//Sun Microsystems, Inc.//DTD JAIN
> >>>>> SLEE Deployable Unit 1.1//EN" "
> >>>>>http://java.sun.com/dtd/slee-deployable-unit_1_1.dtd">
> >>>>> <deployable-unit>
> >>>>>         <jar>slee-11-service-library-1.0-SNAPSHOT.jar</jar>
> >>>>>         <jar>slee-11-service-events-1.0-SNAPSHOT.jar</jar>
> >>>>>         <jar>slee-11-service-sbb-1.0-SNAPSHOT.jar</jar>
> >>>>>         <service-xml>services/service.xml</service-xml>
> >>>>> </deployable-unit>
>
> >>>>> [INFO] Generating ant script for management without maven...
> >>>>> [INFO] Parsing services\service.xml with validation
> >>>>> [INFO] Resolvinghttp://java.sun.com/dtd/slee-service_1_0.dtdlocally
> >>>>> fromhttp://java.sun.com/dtd/slee-service_1_0.dtd
> >>>>> [INFO] Resolved filename slee-service_1_0.dtd
> >>>>> [INFO] build.xml generated in target dir
> >>>>> [INFO] Building jar:
> >>>>> E:\workspace\slee-11-service\du\target\slee-11-service-du-1.0-SNAPSHOT.jar
> >>>>> [INFO] Installing
> >>>>> E:\workspace\slee-11-service\du\target\slee-11-service-du-1.0-SNAPSHOT.jar
> >>>>> to
> >>>>> C:\Users\baranowb\.m2\repository\org\mobicents\example\slee-11-service-du\1.0-SNAPSHOT\slee-11-service-d
> >>>>> u-1.0-SNAPSHOT.jar
> >>>>> [INFO] [antrun:run {execution: deploy-DU}]
> >>>>> [INFO] Executing tasks
> >>>>>      [copy] Copying 1 file to E:\tmp\2.4.0\jboss-5.1.0.GA
> >>>>> \server\default\deploy
> >>>>> [INFO] Executed tasks
> >>>>> [INFO]
> >>>>> [INFO]
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
> >>>>> [INFO] Reactor Summary:
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
> >>>>> [INFO] Mobicents :: Service :: slee-11-service-parent ........ SUCCESS
> >>>>> [1.962s]
> >>>>> [INFO] Mobicents :: Service :: slee-11-service-library ....... SUCCESS
> >>>>> [20.355s]
> >>>>> [INFO] Mobicents :: Service :: slee-11-service-events ........ SUCCESS
> >>>>> [0.301s]
> >>>>> [INFO] Mobicents :: Service :: slee-11-service-sbb ........... SUCCESS
> >>>>> [0.093s]
> >>>>> [INFO] Mobicents :: Service :: slee-11-service-du ............ SUCCESS
> >>>>> [0.978s]
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
> >>>>> [INFO] BUILD SUCCESSFUL
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
> >>>>> [INFO] Total time: 26 seconds
> >>>>> [INFO] Finished at: Fri Mar 25 15:18:50 CET 2011
> >>>>> [INFO] Final Memory: 39M/372M
> >>>>> [INFO]
> >>>>> ------------------------------------------------------------------------
>
> >>>>> Bartosz Baranowski
> >>>>> JBoss R & D
> >>>>> ==================================
> >>>>> Word of criticism meant to improve is always step forward.
>
> >>>>> On Fri, Mar 25, 2011 at 3:08 PM, Teresa Reis <zizata...@gmail.com>wrote:
>
> >>>>>> Hi,
>
> >>>>>> Here it is the eclipse project, and the archetype, that I use for
> >>>>>> creating the project. I made some changes in the archetype, and in the
> >>>>>> eclipse pom.
>
> >>>>>> In the archetypes-catalog I add the URL of JBoss repository, because
> >>>>>> he can´t find the dependencies, in the pom of eclipse I add the parent
> >>>>>> reference, because without that the I can't use the command mvn
> >>>>>> mobicents:eclipse.
>
> >>>>>> Thanks in advance,
>
> >>>>>> ziza
>
> >>>>>> 2011/3/25 Bartosz Baranowski <baran...@gmail.com>
>
> >>>>>>> Also:
> >>>>>>>http://community.jboss.org/wiki/MobicentsJAINSLEEMavenArchetypes
>
> >>>>>>> Bartosz Baranowski
> >>>>>>> JBoss R & D
> >>>>>>> ==================================
> >>>>>>> Word of criticism meant to improve is always step forward.
>
> >>>>>>> On Fri, Mar 25, 2011 at 2:03 PM, Bartosz Baranowski <
> >>>>>>> baran...@gmail.com> wrote:
>
> >>>>>>>> Hi
> >>>>>>>> Could you zip generated directory and send it over? Im not quite
> >>>>>>>> sure of the cause. Did not face that. Possibly M3 might be the cause.
> >>>>>>>> Bartosz Baranowski
> >>>>>>>> JBoss R & D
> >>>>>>>> ==================================
> >>>>>>>> Word of criticism meant to improve is always step forward.
>
> >>>>>>>> On Fri, Mar 25, 2011 at 1:31 PM, ziza <zizata...@gmail.com> wrote:
>
> >>>>>>>>> Hi
> >>>>>>>>> I'm having a similar problem, I used this tutorial
>
> >>>>>>>>>http://emmartins.blogspot.com/2008/06/jain-slee-beginners-tutorial-th...
> >>>>>>>>> to build a simple application but everything goes like the
> >>>>>>>>> tutorial,
> >>>>>>>>> but when I run on console I got:
>
> >>>>>>>>> [INFO]
>
> ...
>
> mais informações »