Topic
  • 1 reply
  • Latest Post - ‏2013-02-06T13:50:30Z by SystemAdmin
SystemAdmin
SystemAdmin
590 Posts

Pinned topic Liberty and REST/JSON, Hibernate, Jersey and Derby

‏2013-02-06T11:43:58Z |
A newcomer question, just starting with Eclipse Nuno and WAS Liberty Edition. I´m trying to implement a sample described in the dW site which implements a small framework for DOJO, REST/JSON and relational database handling ( see http://www.ibm.com/developerworks/library/wa-datawebapp/ ).

Question: Where to include the external .jars from Hibernate, Jersey and Derby components when using WAS 8.5 Liberty Edition? I've tried to add them under WEB-INF/lib but so far no success when starting the appliction in the Liberty. The package build looks normal, but the REST resources does not activate in the server. Is there any server-side console, or debug that confirms the class load?

Hints are welcome.
  • SystemAdmin
    SystemAdmin
    590 Posts

    Re: Liberty and REST/JSON, Hibernate, Jersey and Derby

    ‏2013-02-06T13:50:30Z  
    an Update: A few tweaks was required to make the sample run in WAS 8.5:

    . Rename the folder SoccerOrg to SoccerOrgOld
    . Create a Dynamic Web Project project named SoccerOrg, associated with a project type
    Tomcat 6.
    . Copy the SoccerOrgOld/src to SoccerOrg/src (overwrite it)
    . Copy the contents of SoccerOrgOld/war para SoccerOrg/WebContent (overwrite it)
    . Copy the external libs into a WebContent/WEB-INF/lib (Derby, Hibernate and Jersey)

    Yet an issue with DOJO grid display is open, but REST/JSON and JPA persistance works fine, watching the data and JSON inside the Firebug protocol debug.