• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss Deployment Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I'm experiencing error with Enabling the deployment. It states;


"failure-description" => {"Failed services" => {"jboss.persistenceunit.\"CityPress-1.0-SNAPSHOT.war#citypress_PU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"CityPress-1.0-SNAPSHOT.war#citypress_PU\": Failed to start service"}},

any ideas?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We'll need more details including which version of JBoss AS, how you are deploying and what application you are deploying. Also please post the entire exception stacktrace.
 
nick gun
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Jboss 7.0.2 and NetBeans 7.0.1
----

"Arc" started in 5323ms - Started 98 of 153 services (55 services are passive or
on-demand)
13:43:54,008 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) Sta
rting deployment of "CityPress-1.0-SNAPSHOT.war"
13:43:54,275 INFO [org.jboss.jpa] (MSC service thread 1-5) read persistence.xml
for citypress_PU
13:43:54,306 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persi
stence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to CityPres
s-1.0-SNAPSHOT.war
13:43:54,309 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added (default pr
ovider) org.hibernate dependency to application deployment (since 1 PU(s) didn't
specify jboss.as.jpa.providerModule)
13:43:54,310 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added org.hiberna
te dependency to application deployment
13:43:54,413 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean name
d CommentFacade in deployment unit deployment "CityPress-1.0-SNAPSHOT.war" are a
s follows:

java:global/CityPress-1.0-SNAPSHOT/CommentFacade!edu.city.set.eia.citypr
ess.beans.CommentFacadeLocal
java:app/CityPress-1.0-SNAPSHOT/CommentFacade!edu.city.set.eia.citypress
.beans.CommentFacadeLocal
java:module/CommentFacade!edu.city.set.eia.citypress.beans.CommentFacade
Local
java:global/CityPress-1.0-SNAPSHOT/CommentFacade
java:app/CityPress-1.0-SNAPSHOT/CommentFacade
java:module/CommentFacade

13:43:54,414 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean name
d CategoryFacade in deployment unit deployment "CityPress-1.0-SNAPSHOT.war" are
as follows:

java:global/CityPress-1.0-SNAPSHOT/CategoryFacade!edu.city.set.eia.cityp
ress.beans.CategoryFacadeLocal
java:app/CityPress-1.0-SNAPSHOT/CategoryFacade!edu.city.set.eia.citypres
s.beans.CategoryFacadeLocal
java:module/CategoryFacade!edu.city.set.eia.citypress.beans.CategoryFaca
deLocal
java:global/CityPress-1.0-SNAPSHOT/CategoryFacade
java:app/CityPress-1.0-SNAPSHOT/CategoryFacade
java:module/CategoryFacade

13:43:54,416 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean name
d TagFacade in deployment unit deployment "CityPress-1.0-SNAPSHOT.war" are as fo
llows:

java:global/CityPress-1.0-SNAPSHOT/TagFacade!edu.city.set.eia.citypress.
beans.TagFacadeLocal
java:app/CityPress-1.0-SNAPSHOT/TagFacade!edu.city.set.eia.citypress.bea
ns.TagFacadeLocal
java:module/TagFacade!edu.city.set.eia.citypress.beans.TagFacadeLocal
java:global/CityPress-1.0-SNAPSHOT/TagFacade
java:app/CityPress-1.0-SNAPSHOT/TagFacade
java:module/TagFacade

13:43:54,418 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean name
d ArticleFacade in deployment unit deployment "CityPress-1.0-SNAPSHOT.war" are a
s follows:

java:global/CityPress-1.0-SNAPSHOT/ArticleFacade!edu.city.set.eia.citypr
ess.beans.ArticleFacadeLocal
java:app/CityPress-1.0-SNAPSHOT/ArticleFacade!edu.city.set.eia.citypress
.beans.ArticleFacadeLocal
java:module/ArticleFacade!edu.city.set.eia.citypress.beans.ArticleFacade
Local
java:global/CityPress-1.0-SNAPSHOT/ArticleFacade
java:app/CityPress-1.0-SNAPSHOT/ArticleFacade
java:module/ArticleFacade

13:43:54,420 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean name
d RegisUserFacade in deployment unit deployment "CityPress-1.0-SNAPSHOT.war" are
as follows:

java:global/CityPress-1.0-SNAPSHOT/RegisUserFacade!edu.city.set.eia.city
press.beans.RegisUserFacadeLocal
java:app/CityPress-1.0-SNAPSHOT/RegisUserFacade!edu.city.set.eia.citypre
ss.beans.RegisUserFacadeLocal
java:module/RegisUserFacade!edu.city.set.eia.citypress.beans.RegisUserFa
cadeLocal
java:global/CityPress-1.0-SNAPSHOT/RegisUserFacade
java:app/CityPress-1.0-SNAPSHOT/RegisUserFacade
java:module/RegisUserFacade

13:43:54,871 INFO [org.jboss.jpa] (MSC service thread 1-1) starting Persistence
Unit Service 'CityPress-1.0-SNAPSHOT.war#citypress_PU'
13:43:55,087 INFO [org.hibernate.annotations.common.Version] (MSC service threa
d 1-1) HCANN000001: Hibernate Commons Annotations {4.0.0.CR2}
13:43:55,096 INFO [org.hibernate.Version] (MSC service thread 1-1) HHH00412:Hib
ernate Core {4.0.0.CR2}
13:43:55,100 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH0
0206:hibernate.properties not found
13:43:55,104 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH0
0021:Bytecode provider name : javassist
13:43:55,138 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1
) HHH00204:Processing PersistenceUnitInfo [
name: citypress_PU
...]
13:43:55,470 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC0000
1: Failed to start service jboss.persistenceunit."CityPress-1.0-SNAPSHOT.war#cit
ypress_PU": org.jboss.msc.service.StartException in service jboss.persistenceuni
t."CityPress-1.0-SNAPSHOT.war#citypress_PU": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110) [:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603) [:1.7.0]
at java.lang.Thread.run(Thread.java:722) [:1.7.0]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: citypress_P
U] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:908)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
ctory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntity
ManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnit
Service.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
... 3 more
Caused by: org.hibernate.AnnotationException: @Temporal should only be set on a
java.util.Date or java.util.Calendar property: edu.city.set.eia.citypress.Commen
t.comTime
at org.hibernate.cfg.annotations.SimpleValueBinder.setType(SimpleValueBi
nder.java:148)
at org.hibernate.cfg.annotations.PropertyBinder.makePropertyAndValue(Pro
pertyBinder.java:185)
at org.hibernate.cfg.annotations.PropertyBinder.makePropertyValueAndBind
(PropertyBinder.java:200)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(Annotati
onBinder.java:1992)
at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(An
notationBinder.java:761)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:68
2)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedC
lassesQueue(Configuration.java:3383)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(C
onfiguration.java:3337)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
1321)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1711)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactor
yImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:899)
... 9 more

13:43:55,686 INFO [org.jboss.as.server.controller] (HttpManagementService-threa
ds - 1) Deployment of "CityPress-1.0-SNAPSHOT.war" was rolled back with failure
message {"Failed services" => {"jboss.persistenceunit.\"CityPress-1.0-SNAPSHOT.w
ar#citypress_PU\"" => "org.jboss.msc.service.StartException in service jboss.per
sistenceunit.\"CityPress-1.0-SNAPSHOT.war#citypress_PU\": Failed to start servic
e"}}
13:43:55,751 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) Sto
pped deployment CityPress-1.0-SNAPSHOT.war in 65ms
reply
    Bookmark Topic Watch Topic
  • New Topic