This is version 4.
It is not the current version, and thus it cannot be edited.
[Back to current version]
[Restore this version]
AppFuse with WSAD
This is a work in progress.. I will detail each of these out as best as I can..
- Load AppFuse - get from cvs
- Create new instance via ant new
- Create WSAD Enterprise project
- Create WSAD Web project
- Create new WAS5.1 Test Server
- Setup datasource in WSAD
- Setup WAS5.1 test server
- Set affinity of EAR project for WAS5.1
- need to enable this possibility first via Window--> Preferences--> J2EE)
- Copy src, test
- Refresh web project
- Open the web project properties-->
- Java Build Path--> Source tab
- Add src/* and test/* folders
- Add src/gen by creating it
- Rename WebContent folder in web project to: web
- Copy the web/WEB-INF/classes/* to
- Copy web folders to the web project (yes overwrite)
- Copy lib, metadata, extras, build.xml, app-settings.xml, build.properties, compile-jsp.xml, properties.xml to EAR project
- Refresh enterprise project
- Setup web project classpath via web--> META-INF--> MANIFEST.MF
- Open manifest
- Click select all (you can remove the extras/ibatis if you use hibernate)
- Close (and save) manifest
- Mod build script to use property driven source dirs
- java.src.dir = ../web project dir/src
- test.src.dir = ../web project dir/test
- web.src.dir = ../web project dir/web
- Add a copy back to src dir target for stuff that gets built to the ${build.dir}/xxx/gen folders.
- Replace test/ with ${test.src.dir} and src/ with ${java.src.dir}
- Replace ${basedir}/web/ and web/ with ${web.src.dir}
- Make sure you do this inside properties.xml! otherwise your service and web tests will fail!
- Run the build script until it works.. changing source directories as you go.
- Run Ant setup-db
- Run Ant package-web
- Compile WSAD web project
- Bind the web.xml resource reference for jdbc/ to the JNDI name you defined for your datasource
Attachments:
|