Re: Playing With BeanContext

From: Donald Dietrick <dietrick@bbn.com>
Date: Thu Oct 11 2001 - 14:15:52 EDT

Hi Karl,

On Thursday, October 11, 2001, at 02:05 PM, Karl Stuempfle wrote:

> I have been trying to see what is possible with the BeanContext stuff in
> OpenMap 4.3, and I am having a problem.
>
> I successfully added and removed existing items using the
> "openmap.components" property, except for the "frame". I tried to
> create a
> subclass of OpenMapFrame and use it in place of the current "frame"
> component. I turned on the basic and properties keywords for Debugging
> and
> got this message:
>
>
> *** ERROR ***
> ComponentFactory.create: Failed to create "omi.KLSFrame" using component
> marker
> name "klsframe" - class not found.
> *************
>

The ComponentFactory is not finding the omi.KLSFrame in it's classpath,
or can't find an empty constructor method for it.

> It was followed by these messages:
>
> ToolPanel: found a tool Object
> ToolPanel: found a tool Object
> OMToolSet: found a MapBean object

These are normal debug statements where these components are announcing
that they have found the other objects they need from the BeanContext.

> I created a package called "omi" consisting of KLSFrame and KLSMain.
> KLSMain
> simply mimics the functionality of OpenMapApp, and I ran the app from
> the
> DOS prompt with the following command: java omi/KLSMain
> The omi package is just a directory structure, not a jar file, but "."
> is in
> the classpath.

This seems to be fine, seeing that the KLSMain class appears to be
found, right? So the KLSFrame should be OK. I'd check for the empty
constructor for KLSFrame.

- Don

> Any ideas as to what I am missing? It has to be something simple.
>
> Karl...
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Oct 11 14:15:25 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT