Package not found when building jain slee project

694 views
Skip to first unread message

iwa

unread,
May 4, 2011, 7:56:03 AM5/4/11
to mobicents-public
Hi all, i'm trying this tutorial:
http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploying-and-testing-projects-with-mobicents-jain-slee-2-x-y-series/

When I tried to do: run as - maven install in eclipse, i've got the
error that it can't find the packets eventhough I've already defined
in sbb-jar.xml.
Then I've tried also include the jar library directly in build path,
but it gives the same error.
Since this is the first time I tried create an sbb, I'm still confused
whether I have to include the library jar (jain sip, sip-ra, etc)
directly to the build path in order to have the template proposal when
doing coding inside eclipse.

Thank you for giving me a hint.

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] hello-world-parent
[INFO] hello-world-sbb
[INFO] hello-world-du
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building hello-world-parent 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
hello-world-parent ---
[INFO] Installing C:\workspace\hello-world\pom.xml to C:\Documents and
Settings\mvnj1569\.m2\repository\org\mobicents\slee\example\hello-
world-parent\1.0-SNAPSHOT\hello-world-parent-1.0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building hello-world-sbb 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
@ hello-world-sbb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
hello-world-sbb ---
[WARNING] File encoding has not been set, using platform encoding
Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\workspace\hello-world\sbb\target
\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[6,16] package javax.sip does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[7,16] package javax.sip does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[8,24] package javax.sip.address does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[9,23] package javax.sip.header does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[10,23] package javax.sip.header does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[11,23] package javax.sip.header does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[12,24] package javax.sip.message does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[13,24] package javax.sip.message does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[14,24] package javax.sip.message does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[15,17] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[16,17] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[17,17] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[18,33] package javax.slee.serviceactivity does
not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[19,33] package javax.slee.serviceactivity does
not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[21,33] package net.java.slee.resource.sip does
not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[23,23] package org.apache.log4j does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[25,51] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[27,9] cannot find symbol
symbol : class SbbContext
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[28,9] cannot find symbol
symbol : class AddressFactory
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[29,9] cannot find symbol
symbol : class HeaderFactory
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[30,9] cannot find symbol
symbol : class MessageFactory
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[32,9] cannot find symbol
symbol : class SleeSipProvider
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[37,29] package javax.slee.serviceactivity does
not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[38,3] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[61,29] cannot find symbol
symbol : class RequestEvent
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[61,49] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[87,27] cannot find symbol
symbol : class SbbContext
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[113,42] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[119,46] package javax.slee does not exist
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[156,3] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[164,27] cannot find symbol
symbol : class RolledBackContext
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[171,16] cannot find symbol
symbol : class Logger
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[47,3] cannot find symbol
symbol : class ServiceActivity
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[47,26] cannot find symbol
symbol : class ServiceActivityFactory
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[64,2] cannot find symbol
symbol : class Request
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[65,2] cannot find symbol
symbol : class ServerTransaction
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[66,2] cannot find symbol
symbol : class FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[66,21] cannot find symbol
symbol : class FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[66,52] cannot find symbol
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[67,2] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[67,27] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[67,61] cannot find symbol
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[72,49] cannot find symbol
symbol : variable Response
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[94,15] cannot find symbol
symbol : class SleeSipProvider
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\RootSbb.java:[171,32] cannot find symbol
symbol : variable Logger
location: class org.mobicents.slee.example.RootSbb

Bartosz Baranowski

unread,
May 4, 2011, 8:07:44 AM5/4/11
to mobicent...@googlegroups.com
See inline.
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


On Wed, May 4, 2011 at 1:56 PM, iwa <iwakar...@gmail.com> wrote:
Hi all, i'm trying this tutorial:
http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploying-and-testing-projects-with-mobicents-jain-slee-2-x-y-series/

When I tried to do: run as - maven install in eclipse, i've got the
error that it can't find the packets eventhough I've already defined
in sbb-jar.xml.


sbb-jar.xml has no "packets" definition, nor packages.
 
Then I've tried also include the jar library directly in build path,
but it gives the same error.
 
Eclipse vs mvn compile. If you define buildpath entries in eclipse, maven is not aware of them - that is .classpath entries are not considered when maven compiles sources.
 
Since this is the first time I tried create an sbb, I'm still confused
whether I have to include the library jar (jain sip, sip-ra, etc)
directly to the build path in order to have the template proposal when
doing coding inside eclipse.



Check examples or use maven archetypes or use EclipSLEE plugin. 

OR define dependencies in pom. mvn mobicents:eclipse will download jars to .m2 and add proper entries to .classpath.

 http://maven.apache.org/guides/getting-started/index.html - check how dependencies are defined, still faster way is to scavenge from examples.

