Child pages
  • Java Client-WebStart Distribution Building

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Your deployed WebStart-distributed application must have a jar of all the client-side classes (and any subclasses of EOGenericRecord that your client-classes extend) in the Project.woa/Contents/WebServerResources/Java/ directory. If you don't include a jar of your client-side classes in this directory, WebObjects silently uses EOGenericRecord instead. This is made obvious by things like default values, client-side validation and other client-side logic not working in the deployed application.

Info

The following are the instructions are for use with versions of WOLips prior to the current Stable, which has these settings already.

When using Ant to build:

  1. Add the following "javaclient" target to your build.xml file.
    Code Block
    <target name="javaclient">
    	<mkdir dir="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java" />
    	<!-- project client-side classes -->
    	<jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class" jarfile="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar">
    	</jar>
    	<!-- project user.d2wmodel file (D2JC only) -->
    	<copy file="user.d2wmodel" tofile="${dest.dir}/${project.name}.woa/Contents/Resources/user.d2wmodel" />
    </target>
    
  2. Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target.
    Code Block
    <target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" />
    
    Code Block
    <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" />