|
How To Compile Sample Sources
How Do I build the sample applicationsComplete sources of Dekoh applications DekohPhotos , DekohMusic , DekohBooks , DekohCalendar is available for download.
Each of these applications harness the Dekoh platform API to deliver unique desktop applications that lets users manage their personal digital content like photos, music, reading lists and so on. Browsing through the source code is a good way to learn how you can leverage Dekoh platform API in your application. Prerequisites to building sample applications
Executing the Build
$ ant -projecthelp Buildfile: build.xml Main targets: compile.books Compile and build WAR of Dekoh Books Application compile.calendar Compile and build WAR of Dekoh Calendar Application compile.music Compile and build WAR of Dekoh Music Application compile.picApp Compile and build WAR of Dekoh Photos Application compile.samples Compile and Build WAR files of all sample applications Default target: compile.samples
How to deploy the built WAR on Dekoh
$ ./dekoh_shell.sh
Exception in thread "main" java.lang.IllegalStateException: Somebody else already holds the lock on C:\Dekoh\server\nodes\default\config\server.lock. The server is probably already started.
at com.pramati.das.core.Bootstrapper.acquireLock(Bootstrapper.java:106)
at com.pramati.das.core.Bootstrapper.start(Bootstrapper.java:85)
at com.pramati.das.core.Bootstrapper.main(Bootstrapper.java:146)
at com.pramati.das.core.Delegator.main(Delegator.java:43)
LWT> help -------------------------------------------------------------------------------- The Following Commands are available : *) deploy - To deploy an Application *) undeploy - To undeploy an Application *) prepare - To prepare an Application *) start - To start a stopped Application *) stop - To stop a started Application *) status - to show webContainer status *) list - to get list of deployed applications *) shutdown - to shutdown the server --------------------------------------------------------------------------------
LWT> deploy C:\working_dir\dist\dekohbooks.war
2:33:40 PM- Deploying application [C:\working_dir\dist\dekohbooks.war]
[TopLink Info]: 2007.09.13 02:33:41.363--ServerSession(1766076)--TopLink, version: Oracle TopLink Essentials - 2.0 (Build b58a-rc2 (08/09/2007))
[TopLink Info]: 2007.09.13 02:33:41.445--ServerSession(1766076)--file:/C:/Dekoh/server/nodes/default/archives/public_html/books/WEB-INF/classes/-books-dio-persistence-unit login successful
No Trace props by name [dekohBooksTrace.props] found in classpath, did not load trace:
2:33:41 PM- Application started sucessfully with
contextroot [books] on host [default]
2:33:41 PM- Application [C:\working_dir\dist\dekohbooks.war]
deployed successfully
Application [C:\working_dir\dist\dekohbooks.war] with contextRoot [books] on VHost [default] deployed Successfully
See AlsoHow To Precompile JSP Files |