此程序无法显示网页:

时间:2013-09-30 04:06:19

标签: java hibernate tomcat

此程序无法显示网页:在尝试运行示例项目时,我在tomcat服务器中收到此响应。我不知道如何解决它。你能帮帮忙吗?

Sep 29, 2013 11:46:59 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path: 
C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;
C:\Windows;D:\app\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Dell\Dell Wireless WLAN Card;C:\Program Files\VDownloader;
C:\Program Files\Java\jdk1.7.0_25\bin;C:\Apache Ant-1.9.2\bin;
C:\Program Files (x86)\apache-maven-3.1.0\bin;
C:\Program Files (x86)\VisualSVN Server\bin;.

Sep 29, 2013 11:46:59 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property
'source' to 'org.eclipse.jst.jee.server:quickstart' did not find a matching 
property.

Sep 29, 2013 11:47:00 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8090"]

Sep 29, 2013 11:47:00 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Sep 29, 2013 11:47:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1395 ms

Sep 29, 2013 11:47:00 PM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina

Sep 29, 2013 11:47:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
java.lang.VerifyError: class org.hibernate.type.WrappedMaterializedBlobType
overrides final method getReturnedClass.()Ljava/lang/Class;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1956)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1919)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1806)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1765)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1751)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1255)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:882)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)

2 个答案:

答案 0 :(得分:0)

java.lang.VerifyError: class org.hibernate.type.WrappedMaterializedBlobType overrides

final method getReturnedClass.()Ljava/lang/Class;

似乎你有不支持的Hibernate版本(或)它是classpath中的依赖jar。 See this jira如果有帮助的话。

答案 1 :(得分:0)

使用http://www.jboss.org/tattletale检查您的类路径。根据此Hibernate forum条目,您还可以在类路径上拥有多个不兼容的Hibernate-xxx.jar库。

同样从我的检查中,这可能是安全管理器的问题,因为代码试图覆盖(遮蔽)标记为final的方法。因此,安全管理器会检测到可能尝试克服java安全措施(无法替换子类中的最终方法)。

检查你是否使用了不兼容的hibernate版本,因为这个类恰好来自hibernate源。