[forge-issues] [JBoss JIRA] (FORGE-442) Richfaces Plugin: can't setup project with RF in version 3.3.3.Final

Jan Papousek (JIRA) jira-events at lists.jboss.org
Fri Jan 20 03:54:18 EST 2012


Jan Papousek created FORGE-442:
----------------------------------

             Summary: Richfaces Plugin: can't setup project with RF in version 3.3.3.Final
                 Key: FORGE-442
                 URL: https://issues.jboss.org/browse/FORGE-442
             Project: Forge
          Issue Type: Bug
    Affects Versions: 1.0.0.Beta5
            Reporter: Jan Papousek


The problem is there is the [following code|https://github.com/forge/plugin-richfaces/blob/master/src/main/java/org/richfaces/forge/RichFacesFacet.java#L89] in RichFacesFacet:

{code}
if (RichFacesVersion.RICHFACES_3_3_3.equals(version)) {
    List<ServletDef> servlets = descriptor.getServlets();
    String facesServletName = "FacesServlet";
    for (ServletDef servletDef : servlets) {
        if (FACES_SERVLET_CLASS.equals(servletDef.getServletClass())) {
            facesServletName = servletDef.getName();
        }
    }
    FilterDef filter = descriptor.filter("org.ajax4jsf.Filter")
            .mapping().servletName(facesServletName)
            .dispatchTypes(DispatcherType.REQUEST,
                    DispatcherType.FORWARD,
                    DispatcherType.INCLUDE,
                    DispatcherType.ERROR);
}
{code}

Stack trace:

{code}
org.jboss.forge.shell.exceptions.CommandExecutionException
	at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
	at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
	at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
	at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
	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:597)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
	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:597)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
	at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:109)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
	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:597)
	at org.jboss.forge.shell.command.Execution.perform(Execution.java:149)
	... 31 more
Caused by: javax.enterprise.event.ObserverException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:395)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:216)
	at org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:390)
	at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
	at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:92)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:214)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
	at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
	at org.richfaces.forge.RichFacesPlugin.setup(RichFacesPlugin.java:49)
	... 36 more
Caused by: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType
	at org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.FilterMappingDefImpl.dispatchType(FilterMappingDefImpl.java:84)
	at org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.FilterMappingDefImpl.dispatchTypes(FilterMappingDefImpl.java:94)
	at org.richfaces.forge.RichFacesFacet.installDescriptor(RichFacesFacet.java:97)
	at org.richfaces.forge.RichFacesFacet.install(RichFacesFacet.java:47)
	at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:266)
	at org.jboss.forge.project.BaseProject.installFacet(BaseProject.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:597)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
	at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:121)
	at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:97)
	at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:75)
	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:597)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	... 43 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.DispatcherType from [Module "org.jboss.shrinkwrap.descriptors:main" from local module loader @2c9b42e6 (roots: /opt/forge-1.0.0.Beta5/modules,/home/jpapouse/.forge/plugins)]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
	... 70 more
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list