iwa

unread,
May 4, 2011, 10:31:19 AM5/4/11
to mobicents-public
Thank's for the hint, I thought I've already configured the all
dependencies according to the tutorial:
http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploying-and-testing-projects-with-mobicents-jain-slee-2-x-y-series/

and I also the M2 REPO in eclipse has already been set, so i can't
figure out how it can't detect the package. Most of the package that
it couldn't found is javax.sip, javax.slee,
net.java.slee.resource.sip) come from sip-ra and jain-sip which has
been defined in the pom.xml. So, why it still couldn't find the
package?
or is there something wrong in the plugin?

Thank you for your help!

On 4 mai, 14:07, Bartosz Baranowski <baran...@gmail.com> wrote:
> See inline.
> Bartosz Baranowski
> JBoss R & D
> ==================================
> Word of criticism meant to improve is always step forward.
>
> On Wed, May 4, 2011 at 1:56 PM, iwa <iwakartiwa...@gmail.com> wrote:
> > Hi all, i'm trying this tutorial:
>
> >http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploy...
>
> > When I tried to do: run as - maven install in eclipse, i've got the
> > error that it can't find the packets eventhough I've already defined
> > in sbb-jar.xml.
>
> sbb-jar.xml has no "packets" definition, nor packages.
>
> > Then I've tried also include the jar library directly in build path,
> > but it gives the same error.
>
> Eclipse vs mvn compile. If you define buildpath entries in eclipse, maven is
> not aware of them - that is .classpath entries are not considered when maven
> compiles sources.
>
> > Since this is the first time I tried create an sbb, I'm still confused
> > whether I have to include the library jar (jain sip, sip-ra, etc)
> > directly to the build path in order to have the template proposal when
> > doing coding inside eclipse.
>
> Check examples or use maven archetypes or use EclipSLEE plugin.
>
> OR define dependencies in pom. mvn mobicents:eclipse will download jars to
> .m2 and add proper entries to .classpath.
>
> Also:http://maven.apache.org/guides/mini/guide-ide-eclipse.html  - set
> M2_REPO
>  http://maven.apache.org/guides/getting-started/index.html- check how
> ...
>
> plus de détails »- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

aayush

unread,
May 4, 2011, 10:56:18 AM5/4/11
to mobicent...@googlegroups.com

Can you share the. classpath file?

On May 4, 2011 8:01 PM, "iwa" <iwakar...@gmail.com> wrote:

Thank's for the hint, I thought I've already configured the all
dependencies according to the tutorial:

http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploying-and-testing-projects-with-...

and I also the M2 REPO in eclipse has already been set, so i can't
figure out how it can't detect the package. Most of the package that
it couldn't found is javax.sip, javax.slee,
net.java.slee.resource.sip) come from sip-ra and jain-sip which has
been defined in the pom.xml. So, why it still couldn't find the
package?
or is there something wrong in the plugin?

Thank you for your help!


On 4 mai, 14:07, Bartosz Baranowski <baran...@gmail.com> wrote:
> See inline.
> Bartosz Baranowski

...

> On Wed, May 4, 2011 at 1:56 PM, iwa <iwakartiwa...@gmail.com> wrote:

> > Hi all, i'm trying this t...

> >http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploy...

>
> > When I tried to do: run as - maven install in eclipse, i've got the

> > error that it can't fi...

iwa

unread,
May 5, 2011, 3:56:07 AM5/5/11
to mobicents-public
This is my .classpath file:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="sbb/src/main/java"/>
<classpathentry kind="var" path="M2_REPO/javax/slee/jain-slee/
1.1.draft/jain-slee-1.1.draft.jar"/>
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/
log4j-1.2.14.jar"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Documents and Settings/
mvnj1569/.m2/repository/javax/sip/jain-sip-api/1.2/jain-sip-
api-1.2.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

Do I have to add some .jar? How can I add extra jar to "var" M2_REPO?
Thank you!

On 4 mai, 16:56, aayush <abhatnagar192...@gmail.com> wrote:
> Can you share the. classpath file?
>
> On May 4, 2011 8:01 PM, "iwa" <iwakartiwa...@gmail.com> wrote:
>
> Thank's for the hint, I thought I've already configured the all
> dependencies according to the tutorial:
>
> http://whitelassiblog.wordpress.com/2010/03/10/creatingbuildingdeploy....
> ..

Eduardo Martins

unread,
May 6, 2011, 4:55:51 AM5/6/11
to mobicent...@googlegroups.com
Perhaps you don't have the artifacts in local maven repo (M2_REPO) yet, try doing a mvn install in the project root.

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

iwa

unread,
May 6, 2011, 5:53:51 AM5/6/11
to mobicents-public
I've re-created the project and import in eclipse using mvn
mobicents:eclipse (success), and then I populated the SBB code. But I
don't know why it gives the same error (package not found, etc). I've
re-checked the classpath that I have now:

.classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="sbb/src/main/java"/>
<classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/
antlr-2.7.6.jar"/>
<classpathentry kind="var" path="M2_REPO/apache-xerces/xml-apis/
2.9.1/xml-apis-2.9.1.jar"/>
<classpathentry kind="var" path="M2_REPO/bcel/bcel/5.1/bcel-5.1.jar"/
>
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-
collections/3.1/commons-collections-3.1.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-
logging/1.1.0.jboss/commons-logging-1.1.0.jboss.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-pool/commons-pool/
1.4/commons-pool-1.4.jar"/>
<classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/
dom4j-1.6.1.jar"/>
<classpathentry kind="var" path="M2_REPO/gnu-getopt/getopt/1.0.12-
brew/getopt-1.0.12-brew.jar"/>
<classpathentry kind="var" path="M2_REPO/javassist/javassist/
3.9.0.GA/javassist-3.9.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/activation/activation/
1.1.1/activation-1.1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/security/jaas/1.0.01/
jaas-1.0.01.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/sip/jain-sip-api/1.2/
jain-sip-api-1.2.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/sip/jain-sip-ri/
1.2.123/jain-sip-ri-1.2.123.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/slee/jain-slee/1.1/
jain-slee-1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/
jta-1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/
jaxb-api-2.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/
1.0-2/stax-api-1.0-2.jar"/>
<classpathentry kind="var" path="M2_REPO/jboss/jboss-serialization/
1.0.3.GA/jboss-serialization-1.0.3.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/jboss/jbossts/jbossjts/
4.6.1.GA/jbossjts-4.6.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/jboss/profiler/jvmti/jboss-
profiler-jvmti/1.0.0.CR5/jboss-profiler-jvmti-1.0.0.CR5.jar"/>
<classpathentry kind="var" path="M2_REPO/jboss/web/servlet-api/
2.1.1.GA/servlet-api-2.1.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/jgroups/jgroups/2.6.10.GA/
jgroups-2.6.10.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/jpl-pattern/jpl-pattern/1.0/
jpl-pattern-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/jpl-util/jpl-util/1.0/jpl-
util-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.1/
junit-4.1.jar"/>
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/
log4j-1.2.14.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-junit/
1.7.0/ant-junit-1.7.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/
1.7.0/ant-launcher-1.7.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/
ant-1.7.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/xmlsec/1.4.2/
xmlsec-1.4.2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-
persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-
annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-
commons-annotations/3.1.0.GA/hibernate-commons-
annotations-3.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-
core/3.3.0.SP1/hibernate-core-3.3.0.SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-
entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop/
2.1.1.GA/jboss-aop-2.1.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-
bootstrap/1.0.0-Beta-3/jboss-bootstrap-1.0.0-Beta-3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cache/jbosscache-
core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-
classloader/2.0.6.GA/jboss-classloader-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-
classloading-vfs/2.0.6.GA/jboss-classloading-vfs-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-
classloading/2.0.6.GA/jboss-classloading-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-
client/1.1.1.GA/jboss-ha-client-1.1.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-
server-api/1.1.0.GA/jboss-ha-server-api-1.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-
server-cache-jbc/2.0.0.GA/jboss-ha-server-cache-jbc-2.0.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-
server-cache-spi/2.0.0.GA/jboss-ha-server-cache-spi-2.0.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-client-spi/2.0.7.GA/jboss-deployers-client-spi-2.0.7.GA.jar"/
>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-client/2.0.7.GA/jboss-deployers-client-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-core-spi/2.0.7.GA/jboss-deployers-core-spi-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-core/2.0.7.GA/jboss-deployers-core-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-impl/2.0.7.GA/jboss-deployers-impl-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-spi/2.0.7.GA/jboss-deployers-spi-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-structure-spi/2.0.7.GA/jboss-deployers-structure-
spi-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-vfs-spi/2.0.7.GA/jboss-deployers-vfs-spi-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-
deployers-vfs/2.0.7.GA/jboss-deployers-vfs-2.0.7.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-
classloading-spi/5.1.0.GA/jboss-classloading-spi-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-
deployment-spi/5.1.0.GA/jboss-deployment-spi-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-
profileservice-spi/5.1.0.GA/jboss-profileservice-spi-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-
transaction-spi/5.1.0.GA/jboss-transaction-spi-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-ejb-
api/3.0.0.GA/jboss-ejb-api-3.0.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jacc-
api/1.1.0.GA_SP1/jboss-jacc-api-1.1.0.GA_SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jad-
api/1.2.0.GA/jboss-jad-api-1.2.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-
jaspi-api/1.0.0.GA/jboss-jaspi-api-1.0.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jca-
api/1.5.0.GA/jboss-jca-api-1.5.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jms-
api/1.1.0.GA/jboss-jms-api-1.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-
transaction-api/1.0.1.GA/jboss-transaction-api-1.0.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jboss-common-core/
2.2.14.GA/jboss-common-core-2.2.14.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/
2.0.1.GA/jboss-mdr-2.0.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jboss-reflect/
2.0.2.GA/jboss-reflect-2.0.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/
2.1.2.GA/jboss-vfs-2.1.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
cluster/5.1.0.GA/jboss-as-cluster-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
deployment/5.1.0.GA/jboss-as-deployment-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
j2se/5.1.0.GA/jboss-as-j2se-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
jmx/5.1.0.GA/jboss-as-jmx-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
mbeans/5.1.0.GA/jboss-as-mbeans-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
security/5.1.0.GA/jboss-as-security-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
server/5.1.0.GA/jboss-as-server-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
system-jmx/5.1.0.GA/jboss-as-system-jmx-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-
system/5.1.0.GA/jboss-as-system-5.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-
server-manager/1.0.2.GA/jboss-server-manager-1.0.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.1.GA/
jbossxb-2.0.1.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/jpa/jboss-jpa-
deployers/1.0.0/jboss-jpa-deployers-1.0.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-
logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-
logging-spi/2.1.0.GA/jboss-logging-spi-2.1.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-managed/
2.0.0.GA/jboss-managed-2.0.0.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-
metatype/2.1.0.SP1/jboss-metatype-2.1.0.SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/metadata/jboss-
metadata/1.0.0.CR5/jboss-metadata-1.0.0.CR5.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/
jboss-aop-mc-int/2.0.6.GA/jboss-aop-mc-int-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/
jboss-dependency/2.0.6.GA/jboss-dependency-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/
jboss-kernel/2.0.6.GA/jboss-kernel-2.0.6.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnp-client/
5.0.3.GA/jnp-client-5.0.3.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnpserver/
5.0.3.GA/jnpserver-5.0.3.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/remoting/jboss-
remoting/2.5.1/jboss-remoting-2.5.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-
security-spi/2.0.3.SP1/jboss-security-spi-2.0.3.SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx-
client/2.0.3.SP1/jbosssx-client-2.0.3.SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx/
2.0.3.SP1/jbosssx-2.0.3.SP1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/security/
jbossxacml/2.0.3/jbossxacml-2.0.3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/test/jboss-test/
1.1.4.GA/jboss-test-1.1.4.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-
native-jaxrpc/3.0.4.GA/jbossws-native-jaxrpc-3.0.4.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-
native-jaxws/3.1.2.GA/jbossws-native-jaxws-3.1.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-
native-saaj/3.1.2.GA/jbossws-native-saaj-3.1.2.GA.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/cluster/cache/
1.0/cache-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/cluster/core/
1.0/core-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/cluster/
timers/1.0/timers-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/ha/javax/sip/
mobicents-jain-sip-ha-core/0.1/mobicents-jain-sip-ha-core-0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/ha/javax/sip/
mobicents-jain-sip-jboss5/0.1/mobicents-jain-sip-jboss5-0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/resources/
sip11-events/2.0.0.BETA2/sip11-events-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/resources/
sip11-jain-sip-ha/2.0.0.BETA2/sip11-jain-sip-ha-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/resources/
sip11-library/2.0.0.BETA2/sip11-library-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/resources/
sip11-ratype/2.0.0.BETA2/sip11-ratype-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/components-jaxb-jar/2.0.0.BETA1/components-jaxb-
jar-2.0.0.BETA1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/descriptors/2.0.0.BETA2/descriptors-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/fault-tolerant-ra-api/2.0.0.BETA2/fault-tolerant-ra-
api-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/fault-tolerant-ra-impl/2.0.0.BETA2/fault-tolerant-ra-
impl-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/jar/2.0.0.BETA2/jar-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/jmx-property-editors/2.0.0.BETA2/jmx-property-
editors-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mobicents/servers/
jainslee/core/transaction/2.0.0.BETA2/transaction-2.0.0.BETA2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.2/
slf4j-api-1.4.2.jar"/>
<classpathentry kind="var" path="M2_REPO/oswego-concurrent/
concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1.jar"/>
<classpathentry kind="var" path="M2_REPO/qdox/qdox/1.6.1/
qdox-1.6.1.jar"/>
<classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-
api-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9-
brew/jaxb-api-2.1.9-brew.jar"/>
<classpathentry kind="var" path="M2_REPO/trove/trove/2.1.1/
trove-2.1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/wutka-dtdparser/
dtdparser121/1.2.1/dtdparser121-1.2.1.jar"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

I think in the classpath, I've got all package that I need. After
doing mvn install in the project directory, I still got more or less
the same error showing that the package not found.

[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[67,2] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[67,27] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[67,61] cannot find symbol
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[72,49] cannot find symbol
symbol : variable Response
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[94,15] cannot find symbol
symbol : class SleeSipProvider
location: class org.mobicents.slee.example.RootSbb
[ERROR] \workspace\hello-world\sbb\src\main\java\org\mobicents\slee
\example\Root
Sbb.java:[171,32] cannot find symbol
symbol : variable Logger
location: class org.mobicents.slee.example.RootSbb
[INFO] 45 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[6,16] package javax.sip does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[7,16] package javax.sip does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[8,24] package javax.sip.address does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[9,23] package javax.sip.header does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[10,23] package javax.sip.header does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[11,23] package javax.sip.header does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[12,24] package javax.sip.message does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[13,24] package javax.sip.message does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[14,24] package javax.sip.message does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[15,17] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[16,17] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[17,17] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[18,33] package javax.slee.serviceactivity does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[19,33] package javax.slee.serviceactivity does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[21,33] package net.java.slee.resource.sip does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[23,23] package org.apache.log4j does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[25,51] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[27,9] cannot find symbol
symbol : class SbbContext
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[28,9] cannot find symbol
symbol : class AddressFactory
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[29,9] cannot find symbol
symbol : class HeaderFactory
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[30,9] cannot find symbol
symbol : class MessageFactory
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[32,9] cannot find symbol
symbol : class SleeSipProvider
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[37,29] package javax.slee.serviceactivity does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[38,3] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[61,29] cannot find symbol
symbol : class RequestEvent
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[61,49] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[87,27] cannot find symbol
symbol : class SbbContext
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[113,42] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[119,46] package javax.slee does not exist
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[156,3] cannot find symbol
symbol : class ActivityContextInterface
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[164,27] cannot find symbol
symbol : class RolledBackContext
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[171,16] cannot find symbol
symbol : class Logger
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[47,3] cannot find symbol
symbol : class ServiceActivity
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[47,26] cannot find symbol
symbol : class ServiceActivityFactory
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[64,2] cannot find symbol
symbol : class Request
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[65,2] cannot find symbol
symbol : class ServerTransaction
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[66,2] cannot find symbol
symbol : class FromHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[66,21] cannot find symbol
symbol : class FromHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[66,52] cannot find symbol
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[67,2] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[67,27] cannot find symbol
symbol : class ContactHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[67,61] cannot find symbol
symbol : variable FromHeader
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[72,49] cannot find symbol
symbol : variable Response
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[94,15] cannot find symbol
symbol : class SleeSipProvider
location: class org.mobicents.slee.example.RootSbb
\workspace\hello-world\sbb\src\main\java\org\mobicents\slee\example
\RootSbb.java
:[171,32] cannot find symbol
symbol : variable Logger
location: class org.mobicents.slee.example.RootSbb

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:715)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation fail
ure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:656)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
... 17 more

Any ideas? I guess from the classpath, it shows that I've got the
artifacts in local maven repo (M2_REPO) already.


On 6 mai, 10:55, Eduardo Martins <emmart...@gmail.com> wrote:
> Perhaps you don't have the artifacts in local maven repo (M2_REPO) yet, try
> doing a mvn install in the project root.
>
> -- Eduardo
> ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco

Eduardo Martins

unread,
May 6, 2011, 11:05:57 AM5/6/11
to mobicent...@googlegroups.com
Classpath does not indicates that artifacts are in local repo, but
anyway, you have compilation errors, if you are developing an Sbb that
uses the SIP RA then what you have to do is add the SIP RA Type
artifact as a Maven dependency in the sbb module pom.xml. Show us the
project and sbb pom.xml files.

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

iwa

unread,
May 9, 2011, 10:53:18 AM5/9/11
to mobicents-public
My project pom is:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

<artifactId>hello-world-parent</artifactId>
<groupId>org.mobicents.slee.example</groupId>
<version>1.0-SNAPSHOT</version>

<modules>
<module>sbb</module>
<module>du</module>
</modules>

<properties>
<!-- JBOSS APP SERVER CONFIG RUNNING MOBICENTS -->
<jboss.config>default</jboss.config>
<mobicents.resources.sip11.version>2.0.0.GA</
mobicents.resources.sip11.version>
<mobicents.servers.jainslee.version>2.0.0.GA</
mobicents.servers.jainslee.version>
</properties>

<dependencyManagement>
<dependencies>
<!--
IMPORTS MOBICENTS JAIN SLEE SERVER
DEPENDENCY MANAGEMENT
-->
<dependency>
<artifactId>mobicents-slee-core</artifactId>
<groupId>org.mobicents.servers.jainslee.core</groupId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<!-- MOBICENTS MAVEN ECLIPSE PLUGIN - use "mvn mobicents:eclipse"
to generate eclipse project files -->
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<groupId>org.mobicents.tools</groupId>
<version>1.0.0.BETA2</version>
<inherited>false</inherited>
<executions />
</plugin>
<!-- JAVA COMPILER CONFIG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<debug>true</debug>
</configuration>
</plugin>
<!-- JARS MANIFEST FILE SETUP -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifest>
<addDefaultSpecificationEntries>
true
</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>

</plugin>
</plugins>
</build>

<!-- JBOSS MAVEN REPOSITORIES -->

<repositories>
<repository>
<id>jboss</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jboss-snapshots</id>
<name>JBoss Snapshot Repository</name>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>jboss</id>
<name>JBoss Plugin Repository</name>
<url>http://repository.jboss.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>jboss-snapshots</id>
<name>JBoss Snapshot Plugin Repository</name>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

</project>

---
and my SBB pom.xml is:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>hello-world-parent</artifactId>
<groupId>org.mobicents.slee.example</groupId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>hello-world-sbb</artifactId>

<dependencies>
<dependency>
<groupId>org.mobicents.resources</groupId>
<artifactId>sip11-ratype</artifactId>
<version>2.0.0.BETA2</version>
<scope>runtime</scope>
</dependency>
</dependencies>

</project>

I've already included the sip RA. When I did: mvn clean, I have no
problem.


On 6 mai, 17:05, Eduardo Martins <emmart...@gmail.com> wrote:
> Classpath does not indicates that artifacts are in local repo, but
> anyway, you have compilation errors, if you are developing an Sbb that
> uses the SIP RA then what you have to do is add the SIP RA Type
> artifact as a Maven dependency in the sbb module pom.xml. Show us the
> project and sbb pom.xml files.
>
> -- Eduardo
> ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
> ...
>
> plus de détails »

Eduardo Martins

unread,
May 9, 2011, 11:29:50 AM5/9/11
to mobicent...@googlegroups.com
The SBB pom.xml dependency should not define the scope as runtime,
since that scope does not imports the dependencies of the dependency.
Instead use the default scope, which is compile (does not needs the
scope element):

<dependencies>
<dependency>
<groupId>org.mobicents.resources</groupId>
<artifactId>sip11-ratype</artifactId>
<version>2.0.0.BETA2</version>

</dependency>
</dependencies>

Anyway, I really recommend you to instead try the new tutorials I made:

http://community.jboss.org/wiki/MobicentsJAINSLEEDevelopmentEnvironmentSetup

which purpose is to setup your dev environment the best way, and learn
everything about it, and

http://community.jboss.org/wiki/HelloSLEEWorldServiceJAINSLEETutorial

Similar to what you're trying, the dev of a simple application, using
our Eclipse plugin.

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

iwa

unread,
May 11, 2011, 5:23:16 AM5/11/11
to mobicents-public
Thank you Eduardo, it solved the probleme.

I've also started your new tutorial and it works well until I do the
part 4 - Creating the service.
I followed the step to create jain slee service in the du folder as
shown in the picture, until I click finish, it generates error:

java.lang.NullPointerException
at
org.mobicents.eclipslee.util.slee.xml.DTDXML.addElement(DTDXML.java:
123)
at
org.mobicents.eclipslee.util.slee.xml.components.ServiceXML.addService(ServiceXML.java:
67)
at
org.mobicents.eclipslee.servicecreation.wizards.service.ServiceWizard.doFinish(ServiceWizard.java:
66)
at org.mobicents.eclipslee.servicecreation.wizards.generic.BaseWizard
$1.run(BaseWizard.java:115)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)

Could you tell me what caused this?

I did the steps before without problem, including mvn verify. Before,
I already installed eclipslee plugin version 1.2.5 but then I
uninstalled it, and I copied the newest plugin inside mobicents jain
slee 2.4.0 FINAL as in your tutorial. So, I supposed this is not due
to the plugin?

On 9 mai, 17:29, Eduardo Martins <emmart...@gmail.com> wrote:
> The SBB pom.xml dependency should not define the scope as runtime,
> since that scope does not imports the dependencies of the dependency.
> Instead use the default scope, which is compile (does not needs the
> scope element):
>
>         <dependencies>
>                <dependency>
>                        <groupId>org.mobicents.resources</groupId>
>                        <artifactId>sip11-ratype</artifactId>
>                        <version>2.0.0.BETA2</version>
>                </dependency>
>        </dependencies>
>
> Anyway, I really recommend you to instead try the new tutorials I made:
>
> http://community.jboss.org/wiki/MobicentsJAINSLEEDevelopmentEnvironme...
>
> which purpose is to setup your dev environment the best way, and learn
> everything about it, and
>
> http://community.jboss.org/wiki/HelloSLEEWorldServiceJAINSLEETutorial
>
> Similar to what you're trying, the dev of a simple application, using
> our Eclipse plugin.
>
> -- Eduardo
> ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>
> On Mon, May 9, 2011 at 3:53 PM, iwa <iwakartiwa...@gmail.com> wrote:
> > My project pom is:
>
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
> >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
> plus de détails »

Eduardo Martins

unread,
May 11, 2011, 5:31:50 AM5/11/11
to mobicent...@googlegroups.com
Please try with a fresh and clean Eclipse, in my own iterations I've
witnessed some weird behaviors by the IDE after plugin updates...

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

iwa

unread,
May 13, 2011, 9:52:09 AM5/13/11
to mobicents-public
I tried with fresh eclipse and it works. Now, since my goal is to
handle register request, i added the code like I did before.
I built the project successfully, but when I deployed to Jboss (i used
final version 2.4.0.FINAL), I got this error:

15:42:20,604 INFO [DeploymentMBeanImpl] Installed
DeployableUnitID[url=file:/C:/env/Mobicents/jboss-5.1.0.GA/server/
default/deploy/hello-presence-DU-1.0.jar/]
15:42:20,854 INFO [ServiceManagementImpl] Activated
ServiceID[name=Hello Presence,vendor=org.mobicents,version=1.0]
15:42:20,854 ERROR [STDERR] javax.naming.NameNotFoundException:
resources not bound
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.getObject(NamingServer.java:785)
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.lookup(NamingServer.java:396)
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.lookup(NamingServer.java:399)
15:42:20,854 ERROR [STDERR] at
org.jnp.server.NamingServer.lookup(NamingServer.java:399)
15:42:20,854 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
15:42:20,854 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.hello.HelloPresenceSbb.setSbbContext(HelloPresenceSbb.java:
41)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.sbb.SbbObjectImpl.<init>(SbbObjectImpl.java:
137)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.sbb.SbbObjectPoolFactory.makeObject(SbbObjectPoolFactory.java:
146)
15:42:20,854 ERROR [STDERR] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:
974)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.sbb.SbbObjectPoolImpl.borrowObject(SbbObjectPoolImpl.java:
68)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.assignSbbObject(SbbEntityImpl.java:
733)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:
360)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:
126)
15:42:20,854 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl
$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
15:42:20,854 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
15:42:20,854 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
15:42:20,854 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)

I saw that this error: at
org.mobicents.slee.hello.HelloPresenceSbb.setSbbContext(HelloPresenceSbb.java:
41 : is pointing at this code in the method setSbbContext:

sipAciFac = (SipActivityContextInterfaceFactory) ctx.lookup("slee/
resources/jainsip/1.2/acifactory");

I actually didn't understand how to set this parameter. Could you tell
me what's wrong? When I tried to remove that error, it also points to
the next line:

sipProvider = (SleeSipProvider) ctx.lookup("slee/resources/jainsip/1.2/
provider");

This is my sbb method.

package org.mobicents.slee.hello;

import java.text.ParseException;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sip.InvalidArgumentException;
import javax.sip.ServerTransaction;
import javax.sip.SipException;
import javax.sip.address.AddressFactory;
import javax.sip.header.ContactHeader;
import javax.sip.header.FromHeader;
import javax.sip.header.HeaderFactory;
import javax.sip.message.MessageFactory;
import javax.sip.message.Request;
import javax.sip.message.Response;
import javax.slee.*;
import javax.slee.facilities.Tracer;

import net.java.slee.resource.sip.SipActivityContextInterfaceFactory;
import net.java.slee.resource.sip.SleeSipProvider;

import org.mobicents.slee.*;

public abstract class HelloPresenceSbb implements Sbb {

private Tracer tracer;
private AddressFactory addressFac;
private HeaderFactory headerFac;
private MessageFactory messageFac;
private SleeSipProvider sipProvider;
private SipActivityContextInterfaceFactory sipAciFac;

// TODO: Perform further operations if required in these methods.
public void setSbbContext(SbbContext context) {
this.sbbContext = (SbbContextExt) context;
tracer = context.getTracer(this.getClass().getSimpleName());
try{
final Context ctx = (Context) new
InitialContext().lookup("java:comp/env");
sipAciFac = (SipActivityContextInterfaceFactory) ctx.lookup("slee/
resources/jainsip/1.2/acifactory");
sipProvider = (SleeSipProvider) ctx.lookup("slee/resources/jainsip/
1.2/provider");
messageFac = sipProvider.getMessageFactory();
headerFac = sipProvider.getHeaderFactory();
addressFac = sipProvider.getAddressFactory();
tracer.info("****SET SBB CONTEXT****");

}catch(NamingException e){
e.printStackTrace();
}
}
public void unsetSbbContext() { this.sbbContext = null; }

// TODO: Implement the lifecycle methods if required
public void sbbCreate() throws javax.slee.CreateException {}
public void sbbPostCreate() throws javax.slee.CreateException {}
public void sbbActivate() {}
public void sbbPassivate() {}
public void sbbRemove() {}
public void sbbLoad() {}
public void sbbStore() {}
public void sbbExceptionThrown(Exception exception, Object event,
ActivityContextInterface activity) {}
public void sbbRolledBack(RolledBackContext context) {}


protected SbbContextExt getSbbContext() {
return sbbContext;
}

private SbbContextExt sbbContext; // This SBB's SbbContext

public void
onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent
event, ActivityContextInterface aci) {
tracer.info("**Starting service of PRESENCE**");
}
public void onREGISTER(javax.sip.RequestEvent event,
ActivityContextInterface aci) {
tracer.info("**REGISTER REQUEST RECEIVED AT MY SBB**");
Request register = event.getRequest();
ServerTransaction st = event.getServerTransaction();
FromHeader from = (FromHeader) register.getHeader(FromHeader.NAME);
ContactHeader contact = (ContactHeader)
register.getHeader(ContactHeader.NAME);

tracer.info("This Register Request is from: "+from.toString());
tracer.info("*******************Contact : "+contact.toString());
try {
st.sendResponse(messageFac.createResponse(Response.OK, register));
tracer.info("Sending Reply to Register Request");
} catch (SipException e) {
e.printStackTrace();
} catch (InvalidArgumentException e) {
e.printStackTrace();
} catch (ParseException e) {
e.printStackTrace();
}
}
}


On 11 mai, 11:31, Eduardo Martins <emmart...@gmail.com> wrote:
> Please try with a fresh and clean Eclipse, in my own iterations I've
> witnessed some weird behaviors by the IDE after plugin updates...
>
> -- Eduardo
> ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
> ...
>
> plus de détails »

Alexandre Mendonça

unread,
May 27, 2011, 5:00:08 AM5/27/11
to mobicent...@googlegroups.com
Hi Iwa,

Those come from the RA Type binding in sbb-jar.xml

You should have something like this in your 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>
...


Regards,

--
Alexandre Mendonça // JBoss R&D
http://ammendonca.blogspot.com/

James

unread,
Oct 1, 2015, 11:04:40 AM10/1/15
to mobicents-public
Hi,

I've update my sbb-jar.xml with the SIP B2BUA one but I'm still having the same issue.

Regards,

Vilius Panevėžys

unread,
Oct 5, 2015, 3:32:13 AM10/5/15
to mobicent...@googlegroups.com
1. Make sure the strings in resource-adaptor-object-name and ctx.lookup
match exactly.
2. Before making the lookup by the configured string you should have
made a lookup("java:comp/env") or prefix the lookup with this string.

The typical pattern I use is this

"""
Context ctx = (Context) new InitialContext().lookup("java:comp/env");
provider1 = ctx.lookup(<resource-adaptor-object-name1>);
acif1 = ctx.lookup(<activity-context-interface-factory-name1>);
provider2 = ctx.lookup(<resource-adaptor-object-name2>);
acif2 = ctx.lookup(<activity-context-interface-factory-name2>);
envEntry1 = ctx.lookup("envEntryName1")
envEntry2 = ctx.lookup("envEntryName2")
"""


--
Vilius Panevėžys
Elitnet
Reply all
Reply to author
Forward
0 new messages