users@glassfish.java.net

Re: VirtualHosts and OSGI - How-To?

From: Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 17 Mar 2010 18:06:24 -0700

Pavel,

The problem is the OSGi web app is always deployed to the default
virtual server. Would you mind filing a bug (or an rfe) and I shall try
to address this soon.

Thanks,
Sahoo

Pavel Kuzin wrote:
> Hello!
>
> How i can pin one of my OSGI webapp to virtualhost?
>
> i`m trying to use GF 3.1 trunk.
>
> I`m deploying my bundle to server with command
> "./bin/asadmin deploy --force=true --virtualservers cp.bill --type
> osgi ControlPanel-0.0.2.jar"
> Deploy is ok. Application startup ok and deploys with context root = "/".
> In domain.xml i have application declaration
> <application
> location="${com.sun.aas.instanceRootURI}/applications/ControlPanel-0.0.2/"
> name="ControlPanel-0.0.2" object-type="user">
> <property name="module-name" value="ControlPanel-0.0.2" />
> <property name="defaultAppName" value="ControlPanel-0.0.2" />
> <module name="ControlPanel-0.0.2">
> <engine sniffer="osgi" />
> </module>
> </application>
>
> and application mapping
> <application-ref ref="ControlPanel-0.0.2" virtual-servers="cp.bill" />
> this config is created by asadmin.
>
> also i have virtualhost configured to work with ajp13
>
> <virtual-server id="cp.bill" hosts="cp.bill.nodex.ru"
> network-listeners="ajp13" />
>
> When i`m trying to open my app - GF displays to me default page.
> When i`m trying to open / by ip (handled my default virtual server)-
> is displays to me my app.
>
> --
> Pavel Kuzin
> NODEX Ltd.
> St.Petersburg, Russia
> pk_at_nodex.ru
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>