Vineet Reynolds <vineet.reynolds(a)gmail.com> wrote, in response to mase:
Hello mase,
It looks like you've imported a different class for the mediaType property in
MediaItem. It should be "org.jboss.jdf.example.ticketmonster.model.MediaType"
instead of "javax.ws.rs.core.MediaType". This class
(org.jboss...model.MediaType) should have a description field and a getDescription
method.
IP address: 209.132.188.34
Link to comment:
http://redirect.disqus.com/url?url=http%3A%2F%2Fjboss.org%2Fjdf%2Fexample...
mase wrote:
Hi I verify the correctness of my files, including persistence.xml and
ticket-monster-ds.xml, with those in the project. But I always notice an error in
MediaItem.java: the method getDescription() is undefined for type MediaType. But I've
defined all.
Furthermore when I try Run As -> Run on server (with Jboss EAP 6.1), it fails and
says:
12:34:29,721 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870:
Deploy of deployment "ticket-monster.war" was rolled back with the following
failure message:
{"JBAS014671: Failed services" =>
{"jboss.persistenceunit.\"ticket-monster.war#primary\"" =>
"org.jboss.msc.service.StartException in service
jboss.persistenceunit.\"ticket-monster.war#primary\":
javax.persistence.PersistenceException: [PersistenceUnit: primary] Unable to build ...
-----
Options: You can moderate through email. Respond in the body with "Delete".
Reply with "Like" to like this comment, or respond with anything else to approve
this comment and post your message as a reply comment.
Or use the moderate panel:
http://jdf.disqus.com/admin/moderate/#/pending
Stop receiving notifications when new comments are posted:
http://disqus.com/account/#notifications