Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Cannot set up project with RichFaces version 3.3.3 #3

Open
lincolnthree opened this issue Jan 20, 2012 · 0 comments
Open

Cannot set up project with RichFaces version 3.3.3 #3

lincolnthree opened this issue Jan 20, 2012 · 0 comments

Comments

@lincolnthree
Copy link
Contributor

`forge install-plugin richfaces

new-project --named richfaces-example --topLevelPackage org.forge.richfaces.example --type war --projectFolder richfaces-example}}

richfaces setup (choose 3.3.3)`

The problem is the following code in RichFacesFacet:

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); }

Stack trace:

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant