You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dondi Imperial <di...@exist.com> on 2005/03/11 06:25:32 UTC
Bug in deployment?
Not sure if this is a bug but I thought I'd post it here.
<?xml version="1.0" encoding="UTF-8"?>
<application
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application"
configId="app"
parentId="org/apache/geronimo/System"
application-name="null">
...=
<gbean name="ConnectorBuilder"
class="org.apache.geronimo.connector.deployment.ConnectorModuleBuilder">
...
</gbean>
<gbean name="somename" class="some_class">
<reference
name="ConnectorModuleBuilder"><name>ConnectorBuilder</name></reference>
</gbean>
</application>
The gbean "somename" will not start because it will look for the gbean
named
geronimo.server:J2EEApplication=null,J2EEServer=geronimo,j2eeType=ModuleBuilder,name=ConnectorBuilder,null=null
(note the null=null attribute/value pair at the end)
but the running gbean is named
joe.server:name=ConnectorBuilder,J2EEServer=joe,J2EEApplication=null,j2eeType=ModuleBuilder
(no null=null).
Intended behaviour or bug?
TIA,
--
Dondi Imperial
Software Engineer
Exist Software Labs
1907, The Orient Square
Emerald Avenue, Ortigas Center
Pasig City 1605
Philippines
+632.687.7653
www.exist.com
Re: Bug in deployment?
Posted by Dondi Imperial <di...@exist.com>.
David Jencks wrote:
>
> On Mar 10, 2005, at 10:48 PM, Dondi Imperial wrote:
>
>> David Jencks wrote:
>>
>>> It's a bug, I filed it as
>>> http://issues.apache.org/jira/browse/GERONIMO-606
>>>
>>> I'm thinking about what to do about it.
>>>
>>> Is there really a mismatch between the domain and server on the 2
>>> names? (joe/geronimo)
>>
>>
>> Nope that was a typo.
>
>
> good, then I think there's only one problem :-)
>
> Can you try replacing line 51 of EarContext with this?
>
> j2eeContext = new J2eeContextImpl(getDomain(), getServer(),
> j2eeApplicationName == null ? NameFactory.NULL : j2eeApplicationName,
> NameFactory.J2EE_MODULE, NameFactory.NULL, null, null);
That seemed to work.
>
> I'm not sure but it might fix the problem. I'll investigate more
> tomorrow, right now I need some sleep.
>
> thanks
> david jencks
--
Dondi Imperial
Software Engineer
Exist Software Labs
1907, The Orient Square
Emerald Avenue, Ortigas Center
Pasig City 1605
Philippines
+632.687.7653
www.exist.com
Re: Bug in deployment?
Posted by David Jencks <dj...@gluecode.com>.
On Mar 10, 2005, at 10:48 PM, Dondi Imperial wrote:
> David Jencks wrote:
>
>> It's a bug, I filed it as
>> http://issues.apache.org/jira/browse/GERONIMO-606
>>
>> I'm thinking about what to do about it.
>>
>> Is there really a mismatch between the domain and server on the 2
>> names? (joe/geronimo)
>
> Nope that was a typo.
good, then I think there's only one problem :-)
Can you try replacing line 51 of EarContext with this?
j2eeContext = new J2eeContextImpl(getDomain(), getServer(),
j2eeApplicationName == null ? NameFactory.NULL : j2eeApplicationName,
NameFactory.J2EE_MODULE, NameFactory.NULL, null, null);
I'm not sure but it might fix the problem. I'll investigate more
tomorrow, right now I need some sleep.
thanks
david jencks
>
>>
>> In this particular case I think it would be a good idea to put the
>> deployment gbeans in a separate gbean-only plan, similar to the
>> geronimo runtime-deployer-plan. However, even if this solves the
>> immediate problem there is still a bug.
>>
>> Thanks for finding this.
>>
>> david jencks
>
> --
> Dondi Imperial
> Software Engineer
> Exist Software Labs
> 1907, The Orient Square
> Emerald Avenue, Ortigas Center
> Pasig City 1605
> Philippines
> +632.687.7653
> www.exist.com
>
>
Re: Bug in deployment?
Posted by Dondi Imperial <di...@exist.com>.
David Jencks wrote:
> It's a bug, I filed it as
> http://issues.apache.org/jira/browse/GERONIMO-606
>
> I'm thinking about what to do about it.
>
> Is there really a mismatch between the domain and server on the 2
> names? (joe/geronimo)
Nope that was a typo.
>
> In this particular case I think it would be a good idea to put the
> deployment gbeans in a separate gbean-only plan, similar to the
> geronimo runtime-deployer-plan. However, even if this solves the
> immediate problem there is still a bug.
>
> Thanks for finding this.
>
> david jencks
--
Dondi Imperial
Software Engineer
Exist Software Labs
1907, The Orient Square
Emerald Avenue, Ortigas Center
Pasig City 1605
Philippines
+632.687.7653
www.exist.com
Re: Bug in deployment?
Posted by David Jencks <dj...@gluecode.com>.
It's a bug, I filed it as
http://issues.apache.org/jira/browse/GERONIMO-606
I'm thinking about what to do about it.
Is there really a mismatch between the domain and server on the 2
names? (joe/geronimo)
In this particular case I think it would be a good idea to put the
deployment gbeans in a separate gbean-only plan, similar to the
geronimo runtime-deployer-plan. However, even if this solves the
immediate problem there is still a bug.
Thanks for finding this.
david jencks
On Mar 10, 2005, at 9:25 PM, Dondi Imperial wrote:
> Not sure if this is a bug but I thought I'd post it here.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <application
> xmlns="http://geronimo.apache.org/xml/ns/j2ee/application"
> configId="app"
> parentId="org/apache/geronimo/System"
> application-name="null">
> ...=
> <gbean name="ConnectorBuilder"
> class="org.apache.geronimo.connector.deployment.ConnectorModuleBuilder"
> >
> ...
> </gbean>
>
> <gbean name="somename" class="some_class">
> <reference
> name="ConnectorModuleBuilder"><name>ConnectorBuilder</name></
> reference>
> </gbean>
> </application>
> The gbean "somename" will not start because it will look for the
> gbean named
> geronimo.server:
> J2EEApplication=null,J2EEServer=geronimo,j2eeType=ModuleBuilder,name=Co
> nnectorBuilder,null=null (note the null=null attribute/value pair at
> the end)
> but the running gbean is named
> joe.server:
> name=ConnectorBuilder,J2EEServer=joe,J2EEApplication=null,j2eeType=Modu
> leBuilder (no null=null).
>
> Intended behaviour or bug?
>
> TIA,
>
> --
> Dondi Imperial
> Software Engineer
> Exist Software Labs
> 1907, The Orient Square
> Emerald Avenue, Ortigas Center
> Pasig City 1605
> Philippines
> +632.687.7653
> www.exist.com
>
>