Re: deployment problem --> maven + war
Re: deployment problem --> maven + war
- Subject: Re: deployment problem --> maven + war
- From: Lachlan Deck <email@hidden>
- Date: Fri, 14 Nov 2008 15:29:49 +1100
(just giving this a better subject)
On 14/11/2008, at 3:00 PM, M.Y. Tjoe wrote:
I got a hello world Maven WebObjects app which build successfully
(in command line) but the war file is not deployed properly on
tomcat.
How did you create the project?
using command line:
mvn archetype:generate -DarchetypeArtifactId=woapplication-archetype \
-DarchetypeGroupId=org.objectstyle.woproject.maven2 \
-DarchetypeVersion=2.0.16 \
-DarchetypeRepository=http://webobjects.mdimension.com/maven2/releases
You've followed the Quick Start guide and created your local settings
file (as you've not referenced the plugin repos in your pom)?
i.e., did you follow this guide opting for true war support?
http://wiki.objectstyle.org/confluence/display/WOL/woapplication-archetype
When look at the expanded war, it looks like it is not package
correctly with right structure:
What structure does it have?
Is the Properties file in there but just in the wrong place?
The Properties file could be in the wrong directory but it is
definitely there
The Properties file is under WEB-INF/classes/, please see screenshot
below:
I'm not familiar with war structure so I'm not sure where that should
be.
The catalina log gives following error.
"Main bundle 'Properties' file can't be read. Did you run as a Java
Application instead of a WOApplication in WOLips?"
So I tired changing <packaging>war</packaging> to
<packaging>woapplication<packaging>, then I got following structure
which seems to have more contents in it.
Henrique or Daryl will probably be more familiar with building wars -
but building as woapplication won't give you a war.
Did you refer to this page?
http://wiki.objectstyle.org/confluence/display/WOL/Packaging+WO+Applications+as+true+WAR+with+Maven
Yes I am using this reference (without step 1, 2 & jetty-plugin).
ok
with regards,
--
Lachlan Deck
_______________________________________________
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