关闭

jsf:org.jboss.msc.service.fail || MSC00001: Failed to start service jboss.persistenceunit

标签: jsfxhtmljava eejboss
5533人阅读 评论(1) 收藏 举报
分类:
22:30:01,478 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found Hello.war in deployment directory. To trigger deployment create a file called Hello.war.dodeploy
22:30:01,483 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "Hello.war"
22:30:02,375 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-api.jar in "/D:/Install package/J EE/jboss7.1.1/standalone/deployments/Hello.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.
22:30:02,376 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-impl.jar in "/D:/Install package/J EE/jboss7.1.1/standalone/deployments/Hello.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.
22:30:02,377 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jsr173_1.0_api.jar in "/D:/Install package/J EE/jboss7.1.1/standalone/deployments/Hello.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.
22:30:02,378 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/D:/Install package/J EE/jboss7.1.1/standalone/deployments/Hello.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.
22:30:02,404 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
22:30:02,405 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
22:30:02,409 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011401: Read persistence.xml for Hello
22:30:02,506 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011402: Starting Persistence Unit Service 'Hello.war#Hello'
22:30:02,507 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH000204: Processing PersistenceUnitInfo [
	name: Hello
	...]
22:30:02,511 WARN  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-5) HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections
22:30:02,512 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."Hello.war#Hello": org.jboss.msc.service.StartException in service jboss.persistenceunit."Hello.war#Hello": 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_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: Hello] Unable to build EntityManagerFactory
	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
	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: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)
	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)
	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:176)
	at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
	at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
	... 9 more

22:30:02,725 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "Hello.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"Hello.war#Hello\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Hello.war#Hello\": Failed to start service"}}
22:30:02,794 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment Hello.war in 68ms
22:30:02,795 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.persistenceunit."Hello.war#Hello": org.jboss.msc.service.StartException in service jboss.persistenceunit."Hello.war#Hello": Failed to start service

22:30:02,796 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"Hello.war#Hello\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Hello.war#Hello\": Failed to start service"}}}}


出现错误:22:30:02,512 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit.

自己在网上找了好久都没有找到有使用性的解决方法,最后在我们班里找了位同学看了看他的电脑(程序在电脑上是可以正常运行)。比较发现我们导入的JSF Capabilities版本不同,我下载的是最新版JSF 2.2、而他用的是JSF2.0.


最后在创建工程的时候,


这样创建的工程就可以正常访问xhtml文件了。

0
0
查看评论

jboss错误

at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start 解决方案(jar冲突去掉一个即可以) :
  • baicp3
  • baicp3
  • 2015-11-04 14:21
  • 1713

JBoss7不支持部署带空格的文件

现象 在对最新版的JBoss7.1进行测试的过程中发现,部署一个很简单的jar文件到服务器时,竟然都会出现错误,出错信息如下所示: 16:59:46,848ERROR [org.jboss.as.controller.management-operation] (DeploymentScanne...
  • rickyhome
  • rickyhome
  • 2012-03-01 12:03
  • 2527

jboss-as- 7.1.1.Final配置jndi数据源

jboss-as -7.1.1.Final 配置jndi数据源 Exception;javax.naming.NameNotFoundException: sinosoftDataSource -- service jboss.naming.context.java.sinosoftDataSou...
  • u012705000
  • u012705000
  • 2016-05-14 21:06
  • 2758

MSC00001: Failed to start service jboss.network.public: org.jboss.msc.service.StartException in serv

如截图所示: 出现此问题的原因是:在jboss7的standalone.xml中配置的地址有问题,如下: 即将监听ip和端口改成本地地址即可
  • jerry_player
  • jerry_player
  • 2017-05-31 13:37
  • 658

Failed to start service jboss.network.management

前端时间,需要把项目部署到linux环境上去进行测试,因为jboss修改过很多东西。所以在装linux环境的时候,直接把开发环境的jboss放到linux 的文件系统中去了。 在使用的过程中,jboss总是启动不起来。问题如下:
  • zc474235918
  • zc474235918
  • 2016-03-30 14:19
  • 1627

Jboss加载不到数据库驱动问题解决过程记录

错误日志:22:41:44,320 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC000001: Failed to start service jboss.persistenceunit."...
  • lk_blog
  • lk_blog
  • 2015-03-13 23:27
  • 6700

jsf:org.jboss.msc.service.fail || MSC00001: Failed to start service jboss.persistenceunit

22:30:01,478 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found Hello.war in deployment directory. To tr...
  • stven_king
  • stven_king
  • 2014-04-30 22:40
  • 5533

号称价值14000 的英文艺术字体

【seo素材库】友情提示:号称价值14000,不过这种字体看起来确实很有美感!!!               本图片由【seo素材库】友情提供
  • yehuo85
  • yehuo85
  • 2012-01-27 15:18
  • 5

ubuntu VPN service failed to start 解决方案

转载地址:http://blog.csdn.net/h3139597/article/details/7362578 方法1: 就将vpn设置里面—ipv4设置中选择“只自动获取(vpn)地址" 再在dns服务器中填入opendns的地址即:208.67.222.222 ...
  • luisliuyi
  • luisliuyi
  • 2015-03-10 21:36
  • 1657

Memcache 安装 启动失败的问题:failed to start service

xampp下安装memcache很简单,只需要简单的5步就可以搞定。 1、下载memcache的windows稳定版,解压放某个盘下面,比如在c:\memcached。 2、“开始”->“运行”->cmd,然后输入‘c:\memcached\memcached.exe-d ...
  • design321
  • design321
  • 2013-01-30 13:21
  • 2474
    个人资料
    • 访问:290395次
    • 积分:4004
    • 等级:
    • 排名:第9346名
    • 原创:329篇
    • 转载:17篇
    • 译文:10篇
    • 评论:35条
    博客专栏
    最新评论