Re: Mapping a servlet to a prettier url thanks to pretty faces: is that possible?

Splash Forums PrettyFaces Users Mapping a servlet to a prettier url thanks to pretty faces: is that possible? Re: Mapping a servlet to a prettier url thanks to pretty faces: is that possible?

#20909

balteo
Participant

Hello Christian,

Here is my new config:

<rewrite match=”^/redirigeVersSculpture/(fr|en)/(d+)$” substitute=”/RedirigeVersSculptureServlet?abonneLocale=$1&sculptureID=$2″ redirect=”chain”/>

Here is the stacktrace:

***********************************

1 mai 2011 14:43:08 org.apache.catalina.core.StandardContext filterStart

GRAVE: Exception au d�marrage du filtre Pretty Filter

com.ocpsoft.pretty.PrettyException: Failed to load configuration.

at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:90)

at com.ocpsoft.pretty.PrettyFilter.init(PrettyFilter.java:305)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)

at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)

at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:578)

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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: com.ocpsoft.pretty.PrettyException: Failed to parse PrettyFaces configuration from /WEB-INF/pretty-config.xml

at com.ocpsoft.pretty.faces.config.spi.DefaultXMLConfigurationProvider.loadConfiguration(DefaultXMLConfigurationProvider.java:59)

at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:63)

… 28 more

Caused by: org.xml.sax.SAXParseException: The reference to entity “sculptureID” must end with the ‘;’ delimiter.

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at com.ocpsoft.shade.org.apache.commons.digester.Digester.parse(Digester.java:1887)

at com.ocpsoft.pretty.faces.config.DigesterPrettyConfigParser.parse(DigesterPrettyConfigParser.java:69)

at com.ocpsoft.pretty.faces.config.spi.DefaultXMLConfigurationProvider.loadConfiguration(DefaultXMLConfigurationProvider.java:55)

… 29 more

1 mai 2011 14:43:08 org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

1 mai 2011 14:43:09 org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

1 mai 2011 14:43:09 org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()