You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by toby cabot <to...@caboteria.org> on 2004/07/15 23:28:56 UTC

build broken (assembly module)?

Are other people seeing build breakage in the assembly module?
Something about attribute names not found.  This patch seems to work
(changing a couple of attribute names from lower case to upper case):

diff -u -r1.37 j2ee-server-plan.xml
--- modules/assembly/src/plan/j2ee-server-plan.xml      15 Jul 2004 20:38:21 -0000      1.37
+++ modules/assembly/src/plan/j2ee-server-plan.xml      15 Jul 2004 21:25:43 -0000
@@ -188,13 +188,13 @@
  
     <!-- EJB Protocol -->
     <gbean name="openejb:type=SocketService,name=EJB" class="org.openejb.server.SimpleSocketService">
-        <attribute name="serviceClassName" type="java.lang.String">org.openejb.server.ejbd.EjbServer</attribute>
-        <attribute name="onlyFrom" type="java.net.InetAddress[]">127.0.0.1</attribute>
+        <attribute name="ServiceClassName" type="java.lang.String">org.openejb.server.ejbd.EjbServer</attribute>
+        <attribute name="OnlyFrom" type="java.net.InetAddress[]">127.0.0.1</attribute>
         <reference name="ContainerIndex">openejb:type=ContainerIndex</reference>
     </gbean>
     <gbean name="openejb:type=ServiceDaemon,name=EJB" class="org.openejb.server.ServiceDaemon">
-        <attribute name="port" type="int">4201</attribute>
-        <attribute name="inetAddress" type="java.net.InetAddress">127.0.0.1</attribute>
+        <attribute name="Port" type="int">4201</attribute>
+        <attribute name="InetAddress" type="java.net.InetAddress">127.0.0.1</attribute>
         <reference name="SocketService">openejb:type=SocketService,name=EJB</reference>
     </gbean>
  

Re: build broken (assembly module)?

Posted by toby cabot <to...@caboteria.org>.
On Thu, Jul 15, 2004 at 02:54:27PM -0700, David Jencks wrote:
> Can you check that your openejb copy is up to date?  

I did a CVS pull and a "maven clean && maven", is there anything more
I need to do?

> I've been trying 
> to fix these case problems in both projects while doing actual 
> development work and I think but am not entirely sure that at least 
> this problem is fixed.  These attribute names should start with lower 
> case as in cvs.

OK, here's more data.  I have a resource adapter with a
config-property called "group" (or maybe "Group").  Anyway, the bean
setter is setGroup(String group).  If I put
<config-property-name>group</config-property-name> in geronimo-ra.xml
I get (at startup):

08:45:36,921 DEBUG [GBeanMBean] geronimo.config:name="reva/spreadRA" State changed from stopped to starting
08:45:36,966 DEBUG [Configuration] ClassPath for reva/spreadRA resolved to [file:/home/tcabot/try/incubator-geronimo/target/config-store/13/connector/spread-3.17.0.jar, file:/home/tcabot/try/incubator-geronimo/target/config-store/13/connector/x-spread.jar]
08:45:37,127 ERROR [Configuration] caught in doStart():
java.lang.IllegalArgumentException: reva.x.ra.spread.AdapterImpl: unknown attribute group
        at org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:119)
        at org.apache.geronimo.connector.ResourceAdapterWrapper.setAttribute(ResourceAdapterWrapper.java:131)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute$DynamicSetterMethodInvoker.invoke(GBeanMBeanAttribute.java:473)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.online(GBeanMBeanAttribute.java:273)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.preRegister(GBeanMBean.java:537)
        at mx4j.server.interceptor.InvokerMBeanServerInterceptor.registration(InvokerMBeanServerInterceptor.java:158)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(SecurityMBeanServerInterceptor.java:135)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.registration(ContextClassLoaderMBeanServerInterceptor.java:161)
        at mx4j.server.MX4JMBeanServer.registerImpl(MX4JMBeanServer.java:801)
        at mx4j.server.MX4JMBeanServer.registerMBeanImpl(MX4JMBeanServer.java:745)
        at mx4j.server.MX4JMBeanServer.registerMBean(MX4JMBeanServer.java:729)
        at org.apache.geronimo.kernel.Kernel.loadGBean(Kernel.java:254)
 
If I change it to <config-property-name>group</config-property-name> I
get (at shutdown):

