Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo / Equinox console usage
Virgo / Equinox console usage [message #1049354] Thu, 25 April 2013 18:49 Go to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
I am a bit confused with the Virgo console, it seems like most of the commands described in the user guide don't work as expected, for example (1st example in section 8.2):

osgi> vsh:plan list
gogo: CommandNotFoundException: Command not found: vsh:plan
osgi>


Some of the commands in Table 8.1 work (packages)if I issue them without the vhs: prefix; but others don't:
osgi> vhs:plan
gogo: CommandNotFoundException: Command not found: vhs:plan
osgi> plan
gogo: CommandNotFoundException: Command not found: plan
osgi>


What's the story here?

I have a subsidiary question: what is the simplest way to trigger the refresh of a bundle from the Windows command line (batch mode, i.e. without having to open a Virgo console first)?

Thanks!
Re: Virgo / Equinox console usage [message #1049674 is a reply to message #1049354] Fri, 26 April 2013 06:23 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hello Franck,

Which Virgo distribution are you using? These commands are not available in all distributions.

Lazar
Re: Virgo / Equinox console usage [message #1052081 is a reply to message #1049674] Mon, 29 April 2013 15:36 Go to previous messageGo to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
Sorry, I should have mentioned, I am using Virgo for Tomcat Server v. 3.6.1
Re: Virgo / Equinox console usage [message #1052943 is a reply to message #1052081] Wed, 01 May 2013 14:01 Go to previous messageGo to next message
Alexei Isac is currently offline Alexei IsacFriend
Messages: 2
Registered: May 2013
Junior Member
Ditto here.
Running 3.6.1 on 64bit Linux box running OpenJDK 1.6

vsh:par list seems to work.

osgi> vsh:par list
Name Version State
org.eclipse.virgo.apps.repository 3.6.1.RELEASE ACTIVE

vsh:par examine comes back saying "Incorrect number of parameters"

osgi> vsh:par examine org.eclipse.virgo.apps.repository 3.6.1.RELEASE
Command par examine: Incorrect number of parameters
osgi>

I am hoping something basic like this is a user bug =)
Re: Virgo / Equinox console usage [message #1053183 is a reply to message #1052943] Thu, 02 May 2013 22:03 Go to previous messageGo to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
vsh:par is unknown for me on Windows 7 running Oracle JDK 7_011.
It isn't listed in the "help" output, nor is any other vhs command.

I also can't figure out how to provide bundle arguments to commands such as "headers", I keep getting "can't coerce xxx" errors.
Re: Virgo / Equinox console usage [message #1057812 is a reply to message #1052943] Thu, 09 May 2013 01:24 Go to previous messageGo to next message
Alexei Isac is currently offline Alexei IsacFriend
Messages: 2
Registered: May 2013
Junior Member
vsh:bundle examine <number> comes back with
java.lang.NullPointerException while executing command 'bundle examine 157': 'null'

I can open the webui and view the bundle details.
But that is not an option in a production environment where the most likely option I would have would be terminal access.

Is this a bug ?
Re: Virgo / Equinox console usage [message #1058438 is a reply to message #1057812] Tue, 14 May 2013 06:20 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hello,

@Franck The console commands are available only in the user region. Most probably you are connecting to the telnet of the kernel region and therefore cannot see the commands. If you like to use them, you should enable telnet in the user region (modify telnet configuration in repository/ext/osgi.console.properties - set telnet.enabled to true) and connect to port 2501. The "headers" subcommand is used as follows: vhs:bundle headers <bundle_id>, where bundle_id is the number of the bundle

@Alexei This really seems to be a bug. I saw that examine in some other contexts is not working too. Please open a bug for this issue. We will investigate further the problem.

Lazar
Re: Virgo / Equinox console usage [message #1060506 is a reply to message #1058438] Sat, 25 May 2013 15:41 Go to previous messageGo to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
Lazar Kirchev wrote on Tue, 14 May 2013 08:20
Hello,

@Franck The console commands are available only in the user region. Most probably you are connecting to the telnet of the kernel region and therefore cannot see the commands. If you like to use them, you should enable telnet in the user region (modify telnet configuration in repository/ext/osgi.console.properties - set telnet.enabled to true) and connect to port 2501. The "headers" subcommand is used as follows: vhs:bundle headers <bundle_id>, where bundle_id is the number of the bundle
...
Lazar


Nope, I am connecting alternatively to one of the other console and I am having similar issues in both (the command sets do differ somewhat):

osgi> vhs:bundle headers 3
gogo: CommandNotFoundException: Command not found: vhs:bundle
osgi>


Franck
Re: Virgo / Equinox console usage [message #1060507 is a reply to message #1060506] Sat, 25 May 2013 15:46 Go to previous messageGo to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
Hmmm, just discovered that some commands do work for certain bundles:

osgi> bundle 142
gogo: IllegalArgumentException: Cannot coerce bundle(Long) to any of [(Bundle[])]
osgi> bundle 3
ch.qos.logback.classic_1.0.7.v20121108-1250 [3]
Id=3, Status=RESOLVED Data Root=C:\virgo-tomcat-3.6.1\work\org.eclipse.osgi\bundles\3\data

Bundle 142 was loaded through a plan, could this be the reason?
Is there any way to address bundles loaded through a plan?

Re: Virgo / Equinox console usage [message #1060508 is a reply to message #1060507] Sat, 25 May 2013 15:59 Go to previous messageGo to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
Ooops, my bad, I was connecting to the wrong console this time.

So problem solved it seems, here is the wrapup for me:
- forget the vsh: prefix, it doesn't seem needed
- can't coerce args etc doesn't necessarily mean that you are using the wrong syntax, you get that message if the bundle isn't found in the region
- the two regions don't have the same set of commands - e.g. plan is only available in the user region

Moving on to trying to refresh a bundle by name from the command line...
Re: Virgo / Equinox console usage [message #1386199 is a reply to message #1058438] Sat, 14 June 2014 19:00 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello,

I've got the same error while running plan start command :

Incorrect number of parameters

So I cloned the virgo kernet codes on github and wrote a patch (note : I can't share your my commit link as it's on github and I don't have more than 5 msg to provide a non eclipse links)...

A pull request as just been opened...

Could you tell me if this patch is OK from your expert view ?

Thank you Wink

Re: Virgo / Equinox console usage [message #1386201 is a reply to message #1386199] Sat, 14 June 2014 19:02 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
The 5th message to share my github patch on next msg !

Eclipse forum should remove this policy "You can only use links to eclipse.org sites while you have fewer than 5 messages." ...
Re: Virgo / Equinox console usage [message #1386202 is a reply to message #1386201] Sat, 14 June 2014 19:03 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
the github patch ! Wink

https://github.com/echinopsii/net.echinopsii.3rdparty.virgo.kernel/commit/f8c19d76ae13dcb1c051ed92eb8eff8f2b575e14
Re: Virgo / Equinox console usage [message #1386268 is a reply to message #1386202] Mon, 16 June 2014 09:19 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Mathilde,

thanks for taking the time to dig into the topic and to provide a patch. From a first glimpse it looks fine.

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
More information can be found here.

Regards,
florian
Re: Virgo / Equinox console usage [message #1386281 is a reply to message #1386268] Mon, 16 June 2014 10:53 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello Florian,

well I already create and electronically sign the CLA through my account but with the new eclipse web UI I'm not able to find it in my account (am I blind ?)...

When trying to resign it from my account by clicking "First sign a Contributor License Agreement." from https://www.eclipse.org/contribute/ I'm redirected to my account page ...

So I'm a little lost with the new eclipse foundation web UI. If you have any tips tell me.

Cheers
Re: Virgo / Equinox console usage [message #1386287 is a reply to message #1386281] Mon, 16 June 2014 11:24 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Mathilde,

sorry, I don't know the new UI either and didn't find a way to check my CLA, either. I propose to create a Bugzilla ticket for this change. Within the ticket you can easily see if everything is in place when you look for the green check mark before the work CLA next to your name.

Thanks again for your time,
florian
Re: Virgo / Equinox console usage [message #1386306 is a reply to message #1386287] Mon, 16 June 2014 12:52 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
I created the ticket on bugzilla :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=437526

And I can see my CLA is OK from there.

Thank you
Re: Virgo / Equinox console usage [message #1691171 is a reply to message #1386306] Thu, 02 April 2015 18:55 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello,

same problem still on Virgo Kernel 3.6.3. Do you have an idea when the patch will be merged in Virgo ?

Cheers,

Mathilde
Re: Virgo / Equinox console usage [message #1701864 is a reply to message #1691171] Thu, 16 July 2015 09:53 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello,

I just see that the patch is planned to be delivered on Virgo 3.6.4... Is there any release date scheduled for that version ?

Thank you
Re: Virgo / Equinox console usage [message #1702123 is a reply to message #1701864] Mon, 20 July 2015 07:48 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Mathilde,

sorry for not shipping your patch with 3.6.3.RELEASE. I plan to take care of your contribution this week.

Thanks to Violetta we have an approval for Tomcat 7.0.61[1] which was the major item planned for 3.6.4.RELEASE.

Regards,
florian

[1] http://dev.eclipse.org/mhonarc/lists/virgo-dev/msg01563.html

[Updated on: Mon, 20 July 2015 07:49]

Report message to a moderator

Re: Virgo / Equinox console usage [message #1702224 is a reply to message #1702123] Mon, 20 July 2015 18:12 Go to previous message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
That sounds really good Smile Will be happy to upgrade Virgo on Ariane with that new version and remove my forked repo of Virgo Kernel !

Thank you Smile
Previous Topic:Virgo 3.6.3 and Java 8 support
Next Topic:Define the order to pickup jars in pickup folder of Virgo Nano
Goto Forum:
  


Current Time: Fri Apr 19 05:17:18 GMT 2024

Powered by FUDForum. Page generated in 0.02602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top