[sip-comm-dev] BundleException: Unable to cache bundle launching SIPCommunicator in Java Web Start


#1

Hi,

I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a
tutorial by Gabor JAGER where all steps are explained (felix.properties
modifying, and jnlp file building etc), you can see that tutorial in this
link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1> &number=1).

The tutorial says that you have to load all bundles from a folder and this
path is indicated in felix.properties. My folder is set in the localhost
forlder (I use the apache server to load all bundles required). But when I
launch the jnlp file I get this error:

Welcome to Felix.

···

=================

Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
erepository-1.0.0.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to cache
bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar
....

It happens with all bundles the program has to load. It seems to me that
felix doesnt know where deploy the bundles, doesn't it?.

In the felix.properties file I have commented the line where I can set a
specific directory to deploy the bundles. So, all my bundles would deploy in
the default folder, i.e, felix-cache.

This line is the following, joined with a example of felix.start bundle
calling:

felix.auto.start.75= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar

felix.auto.start.80= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

# Uncomment the following lines if you want to run the architect viewer
# bundle.
#oscar.auto.start.100= \
# file:lib/bundle/architectureviewer1.1.jar

#Specify the directory where oscar should deploy its bundles
#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION
}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

org.osgi.framework.startlevel=100
felix.startlevel.framework=100
felix.startlevel.bundle=100
#
# Bundle config properties.
#
#org.osgi.service.http.port=8080
#osgi.shell.telnet=on
#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
oscar.embedded.execution=true

Can anybody help me?? I'd appreciate a lot any help.

Thanks in advance.

Pedro Antonio Moreno Sanchez
Telecommunication Engineer & Researcher
Bioengineering and Telemedicine Group
ETSI Telecomunicación - UPM A.101-8L.
Ciudad Universitaria s/n
28040 MADRID - SPAIN

Tel. +34 91 549 57 00 ext. 3407
Fax + 34 91 336 68 28
e-mail: <mailto:pmoreno@gbt.tfo.upm.es> pmoreno@gbt.tfo.upm.es


#2

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it
could be loaded.

Regards
Rainer

Pedro Moreno schrieb:

···

Hi,

I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a
tutorial by Gabor JAGER where all steps are explained (felix.properties
modifying, and jnlp file building etc), you can see that tutorial in
this link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

The tutorial says that you have to load all bundles from a folder and
this path is indicated in felix.properties. My folder is set in the
localhost forlder (I use the apache server to load all bundles
required). But when I launch the jnlp file I get this error:

Welcome to Felix.

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundlerepository-1.0.0.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar
....

It happens with all bundles the program has to load. It seems to me that
felix doesnt know where deploy the bundles, doesn't it?.

In the felix.properties file I have commented the line where I can set a
specific directory to deploy the bundles. So, all my bundles would
deploy in the default folder, i.e, felix-cache.

This line is the following, joined with a example of felix.start bundle
calling:

felix.auto.start.75= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar

felix.auto.start.80= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

# Uncomment the following lines if you want to run the architect viewer
# bundle.
#oscar.auto.start.100= \
# file:lib/bundle/architectureviewer1.1.jar

#Specify the directory where oscar should deploy its bundles
#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

org.osgi.framework.startlevel=100
felix.startlevel.framework=100
felix.startlevel.bundle=100
#
# Bundle config properties.
#
#org.osgi.service.http.port=8080
#osgi.shell.telnet=on
#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
oscar.embedded.execution=true

Can anybody help me?? I'd appreciate a lot any help.

Thanks in advance.

Pedro Antonio Moreno Sanchez
Telecommunication Engineer & Researcher
Bioengineering and Telemedicine Group
ETSI Telecomunicaci�n - UPM A.101-8L.
Ciudad Universitaria s/n
28040 MADRID - SPAIN

Tel. +34 91 549 57 00 ext. 3407
Fax + 34 91 336 68 28
e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the SIPComm.
But I've a question, all bundles are deployed in a folder called
"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but now
I want to delete to do more test with java web start. ¿Do you know how can I
delete this folder because I can't do that?

And another question, if I try to change the folder where the bundles are
deployed changing the line in the felix.properties file:
"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn’t
work. ¿Do you know why? ¿How can I change that folder's path?

Thanks in advance

Pedro

Enviado el: lunes, 22 de junio de 2009 11:31
SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it
could be loaded.

Regards
Rainer

Pedro Moreno schrieb:

Hi,

I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a
tutorial by Gabor JAGER where all steps are explained (felix.properties
modifying, and jnlp file building etc), you can see that tutorial in
this link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

The tutorial says that you have to load all bundles from a folder and
this path is indicated in felix.properties. My folder is set in the
localhost forlder (I use the apache server to load all bundles
required). But when I launch the jnlp file I get this error:

Welcome to Felix.

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
erepository-1.0.0.jar

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar
....

It happens with all bundles the program has to load. It seems to me that
felix doesnt know where deploy the bundles, doesn't it?.

In the felix.properties file I have commented the line where I can set a
specific directory to deploy the bundles. So, all my bundles would
deploy in the default folder, i.e, felix-cache.

This line is the following, joined with a example of felix.start bundle
calling:

felix.auto.start.75= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar

felix.auto.start.80= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

# Uncomment the following lines if you want to run the architect viewer
# bundle.
#oscar.auto.start.100= \
# file:lib/bundle/architectureviewer1.1.jar

#Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION
}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

···

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

org.osgi.framework.startlevel=100
felix.startlevel.framework=100
felix.startlevel.bundle=100
#
# Bundle config properties.
#
#org.osgi.service.http.port=8080
#osgi.shell.telnet=on
#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
oscar.embedded.execution=true

Can anybody help me?? I'd appreciate a lot any help.

Thanks in advance.

Pedro Antonio Moreno Sanchez
Telecommunication Engineer & Researcher
Bioengineering and Telemedicine Group
ETSI Telecomunicación - UPM A.101-8L.
Ciudad Universitaria s/n
28040 MADRID - SPAIN

Tel. +34 91 549 57 00 ext. 3407
Fax + 34 91 336 68 28
e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the SIPComm.
But I've a question, all bundles are deployed in a folder called
"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but now
I want to delete to do more test with java web start. �Do you know how can I
delete this folder because I can't do that?
   
If you add the following to your config properties:

     org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are
deployed changing the line in the felix.properties file:
"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn't
work. �Do you know why? �How can I change that folder's path?
   
The storage property is expecting a path to a directory.

-> richard

···

On 6/22/09 6:46 AM, Pedro Moreno wrote:

Thanks in advance

Pedro

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: lunes, 22 de junio de 2009 11:31
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching
SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it
could be loaded.

Regards
Rainer

Pedro Moreno schrieb:
   

Hi,

I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a
tutorial by Gabor JAGER where all steps are explained (felix.properties
modifying, and jnlp file building etc), you can see that tutorial in
this link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

The tutorial says that you have to load all bundles from a folder and
this path is indicated in felix.properties. My folder is set in the
localhost forlder (I use the apache server to load all bundles
required). But when I launch the jnlp file I get this error:

Welcome to Felix.

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
erepository-1.0.0.jar
   

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar
....

It happens with all bundles the program has to load. It seems to me that
felix doesnt know where deploy the bundles, doesn't it?.

In the felix.properties file I have commented the line where I can set a
specific directory to deploy the bundles. So, all my bundles would
deploy in the default folder, i.e, felix-cache.

  This line is the following, joined with a example of felix.start bundle
calling:

felix.auto.start.75= \
  reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar

felix.auto.start.80= \
  reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

# Uncomment the following lines if you want to run the architect viewer
# bundle.
#oscar.auto.start.100= \
# file:lib/bundle/architectureviewer1.1.jar

#Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION
}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin
   

org.osgi.framework.startlevel=100
felix.startlevel.framework=100
felix.startlevel.bundle=100
#
# Bundle config properties.
#
#org.osgi.service.http.port=8080
#osgi.shell.telnet=on
#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
oscar.embedded.execution=true

Can anybody help me?? I'd appreciate a lot any help.

Thanks in advance.

Pedro Antonio Moreno Sanchez
Telecommunication Engineer& Researcher
Bioengineering and Telemedicine Group
ETSI Telecomunicaci�n - UPM A.101-8L.
Ciudad Universitaria s/n
28040 MADRID - SPAIN

Tel. +34 91 549 57 00 ext. 3407
Fax + 34 91 336 68 28
e-mail: pmoreno@gbt.tfo.upm.es<mailto:pmoreno@gbt.tfo.upm.es>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
     
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start
but I had
a problem because I couldn’t create a SIP account in the application and I
got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP
ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc
ount(FirstWizardPage.java:673)

                at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi
rstWizardPage.java:428)

                at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.
signin(SIPAccountRegistrationWizard.java:211)

                at
net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo
rmed(NewAccountDialog.java:278)

                at javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)

                at java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I ‘ve checking the java console in running process and I
get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don’t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a correct
way.

Can anybody help me, please? I’d appreciate any help

Thanks a lot

Pedro

Enviado el: lunes, 22 de junio de 2009 16:39
SIPCommunicator in Java Web Start

···

De: Richard S. Hall [mailto:heavy@ungoverned.org]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

On 6/22/09 6:46 AM, Pedro Moreno wrote:

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the SIPComm.
But I've a question, all bundles are deployed in a folder called
"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but now
I want to delete to do more test with java web start. ¿Do you know how can I
delete this folder because I can't do that?
  
If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are
deployed changing the line in the felix.properties file:
"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn’t
work. ¿Do you know why? ¿How can I change that folder's path?
  
The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: lunes, 22 de junio de 2009 11:31
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching
SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it
could be loaded.

Regards
Rainer

Pedro Moreno schrieb:
  
Hi,

I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a
tutorial by Gabor JAGER where all steps are explained (felix.properties
modifying, and jnlp file building etc), you can see that tutorial in
this link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1> &number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

The tutorial says that you have to load all bundles from a folder and
this path is indicated in felix.properties. My folder is set in the
localhost forlder (I use the apache server to load all bundles
required). But when I launch the jnlp file I get this error:

Welcome to Felix.

Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>
erepository-1.0.0.jar
  
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>
Auto-properties install: org.osgi.framework.BundleException: Unable to
cache bundle:
reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>
....

It happens with all bundles the program has to load. It seems to me that
felix doesnt know where deploy the bundles, doesn't it?.

In the felix.properties file I have commented the line where I can set a
specific directory to deploy the bundles. So, all my bundles would
deploy in the default folder, i.e, felix-cache.

This line is the following, joined with a example of felix.start bundle
calling:

felix.auto.start.75= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

felix.auto.start.80= \
reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

# Uncomment the following lines if you want to run the architect viewer
# bundle.
#oscar.auto.start.100= \
# file:lib/bundle/architectureviewer1.1.jar
<file:///\\lib\bundle\architectureviewer1.1.jar>

#Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION
}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin
  
org.osgi.framework.startlevel=100
felix.startlevel.framework=100
felix.startlevel.bundle=100
#
# Bundle config properties.
#
#org.osgi.service.http.port=8080
#osgi.shell.telnet=on
#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>
oscar.embedded.execution=true

Can anybody help me?? I'd appreciate a lot any help.

Thanks in advance.

Pedro Antonio Moreno Sanchez
Telecommunication Engineer & Researcher
Bioengineering and Telemedicine Group
ETSI Telecomunicación - UPM A.101-8L.
Ciudad Universitaria s/n
28040 MADRID - SPAIN

Tel. +34 91 549 57 00 ext. 3407
Fax + 34 91 336 68 28
e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>
<mailto:pmoreno@gbt.tfo.upm.es>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
    
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


#6

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

···

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start�but I
had a problem because I couldn�t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIPProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAccount(FirstWizardPage.java:673)

                at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(FirstWizardPage.java:428)

                at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:211)

                at
net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerformed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I �ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don�t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I�d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