17:59:22,292 DEBUG [GBeanMBean] geronimo.config:name="reva/spreadRA" State changed from running to stopping
17:59:22,292 INFO  [Configuration] Stopping configuration reva/spreadRA
17:59:22,332 ERROR [GBeanMBeanAttribute] Could not get the current value of persistent attribute while going offline.  The persistent attribute will not reflect the current state attribute. Attribute Name: Group, Type: class java.lang.Object, GBean: org.apache.geronimo.connector.ResourceAdapterWrapper
java.lang.IllegalArgumentException: reva.x.ra.spread.AdapterImpl: unknown attribute Group
        at org.apache.geronimo.gbean.DynamicGBeanDelegate.getAttribute(DynamicGBeanDelegate.java:111)        
        at org.apache.geronimo.connector.ResourceAdapterWrapper.getAttribute(ResourceAdapterWrapper.java:127)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute$DynamicGetterMethodInvoker.invoke(GBeanMBeanAttribute.java:461)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.offline(GBeanMBeanAttribute.java:289)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.postDeregister(GBeanMBean.java:572)
        at mx4j.server.interceptor.InvokerMBeanServerInterceptor.registration(InvokerMBeanServerInterceptor.java:171)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(SecurityMBeanServerInterceptor.java:135)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMBeanServerInterceptor.java:111)
        at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.registration(ContextClassLoaderMBeanServerInterceptor.java:161)
        at mx4j.server.MX4JMBeanServer.unregisterMBean(MX4JMBeanServer.java:949)


So it looks like we're internally inconsistent.  Based on what you
said it looks as if the right value is "group" so the bug is in the
startup code.  Might be the same bug I noted in the email that started
this thread.

Regards,
Toby

Re: build broken (assembly module)?

Posted by David Jencks <da...@coredevelopers.net>.
On Thursday, July 15, 2004, at 04:50 PM, Gianny Damour wrote:

> On 16/07/2004 7:54 AM, David Jencks wrote:
>
>> Can you check that your openejb copy is up to date? I've been trying 
>> to fix these case problems in both projects while doing actual 
>> development work and I think but am not entirely sure that at least 
>> this problem is fixed. These attribute names should start with lower 
>> case as in cvs.
>
> This is weird. The http://dist.codehaus.org maven repository does not 
> seem to be up-to-date: the itests and jca archives have been updated 
> on 15-Jul-2004 and the last update of core was on 12-Jul-2004.
>
> In other words, assembly still fail.

I meant up to date with cvs.  If someone is making related changes on 
both projects, trying to use a snapshot of one isn't going to work.

thanks
david jencks
>
> Thanks,
> Gianny
>


Re: build broken (assembly module)?

Posted by Gianny Damour <gi...@optusnet.com.au>.
On 16/07/2004 7:54 AM, David Jencks wrote:

> Can you check that your openejb copy is up to date? I've been trying 
> to fix these case problems in both projects while doing actual 
> development work and I think but am not entirely sure that at least 
> this problem is fixed. These attribute names should start with lower 
> case as in cvs.

This is weird. The http://dist.codehaus.org maven repository does not 
seem to be up-to-date: the itests and jca archives have been updated on 
15-Jul-2004 and the last update of core was on 12-Jul-2004.

In other words, assembly still fail.

Thanks,
Gianny

Re: build broken (assembly module)?

Posted by David Jencks <da...@coredevelopers.net>.
Can you check that your openejb copy is up to date?  I've been trying 
to fix these case problems in both projects while doing actual 
development work and I think but am not entirely sure that at least 
this problem is fixed.  These attribute names should start with lower 
case as in cvs.

thanks
david jencks

On Thursday, July 15, 2004, at 02:28 PM, toby cabot wrote:

> Are other people seeing build breakage in the assembly module?
> Something about attribute names not found.  This patch seems to work
> (changing a couple of attribute names from lower case to upper case):
>
> diff -u -r1.37 j2ee-server-plan.xml
> --- modules/assembly/src/plan/j2ee-server-plan.xml      15 Jul 2004 
> 20:38:21 -0000      1.37
> +++ modules/assembly/src/plan/j2ee-server-plan.xml      15 Jul 2004 
> 21:25:43 -0000
> @@ -188,13 +188,13 @@
>
>      <!-- EJB Protocol -->
>      <gbean name="openejb:type=SocketService,name=EJB" 
> class="org.openejb.server.SimpleSocketService">
> -        <attribute name="serviceClassName" 
> type="java.lang.String">org.openejb.server.ejbd.EjbServer</attribute>
> -        <attribute name="onlyFrom" 
> type="java.net.InetAddress[]">127.0.0.1</attribute>
> +        <attribute name="ServiceClassName" 
> type="java.lang.String">org.openejb.server.ejbd.EjbServer</attribute>
> +        <attribute name="OnlyFrom" 
> type="java.net.InetAddress[]">127.0.0.1</attribute>
>          <reference 
> name="ContainerIndex">openejb:type=ContainerIndex</reference>
>      </gbean>
>      <gbean name="openejb:type=ServiceDaemon,name=EJB" 
> class="org.openejb.server.ServiceDaemon">
> -        <attribute name="port" type="int">4201</attribute>
> -        <attribute name="inetAddress" 
> type="java.net.InetAddress">127.0.0.1</attribute>
> +        <attribute name="Port" type="int">4201</attribute>
> +        <attribute name="InetAddress" 
> type="java.net.InetAddress">127.0.0.1</attribute>
>          <reference 
> name="SocketService">openejb:type=SocketService,name=EJB</reference>
>      </gbean>
>
>