java.lang.ClassCastException

The target class does not match the specified target type

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web624

  • The target class does not match the specified target type
  • via Tridion by Andy Rowland
    , 1 year ago
    The target class does not match the specified target type
  • via Google Groups by sgre...@triloggroup.com, 1 year ago
    The feature 'root's type 'RootType' does not permit a value of type 'RootType'*bold*
  • Stack trace

    • java.lang.ClassCastException: The target class does not match the specified target type at com.tridion.util.ReflectionUtil.loadClassInstanceWithTypes(ReflectionUtil.java:81) at com.tridion.util.ReflectionUtil.loadClassInstance(ReflectionUtil.java:103) at com.tridion.ambientdata.web.RequestValidatorFactory.newRequestValidator(RequestValidatorFactory.java:27) at com.tridion.ambientdata.web.AmbientDataServletFilter.init(AmbientDataServletFilter.java:116) 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:4700) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.