Reply To: Common param value using annotations

Splash Forums Rewrite Users Common param value using annotations Reply To: Common param value using annotations

#26231

jvr
Participant

It is not working with super class I got the following exception.
Caused by: 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:337)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
… 41 more
Caused by: java.lang.IllegalArgumentException: Unable to find a suitable mapping for the query-parameter definied on field ‘lang’ in class ‘com.web.issue.BaseParameters’. Either place a @URLMapping annotation on the class or reference a foreign mapping using the ‘mappingId’ attribute.
at com.ocpsoft.pretty.faces.config.annotation.PrettyAnnotationHandler.processFieldAnnotations(PrettyAnnotationHandler.java:342)
at com.ocpsoft.pretty.faces.config.annotation.PrettyAnnotationHandler.processClass(PrettyAnnotationHandler.java:123)
at com.ocpsoft.pretty.faces.config.annotation.AbstractClassFinder.processClass(AbstractClassFinder.java:219)
at com.ocpsoft.pretty.faces.config.annotation.WebLibFinder.processJarFile(WebLibFinder.java:141)
at com.ocpsoft.pretty.faces.config.annotation.WebLibFinder.findClasses(WebLibFinder.java:85)
at com.ocpsoft.pretty.faces.config.spi.AnnotationConfigurationProvider.loadConfiguration(AnnotationConfigurationProvider.java:82)
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:63)
… 44 more

Could you pls help further.