On 6/22/09 6:46 AM, Pedro Moreno wrote:

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but now

I want to delete to do more test with java web start. �Do you know how can I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn�t

work. �Do you know why? �How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

-----Mensaje original-----

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net <mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've followed a

    tutorial by Gabor JAGER where all steps are explained (felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link (http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1 <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1> <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

    The tutorial says that you have to load all bundles from a folder and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl <file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can set a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start bundle

    calling:

    felix.auto.start.75= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar <file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

    # Uncomment the following lines if you want to run the architect viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar <file:///\\lib\bundle\architectureviewer1.1.jar>

    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

    #oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml <file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicaci�n - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es> <mailto:pmoreno@gbt.tfo.upm.es>

    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net <mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net <mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net <mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net <mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hello

Thanks Rainer for your answer, it was correct. The solution was in media.jar
and I had to delete felix-cache folder to run the SIPComm in a correct way.
But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf
DeviceDetector.java:107)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe
viceDetector.java:364)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi
gureCaptureDevices(JmfDeviceDetector.java:412)
  at
net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D
eviceConfiguration.java:125)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid). Disabling
STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission denied
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError:
no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil in
java.library.path
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native
CaptureSystemFactory.java:24)
  at
net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev
icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi
lVideoAuto.java:33)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD
evices(JmfDeviceDetector.java:234)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf
DeviceDetector.java:119)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe
viceDetector.java:364)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi
gureCaptureDevices(JmfDeviceDetector.java:412)
  at
net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D
eviceConfiguration.java:125)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native
CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException: No
permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at
net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont
rol.java:558)
  at
net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo
ntrol.java:192)
  at
net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja
va:146)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when I
try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content
ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at
net.java.sip.communicator.impl.media.transform.TransformManager.initializePr
oviders(TransformManager.java:48)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca
llSessionImpl.java:2050)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call
SessionImpl.java:2016)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio
n(CallSessionImpl.java:1419)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess
ionImpl.java:646)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru
n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S
earchPolicyCore.java:505)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:466)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:486)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 20 more

I don’t know how solve this problem because I never have this problem when I
run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

Enviado el: martes, 23 de junio de 2009 14:05
SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start
but I
had a problem because I couldn’t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP
ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc
ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi
rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.
signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo
rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I ‘ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don’t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I’d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. ¿Do you know how can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn’t

work. ¿Do you know why? ¿How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

    The tutorial says that you have to load all bundles from a folder and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicación - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

···

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

On 6/22/09 6:46 AM, Pedro Moreno wrote:
-----Mensaje original-----

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hello Pedro,

I have been also faced with the same problem.
It has to do with the native libs. It seems that there are dependencies
from civil to other native libs that cannot be resolved, while these
libs are not on the classpath. I had not the time to find out more about
these dependencies.
There is a bug report on sun.com that explains it further:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6326590

At this bug report there are two workarounds to solve this problem.
The first one is to call explicit "System.loadlibrary(..)" at your code,
but this does not work for me - maybe you could try it and report your
experiences, because this is the more common solution imho.
The second one is to "install" the libraries on the OS by just
extracting them and add it to the path while starting web start. This
works perfect for me (on WinXP, Ubuntu/Kubuntu) but beats the advantages
of web start :frowning:

Regards
Rainer

Pedro Moreno schrieb:

···

Hello

Thanks Rainer for your answer, it was correct. The solution was in media.jar
and I had to delete felix-cache folder to run the SIPComm in a correct way.
But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf
DeviceDetector.java:107)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe
viceDetector.java:364)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi
gureCaptureDevices(JmfDeviceDetector.java:412)
  at
net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D
eviceConfiguration.java:125)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid). Disabling
STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission denied
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError:
no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil in
java.library.path
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native
CaptureSystemFactory.java:24)
  at
net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev
icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi
lVideoAuto.java:33)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD
evices(JmfDeviceDetector.java:234)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf
DeviceDetector.java:119)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe
viceDetector.java:364)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi
gureCaptureDevices(JmfDeviceDetector.java:412)
  at
net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D
eviceConfiguration.java:125)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native
CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException: No
permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at
net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont
rol.java:558)
  at
net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo
ntrol.java:192)
  at
net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja
va:146)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when I
try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content
ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at
net.java.sip.communicator.impl.media.transform.TransformManager.initializePr
oviders(TransformManager.java:48)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca
llSessionImpl.java:2050)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call
SessionImpl.java:2016)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio
n(CallSessionImpl.java:1419)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess
ionImpl.java:646)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru
n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S
earchPolicyCore.java:505)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:466)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:486)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 20 more

I don�t know how solve this problem because I never have this problem when I
run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: martes, 23 de junio de 2009 14:05
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching
SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start�but I
had a problem because I couldn�t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP
ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc
ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi
rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.
signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo
rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I �ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don�t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I�d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

On 6/22/09 6:46 AM, Pedro Moreno wrote:

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. �Do you know how can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn�t

work. �Do you know why? �How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

-----Mensaje original-----

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

     
    The tutorial says that you have to load all bundles from a folder and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl
<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable to

    cache bundle:

    reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

     
    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

     
    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

     
    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicaci�n - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

     
    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hi Rainer,
First of all thanks a lot for your help, your helps are very useful more
than you can imagine.

I'm very newbie with JavaWebStart, so I don't understand the solution very
well.

I'm reading the bug report but I'm not able to understand what I have to do
in these instructions:

CUSTOMER SUBMITTED WORKAROUND :
A) Run webstart installer as root and have the application copy native libs
(those reference by others) to a location contained in the
java.library.path such as /usr/lib or $JAVA_WEBSTART_HOME
B) Modify the javaws script and set LD_LIBRARY_PATH to contain the location
of the referenced library
C) Have the user copy referenced libs to a location contained in the
java.library.path such as /usr/lib or
I think this is the second workaround you mentioned before. Could you
specify step by step what you did, please? because a I'm very lost and I
don't what I have to do.

