You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/02/06 22:11:25 UTC

DO NOT REPLY [Bug 16857] New: - IllegalArgumentException Thrown on startup of Tomcat

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16857>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16857

IllegalArgumentException Thrown on startup of Tomcat

           Summary: IllegalArgumentException Thrown on startup of Tomcat
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: duffymo@yahoo.com


When I run startup.bat, I see these exceptions fly by:

INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: Throwable
javax.management.RuntimeOperationsException: Exception occured in 
ModelMBeanOperationInfo setDescriptor
        at javax.management.modelmbean.ModelMBeanOperationInfo.setDescriptor
(ModelMBeanOperationInfo.java:395)
        at org.apache.commons.modeler.OperationInfo.createOperationInfo
(OperationInfo.java:270)
        at org.apache.commons.modeler.ManagedBean.createMBeanInfo
(ManagedBean.java:455)
        at org.apache.commons.modeler.ManagedBean.createMBean
(ManagedBean.java:387)
        at org.apache.catalina.mbeans.MBeanUtils.createMBean
(MBeanUtils.java:676)
        at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans
(ServerLifecycleListener.java:729)
        at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans
(ServerLifecycleListener.java:339)
        at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent
(ServerLifecycleListener.java:206)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
        at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2182)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: Invalid descriptor passed in 
parameter
        ... 18 more
GlobalResourcesLifecycleListener: Exception creating UserDatabase MBeans for 
UserDatabase
javax.management.MBeanException: Cannot instantiate ModelMBean of class 
org.apache.catalina.mbeans.MemoryUserDatabaseMBe
an
        at org.apache.commons.modeler.ManagedBean.createMBean
(ManagedBean.java:393)
        at org.apache.catalina.mbeans.MBeanUtils.createMBean
(MBeanUtils.java:760)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.jav
a:240)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.jav
a:213)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.jav
a:176)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent
(GlobalResourcesLifecycleListener.j
ava:147)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
        at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2182)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: Not a valid Java type name: 
java.lang.String[]
        at javax.management.MBeanInfo.mustBeValidJavaTypeName
(MBeanInfo.java:470)
        at javax.management.MBeanAttributeInfo.<init>
(MBeanAttributeInfo.java:105)
        at javax.management.modelmbean.ModelMBeanAttributeInfo.<init>
(ModelMBeanAttributeInfo.java:231)
        at org.apache.commons.modeler.AttributeInfo.createAttributeInfo
(AttributeInfo.java:236)
        at org.apache.commons.modeler.ManagedBean.createMBeanInfo
(ManagedBean.java:427)
        at org.apache.commons.modeler.ManagedBean.createMBean
(ManagedBean.java:387)
        ... 15 more
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18

Looks like there are some problems with the MBeans.

I find that I can log into my Tomcat admin app, but when I try to use it to 
look at data sources and the like I get an HTTP 503 error - service not 
available.  The exception in the console window reads:

javax.servlet.UnavailableException: MBeanServer is not available

I'm wondering if this has anything to do with the MBean problems on startup.  
Thanks - MOD

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org