Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 98104 invoked from network); 25 Jul 2007 07:25:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 07:25:11 -0000 Received: (qmail 68601 invoked by uid 500); 25 Jul 2007 07:24:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 68494 invoked by uid 500); 25 Jul 2007 07:24:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 68483 invoked by uid 99); 25 Jul 2007 07:24:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 00:24:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of craig.skinner@kepax.co.uk designates 84.19.247.234 as permitted sender) Received: from [84.19.247.234] (HELO teak.kepax.co.uk) (84.19.247.234) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 00:24:55 -0700 Received: by teak.kepax.co.uk (Postfix, from userid 1970) id 978795310; Wed, 25 Jul 2007 08:24:33 +0100 (BST) Date: Wed, 25 Jul 2007 08:24:33 +0100 From: Craig Skinner To: users@tomcat.apache.org Subject: tomcat-4.1 & kaffe; IllegalArgumentException: Attribute must be readable or writable Message-ID: <20070725072433.GC12226@teak.kepax.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Checked: Checked by ClamAV on apache.org I have a bog standard tomcat-4.1 & kaffe install on OpenBSD 4.0 i386. dmesg head shows that the box has little memory, JAVA_OPTS tuned to suit. Getting this exception (no search engine hits) as below, then tomcat bails out, any pointers? (I fiddled about in catalina.policy with attributes, but no joy): $ more catalina.out 2007 7 21 12:56:20 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 ServerLifecycleListener: createMBeans: Throwable javax.management.RuntimeOperationsException: nested exception is java.lang.IllegalArgumentException: Attribute must be readable or writable java.lang.IllegalArgumentException: Attribute must be readable or writable at javax.management.MBeanAttributeInfo. (MBeanAttributeInfo.java:60) at javax.management.modelmbean.ModelMBeanAttributeInfo. (ModelMBeanAttributeInfo.java:50) at javax.management.modelmbean.ModelMBeanAttributeInfo. (ModelMBeanAttributeInfo.java:45) at org.apache.commons.modeler.AttributeInfo.createAttributeInfo (AttributeInfo.java:283) at org.apache.commons.modeler.ManagedBean.createMBeanInfo (ManagedBean.java:464) at org.apache.commons.modeler.ManagedBean.createMBean (ManagedBean.java:424) at org.apache.catalina.mbeans.MBeanUtils.createMBean (MBeanUtils.java:657) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:759) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:325) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent (ServerLifecycleListener.java:179) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119) at org.apache.catalina.core.StandardServer.start (StandardServer.java:2136) at org.apache.catalina.startup.Catalina.start (Catalina.java:463) at org.apache.catalina.startup.Catalina.execute (Catalina.java:350) at org.apache.catalina.startup.Catalina.process (Catalina.java:129) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156) GlobalResourcesLifecycleListener: Exception creating UserDatabase MBeans for UserDatabase javax.management.RuntimeOperationsException: nested exception is java.lang.IllegalArgumentException: Attribute must be readable or writable java.lang.IllegalArgumentException: Attribute must be readable or writable at javax.management.MBeanAttributeInfo. (MBeanAttributeInfo.java:60) at javax.management.modelmbean.ModelMBeanAttributeInfo. (ModelMBeanAttributeInfo.java:50) at javax.management.modelmbean.ModelMBeanAttributeInfo. (ModelMBeanAttributeInfo.java:45) at org.apache.commons.modeler.AttributeInfo.createAttributeInfo (AttributeInfo.java:283) at org.apache.commons.modeler.ManagedBean.createMBeanInfo (ManagedBean.java:464) at org.apache.commons.modeler.ManagedBean.createMBean (ManagedBean.java:424) at org.apache.catalina.mbeans.MBeanUtils.createMBean (MBeanUtils.java:741) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:214) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:176) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:134) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent (GlobalResourcesLifecycleListener.java:102) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119) at org.apache.catalina.core.StandardServer.start (StandardServer.java:2136) at org.apache.catalina.startup.Catalina.start (Catalina.java:463) at org.apache.catalina.startup.Catalina.execute (Catalina.java:350) at org.apache.catalina.startup.Catalina.process (Catalina.java:129) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156) Starting service Tomcat-Standalone Apache Tomcat/4.1.31 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start (StandardContext.java:3578) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start (StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:316) at org.apache.catalina.core.StandardService.start (StandardService.java:450) at org.apache.catalina.core.StandardServer.start (StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start (Catalina.java:463) at org.apache.catalina.startup.Catalina.execute (Catalina.java:350) at org.apache.catalina.startup.Catalina.process (Catalina.java:129) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156) ServerLifecycleListener: destroyMBeans: Throwable javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName Catalina:type=Resource,resourcetype=Global,class=org.apache.catalina.UserDatabase,name=UserDatabase at mx4j.server.MBeanServerImpl.findMBeanMetaData (MBeanServerImpl.java:528) at mx4j.server.MBeanServerImpl.unregisterMBean (MBeanServerImpl.java:1165) at org.apache.catalina.mbeans.MBeanUtils.destroyMBean (MBeanUtils.java:1836) at org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans (ServerLifecycleListener.java:988) at org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans (ServerLifecycleListener.java:1169) at org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans (ServerLifecycleListener.java:1207) at org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans (ServerLifecycleListener.java:826) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent (ServerLifecycleListener.java:207) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119) at org.apache.catalina.core.StandardServer.stop (StandardServer.java:2172) at org.apache.catalina.startup.Catalina.start (Catalina.java:494) at org.apache.catalina.startup.Catalina.execute (Catalina.java:350) at org.apache.catalina.startup.Catalina.process (Catalina.java:129) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156) Stopping service Tomcat-Standalone Catalina.stop: LifecycleException: Coyote connector has not been started LifecycleException: Coyote connector has not been started at org.apache.coyote.tomcat4.CoyoteConnector.stop (CoyoteConnector.java:1296) at org.apache.catalina.core.StandardService.stop (StandardService.java:499) at org.apache.catalina.core.StandardServer.stop (StandardServer.java:2178) at org.apache.catalina.startup.Catalina.start (Catalina.java:494) at org.apache.catalina.startup.Catalina.execute (Catalina.java:350) at org.apache.catalina.startup.Catalina.process (Catalina.java:129) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156) $ dmesg | head OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 349 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real mem = 133709824 (130576K) avail mem = 114581504 (111896K) using 1657 buffers containing 6787072 bytes (6628K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 07/19/99, BIOS32 rev. 0 @ 0xfd861, SMBIOS rev. 2.1 @ 0xf7d95 (32 entries) bios0: IBM 6275500 $ pkg_info | egrep -i 'java|tomcat' classpath-0.91 essential libraries for java jakarta-tomcat-4.1.31p4 Java servlet 2.3 and Java server pages 1.2 server javaPathHelper-0.2p0 helper script for launching java applications jikes-1.22p0 compile Java source into .class files (quickly!) kaffe-1.1.7p2 kaffe.org's Java JDK1.4 compiler, runtime and libs $ ps auxwww | fgrep kaffe _tomcat 25274 98.3 17.9 1692 23404 p1 R 1:27PM 3:43.45 /usr/local/kaffe/jre/bin/kaffe-bin -server -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Xmx128M -mx256M -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-4.1.31/common/endorsed -classpath /usr/local/lib/tools.jar:/usr/local/jakarta-tomcat-4.1.31/bin/bootstrap.jar -Dcatalina.base=/var/tomcat -Dcatalina.home=/usr/local/jakarta-tomcat-4.1.31 -Djava.io.tmpdir=/var/tomcat/temp org.apache.catalina.startup.Bootstrap start TIA for any pointers, -- Craig Skinner | http://www.kepax.co.uk | aye-right@kepax.co.uk --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org