Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » plan command in shell
plan command in shell [message #1406425] Sun, 10 August 2014 01:46 Go to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
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 06:55 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 72
Registered: July 2009
Member
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.


Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Re: plan command in shell [message #1406938 is a reply to message #1406814] Mon, 11 August 2014 13:34 Go to previous messageGo to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
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 07:40 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 72
Registered: July 2009
Member
Apparently this is an open issue:

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


Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Re: plan command in shell [message #1407254 is a reply to message #1407252] Tue, 12 August 2014 07:40 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 72
Registered: July 2009
Member
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.



Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw

[Updated on: Tue, 12 August 2014 07:41]

Report message to a moderator

Re: plan command in shell [message #1407319 is a reply to message #1407254] Tue, 12 August 2014 10:18 Go to previous message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
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: Sat Nov 09 03:47:32 GMT 2024

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

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

Back to the top