I've this site running on Tomcat. After I attempt to access among my pages to perform a status check, it inspections on the particular JAR file. On Red-colored Hat 5, but this is not on Home windows, I recieve the next error:

java.lang.ClassCastException: LoggingPasshashInfo cannot be cast to PasshashInfo

I acquired this JAR from a 3rd party and am utilizing it just like I first got it. Based on Apache's tatus page, the RH setup is on Tomcat version 7..22 and JVM version 1.6._27-b07. Home windows is on Tomcat 7..19 and JVM 1.6._26-b03. Red-colored Hat's Tomcat was upgraded from 6..33 during the period of looking to get this fixed.

Anyway, I am a bit new only at that and, apart from obtaining the configurations to appear as similar as you possibly can, I am unsure how to pull off fixing this. Any help could be fine, and when I have unsuccessful to talk about any important particulars, tell me. And merely to reiterate, the JAR I am dealing with is really a black box.

Full error:

Java.lang.ClassCastException: com.adobe.adept.fulfillment.test.LoggingPasshashInfo cannot be cast to com.adobe.adept.fulfillment.PasshashInfo
    at com.adobe.adept.fulfillment.servlet.Fulfill.<clinit>(Fulfill.java:130)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:127)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:836)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
    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)

I suspect you've several copy from the jar file placed on the Linux server. Caused by this may be the same jar is loaded by multiple classloaders. Classes that will normally be related, but they are loaded by unrelated classloaders, aren't convertible using a cast. Check carefully for other copies from the jar file -- for instance, in Tomcat's top-level "server/lib" directory -- and take away basically one.