Re: maven.
Re: maven.
- Subject: Re: maven.
- From: Henrique Prange <email@hidden>
- Date: Sun, 05 Apr 2009 21:33:11 -0300
Hi Mike,
Lachlan Deck wrote:
On 05/04/2009, at 1:28 AM, Mike Schrag wrote:
SSDD/War builds, sucky (but admittedly essentially never touched)
... Inter-project build dependencies, sucky. #1 I'm guessing Maven
doesn't have much to offer without custom coding, either,
http://wiki.objectstyle.org/confluence/display/WOL/Packaging+WO+Applications+as+true+WAR+with+Maven
Ah yes, touche -- you use jar bundles, I forgot :) Does True War get
to dodge all the annoying weird custom classpathy stuff in web.xml
because of that?
We are not used to make any configuration regarding the classpath on the
web.xml, as it is a common WAR bundle. There is a sample web.xml
attached with the minimum configuration required to run WO applications
on Servlet containers.
We just have to configure the application to understand libraries as
WOJarBundle. "Note that WOROOT, LOCALROOT, WOAINSTALLROOT, WOClassPath
are ignored if this is true." (copied from the generated web.xml) :)
Do you guys do an SSDD variant? Would one even WANT
an SSDD if you have an easy true war build?
We don't use SSDD. IIRC, we have some problems with SSDD and WebSphere
in the past. True WAR bundles just works and they are how "not WO
people" expect WAR bundles to be package.
Cheers,
Henrique
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!-- This web.xml file by itself will allow you to run the corresponding
WebObjects application in a Servlet container. If you would like to
merge the WebObjects application with your existing JSP/Servlet
application, you have to merge this web.xml with your existing web.xml.
NOTE: This file is normally included as the template file 'web.xml.template'.
During the build process, the placeholders for WOROOT, LOCALROOT, WOAINSTALLROOT,
WOAppMode, WOClassPath, WOApplicationClass and WOtaglib will be replaced
with the appropriate values. Other parts of the template file may be
customized as required.
NOTE: WEBINFROOT is added to the WOClassPath at build time, but the replacement
value is replaced at runtime to be the path to the WEB-INF directory.
-->
<web-app>
<display-name>project-name</display-name>
<context-param>
<param-name>WOJarBundle</param-name>
<param-value>YES</param-value>
<description>
Whether this app is a "true" WAR, rather than a "stub" WAR
or SSDD Note that WOROOT, LOCALROOT, WOAINSTALLROOT,
WOClassPath are ignored if this is true However, if this is
true, WOMainBundle must be set to the main bundle name
</description>
</context-param>
<context-param>
<param-name>WOMainBundle</param-name>
<param-value>project-name</param-value>
<description>
Sets the name of the main bundle. Only used if WOJarBundle
is true
</description>
</context-param>
<!-- Indicates if application is in development or deployment mode. In development
mode, images are vended by the application directly from frameworks. In
deployment mode, images are vended by the webserver. -->
<context-param>
<param-name>WOAppMode</param-name>
<param-value>development</param-value>
</context-param>
<!-- Class name of the WOApplication subclass that defines the
WebObjects application. -->
<context-param>
<param-name>WOApplicationClass</param-name>
<param-value>
com.mycompany.appserver.Application
</param-value>
</context-param>
<!-- The WebObjects Servlet that interfaces between the Servlet container
world and the WebObjects world. -->
<servlet>
<servlet-name>WOServletAdaptor</servlet-name>
<servlet-class>
com.webobjects.jspservlet.WOServletAdaptor
</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
<!-- URLs starting with 'WebObjects' use the WebObjects Servlet adaptor. -->
<servlet-mapping>
<servlet-name>WOServletAdaptor</servlet-name>
<url-pattern>/WebObjects/*</url-pattern>
</servlet-mapping>
</web-app>
_______________________________________________
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
References: | |
| >maven. (From: Mike Schrag <email@hidden>) |
| >Re: maven. (From: Henrique Prange <email@hidden>) |
| >Re: maven. (From: Mike Schrag <email@hidden>) |
| >Re: maven. (From: Lachlan Deck <email@hidden>) |
| >Re: maven. (From: Mike Schrag <email@hidden>) |
| >Re: maven. (From: Lachlan Deck <email@hidden>) |
| >Re: maven. (From: Mike Schrag <email@hidden>) |
| >Re: maven. (From: Lachlan Deck <email@hidden>) |
| >Re: maven. (From: Mike Schrag <email@hidden>) |
| >Re: maven. (From: Lachlan Deck <email@hidden>) |