Could someone please show a sample webapp on Tomcat 7?

Splash Forums Rewrite Users Could someone please show a sample webapp on Tomcat 7?

This topic contains 6 replies, has 2 voices, and was last updated by  Christian Kaltepoth 5 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18135

    dolphincn
    Participant

    anybody could provide simple prettyfaces web smaple on tomcat 7.

    don’t need complex web , just have rewrite rule and run with jsf 2.1.

    I cann’t run prettyfaces 3.3.2 on tomcat 7.

    #21994

    dolphincn
    Participant

    Jan 16, 2012 7:11:01 AM org.apache.catalina.core.ApplicationContext log

    INFO: No state saving method defined, assuming default server state saving

    Jan 16, 2012 7:16:55 AM org.apache.catalina.core.StandardWrapperValve invoke

    SEVERE: Servlet.service() for servlet [default] in context with path [/test2] threw exception

    com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/]>

    at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:238)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: java.lang.ArrayIndexOutOfBoundsException: 8192

    at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:528)

    at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:435)

    at org.apache.coyote.http11.AbstractOutputBuffer.sendHeader(AbstractOutputBuffer.java:401)

    at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:1406)

    at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:734)

    at org.apache.coyote.Response.action(Response.java:170)

    at org.apache.coyote.Response.sendHeaders(Response.java:350)

    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:317)

    at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:299)

    at org.apache.catalina.connector.Response.flushBuffer(Response.java:560)

    at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:303)

    at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:161)

    at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:217)

    … 17 more

    #21995

    dolphincn
    Participant

    Jan 16, 2012 7:18:08 AM org.apache.catalina.core.StandardWrapperValve invoke

    SEVERE: Servlet.service() for servlet [default] in context with path [/test2] threw exception

    com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml/login/login.xhtml/login/login.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml.xhtml/]>

    at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:238)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: java.lang.ArrayIndexOutOfBoundsException

    #21996

    dolphincn
    Participant

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Error instantiating servlet class javax.faces.webapp.FacesServlet

    com.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:226)

    com.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:171)

    root cause

    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)

    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)

    com.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:226)

    com.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:171)

    #21997

    Looks like you you are missing a JSF implementation. You will have to add either Mojarra or MyFaces to get it working.

    You could also have a look at my PrettyFaces Maven Archetypes.

    https://github.com/chkal/prettyfaces-archetypes/wiki

    I didn’t update them for a while so you may have to update some artifact versions but basically it should work fine.

    #21998

    dolphincn
    Participant

    I have tried all kinds of ways, but there always pop out the same error.

    at last, I shutdown laptop, and got out.

    when I come back, power on laptop and recreate a new project, add rewrite-servlet.jar and jsf 2.1 lib that included in netbeans 7.1.

    and create folder [META-INFservices] under source packaged.

    and create RewriteConfiguration extends HttpConfigurationProvider, now it work very well.

    I don’t understand what’s wrong before.

    public class RewriteConfiguration extends HttpConfigurationProvider {

    //@Inject

    //private ProductRegistry products;

    @Override

    public Configuration getConfiguration(final ServletContext context) {

    return ConfigurationBuilder.begin().defineRule().when(Direction.isInbound().and(Path.matches(“/admin/”))).perform(Forward.to(“/admin/admin.xhtml”));

    }

    @Override

    public int priority() {

    return 0;

    }

    }

    #21999

    Now I see. You are actually using Rewrite and not PrettyFaces 3.x. I got that wrong.

    I’m glad to hear you got it working. Perhaps some kind of weird Netbeans problem?

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Comments are closed.