Reply To: how to use param of h:commandLink with rewrite module

Splash Forums Rewrite Users how to use param of h:commandLink with rewrite module Reply To: how to use param of h:commandLink with rewrite module

#26968

facilus
Participant

I must get my parametre.

I’m trying do include spring with :

<dependency>
	<groupId>org.ocpsoft.rewrite</groupId>
	<artifactId>rewrite-integration-spring</artifactId>
	<version>2.0.12.Final</version>
</dependency>

and in my ExampleConfigurationProvideri’ve add the ManagedBean like this :

@Autowired
private MyBean bean;

but when i start tomcat server, i’ve this error in log console :

java.lang.RuntimeException: Could not instantiate service class org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider
	at org.ocpsoft.common.services.ServiceLoader.loadEnriched(ServiceLoader.java:334)
	at org.ocpsoft.common.services.ServiceLoader.loadClass(ServiceLoader.java:243)
	at org.ocpsoft.common.services.ServiceLoader.loadService(ServiceLoader.java:234)
	at org.ocpsoft.common.services.ServiceLoader.loadServiceFile(ServiceLoader.java:196)
	at org.ocpsoft.common.services.ServiceLoader.reload(ServiceLoader.java:145)
	at org.ocpsoft.common.services.ServiceLoader.iterator(ServiceLoader.java:394)
	at org.ocpsoft.common.util.Iterators.asList(Iterators.java:40)
	at org.ocpsoft.rewrite.servlet.RewriteFilter.init(RewriteFilter.java:115)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: org/springframework/expression/ExpressionParser
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
	at java.lang.Class.getConstructor0(Class.java:2723)
	at java.lang.Class.getDeclaredConstructor(Class.java:2004)
	at org.ocpsoft.common.services.ServiceLoader.loadEnriched(ServiceLoader.java:312)
	... 20 more
Caused by: java.lang.ClassNotFoundException: org.springframework.expression.ExpressionParser
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
	... 25 more