IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
6 replies Latest Post - ‏2010-09-22T05:10:15Z by RMooreJr
13339 Posts

Pinned topic 412153

‏2009-07-26T05:41:26Z |
Updated on 2010-09-22T05:10:15Z at 2010-09-22T05:10:15Z by RMooreJr
  • SystemAdmin
    13339 Posts


    ‏2009-09-23T07:52:49Z  in response to SystemAdmin
    A very good tutorial. When I try to move into Eclipse3.5, and run in tomcat6.0.18. I hit the following error. Could you please give some advice.
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: Lorg/codehaus/groovy/reflection/ClassInfo;
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(
    at java.lang.Class.getDeclaredFields(
    at com.sun.faces.application.annotation.ManagedBeanConfigHandler.getBeanInfo(
    at com.sun.faces.application.annotation.ManagedBeanConfigHandler.process(
    at com.sun.faces.application.annotation.ManagedBeanConfigHandler.push(
    at com.sun.faces.application.annotation.AnnotationManager.applyConfigAnntations(
    at com.sun.faces.config.processor.AbstractConfigProcessor.processAnnotations(
    at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.ValidatorConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.ConverterConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.ComponentConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(
    at com.sun.faces.config.ConfigManager.initialize(
    at com.sun.faces.config.ConfigureListener.contextInitialized(
    at org.apache.catalina.core.StandardContext.listenerStart(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.addChildInternal(
    at org.apache.catalina.core.ContainerBase.addChild(
    at org.apache.catalina.core.StandardHost.addChild(
    at org.apache.catalina.startup.HostConfig.deployWAR(
    at org.apache.catalina.startup.HostConfig.deployWARs(
    at org.apache.catalina.startup.HostConfig.deployApps(
    at org.apache.catalina.startup.HostConfig.start(
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.core.StandardService.start(
    at org.apache.catalina.core.StandardServer.start(
    at org.apache.catalina.startup.Catalina.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(
    Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.reflection.ClassInfo
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at java.lang.ClassLoader.loadClassInternal(
  • svcurcio
    1 Post


    ‏2009-10-07T21:24:24Z  in response to SystemAdmin
    Just replace the groovy jar in WEB-INF/lib with the one used by Eclipse (see 'Groovy Libraries' in the Eclipse project folder)
  • PJT
    1 Post


    ‏2009-12-10T09:26:41Z  in response to SystemAdmin
    Very useful & helpful, thank you. One problem I've come across is with the prependId="false" flag. I wanted to use the login component with spring-security but even though I used prependId="false" in the component's form the form's id was prepended. This meant that spring-security, which relies on specific j_username & j_password url parameters woudn't work. I tested without a component and prependId="false" worked fine as did spring-security. Is there somehting I'm missing about the prependId flag? Is there a particular reason it doesn't work inside a composite component? (JSF v2.0.1).
  • andersaa
    1 Post


    ‏2009-12-21T12:52:27Z  in response to SystemAdmin
    I tried to run this on Glassfish V3. At first I got a ViewExpiredException on every page, but eventually fixed this by reducing session-timeout to 10 in web.xml.

    Now the example deploys and I am able to log in, but when viewing a map, every field in the map component is blank. It seems like there is a problem accessing cc.parent in the map component. If I output cc, i get:


    But if I output cc.parent I get an empty string. If I output places.pageRedraws I get the expected result, so the problem seems only to occur with cc.parent.

    Any suggestions to what this could be?
  • rmorriso
    1 Post


    ‏2010-06-19T01:27:37Z  in response to SystemAdmin
    I had the same issue with null cc.parent.attr that andersaa reports. Work around is to pass the object as an attribute to the child and reference through the child cc.attr.
  • RMooreJr
    3 Posts


    ‏2010-09-22T05:10:15Z  in response to SystemAdmin
    I now have the FU Part 3 code up on GlassFish 3.0.1 via Netbeans 6.9.1. I also had the component nesting problem and worked around that by using UI:include for the sub-components as snippets. I still have a bothersome problem: the map pages render fine on page load but do not re-render when f:ajax submits the request. I just get a blank display even though the m:map code is still in the browser. To simplify the investigation, I made a test case of one backing bean and one xhtml page with the map component , zoom index up and down buttons, and a zoom index display.
    I encountered the identical ajax rendering problem: the buttons update the zoom index and display the new value but the map display portion is blank. Refreshing the page manually does correctly render the map with the new zoom value.

    Is this yet another Glassfish/Mojarra issue? Has anyone else seen/fixed this behavior?

    By the way, my testing determined the following specs for the gmaps4jsf tag's zoom parameter:

    1: Increasing the zoom value zooms IN not OUT.
    2: The acceptable range of zoom value is 0 to 22 corresponding to the map's zoom control that seems to have 22 "notchs". Value 22 puts you in your backyard; value 0 produces a map of the entire world.
    3. Any value higher than 22 will create an error message wallpapered on your map. A negative value is ok and is treated like 0.