Re: Converting from SSDD to WAR
Re: Converting from SSDD to WAR
- Subject: Re: Converting from SSDD to WAR
- From: Hsu <email@hidden>
- Date: Mon, 4 Oct 2004 18:20:53 -0700
From a previous post:
Building SSDD does NOT require that your frameworks are built as JARs.
You are trying to build as a WAR file.
The appropriate build settings are:
SERVLET_TRUE_WAR (new in 5.2.2), will create a "true" J2EE WAR
(self-contained). This requires all your frameworks to be built as
JARs, and installed into /Library/WebObjects/lib. Setting this in your
application project will also create a JAR file of your application,
which will be placed into the same location as the .woa. (This JAR is
generally only used during creation of the actual WAR file).
SERVLET_SINGLE_DIR_DEPLOY (new in 5.2), will create an exploded J2EE
WAR folder (self-contained).
SERVLET_STUB_WAR (new in 5.1), this is a "stub" WAR (requires WO + app
installation).
I suggest that you set the one you want to "YES", and the other two to
"NO". Setting more than one to "YES" results in undefined behavior.
If you are creating a "true" WAR (SERVLET_TRUE_WAR==YES), then all your
frameworks must be built as JARs and placed in /Library/WebObjects/lib.
This controlled by the build setting "BUNDLE_AS_JAR". The newly created
JAR file will be placed into the same location as the .framework; it
must be copied manually into /Library/WebObjects/lib. (I _think_ that
it will be copied into /Library/WebObjects/lib auotmatically when
building for deployment, but I'm not sure).
Final note: When building from Xcode, ALWAYS build Development, NEVER
build Deployment. If you are going to build Deployment, use xcodebuild
from the commandline.
Karl
On Oct 3, 2004, at 8:48 PM, Ricardo Cortes wrote:
Hi,
Does anyone know what I need to do in order to convert a WO project
that is
currently building as an SSDD project (Single Servlet Directory
Deployment) to
one that builds a Web Archive (.WAR) that can be inserted into a
servlet
container (i.e. Tomcat, JBoss)? I trust there's a few properties here
and
there that I need to change but I can't seem to find the right one.
Thanks!
Ricardo
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
--
Madness takes its toll. Please have exact change.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden