Skip to main content

SIP RA demo

9 replies [Last post]
Anonymous

Hi Paul,
try to cvs update now. It works for me.
Do:
ant sipradeploy
ant proxy-service-deploy

Should work!

Regards,
Marco

Use this forum, not the old one!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
plin3000
Offline
Joined: 2005-05-17
Points: 0

There is not matched with snapshot of dos prompt.

Deploying SIP Proxy Service

* ant proxy-service-deploy

but I see in the dos prompt. It shows "ant sip-proxy-service-deploy".

Paul.

plin3000
Offline
Joined: 2005-05-17
Points: 0

Marco,
If you put the project tree in D: driver, the build procedure would be broken. Could you post what environment for the build I should be aware such as classpath, jboss version and its path...
Thank you
Paul.

Anonymous

Well, you only need to define the JBOSS_HOME and JAVA_HOME environment variables.
I’m not aware of any problem in having the project tree in D:.
Use JBoss 3.2.6.
For the classpath the build.xml use the local jar files or classes that are in the project.

aaron8tang
Offline
Joined: 2003-08-31
Points: 0

Hi Paul,

I don't whether you still get these exceptions, I checkout the latest source from cvs
, and deploy under jdk1.5.0_04 and jboss 3.2.7, all things go well.

plin3000
Offline
Joined: 2005-05-17
Points: 0

Marco,
Please take a look the exceptions and the compiler errors. I really need your help to break through and it will help me moving on.
Thank you very much!
Paul.

Anonymous

Hi Paul,
Well, first try to run this in JBoss 3.2.6.
It appears that the log4j exceptions in the sipradeploy depend on that.

Then, update your build.xml file, I’ve committed a change to the project.class.path (add the package that is necessary to the compilation of the examples).

After this it should work, sorry for the last point, but I have my old classes compiled, that’s why I didn’t see any errors.

Hope this helps,
Marco

plin3000
Offline
Joined: 2005-05-17
Points: 0

Hi Marco,
Thanks for the reply.
I updated CVS last night, but I still got some exceptions and many the compiler errors.
Could you take a look the following output I really need to know what I missed?

Thanks,
Paul.

1. ant sipradeploy - exceptions
2. ant proxy-service-deploy - compiler errors)
...

D:\mobicents>ant sipradeploy
Buildfile: build.xml

init:

javacompile:

sipra:

init:

compile-ratype:
[mkdir] Created dir: D:\mobicents\ra\sipra\ratype\classes
[javac] Compiling 2 source files to D:\mobicents\ra\sipra\ratype\classes

compile-ra:
[mkdir] Created dir: D:\mobicents\ra\sipra\ra\classes
[javac] Compiling 11 source files to D:\mobicents\ra\sipra\ra\classes
[copy] Copying 1 file to D:\mobicents\ra\sipra\ra\classes

package-ra:
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ra\META-INF
[copy] Copying 16 files to D:\mobicents\ra\sipra\stage\ra
[jar] Building jar: D:\mobicents\ra\sipra\stage\sip-resource-adaptor.jar
[delete] Deleting directory D:\mobicents\ra\sipra\stage\ra

unit-ra:
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ra-unit
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ra-unit\library
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ra-unit\META-INF
[jar] Building jar: D:\mobicents\ra\sipra\stage\sip-local-ra.jar
[delete] Deleting directory D:\mobicents\ra\sipra\stage\ra-unit

package-ratype:
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ratype\META-INF
[copy] Copying 2 files to D:\mobicents\ra\sipra\stage\ratype
[jar] Building jar: D:\mobicents\ra\sipra\stage\sip-resource-adaptor-type.
jar
[delete] Deleting directory D:\mobicents\ra\sipra\stage\ratype

package-events:
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\events\META-INF
[jar] Building jar: D:\mobicents\ra\sipra\stage\sip-events.jar
[delete] Deleting directory D:\mobicents\ra\sipra\stage\events

unit-type:
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ratype-unit\META-INF
[copy] Copying 2 files to D:\mobicents\ra\sipra\stage\ratype-unit
[copy] Copying 1 file to D:\mobicents\ra\sipra\stage\ratype-unit\library
[jar] Building jar: D:\mobicents\ra\sipra\stage\sip-ra-type.jar
[delete] Deleting directory D:\mobicents\ra\sipra\stage\ratype-unit

deploy:

sipradeploy:
[echo] ./ra/sipra/bin/DeploySipRA.bat
[exec] "DIRNAME="
[exec] "Deploying SIP RA type"
[exec] "JAVA_HOME=c:\programs\j2sdk1.4.2_05"
[exec] "JBOSS_HOME=C:\Programs\jboss-3.2.7"
[exec] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.NamingContext).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] MBeanException: javax.slee.management.DeploymentException: Error ret
rieving file from URL=[file://D:/Mobicents/ra/sipra/stage/sip-ra-type.jar] to lo
cal storage
[exec] Cause: javax.slee.management.DeploymentException: Error retrieving f
ile from URL=[file://D:/Mobicents/ra/sipra/stage/sip-ra-type.jar] to local stora
ge
[exec] Bad result: slee:name=DeploymentMBean.install
[exec] "Deploying SIP RA"
[exec] "JAVA_HOME=c:\programs\j2sdk1.4.2_05"
[exec] "JBOSS_HOME=C:\Programs\jboss-3.2.7"
[exec] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.NamingContext).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] MBeanException: javax.slee.management.DeploymentException: Error ret
rieving file from URL=[file://D:/Mobicents/ra/sipra/stage/sip-local-ra.jar] to l
ocal storage
[exec] Cause: javax.slee.management.DeploymentException: Error retrieving f
ile from URL=[file://D:/Mobicents/ra/sipra/stage/sip-local-ra.jar] to local stor
age
[exec] Bad result: slee:name=DeploymentMBean.install
[exec] "Creating SIP RA entity, entity name=SipRA"
[exec] "JAVA_HOME=c:\programs\j2sdk1.4.2_05"
[exec] "JBOSS_HOME=C:\Programs\jboss-3.2.7"
[exec] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.NamingContext).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] MBeanException: org.mobicents.slee.container.management.Unrecognized
ResourceAdaptorException: Resource Adpator: ResourceAdaptorID[jainsip#NIST#1.1]
not found
[exec] Cause: org.mobicents.slee.container.management.UnrecognizedResourceA
daptorException: Resource Adpator: ResourceAdaptorID[jainsip#NIST#1.1] not found

[exec] Bad result: slee:name=ResourceAdaptorMBean.createResourceAdaptorEnti
ty
[exec] "Activating SIP RA entity, entity name=SipRA"
[exec] "JAVA_HOME=c:\programs\j2sdk1.4.2_05"
[exec] "JBOSS_HOME=C:\Programs\jboss-3.2.7"
[exec] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.NamingContext).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] MBeanException: org.mobicents.slee.container.management.Unrecognized
ResourceAdaptorException: Resource Adaptor Entity SipRA not found.
[exec] Cause: org.mobicents.slee.container.management.UnrecognizedResourceA
daptorException: Resource Adaptor Entity SipRA not found.
[exec] Bad result: slee:name=ResourceAdaptorMBean.activateResourceAdaptorEn
tity
[exec] "Create SIP RA entity link, entity name=SipRA"
[exec] "JAVA_HOME=c:\programs\j2sdk1.4.2_05"
[exec] "JBOSS_HOME=C:\Programs\jboss-3.2.7"
[exec] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.NamingContext).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] No response

BUILD SUCCESSFUL
Total time: 22 seconds
D:\mobicents>ant proxy-service-deploy
Buildfile: build.xml

build-proxy-service-jars:
[javac] Compiling 16 source files to D:\mobicents\classes
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:22: package org.mobicents.slee.resource.sip d
oes not exist
[javac] import org.mobicents.slee.resource.sip.SipActivityContextInterfaceFa
ctory;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:23: package org.mobicents.slee.resource.sip d
oes not exist
[javac] import org.mobicents.slee.resource.sip.SipFactoryProvider;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:78: cannot resolve symbol
[javac] symbol : class SipFactoryProvider
[javac] location: class com.opencloud.slee.services.sip.proxy.JainSipProxySb
b
[javac] private SipFactoryProvider fp;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:83: cannot resolve symbol
[javac] symbol : class SipActivityContextInterfaceFactory
[javac] location: class com.opencloud.slee.services.sip.proxy.JainSipProxySb
b
[javac] private SipActivityContextInterfaceFactory acif;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\registrar\RegistrarSbb.java:4: package org.mobicents.slee.resource.sip d
oes not exist
[javac] import org.mobicents.slee.resource.sip.SipFactoryProvider;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\registrar\RegistrarSbb.java:303: cannot resolve symbol
[javac] symbol : class SipFactoryProvider
[javac] location: class com.opencloud.slee.services.sip.registrar.RegistrarS
bb
[javac] private SipFactoryProvider factoryProvider;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\registrar\RegistrarSbb.java:315: cannot resolve symbol
[javac] symbol : class SipFactoryProvider
[javac] location: class com.opencloud.slee.services.sip.registrar.RegistrarS
bb
[javac] private SipFactoryProvider fp;
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:33: cannot resolve symbol
[javac] symbol : class SipFactoryProvider
[javac] location: class com.opencloud.slee.services.sip.proxy.JainSipProxySb
b
[javac] fp = (SipFactoryProvider) myEnv.lookup("slee/resources/j
ainsip/1.1/provider");
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\proxy\JainSipProxySbb.java:42: cannot resolve symbol
[javac] symbol : class SipActivityContextInterfaceFactory
[javac] location: class com.opencloud.slee.services.sip.proxy.JainSipProxySb
b
[javac] acif = (SipActivityContextInterfaceFactory) myEnv.lookup
("slee/resources/jainsip/1.1/acifactory");
[javac] ^
[javac] D:\mobicents\thirdparty\oc-sip-examples\src\com\opencloud\slee\servi
ces\sip\registrar\RegistrarSbb.java:184: cannot resolve symbol
[javac] symbol : class SipFactoryProvider
[javac] location: class com.opencloud.slee.services.sip.registrar.RegistrarS
bb
[javac] fp = (SipFactoryProvider) sbbEnv.lookup("slee/resources/
jainsip/1.1/provider");
[javac] ^
[javac] 10 errors

BUILD FAILED
D:\mobicents\build.xml:456: Compile failed; see the compiler error output for de
tails.

Total time: 5 seconds

ivelin
Offline
Joined: 2003-07-13
Points: 0

The End to End example document is also up to date in regard to the 1.0a release:
http://wiki.java.net/bin/view/Communications/MobicentsSimplePBXExample

I tested for my JavaOne presentation.

Ivelin

ivelin
Offline
Joined: 2003-07-13
Points: 0

BTW, I would appreciate comments on the latest version of the End to End Example page.

Ivelin