Re: build broken (assembly module)?

2004-07-16 Thread Gianny Damour
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)?

2004-07-16 Thread David Jencks
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)?

2004-07-16 Thread toby cabot
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-namegroup/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-namegroup/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 

Re: build broken (assembly module)?

2004-07-15 Thread David Jencks
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 -  1.37
+++ modules/assembly/src/plan/j2ee-server-plan.xml  15 Jul 2004 
21:25:43 -
@@ -188,13 +188,13 @@

 !-- EJB Protocol --
 gbean name=openejb:type=SocketService,name=EJB 
class=org.openejb.server.SimpleSocketService
-attribute name=serviceClassName 
type=java.lang.Stringorg.openejb.server.ejbd.EjbServer/attribute
-attribute name=onlyFrom 
type=java.net.InetAddress[]127.0.0.1/attribute
+attribute name=ServiceClassName 
type=java.lang.Stringorg.openejb.server.ejbd.EjbServer/attribute
+attribute name=OnlyFrom 
type=java.net.InetAddress[]127.0.0.1/attribute
 reference 
name=ContainerIndexopenejb:type=ContainerIndex/reference
 /gbean
 gbean name=openejb:type=ServiceDaemon,name=EJB 
class=org.openejb.server.ServiceDaemon
-attribute name=port type=int4201/attribute
-attribute name=inetAddress 
type=java.net.InetAddress127.0.0.1/attribute
+attribute name=Port type=int4201/attribute
+attribute name=InetAddress 
type=java.net.InetAddress127.0.0.1/attribute
 reference 
name=SocketServiceopenejb:type=SocketService,name=EJB/reference
 /gbean