[jdf-users] New comment posted on JBoss Developer Framework

Disqus notifications at disqus.net
Wed Oct 16 09:05:21 EDT 2013



Vineet Reynolds <vineet.reynolds at 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%2Fexamples%2Fticket-monster%2Ftutorial%2FDataPersistence%2F%23comment-1084311819%3AZk8JaFjaqc-2v4znlmv4TgOD1Nc&impression=9c3e19c4-3663-11e3-bb75-003048dfbae6&type=notification.post.moderator&event=email&behavior=click

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jdf-users/attachments/20131016/e6be68ee/attachment-0001.html 


More information about the jdf-users mailing list