You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by David Jencks <da...@yahoo.com> on 2008/02/22 00:30:04 UTC
Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.4.1
Jim,
Is liferay 4.4.1 available on a maven repo? If not where can I find it? Is liferay normally built with maven? I snagged the plan off an earlier mail...
By far the easiest way to create a g 2.1 plugin is with maven. I'm starting a maven archetype to make it easy to set up a maven project to generate a plugin. This seems like a good test case.
thanks
david jencks
----- Original Message ----
From: Jim Foster <jf...@tmtsaz.com>
To: user@geronimo.apache.org
Sent: Thursday, February 21, 2008 2:48:52 PM
Subject: Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.1.1
Shiva
Kumar
H
R
wrote:
>
>
There
are
two
problems,
both
in
Plan
Creator
feature:
>
1)
Error
message/Java
Exceptions
are
suppressed
by
Plan
Creator
code
and
>
not
>
shown
to
the
user
at
all
:-(
>
>
With
liferay-portal-4.4.1.war,
when
I
ran
Geronimo
in
debug
mode
and
>
remote
>
connected
via
Eclipse
(with
a
break
point
put
at
the
beginning
of
>
org.apache.geronimo.console.configcreator.JSR88_Util.parseWarReferences()
>
function
inside
"plancreator-portlets"
module),
I
found
that
we
are
>
getting
>
following
exception:
>
>
org.apache.geronimo.common.DeploymentException:
AbstractWebModuleBuilder:
>
Could
not
load
servlet
class:
com.liferay.portal.servlet.MainServlet
>
>
Instead
of
showing
this
error
on
Console,
plan
creator
is
currently
>
suppressing
it
in
an
empty
catch()
block.
>
*GERONIMO-3850<https://issues.apache.org/jira/browse/GERONIMO-3850>
>
*is
opened
for
this.
>
>
2)
Secondly,
I
see
that
the
class
it
is
complaining
"
>
com.liferay.portal.servlet.MainServlet"
*does*
exist,
but
inside
a
>
compressed
jar
("portal-impl.jar")
in
WEB-INF/lib
directory
of
WAR.
Plan
>
Creator
has
a
current
limitation
:-(
in
resolving
such
classes.
*
>
GERONIMO-3851
<https://issues.apache.org/jira/browse/GERONIMO-3851>
*is
>
opened
for
this.
>
>
Due
to
these
bugs/limitations,
I
am
sorry
to
say
that
you
will
again
have
>
to
>
create
geronimo-web.xml
by
hand.
I
found
one
"geronimo-web.xml"
inside
>
liferay-portal-4.4.1.war
itself.
I
have
removed
non-existing
dependencies
>
from
it
and
attached
it
in
this
mail.
Please
see
if
it
works.
(I
guess
it
>
requires
some
pre-requisite
db-pools
to
be
deployed
before
the
WAR
can
be
>
deployed).
Hope
it
helps.
>
>
...
>
>
Hi
Shiva,
Is
there
any
new
word
on
the
origins
of
the
security
configuration
errors
we
were
seeing?
I
have
spent
a
good
deal
of
time
this
week
reading
everything
I
could
get
my
hands
on,
including
a
healthy
chunk
of
the
120
Geronimo
articles
up
at
IBM's
developerworks.
(http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?end_no=120&lcl_sort_order=asc&type_by=All+Types&sort_order=asc&start_no=1&show_all=true&sort_by=Date&search_by=&topic_by=Geronimo&search_flag=&show_abstract=true).
However,
the
most
recent
I
could
find
that
seemed
relevant
to
this
issue
was
on
the
wiki:
http://cwiki.apache.org/GMOxDOC21/installation-and-configuration.html
However,
this
is
an
installation
document,
and
provides
little
in
the
way
of
debugging
guidelines,
and
I
am
only
now
just
far
enough
along
in
wrapping
my
head
around
all
the
technologies
that
make
up
Geronimo
to
get
myself
in
trouble.
Suggestions?
Once
past
this,
I
would
like
your
advise
on
how
to
bring
up
to
date
the
Liferay-provided
.car
file
for
the
derby
pool.
I
looked
at
its
contents,
and
I
see
that
they
are
clearly
wrong
(my
guess
is
that
they
were
written
for
v1.1),
but
I
am
not
quite
sure
how
to
go
about
fixing
it
so
as
to
be
in
alignment
with
v2.1
...one
step
at
a
time
though...first
the
security
issue.
Thank
you
for
your
time,
patience,
and
advise.
Jim
--
View
this
message
in
context:
http://www.nabble.com/Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.1.1-tp15437773s134p15621951.html
Sent
from
the
Apache
Geronimo
-
Users
mailing
list
archive
at
Nabble.com.
Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.4.1
Posted by Jim Foster <jf...@tmtsaz.com>.
djencks wrote:
>
> Jim,
>
> Is liferay 4.4.1 available on a maven repo? If not where can I find it?
> Is liferay normally built with maven? I snagged the plan off an earlier
> mail...
>
> By far the easiest way to create a g 2.1 plugin is with maven. I'm
> starting a maven archetype to make it easy to set up a maven project to
> generate a plugin. This seems like a good test case.
>
> thanks
> david jencks
>
>
Hi David,
I think this is an excellent suggestion!
When one thinks of application server usage, a Portal environment is usually
hovering near the top of use-case scenarios, followed closely by CMS, so if
we were to take Liferay as a first use-case and make it a model, we would be
solving many problems at once: your archetype development, a use-case model
suitable for public consumption, and solving my particular development
situation.
I need to step away right now, but I will follow-up again to this thread and
provide you with all the information you require so that we can work
together on getting this accomplished.
Thanks!
Jim
--
View this message in context: http://www.nabble.com/Re%3A-Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.4.1-tp15623755s134p15624334.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.4.1
Posted by Jim Foster <jf...@tmtsaz.com>.
Hi David,
Responses below, inline.
djencks wrote:
>
> Jim,
>
> Is liferay 4.4.1 available on a maven repo?
>
Unfortunately, no.
djencks wrote:
>
> If not where can I find it?
>
Liferay has several sources:
[1] Bundled distributions are at
http://www.liferay.com/web/guest/downloads/portal
[2] The Additional Files page at
http://www.liferay.com/web/guest/downloads/additional has links for:
- a war distribution of the portal itself
- a dependencies collection of jars: portal-kernel, portal-service,
portlet
(which I don't think are needed for Geronimo)
- liferay-portal-geronimo-derby-pool-4.4.1.car
(which must be deployed first, according to the site, and contains
the ra.xml file which we would need to update for v2.1)
- manual database population scripts
[3] Individual liferay components are also listed on sourceforge at
http://sourceforge.net/project/showfiles.php?group_id=49260
djencks wrote:
>
> Is liferay normally built with maven? I snagged the plan off an earlier
> mail...
>
No.
If you browse the SVN repository at
https://lportal.svn.sourceforge.net/svnroot/lportal/
you will see build.xml files in the directories, so the answer seems
apparent that they are sticking with ant.
djencks wrote:
>
> By far the easiest way to create a g 2.1 plugin is with maven.
>
I hear that. Maven is the only way...period. Whatever I can do to assist
this effort, please do not hesitate to ask.
I am by no means a maven guru, but I can certainly hold my own, and I am
willing to do any grunt work by way of testing, or anything else that you
deem appropriate.
djencks wrote:
>
> I'm starting a maven archetype to make it easy to set up a maven project
> to generate a plugin. This seems like a good test case.
>
> thanks
> david jencks
>
This is good to hear.
With Geronimo v2.1 being made up almost entirely of plugins now, combined
with the momentum behind OSGi-ifying Geronimo, a solid plugin procedure
needs to be established.
Jim
--
View this message in context: http://www.nabble.com/Re%3A-Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.4.1-tp15623755s134p15632877.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.4.1
Posted by Jim Foster <jf...@tmtsaz.com>.
Hi David,
Responses below, inline.
djencks wrote:
>
> Hi Jim,
>
> I think how to fix the deployment problems might be described in one of
> the two features I actually documented.
>
> http://cwiki.apache.org/GMOxDOC21/configuring-run-as-and-default-subjects-and-principal-role-mapping.html
>
And here I thought I had read every single page of GMOxDOC21...
This is an excellent read, though some of it goes "swoosh" over my head.
It will take another read or two in order for me to digest it all.
djencks wrote:
>
> I'm attaching an updated plan with what look like plausible changes.
>
Looks good.
In your edition of the deployment plan vis-a-vis the one currently in the
Liferay distro,
I note that your modifications may be summarized as
[1] namespace modified from "web-1.1" to "web-2.0.1"
[2] dependencies:
j2ee-security
j2ee-server
javamail
rmi-naming <= removed
sharedlib
geronimo-mail
liferay-pool
[3] security tag modified
[4] gbean name="CredentialStore" is new
Did I miss anything?
I also note that the namespace specified for the CredentialStore does not
seem to exist,
meaning http://geronimo.apache.org/xml/ns/credentialstore-1.0.
djencks wrote:
>
> I haven't been able to figure out what you are trying to deploy with this
> plan from the 4.4.1 downloads, so I'll wait for more input from you.
>
If you visited the bundled packages page of Liferay referenced above, then
you see that they are trying to be all things to all people, meaning
supporting just about every platform/configuration possible.
A noble, if not ambitous effort.
However, this means that the good folks at Liferay are busy with other
things other than staying current with the rapid development of Geronimo.
For example, their current disto bundle for Geronimo is stuck at v1.1, and
I don't anticipate that changing anytime soon.
That being the case, I wish to assume responsibility myself for syncing
deployment of the Liferay portal onto the Geronimo application server.
This means determining what is needed to bring the original
Liferay-created deployment plans up to speed with current Geronimo
requirements.
From what I can determine so far (and please correct me if I am wrong),
that means modifications to:
- The geronimo deployment plan (in liferay-portal-4.4.1.war)
- The JDBC connection pool (in
liferay-portal-geronimo-derby-pool-4.4.1.car)
djencks wrote:
>
> I think the Roller plugin provides a good model for what you might end up
> with in terms of a reproducible plugin/server build environment.
>
> svn co https://svn.apache.org/repos/asf/geronimo/plugins/roller/trunk
>
> This shows how to construct switchable database plugins (derby and mysql)
> and constructs roller plugins for jetty and tomcat, and shows how to
> assemble servers around these plugins.
>
> The archetypes I've started should help a lot with setting up projects
> like this.
>
> thanks
> david jencks
>
This is perfect!
I will endeavor to study your Roller plugin model today.
...and don't worry, I'm not shy when it comes to questions.
From what I have read from you so far, I have the impression that your are
eager for informed feedback.
Jim
--
View this message in context: http://www.nabble.com/Re%3A-Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.4.1-tp15623755s134p15632883.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.