Skip to main content

Deploying OSGi bundles to GlassFish using asadmin

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
alitokmen
Offline
Joined: 2010-05-16

Hello

When trying to use the asadmin's deploy command to deploy a bundle, I
get the following error messages.

Glassfish 3.0.1:

alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
com.sun.enterprise.admin.cli.CommandException: remote failure:
There is no installed container capable of handling this application
com.sun.enterprise.deploy.shared.FileArchive@61809f0f
Command deploy failed.

Glassfish 3.1-b29:

alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
org.glassfish.api.admin.CommandException: remote failure: Error
occurred during deployment: There is no installed container capable
of handling this application simple-bundle-1.0.5-SNAPSHOT. Please
see server.log for more details.
Command deploy failed.

Is this expected?

PS: Copying the bundle to the config's autodeploy/bundles directory
works wonderfully.

Cheers

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexismp
Offline
Joined: 2005-01-06

Try "asadmin deploy --type=osgi ..."
-Alexis

"S. Ali Tokmen" wrote:

>Hello
>
>When trying to use the asadmin's deploy command to deploy a bundle, I
>get the following error messages.
>
>Glassfish 3.0.1:
>
> alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
> com.sun.enterprise.admin.cli.CommandException: remote failure:
> There is no installed container capable of handling this application
> com.sun.enterprise.deploy.shared.FileArchive@61809f0f
> Command deploy failed.
>
>Glassfish 3.1-b29:
>
> alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
> org.glassfish.api.admin.CommandException: remote failure: Error
> occurred during deployment: There is no installed container capable
> of handling this application simple-bundle-1.0.5-SNAPSHOT. Please
> see server.log for more details.
> Command deploy failed.
>
>Is this expected?
>
>PS: Copying the bundle to the config's autodeploy/bundles directory
>works wonderfully.
>
>Cheers
>

alitokmen
Offline
Joined: 2010-05-16

Hello, Alexis

Works perfectly well, thank you!

S. Ali Tokmen
http://ali.tokmen.com/

GSM (fr): +33 66 43 00 555 [Orange]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com

On 13.11.2010 13:07, Alexis Moussine-Pouchkine wrote:
> Try "asadmin deploy --type=osgi ..."
> -Alexis
>
> "S. Ali Tokmen" wrote:
>
>> Hello
>>
>> When trying to use the asadmin's deploy command to deploy a bundle, I
>> get the following error messages.
>>
>> Glassfish 3.0.1:
>>
>> alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
>> com.sun.enterprise.admin.cli.CommandException: remote failure:
>> There is no installed container capable of handling this application
>> com.sun.enterprise.deploy.shared.FileArchive@61809f0f
>> Command deploy failed.
>>
>> Glassfish 3.1-b29:
>>
>> alitokmen$ bin/asadmin deploy simple-bundle-1.0.5-SNAPSHOT.jar
>> org.glassfish.api.admin.CommandException: remote failure: Error
>> occurred during deployment: There is no installed container capable
>> of handling this application simple-bundle-1.0.5-SNAPSHOT. Please
>> see server.log for more details.
>> Command deploy failed.
>>
>> Is this expected?
>>
>> PS: Copying the bundle to the config's autodeploy/bundles directory
>> works wonderfully.
>>
>> Cheers
>>