Skip to main content



      Home
Home » Eclipse Projects » Virgo » plan command in shell
plan command in shell [message #1406425] Sat, 09 August 2014 21:46 Go to next message
Eclipse UserFriend
I'm unable to get the right behavior for the plan command, other than plan list it fails. See console session below for example with plan examine but same behavior on other commands. I have also tried vsh:plan examine with the same results.
Environment: Windows 8.1, virgo-tomcat-server-3.6.3.RELEASE

Any suggestions?

login as: admin
admin@localhost's password:
osgi> plan list

Name                                          Version                      State
org.eclipse.virgo.kernel.userregion.blueprint 3.6.3                       ACTIVE
org.eclipse.virgo.management                  3.6.3                       ACTIVE
org.eclipse.virgo.web.tomcat                  3.6.3                       ACTIVE
test.plan                                     1.0.1                       ACTIVE
virgo-plans.jpa.plan                          1.0.0                       ACTIVE
osgi> plan examine org.eclipse.virgo.web.tomcat 3.6.3

Command plan examine: Incorrect number of parameters
osgi> plan examine org.eclipse.virgo.web.tomcat "3.6.3"

Command plan examine: Incorrect number of parameters
osgi> help plan

plan - examine or manage a plan artifact
   scope: vsh
   parameters:
      String   operation (examine|start|stop|refresh|uninstall)
      String   plan name
      String   plan version

plan - list plan artifacts
   scope: vsh
   parameters:
      String   operation (list)
osgi>
Re: plan command in shell [message #1406814 is a reply to message #1406425] Mon, 11 August 2014 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Two suggestions:

  • make sure you specify the plan id as the parameter, not the plan file name. The plan id is specified inside the plan file
  • are you sure you logged into the user region console? In Virgo there are two consoles, the kernel region console and user region console. The latter contains the plans you drop in the pickup folder, and must be enabled in the osgi.console.properties contained in the repository/ext folder.
Re: plan command in shell [message #1406938 is a reply to message #1406814] Mon, 11 August 2014 09:34 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the suggestions but still not working.

    - I am using the plan name. To confirm I changed it in the file and reloaded. The name changed from plan list but doesn't work in plan examine.
    - I confirmed that the ssh session is to the user region, default ssh port is 2502


For now I'm using the web based admin console.
Re: plan command in shell [message #1407252 is a reply to message #1406938] Tue, 12 August 2014 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Apparently this is an open issue:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=437526
Re: plan command in shell [message #1407254 is a reply to message #1407252] Tue, 12 August 2014 03:40 Go to previous messageGo to next message
Eclipse UserFriend
I forgot to mention that you don't need to use the console.

You can in fact deploy/undeploy plans by simply copying/removing them into/from the pickup folder.

This is how I usually deploy plans, via filesystem.

[Updated on: Tue, 12 August 2014 03:41] by Moderator

Re: plan command in shell [message #1407319 is a reply to message #1407254] Tue, 12 August 2014 06:18 Go to previous message
Eclipse UserFriend
Thanks for the follow-up, link and suggestion.
Previous Topic:Cannot declare service
Next Topic:Installation of pax logging in Virgo failing
Goto Forum:
  


Current Time: Mon Apr 21 08:55:13 EDT 2025

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

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

Back to the top