Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [concierge-dev] problem installing bundle using file:/

Hi Cristiano,

> but it is always creating the storage directory below the place where java is being called: <bin>/storage/default

You can specify the folder for the storage with these properties:

-Dorg.osgi.framework.storage=/your/absolute/folder
-Dorg.eclipse.concierge.profile="">

The storage will be with this configuration at /your/absolute/folder/your-profile-name/...

As the first property is an OSGi standard property it is not documented in Concierge properties. We will add that for better understanding.

HTH, Jochen


On Tue, Jan 26, 2016 at 7:46 PM, Cristiano Gavião <cvgaviao@xxxxxxxxx> wrote:
Hi again,

One more thing to deal, please....

I was not able to properly set a custom basedir and jars directories.

I've tried with:

-Dorg.eclipse.concierge.basedir=file:///var/lib/c4biz-iot/
-Dorg.eclipse.concierge.jars=file:///var/cache/c4biz-iot/

-Dorg.eclipse.concierge.basedir=/var/lib/c4biz-iot/
-Dorg.eclipse.concierge.jars=/var/cache/c4biz-iot/

but it is always creating the storage directory below the place where java is being called: <bin>/storage/default

am I doing this setting wrong?

thanks,

Cristiano

On 26-01-2016 14:54, Tim Verbelen wrote:
Hi Cristiano,

When using the file:// scheme, you will need an additional forward slash indicating the Linux root folder.

Similar to an http url in this case the "file://" stands for the protocol and "/usr/share/..." is your absolute path.

Best regards,

Tim

On 01/26/2016 05:58 PM, Cristiano Gavião wrote:
Hi,

I'm trying concierge in a linux machine but I'm having an issue when trying to install  bundles from local machine using file:/ scheme.

# load shell bundle
-istart file://usr/share/c4biz-iot/lib/org.eclipse.concierge.shell-5.0.0.*.jar


[Tue Jan 26 13:41:25 BRT 2016] [DEBUG] Framework has registered LogService and LogReaderService.
---------------------------------------------------------
  Concierge OSGi 5.0.0 on Linux 3.16.0-4-amd64 starting ... (default) startlevel=3
---------------------------------------------------------
[Tue Jan 26 13:41:25 BRT 2016] [INFO] Framework: REGISTERED SERVICE org.osgi.service.resolver.Resolver
---------------------------------------------------------
  Framework started in 0.0 seconds.
---------------------------------------------------------
Exception in thread "main" org.osgi.framework.BundleException: Cannot retrieve bundle from file://usr/share/c4biz-iot/lib/org.eclipse.concierge.shell-5.0.0.*.jar
    at org.eclipse.concierge.Concierge.installNewBundle(Unknown Source)
    at org.eclipse.concierge.Concierge$BundleContextImpl.installBundle(Unknown Source)
    at org.eclipse.concierge.compat.service.XargsFileLauncher.processXargsInputStream(Unknown Source)
    at org.eclipse.concierge.compat.service.XargsFileLauncher.processXargsFile(Unknown Source)
    at org.eclipse.concierge.Concierge.doMain(Unknown Source)
    at org.eclipse.concierge.Concierge.main(Unknown Source)
Caused by: java.net.UnknownHostException: usr
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957)
    at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)
    at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)
    at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)
    at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
    ... 6 more
Am I missing something ?

thanks,

Cristiano



_______________________________________________
concierge-dev mailing list
concierge-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/concierge-dev


-- 
Tim Verbelen
Department of Information Technology
Broadband Communication Networks (IBCN)
Ghent University - iMinds
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14940 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
E: tim.verbelen@xxxxxxxxxxxxxx
W : www.ibcn.intec.UGent.be


_______________________________________________
concierge-dev mailing list
concierge-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/concierge-dev


_______________________________________________
concierge-dev mailing list
concierge-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/concierge-dev


Back to the top