Hi again,
Some success.
I did make what I believe to be the correct change to jcml as described below.
... But you *have* lead me to part of the solution! The exception no longer
occurs: It was caused by an editor error in an unrelated modification to a
comment in the conf that I made last week and "assumed" would be fine. Bad
move on my part. :-) Thanks Scott for pointing me in the right direction.
I remain a little short of understanding in regard to the jcml file:
Is there a DTD or DTD-like doc/txt file? (I could not find one in the source
resources directory...)
The MLET spec uses ARGS identifying attributes for the constructor call. Is
there a correlation between ARGS and attribute elements? Is there a way to
pass configuration information before a start() in a jcml file? Obviously this
would be useful for most services. I just tried putting my mbean(uses JMS)
into the conf file and it gave me the same error as for the previous email
(resulting from a spelling mistake) but in this case there appears to be no
such mistake as I cut & pasted the field vals from the jcml and the
tags/format from a previous conf entry ...
Also, while I write,: Is there a way to create a directory under (say)
./lib/matt instead of ./lib/ext that I can drop my jars into for neatness and
debugging convenience?
Kind Regards,
Matt
[EMAIL PROTECTED] said:
> From: "Scott M Stark" <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] MBean
> Newbie Difficulties -- JNDIMap Date: Fri, 4 May 2001 01:27:08 -0700
> Reply-To: [EMAIL PROTECTED]
> The stack trace is from the point where the JMX MLet loads beans from
> the jboss.conf file, not the point where the Configuration loads the
> jboss.jcml file so the problem is likely that you tried to place your
> entry in jboss.conf?
> ----- Original Message ----- From: "Matt Davies" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]> Sent: Friday, May 04, 2001
> 12:14 AM Subject: [JBoss-user] MBean Newbie Difficulties -- JNDIMap
> Hi Guys,
>
> I have written a general non-JBoss-specific MBean along the lines of
> Scott's
> HOWTO document with JBoss providing a development and testing
> environment for
> my activities. Having had some difficulty "deploying" my MBean I have
> reverted
> to the original example in the HOWTO as shown in figure 11.8.
>
> I cut and pasted these files into java files, creating a package
> "mbeantest",
> and put the JAR into lib/ext. I had to remove the "log" object method
> calls as
> it was not found and I was just trying to replicate my error using a
> well
> known test case.
>
> The jcml file update was exactly as provided in the HOWTO (at the
> bottom) with
> a change to prefix JNDIMap with "mbeantest." for the code (xml)
> attribute.
>
> Running this program using jboss 2.2.1 I get:
>
> ...
> [Service Control] Registered with server
> java.lang.IllegalArgumentException: No object name specified
> at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServ
> erImpl.j
> ava:528)
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523
> )
> at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369
> )
> at org.jboss.Main.<init>(Main.java:173)
> at org.jboss.Main$1.run(Main.java:107)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.jboss.Main.main(Main.java:103)
> [Service Control] Initializing 11 MBeans
> ...
>
--
Matt Davies [mailto:[EMAIL PROTECTED]]
Research Scientist, DSTC [http://www.dstc.edu.au/]
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user