Problem using Blueprints Google Map component

I'm not sure if this is a JSF or JSC question, so I'll try here first.

I have an application that uses a Blueprints Google Map component.

At one time, this was working, but I had to remove that section and now I am having problems getting it back up.

When I navigate to a page with the component, I get the page error shown below:

The traceback into my application points to the following line:

private MapComponent mapViewer1 =new MapComponent();

This line was added by JSC along with the getter and setter methods when I added the component to the page.

From the description, it looks like there is a problem finding a class that is being referenced by blueprints.

The blueprints component library is being included in the war file according to the packaging properties for the project.

Anyone have any ideas where to look to try and resolve this?

=========== Error Message ===================

Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.

Exception Details: java.lang.NoClassDefFoundError

com/sun/rave/designtime/faces/FacetDescriptor

Possible Source of Error:

Class Name: com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo

File Name: AbstractBeanInfo.java

Method Name: initFacetDescriptors

Line Number: 366

com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.initFacetDescriptors(Abstrac tBeanInfo.java:366)

com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.initBeanDescriptor(AbstractB eanInfo.java:341)

com.sun.j2ee.blueprints.ui.mapviewer.MapComponentBeanInfo.initBeanDescriptor(Ma pComponentBeanInfo.java:44)

com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.(AbstractBeanInfo.java:57)

com.sun.j2ee.blueprints.ui.mapviewer.MapComponentBeanInfo.(MapComponentBeanInfo .java:32)

sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccesso rImpl.java:-2)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

java.lang.reflect.Constructor.newInstance(Constructor.java:494)

java.lang.Class.newInstance0(Class.java:350)

java.lang.Class.newInstance(Class.java:303)

java.beans.Introspector.instantiate(Introspector.java:1432)

java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)

java.beans.Introspector.(Introspector.java:359)

java.beans.Introspector.getBeanInfo(Introspector.java:159)

javax.faces.component.UIComponentBase.getPropertyDescriptors(UIComponentBase.ja va:130)

javax.faces.component.UIComponentBase.(UIComponentBase.java:92)

com.sun.j2ee.blueprints.ui.mapviewer.MapComponent.(MapComponent.java:26)

principlecare.EnrollStaffMain.(EnrollStaffMain.java:1377)

sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccesso rImpl.java:-2)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

java.lang.reflect.Constructor.newInstance(Constructor.java:494)

java.lang.Class.newInstance0(Class.java:350)

<snip...>

[3531 byte] By [burferda] at [2007-11-27 1:00:22]
# 1

Hi There,

Im not sure if this will fix it, but I did see similar errors which was fixed by doing this

1. In the Projects window, right-click your project node, and

choose "Properties".

2. Within the Project Properties dialog box, in the tree on the left, click the

"Libraries" node. Then, on the right side click the "Compile" tab to display the

compile time libraries.

3. Locate the "Bluprint Ajax components" library and Check its "Package" checkbox.

5. Click the "OK" button in the Project Properties dialog box.

Then try deploying.

Also if it interests you there is a new flash video , which describes how to use the AjaxmapViewer component at

http://www.netbeans.org/kb/samples/tapping-google-maps.html?me=1

Thanks

K

kish@suna at 2007-7-11 23:35:01 > top of Java-index,Development Tools,Java Tools...