Related to the first solution, where I should put the instruction
"System.loadlibrary (civil)" -I guess-. Should it be in the SIPComm code?

Another point in this issue is about the part of my problema:
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.

java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)

Is it related to the libraries dependencies I pointed before.

Thanks a lot
Best whishes
Pedro

Enviado el: miércoles, 24 de junio de 2009 11:10
SIPCommunicator in Java Web Start

Hello Pedro,

I have been also faced with the same problem.
It has to do with the native libs. It seems that there are dependencies
from civil to other native libs that cannot be resolved, while these
libs are not on the classpath. I had not the time to find out more about
these dependencies.
There is a bug report on sun.com that explains it further:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6326590

At this bug report there are two workarounds to solve this problem.
The first one is to call explicit "System.loadlibrary(..)" at your code,
but this does not work for me - maybe you could try it and report your
experiences, because this is the more common solution imho.
The second one is to "install" the libraries on the OS by just
extracting them and add it to the path while starting web start. This
works perfect for me (on WinXP, Ubuntu/Kubuntu) but beats the advantages
of web start :frowning:

Regards
Rainer

Pedro Moreno schrieb:

Hello

Thanks Rainer for your answer, it was correct. The solution was in

media.jar

and I had to delete felix-cache folder to run the SIPComm in a correct

way.

But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:107)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid). Disabling
STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission

denied

24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException:

java.lang.UnsatisfiedLinkError:

no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil

in

java.library.path
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:24)
  at

net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev

icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at

net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi

lVideoAuto.java:33)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD

evices(JmfDeviceDetector.java:234)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:119)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException:

No

permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at

net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont

rol.java:558)
  at

net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo

ntrol.java:192)
  at

net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja

va:146)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when I
try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at

org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content

ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at

net.java.sip.communicator.impl.media.transform.TransformManager.initializePr

oviders(TransformManager.java:48)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca

llSessionImpl.java:2050)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call

SessionImpl.java:2016)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio

n(CallSessionImpl.java:1419)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess

ionImpl.java:646)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at

net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru

n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S

earchPolicyCore.java:505)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:466)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:486)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 20 more

I don’t know how solve this problem because I never have this problem when

I

run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: martes, 23 de junio de 2009 14:05
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start
but I

had a problem because I couldn’t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP

ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc

ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi

rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.

signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo

rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I ‘ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don’t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I’d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. ¿Do you know how

can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn’t

work. ¿Do you know why? ¿How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've

followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

     
    The tutorial says that you have to load all bundles from a folder and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl

<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can

set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

     
    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

     
    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

     
    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicación - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

     
    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

···

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

-----Mensaje original-----

On 6/22/09 6:46 AM, Pedro Moreno wrote:
-----Mensaje original-----

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hi,

I also learned much about web start by implementing the solution for SC,
so just keep on trying ! :slight_smile:

the solution is much more easier than described above.
1) Just extract the corresponding native libraries at the OS
2) Either add the folder to the library path (so it would be also
available for other applications) or modify webstart in your JRE to add
the libraries before launcing web start.

For example on WinXP you have to add the folder path of the unziped
native libraries at the system environment variable PATH. That's it.

Regards
Rainer

Pedro Moreno schrieb:

···

Hi Rainer,
First of all thanks a lot for your help, your helps are very useful more
than you can imagine.

I'm very newbie with JavaWebStart, so I don't understand the solution very
well.

I'm reading the bug report but I'm not able to understand what I have to do
in these instructions:

CUSTOMER SUBMITTED WORKAROUND :
A) Run webstart installer as root and have the application copy native libs
(those reference by others) to a location contained in the
java.library.path such as /usr/lib or $JAVA_WEBSTART_HOME
B) Modify the javaws script and set LD_LIBRARY_PATH to contain the location
of the referenced library
C) Have the user copy referenced libs to a location contained in the
java.library.path such as /usr/lib or
I think this is the second workaround you mentioned before. Could you
specify step by step what you did, please? because a I'm very lost and I
don't what I have to do.

Related to the first solution, where I should put the instruction
"System.loadlibrary (civil)" -I guess-. Should it be in the SIPComm code?

Another point in this issue is about the part of my problema:
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.

java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)

Is it related to the libraries dependencies I pointed before.

Thanks a lot
Best whishes
Pedro

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: mi�rcoles, 24 de junio de 2009 11:10
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching
SIPCommunicator in Java Web Start

Hello Pedro,

I have been also faced with the same problem.
It has to do with the native libs. It seems that there are dependencies
from civil to other native libs that cannot be resolved, while these
libs are not on the classpath. I had not the time to find out more about
these dependencies.
There is a bug report on sun.com that explains it further:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6326590

At this bug report there are two workarounds to solve this problem.
The first one is to call explicit "System.loadlibrary(..)" at your code,
but this does not work for me - maybe you could try it and report your
experiences, because this is the more common solution imho.
The second one is to "install" the libraries on the OS by just
extracting them and add it to the path while starting web start. This
works perfect for me (on WinXP, Ubuntu/Kubuntu) but beats the advantages
of web start :frowning:

Regards
Rainer

Pedro Moreno schrieb:

Hello

Thanks Rainer for your answer, it was correct. The solution was in

media.jar

and I had to delete felix-cache folder to run the SIPComm in a correct

way.

But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:107)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid). Disabling
STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission

denied

24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException:

java.lang.UnsatisfiedLinkError:

no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil

in

java.library.path
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:24)
  at

net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev

icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at

net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi

lVideoAuto.java:33)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD

evices(JmfDeviceDetector.java:234)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:119)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException:

No

permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at

net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont

rol.java:558)
  at

net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo

ntrol.java:192)
  at

net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja

va:146)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when I
try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at

org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content

ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at

net.java.sip.communicator.impl.media.transform.TransformManager.initializePr

oviders(TransformManager.java:48)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca

llSessionImpl.java:2050)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call

SessionImpl.java:2016)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio

n(CallSessionImpl.java:1419)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess

ionImpl.java:646)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at

net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru

n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S

earchPolicyCore.java:505)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:466)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:486)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 20 more

I don�t know how solve this problem because I never have this problem when

I

run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: martes, 23 de junio de 2009 14:05
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start�but I
had a problem because I couldn�t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP

ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc

ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi

rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.

signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo

rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I �ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don�t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I�d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

On 6/22/09 6:46 AM, Pedro Moreno wrote:

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. �Do you know how

can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it doesn�t

work. �Do you know why? �How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

-----Mensaje original-----

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've

followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

     
    The tutorial says that you have to load all bundles from a folder and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl

<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can

set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

     
    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

     
    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

     
    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicaci�n - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

     
    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#11

Hi Rainer,
I've achieved to fix the problem with the natives libraries, but I still
have problems to establish a SIP call.

When I try to call I get a failed state after the other part has accepted my
call request.

I don’t know what is happening, because I have a point with the sound in
this part of Java Console log which could be the problem:

GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException: No
permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at
net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont
rol.java:558)
  at
net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo
ntrol.java:192)
  at
net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja
va:146)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:409)

Also, when I do the call I get this message (process status failed
included):

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content
ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at
net.java.sip.communicator.impl.media.transform.TransformManager.initializePr
oviders(TransformManager.java:48)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca
llSessionImpl.java:2050)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call
SessionImpl.java:2016)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio
n(CallSessionImpl.java:1419)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess
ionImpl.java:646)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru
n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S
earchPolicyCore.java:505)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:466)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:486)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 20 more
25-jun-2009 15:44:51 net.java.sip.communicator.util.Logger info
INFO: Audio: ZRTP message: severity: Info, sub code: ZRTPEngineInitFailure,
DH session: true, multi: 0
25-jun-2009 15:44:51 net.java.sip.communicator.util.Logger info
INFO: Video: ZRTP message: severity: Info, sub code: ZRTPEngineInitFailure,
DH session: false, multi: 0
25-jun-2009 15:44:55 net.java.sip.communicator.util.Logger error
GRAVE: Received error: 488 Not Acceptable here
25-jun-2009 15:44:55 net.java.sip.communicator.util.Logger warn
ADVERTENCIA: Stopping streaming.

I have a SIP message 488 Not Acceptable here related to any problem with
media devices (audio-video).

Could you help me, please? I'd appreciate any help

Thanks a lot

Best regards

Pedro

Enviado el: miércoles, 24 de junio de 2009 13:11
SIPCommunicator in Java Web Start

Hi,

I also learned much about web start by implementing the solution for SC,
so just keep on trying ! :slight_smile:

the solution is much more easier than described above.
1) Just extract the corresponding native libraries at the OS
2) Either add the folder to the library path (so it would be also
available for other applications) or modify webstart in your JRE to add
the libraries before launcing web start.

For example on WinXP you have to add the folder path of the unziped
native libraries at the system environment variable PATH. That's it.

Regards
Rainer

Pedro Moreno schrieb:

Hi Rainer,
First of all thanks a lot for your help, your helps are very useful more
than you can imagine.

I'm very newbie with JavaWebStart, so I don't understand the solution very
well.

I'm reading the bug report but I'm not able to understand what I have to

do

in these instructions:

CUSTOMER SUBMITTED WORKAROUND :
A) Run webstart installer as root and have the application copy native

libs

(those reference by others) to a location contained in the
java.library.path such as /usr/lib or $JAVA_WEBSTART_HOME
B) Modify the javaws script and set LD_LIBRARY_PATH to contain the

location

of the referenced library
C) Have the user copy referenced libs to a location contained in the
java.library.path such as /usr/lib or
I think this is the second workaround you mentioned before. Could you
specify step by step what you did, please? because a I'm very lost and I
don't what I have to do.

Related to the first solution, where I should put the instruction
"System.loadlibrary (civil)" -I guess-. Should it be in the SIPComm code?

Another point in this issue is about the part of my problema:
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.

java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)

Is it related to the libraries dependencies I pointed before.

Thanks a lot
Best whishes
Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: miércoles, 24 de junio de 2009 11:10
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

I have been also faced with the same problem.
It has to do with the native libs. It seems that there are dependencies
from civil to other native libs that cannot be resolved, while these
libs are not on the classpath. I had not the time to find out more about
these dependencies.
There is a bug report on sun.com that explains it further:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6326590

At this bug report there are two workarounds to solve this problem.
The first one is to call explicit "System.loadlibrary(..)" at your code,
but this does not work for me - maybe you could try it and report your
experiences, because this is the more common solution imho.
The second one is to "install" the libraries on the OS by just
extracting them and add it to the path while starting web start. This
works perfect for me (on WinXP, Ubuntu/Kubuntu) but beats the advantages
of web start :frowning:

Regards
Rainer

Pedro Moreno schrieb:

Hello

Thanks Rainer for your answer, it was correct. The solution was in

media.jar

and I had to delete felix-cache folder to run the SIPComm in a correct

way.

But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:107)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid).

Disabling

STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission

denied

24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException:

java.lang.UnsatisfiedLinkError:

no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil

in

java.library.path
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:24)
  at

net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev

icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at

net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi

lVideoAuto.java:33)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD

evices(JmfDeviceDetector.java:234)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:119)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException:

No

permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at

net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont

rol.java:558)
  at

net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo

ntrol.java:192)
  at

net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja

va:146)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when

I

try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at

org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content

ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at

net.java.sip.communicator.impl.media.transform.TransformManager.initializePr

oviders(TransformManager.java:48)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca

llSessionImpl.java:2050)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call

SessionImpl.java:2016)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio

n(CallSessionImpl.java:1419)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess

ionImpl.java:646)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at

net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru

n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S

earchPolicyCore.java:505)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:466)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:486)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 20 more

I don’t know how solve this problem because I never have this problem

when

I

run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: martes, 23 de junio de 2009 14:05
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start
but I

had a problem because I couldn’t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP

ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc

ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi

rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.

signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo

rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I ‘ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don’t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I’d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. ¿Do you know how

