Jboss服务无法启动

时间:2013-03-08 12:17:36

标签: eclipse hibernate gwt jboss persistence

我正在JBoss AS7上的Eclipse中开发一个GWT应用程序。但是,当我尝试部署时,我得到了这个

13:11:52,546 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."ctivTools_GWT.war#Catalog": org.jboss.msc.service.StartException in service jboss.persistenceunit."ctivTools_GWT.war#Catalog": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]


Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: vfs:/C:/Users/mettens/Documents/Startproject%20GWT/jboss-as-7.1.1.Final/bin/content/ctivTools_GWT.war/WEB-INF/classes/
    at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:854)
    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:596)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    ... 3 more
Caused by: java.lang.RuntimeException: JBAS011431: Could not load entity class 'be.vito.ctivtools.client.generic.GwtRpcDataSource' with PersistenceUnitInfo.getClassLoader()
    at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:175)
    at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:489)
    at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:851)
    ... 9 more
Caused by: java.lang.ClassNotFoundException: be.vito.ctivtools.client.generic.GwtRpcDataSource from [Module "deployment.ctivTools_GWT.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:171)

Hibernate服务显然不会启动。我不知道为什么。我尝试添加更多库,构面和类,但没有任何效果。 我将我的应用程序编译为WAR文件并在之后部署它。

1 个答案:

答案 0 :(得分:1)

在您的代码库中搜索be.vito.ctivtools.client.generic.GwtRpcDataSource。

确定应包含哪些二进制文件(jar)。确保jar在WEB-INF / lib中。

如果您没有构建任何jar,请确保GwtRpcDataSource.class文件位于WEB-INF / classes / be / vito / ctivtools / client / generic文件夹中。