admin@glassfish.java.net

Re: start-local-instance and start-instance commands

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Tue, 08 Jun 2010 17:50:29 -0700

On 6/8/2010 4:55 PM, Carla Mott wrote:
> Hi,
>
>
> It seems that command is not implemented anymore? I looked at the
> file and I see:
>

What happens when you run "asadmin start-local-instance carla"? I'll
eat my shoe if it isn't implemented!
You're looking in the wrong place. If "local" is in the name then you
should be looking in this module: cluster/cli
com.sun.enterprise.admin.cli.cluster.StartLocalInstanceCommand.java



> @Service(name = "stop-local-instance")
>
> I'm implementing the start-instance command (also not available) so
> wondering when the start-local-instance command will be "fixed".
> I created a class that has implements AdminCommand and created a
> service as follows:
>
> @Service(name = "start-instance")
> @Async
> @I18n("start.instance.command")
> public class StartInstanceCommand implements AdminCommand,
> PostConstruct {
>
>
> When I try to run start-instance I get a message:
>
> asadmin start-instance
> CLI194 Previously supported command: start-instance is not supported
> for this release.
>
> What do I need to do here so I can run the command?
http://localhost:4848/__asadmin/start-instance will work the moment
you implement it.
> Where is the list of unsupported legacy commands?

CLI is blocking because the name of the command is special. Edit the 2
files, clean, build.

C:\gf\v3\admin\cli>dir *support* /s/b
C:\gf\v3\admin\cli\src\main\resources\supported-legacy-command-names
C:\gf\v3\admin\cli\src\main\resources\unsupported-legacy-command-names

> Thanks,
> Carla
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188