can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles

are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it

doesn’t

work. ¿Do you know why? ¿How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've

followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

     
    The tutorial says that you have to load all bundles from a folder

and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl

<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can

set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

     
    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

     
    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

     
    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicación - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

     
    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

···

-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

-----Mensaje original-----

-----Mensaje original-----

On 6/22/09 6:46 AM, Pedro Moreno wrote:
-----Mensaje original-----

database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4188 (20090625) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#12

Hello

I've been working in the problem I described last week (it is shown above).
I realized that the problem is in the media jar.

I get the problem shown below when I run the Java Web Start without a
signed media.jar, and when I tried to make a sip call I get a status failed
in the call because the JMFRegistry cannot be initialized. And JMFRegistry
cannot be initialized because media isn't signed.

So, I've decided to sign the media.jar but I've the following problem when I
try to do that:

jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry
size (expected 138 but got 89 bytes)

So, I've been searching on Internet and I've found the solution to that is
unjar the file in a folder, make a jar of that folder and finally sign that
jar. If you do this, you get the media.jar(the new) signed, but this doesn't
work in the Java Web Start and I get this message:
ERROR: Error starting

http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle

13:package;(&(package=net.java.sip.communicator.service.media)(version>=0.0.
0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle

13:package;(&(package=net.java.sip.communicator.service.media)(version>=0.0.
0))

                at

org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at

org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at

org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at

org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at

org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I think that the building of media is wrong because if you search in media
jar you can find in folder META-INF another folder called services. Should
this folder be out of META-INF folder? I'm very stuck with this and I don’t
know what to do more. Can anybody help me? I'd really appreciate any help
Thanks a lot
Regards
Pedro

Enviado el: jueves, 25 de junio de 2009 16:12
SIPCommunicator in Java Web Start

Hi Rainer,
I've achieved to fix the problem with the natives libraries, but I still
have problems to establish a SIP call.

When I try to call I get a failed state after the other part has accepted my
call request.

I don’t know what is happening, because I have a point with the sound in
this part of Java Console log which could be the problem:

GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException: No
permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at
net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont
rol.java:558)
  at
net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo
ntrol.java:192)
  at
net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja
va:146)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr
ead.run(MediaServiceImpl.java:409)

Also, when I do the call I get this message (process status failed
included):

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content
ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at
net.java.sip.communicator.impl.media.transform.TransformManager.initializePr
oviders(TransformManager.java:48)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca
llSessionImpl.java:2050)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call
SessionImpl.java:2016)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio
n(CallSessionImpl.java:1419)
  at
net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess
ionImpl.java:646)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp
l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru
n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:198)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S
earchPolicyCore.java:505)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:466)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:486)
  at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:185)
  ... 20 more
25-jun-2009 15:44:51 net.java.sip.communicator.util.Logger info
INFO: Audio: ZRTP message: severity: Info, sub code: ZRTPEngineInitFailure,
DH session: true, multi: 0
25-jun-2009 15:44:51 net.java.sip.communicator.util.Logger info
INFO: Video: ZRTP message: severity: Info, sub code: ZRTPEngineInitFailure,
DH session: false, multi: 0
25-jun-2009 15:44:55 net.java.sip.communicator.util.Logger error
GRAVE: Received error: 488 Not Acceptable here
25-jun-2009 15:44:55 net.java.sip.communicator.util.Logger warn
ADVERTENCIA: Stopping streaming.

I have a SIP message 488 Not Acceptable here related to any problem with
media devices (audio-video).

Could you help me, please? I'd appreciate any help

Thanks a lot

Best regards

Pedro

Enviado el: miércoles, 24 de junio de 2009 13:11
SIPCommunicator in Java Web Start

Hi,

I also learned much about web start by implementing the solution for SC,
so just keep on trying ! :slight_smile:

the solution is much more easier than described above.
1) Just extract the corresponding native libraries at the OS
2) Either add the folder to the library path (so it would be also
available for other applications) or modify webstart in your JRE to add
the libraries before launcing web start.

For example on WinXP you have to add the folder path of the unziped
native libraries at the system environment variable PATH. That's it.

Regards
Rainer

Pedro Moreno schrieb:

Hi Rainer,
First of all thanks a lot for your help, your helps are very useful more
than you can imagine.

I'm very newbie with JavaWebStart, so I don't understand the solution very
well.

I'm reading the bug report but I'm not able to understand what I have to

do

in these instructions:

CUSTOMER SUBMITTED WORKAROUND :
A) Run webstart installer as root and have the application copy native

libs

(those reference by others) to a location contained in the
java.library.path such as /usr/lib or $JAVA_WEBSTART_HOME
B) Modify the javaws script and set LD_LIBRARY_PATH to contain the

location

of the referenced library
C) Have the user copy referenced libs to a location contained in the
java.library.path such as /usr/lib or
I think this is the second workaround you mentioned before. Could you
specify step by step what you did, please? because a I'm very lost and I
don't what I have to do.

Related to the first solution, where I should put the instruction
"System.loadlibrary (civil)" -I guess-. Should it be in the SIPComm code?

Another point in this issue is about the part of my problema:
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.

java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)

Is it related to the libraries dependencies I pointed before.

Thanks a lot
Best whishes
Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: miércoles, 24 de junio de 2009 11:10
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

I have been also faced with the same problem.
It has to do with the native libs. It seems that there are dependencies
from civil to other native libs that cannot be resolved, while these
libs are not on the classpath. I had not the time to find out more about
these dependencies.
There is a bug report on sun.com that explains it further:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6326590

At this bug report there are two workarounds to solve this problem.
The first one is to call explicit "System.loadlibrary(..)" at your code,
but this does not work for me - maybe you could try it and report your
experiences, because this is the more common solution imho.
The second one is to "install" the libraries on the OS by just
extracting them and add it to the path while starting web start. This
works perfect for me (on WinXP, Ubuntu/Kubuntu) but beats the advantages
of web start :frowning:

Regards
Rainer

Pedro Moreno schrieb:

Hello

Thanks Rainer for your answer, it was correct. The solution was in

media.jar

and I had to delete felix-cache folder to run the SIPComm in a correct

way.

But now, I have a new issue, I can't establish a video call with sip
protocol because I have a problem with JMF, I guess.

This is the problem I have:

IOException in readRegistry: java.io.EOFException
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger error
GRAVE: Failed to initially commit JMFRegistry. Ignoring err.
java.lang.SecurityException: commit: Permission denied
  at com.sun.media.util.Registry.commit(Registry.java:251)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:107)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Looking for Audio capturer
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: DirectSound Capture Supported = false
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: Gibberish protocol implementation [STARTED].
24-jun-2009 10:23:17 net.java.sip.communicator.util.Logger info
INFO: SSH protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid).

Disabling

STUN.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Zeroconf protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: IRC protocol implementation [STARTED].
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSound Capture Supported = true
Exception on commit = java.lang.SecurityException: commit: Permission

denied

24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: JavaSoundAuto: Committed ok
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Looking for video capture devices
24-jun-2009 10:23:18 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
ADVERTENCIA: com.lti.civil.CaptureException:

java.lang.UnsatisfiedLinkError:

no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil

in

java.library.path
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:24)
  at

net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDev

icePlugger.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at

net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivi

lVideoAuto.java:33)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureD

evices(JmfDeviceDetector.java:234)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(Jmf

DeviceDetector.java:119)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDe

viceDetector.java:364)
  at

net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfi

gureCaptureDevices(JmfDeviceDetector.java:412)
  at

net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(D

eviceConfiguration.java:125)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at

com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(Native

CaptureSystemFactory.java:21)
  ... 12 more
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Audio Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Found JavaSound audio capture as an audio capture device.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Scanning for configured Video Devices.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: No Video Device was found.
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger info
INFO: Creating datasource for:javasound://44100
java.lang.RuntimeException: No permission to capture from applets
24-jun-2009 10:23:18 net.java.sip.communicator.util.Logger error
GRAVE: Could not create data source for javasound://44100
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.lang.RuntimeException:

No

permission to capture from applets
  at javax.media.Manager.createDataSource(Manager.java:1012)
  at

net.java.sip.communicator.impl.media.MediaControl.createDataSource(MediaCont

rol.java:558)
  at

net.java.sip.communicator.impl.media.MediaControl.initCaptureDevices(MediaCo

ntrol.java:192)
  at

net.java.sip.communicator.impl.media.MediaControl.initialize(MediaControl.ja

va:146)
  at

net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThr

ead.run(MediaServiceImpl.java:409)

As you can see, SIPComm cannot to detect the audio-video device, so when

I

try to establish a sip-call I get a failed status because of no-detection
device. Although I send the invite request, but with an empty session
description. Also, I get this message in the java console:

java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at

org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content

ClassLoader.java:118)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at

net.java.sip.communicator.impl.media.transform.TransformManager.initializePr

oviders(TransformManager.java:48)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.initializeRtpManager(Ca

llSessionImpl.java:2050)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.allocateMediaPorts(Call

SessionImpl.java:2016)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSessionDescriptio

n(CallSessionImpl.java:1419)
  at

net.java.sip.communicator.impl.media.CallSessionImpl.createSdpOffer(CallSess

ionImpl.java:646)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:260)
  at

net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImp

l.createCall(OperationSetBasicTelephonySipImpl.java:143)
  at

net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.ru

n(CallManager.java:253)
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:198)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol

icy.java:45)
  at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:216)
  at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:116)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4S

earchPolicyCore.java:505)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:466)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 14 more
Caused by: java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour

ce(R4SearchPolicyCore.java:486)
  at

org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc

hPolicyCore.java:185)
  ... 20 more

I don’t know how solve this problem because I never have this problem

when

I

run the application in Eclipse
Could anybody help me?
Thanks a lot
Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]
Enviado el: martes, 23 de junio de 2009 14:05
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello,

there seems to be a problem by loading the media.jar with Felix. Have
you also added the corresponding media.jar for your OS at the jnlp file?

Regards
Rainer

Pedro Moreno schrieb:

Hi Richard, thanks for the answer.

As I told you yesterday I got to run the SIPComm on Java Web Start
but I

had a problem because I couldn’t create a SIP account in the
application and I got this problem in the Java Console:

23-jun-2009 13:08:58 net.java.sip.communicator.util.Logger error

GRAVE: An uncaught exception occurred in
thread=Thread[AWT-EventQueue-0,6,main] and message was: null

java.lang.NullPointerException

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIP

ProtocolProviderFactory(SIPAccRegWizzActivator.java:104)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAcc

ount(FirstWizardPage.java:673)

                at

net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.commitPage(Fi

rstWizardPage.java:428)

                at

net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.

signin(SIPAccountRegistrationWizard.java:211)

                at

net.java.sip.communicator.impl.gui.main.account.NewAccountDialog.actionPerfo

rmed(NewAccountDialog.java:278)

                at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown

Source)

                at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown

Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown

Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Since that problem, I ‘ve checking the java console in running process
and I get these worrying messages:

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-sip.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 13:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

ERROR: Error starting
http://localhost/SIPCommV0JWS/sc-bundles/protocol-jabber.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))

org.osgi.framework.BundleException: Unresolved constraint in bundle 15:
package;

(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))

                at
org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)

                at
org.apache.felix.framework.Felix._startBundle(Felix.java:1635)

                at
org.apache.felix.framework.Felix.startBundle(Felix.java:1578)

                at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)

                at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)

                at java.lang.Thread.run(Unknown Source)

I don’t know what is happening, because if I run the same application in
eclipse it run without any problem. All jar files are signed in a
correct way.

Can anybody help me, please? I’d appreciate any help

Thanks a lot

Pedro

*De:* Richard S. Hall [mailto:heavy@ungoverned.org]
*Enviado el:* lunes, 22 de junio de 2009 16:39
*Para:* dev@sip-communicator.dev.java.net
*Asunto:* Re: [sip-comm-dev] BundleException: Unable to cache bundle
launching SIPCommunicator in Java Web Start

Hello Rainer

Thanks a lot for the answer. Now, it works and I've got to run the

SIPComm.

But I've a question, all bundles are deployed in a folder called

"felix-cache" in following path "C:\Program Files\Mozilla Firefox", but

now

I want to delete to do more test with java web start. ¿Do you know how

can

I

delete this folder because I can't do that?

If you add the following to your config properties:

    org.osgi.framework.storage.clean="onFirstInit"

This will delete the cache every time you first run your application.

And another question, if I try to change the folder where the bundles

are

deployed changing the line in the felix.properties file:

"org.osgi.framework.storage=http://localhost/SIPCommJWS/cache" it

doesn’t

work. ¿Do you know why? ¿How can I change that folder's path?

The storage property is expecting a path to a directory.

-> richard

Thanks in advance

Pedro

De: Rainer Steinegger [mailto:steinegger@synyx.de]

Enviado el: lunes, 22 de junio de 2009 11:31

Para: dev@sip-communicator.dev.java.net

<mailto:dev@sip-communicator.dev.java.net>

Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle

launching

SIPCommunicator in Java Web Start

Hello Pedro,

at my jnlp file I had to remove the "reference:file:" prefix and it

could be loaded.

Regards

Rainer

Pedro Moreno schrieb:

    Hi,

    I'm trying to launch SIPCommunicator using JavaWebStart. I've

followed

a

    tutorial by Gabor JAGER where all steps are explained

(felix.properties

    modifying, and jnlp file building etc), you can see that tutorial in

    this link

(http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1
<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

    <http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>

<http://markmail.org/download.xqy?id=prjrzetbdkp5h4qp&number=1>).

     
    The tutorial says that you have to load all bundles from a folder

and

    this path is indicated in felix.properties. My folder is set in the

    localhost forlder (I use the apache server to load all bundles

    required). But when I launch the jnlp file I get this error:

    Welcome to Felix.

    =================

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/defaultresources.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\defaultresources.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/lib/bundle/org.apache.felix.bundl

<file:///\\http:\localhost\SIPCommJWS\lib\bundle\org.apache.felix.bundl>

erepository-1.0.0.jar

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/configuration.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\configuration.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/resourcemanager.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\resourcemanager.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/jfontchooserlib.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\jfontchooserlib.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/browserlauncher.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\browserlauncher.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/simpleaccreg.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\simpleaccreg.jar>

    Auto-properties install: org.osgi.framework.BundleException: Unable

to

    cache bundle:

reference:file:http://localhost/SIPCommJWS/sc-bundles/protocol-rss.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\protocol-rss.jar>

    ....

    It happens with all bundles the program has to load. It seems to me

that

    felix doesnt know where deploy the bundles, doesn't it?.

    In the felix.properties file I have commented the line where I can

set

a

    specific directory to deploy the bundles. So, all my bundles would

    deploy in the default folder, i.e, felix-cache.

     This line is the following, joined with a example of felix.start

bundle

    calling:

    felix.auto.start.75= \

reference:file:http://localhost/SIPCommJWS/sc-bundles/argdelegation.jar
<file:///\\http:\localhost\SIPCommJWS\sc-bundles\argdelegation.jar>

     
    felix.auto.start.80= \

     reference:file:http://localhost/SIPCommJWS/sc-bundles/shutdown.jar

<file:///\\http:\localhost\SIPCommJWS\sc-bundles\shutdown.jar>

     
    # Uncomment the following lines if you want to run the architect

viewer

    # bundle.

    #oscar.auto.start.100= \

    # file:lib/bundle/architectureviewer1.1.jar

<file:///\\lib\bundle\architectureviewer1.1.jar>

     
    #Specify the directory where oscar should deploy its bundles

#org.osgi.framework.storage=${net.java.sip.communicator.SC_HOME_DIR_LOCATION

}/${net.java.sip.communicator.SC_HOME_DIR_NAME}/sip-communicator.bin

    org.osgi.framework.startlevel=100

    felix.startlevel.framework=100

    felix.startlevel.bundle=100

    #

    # Bundle config properties.

    #

    #org.osgi.service.http.port=8080

    #osgi.shell.telnet=on

#oscar.repository.url=file:/home/rickhall/projects/noscar/repository.xml
<file:///\\home\rickhall\projects\noscar\repository.xml>

    oscar.embedded.execution=true

    Can anybody help me?? I'd appreciate a lot any help.

    Thanks in advance.

    Pedro Antonio Moreno Sanchez

    Telecommunication Engineer & Researcher

    Bioengineering and Telemedicine Group

    ETSI Telecomunicación - UPM A.101-8L.

    Ciudad Universitaria s/n

    28040 MADRID - SPAIN

    Tel. +34 91 549 57 00 ext. 3407

    Fax + 34 91 336 68 28

    e-mail: pmoreno@gbt.tfo.upm.es <mailto:pmoreno@gbt.tfo.upm.es>

<mailto:pmoreno@gbt.tfo.upm.es>

     
    __________ Information from ESET NOD32 Antivirus, version of virus

    signature database 4176 (20090622) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4176 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net

<mailto:dev-unsubscribe@sip-communicator.dev.java.net>

For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

<mailto:dev-help@sip-communicator.dev.java.net>

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4178 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4180 (20090623) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus

signature

database 4182 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus

signature

···

-----Mensaje original-----
De: Pedro Moreno [mailto:pmoreno@gbt.tfo.upm.es]
Para: dev@sip-communicator.dev.java.net
Asunto: RE: [sip-comm-dev] BundleException: Unable to cache bundle launching
-----Mensaje original-----
De: Rainer Steinegger [mailto:steinegger@synyx.de]
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] BundleException: Unable to cache bundle launching

-----Mensaje original-----

-----Mensaje original-----

On 6/22/09 6:46 AM, Pedro Moreno wrote:
-----Mensaje original-----

database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4183 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4188 (20090625) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4188 (20090625) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4192 (20090626) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4192 (20090626) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net