Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8E244019 for ; Wed, 29 Jun 2011 20:39:30 +0000 (UTC) Received: (qmail 46256 invoked by uid 500); 29 Jun 2011 20:39:30 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 46121 invoked by uid 500); 29 Jun 2011 20:39:29 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 46112 invoked by uid 99); 29 Jun 2011 20:39:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 20:39:29 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joysn71@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 20:39:24 +0000 Received: by wwg11 with SMTP id 11so255852wwg.1 for ; Wed, 29 Jun 2011 13:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9rUr9urx8qfinPTKKopxbHA7Jpsn0xj4e3vU+uaIAEI=; b=Zv5vb3e0M6WLp/K1hcLZUdvcq8cU2t+HQ7QuV+lQ6Y4chwEQhtHPYw15u0UeYZukPg OfnIqcNJQKPM60VZ27IkyBoAt1ON3Kiq+FvAt5ojOm4MmSplMiknWj3aKCh5ZQTTgUKt V8Nd3JawD3xCwGvdp6Viecfvzz+yEowc+B4hw= MIME-Version: 1.0 Received: by 10.216.78.212 with SMTP id g62mr1094431wee.22.1309379942901; Wed, 29 Jun 2011 13:39:02 -0700 (PDT) Received: by 10.216.71.15 with HTTP; Wed, 29 Jun 2011 13:39:02 -0700 (PDT) In-Reply-To: <082B8ADF-1BF8-4FCA-8785-4E887010D57E@gmail.com> References: <255C1926-D125-4F60-BB64-6647CA35468B@yahoo.com> <082B8ADF-1BF8-4FCA-8785-4E887010D57E@gmail.com> Date: Wed, 29 Jun 2011 22:39:02 +0200 Message-ID: Subject: Re: Geronimo 2.2.1 with JSF 2 From: Chris Joysn To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=000e0ce049405f693504a6dfc69c --000e0ce049405f693504a6dfc69c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Kevan, this Geronimo server is a cool thing :) i think i fixed the issue with the maven, eclipse and run on server issue: i activated that the maven dependencies are exported as well at the project= s settings. but: i started with a fresh copy of Geronimo. i added a geronimo-web.xml to WEB-INF/ with the content u provided and when i deploy the project using the geronimo server adapter nothing happens at geronimo. and there is no log message in the geronimo.log file. but the server view in Eclipse shows the webapp running and [Synchronized] when i undeploy the webapp from the eclipses server view, add the geronimo-web.xml, the webapp is deployed again, the logfile says: 2011-06-29 21:51:00,225 WARN [TomcatModuleBuilder] Web application . does not contain a WEB-INF/geronimo-web.xml deployment plan. This may or may no= t be a problem, depending on whether you have things like resource references that need to be resolved. You can also give the deployer a separate deployment plan file on the command line. 2011-06-29 21:51:00,250 INFO [DeploymentContext] The Strict Manifest Classpath processing mode is in effect. This option can be altered by specifying -DXorg.apache.geronimo.deployment.LenientMFCP=3Dtrue|false Specify =3D"true" for more lenient processing such as ignoring missing jars and references that are not spec compliant. and after a while the geronimo console shows the webapp up and running with the name of the context. but i can not access it, tomcat shows a 404 for the context. again, not logfile entry besides the warning regarding the geronimo-web.xml... when i use the deployer from the geronimo web console and specify the war (containing the geronimo-web.xml) and the geronimo-web.xml as plan, then th= e webapp appears in the consoles Web App WARs view. when i start the web app the web app is shown as running, but the context i= s not available, Tomcat shows again a 404. and, as usual, no log messages regarding the actions deployment, undeployment, why the context is not accessible... i dont have an idea whats going on... 2011/6/29 Kevan Miller > > On Jun 28, 2011, at 5:30 PM, Chris Joysn wrote: > > > Hi Daniel, > > > > thanks for your response. and yes, i did exact what u said: > > > > i started with a clean copy of geronimo 2.2.1, > > turnedoff the two faces system modules, > > deployed my ready build war with the mojarra jsf2 and richfaces 4 libs, > > nothing special, just a simple hellp world sample. > > > > "under rapid development" scares me a little bit... ;) > > > > when i do the things mentioned above tehn i get the following log out > put. its > > a rather huge log output, but to be honest. it tells me nothing... > > > > furthermore it seems that it is not possible to deploy a maven managed > > dynamic web project from Eclipse through the geronimo server adapter > > to geronimo. it seems that then the libs are not deployed to geronimo, > > so i had to deploy the war through geronimo console. > > > > 2011-06-28 23:22:25,719 WARN [TomcatModuleBuilder] Web application . > does not contain a WEB-INF/geronimo-web.xml deployment plan. This may or > may not be a problem, depending on whether you have things like resource > references that need to be resolved. You can also give the deployer a > separate deployment plan file on the command line. > > 2011-06-28 23:22:27,485 INFO [config] Mojarra 2.0.4 (FCS b09) f=FCr > Kontext '/erp.web-1.0-SNAPSHOT' wird initialisiert. > > 2011-06-28 23:22:35,947 INFO [config] Unsanitized stacktrace from fail= ed > start... > > java.lang.IllegalArgumentException: factoryName > 'javax.faces.context.ExceptionHandlerFactory' > > at javax.faces.FactoryFinder.checkFactoryName(FactoryFinder.java:27= 5) > > at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:217) > > at > com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryC= onfigProcessor.java:283) > > > > > I dont know how to deal with that issue now... > > > Maybe the problem results from the way i deploy the webapp to Geronim= o? > > Hi Chris, > Looks like you need to hide the JSF 1.2 spec API classes from the JSF 2.0 > implementation in your app. I am assuming that you'll be providing the js= f > 2.0 spec api jar in your .war... > > Using the following deployment plan should help: > > > xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1" > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.1"> > > > org.mygroup > MyApp > 1.1 > car > > > > javax.faces > > > > > > You can keep the deployment plan separate or place with deployment plan i= n > WEB-INF/ directory of your .war (in which case it will be detected > automtically by geronimo deployment code). > > Otherwise, you specify the deployment plan as a separate file. E.g.: > > bin/deploy.sh deploy > > or specify the deployment plan when using deploy with the admin console. > > > > > > > > > I use Eclipse 3.6.2 and the Geronimo 2.2.1 server adapter for deployi= ng > the > > > webapp. The webapp is a Maven based project which i imported to Eclip= se > > > and then i set the facet Dynamic web module to the project. > > > > > > If i look at the directory > $WORKSPACE/.plugins/org.apache.geronimo.st.v21.core then i find > > > a war file but there are no libs in the folder WEB-INF/lib... > > > > > > Are they not deployed to Geronimo? Does Geronimo get the projects > classpath > > > then i deploy the webapp to it? > > > > > > Or am i wrong and i have another issue with Geronimo and JSF 2? > > That's an issue with your eclipse project (or the import into Eclipse). C= an > you describe how your maven project is defined? A simple sample would be > helpful... Not my cup-of-tea. Perhaps somebody will have an answer for > you... > > --kevan --000e0ce049405f693504a6dfc69c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Kevan,

this Geronimo server is a cool thing :)

i think = i fixed the issue with the maven, eclipse and run on server issue:
i act= ivated that the maven dependencies are exported as well at the projects set= tings.

but:
i started with a fresh copy of Geronimo.
i added a geronimo-= web.xml to WEB-INF/ with the content u provided
and when i deploy the pr= oject using the geronimo server adapter nothing happens
at geronimo. and= there is no log message in the geronimo.log file. but the server
view in Eclipse shows the webapp running and [Synchronized]

when i u= ndeploy the webapp from the eclipses server view, add the geronimo-web.xml= ,
the webapp is deployed again, the logfile says:

2011-06-29 21:= 51:00,225 WARN=A0 [TomcatModuleBuilder] Web application . does not contain = a WEB-INF/geronimo-web.xml deployment plan.=A0 This may or may not be a pro= blem, depending on whether you have things like resource references that ne= ed to be resolved.=A0 You can also give the deployer a separate deployment = plan file on the command line.
2011-06-29 21:51:00,250 INFO=A0 [DeploymentContext] The Strict Manifest Cla= sspath processing mode is in effect.
This option can be altered by speci= fying -DXorg.apache.geronimo.deployment.LenientMFCP=3Dtrue|false
Specify= =3D"true" for more lenient processing such as ignoring missing j= ars and references that are not spec compliant.

and after a while the geronimo console shows the webapp up and running= with the name of the context.
but i can not access it, tomcat shows a = 404 for the context.

again, not logfile entry besides the warning re= garding the geronimo-web.xml...

when i use the deployer from the geronimo web console and specify the w= ar (containing the geronimo-web.xml) and the geronimo-web.xml as plan, then= the webapp appears in the consoles Web App WARs view.
when i start the = web app the web app is shown as running, but the context is not available, = Tomcat shows again a 404.

and, as usual, no log messages regarding the actions deployment, undepl= oyment, why the context is not accessible...

i dont have an idea wha= ts going on...


2011/6/29 Kevan Miller= <kevan.mill= er@gmail.com>

On Jun 28, 2011, at 5:30 PM, Chris Joysn wrote:

> Hi Daniel,
>
> thanks for your response. and yes, i did exact what u said:
>
> i started with a clean copy of geronimo 2.2.1,
> turnedoff the two faces system modules,
> deployed my ready build war with the mojarra jsf2 and richfaces 4 libs= ,
> nothing special, just a simple hellp world sample.
>
> "under rapid development" scares me a little bit... ;)
>
> when i do the things mentioned above tehn i get the following log out = put. its
> a rather huge log output, but to be honest. it tells me nothing...
>
> furthermore it seems that it is not possible to deploy a maven managed=
> dynamic web project from Eclipse through the geronimo server adapter > to geronimo. it seems that then the libs are not deployed to geronimo,=
> so i had to deploy the war through geronimo console.
>
> 2011-06-28 23:22:25,719 WARN =A0[TomcatModuleBuilder] Web application = . does not contain a WEB-INF/geronimo-web.xml deployment plan. =A0This may = or may not be a problem, depending on whether you have things like resource= references that need to be resolved. =A0You can also give the deployer a s= eparate deployment plan file on the command line.
> 2011-06-28 23:22:27,485 INFO =A0[config] Mojarra 2.0.4 (FCS b09) f=FCr= Kontext '/erp.web-1.0-SNAPSHOT' wird initialisiert.
> 2011-06-28 23:22:35,947 INFO =A0[config] Unsanitized stacktrace from f= ailed start...
> java.lang.IllegalArgumentException: factoryName 'javax.faces.conte= xt.ExceptionHandlerFactory'
> =A0 =A0 at javax.faces.FactoryFinder.checkFactoryName(FactoryFinder.ja= va:275)
> =A0 =A0 at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:217= )
> =A0 =A0 at com.sun.faces.config.processor.FactoryConfigProcessor.setFa= ctory(FactoryConfigProcessor.java:283)
>
> > I dont know how to deal with that issue n= ow...
> > Maybe the problem results from the way i deploy the webapp to Ger= onimo?

Hi Chris,
Looks like you need to hide the JSF 1.2 spec API classes from the JSF 2.0 i= mplementation in your app. I am assuming that you'll be providing the j= sf 2.0 spec api jar in your .war...

Using the following deployment plan should help:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<web-app xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/web-1.1<= /a>" xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deploymen= t-1.1" xmlns:naming=3D"http://geronimo.apache.org/xml/ns/nami= ng-1.1">
=A0<dep:environment>
=A0 =A0<dep:moduleId>
=A0 =A0 =A0<dep:groupId>org.mygroup</dep:groupId>
=A0 =A0 =A0<dep:artifactId>MyApp</dep:artifactId>
=A0 =A0 =A0<dep:version>1.1</dep:version>
=A0 =A0 =A0<dep:type>car</dep:type>
=A0 =A0</dep:moduleId>

=A0 =A0<dep:hidden-classes>
=A0 =A0 =A0<dep:filter>javax.faces</dep:filter>
=A0 =A0</dep:hidden-classes>
=A0</dep:environment>
</web-app>


You can keep the deployment plan separate or place with deployment plan in = WEB-INF/ directory of your .war (in which case it will be detected automtic= ally by geronimo deployment code).

Otherwise, you specify the deployment plan as a separate file. E.g.:

bin/deploy.sh deploy <your-web-app.war> <your-web-app-deployment-p= lan.xml>

or specify the deployment plan when using deploy with the admin console.

>
> >
> > I use Eclipse 3.6.2 and the Geronimo 2.2.1 server adapter for dep= loying the
> > webapp. The webapp is a Maven based project which i imported to E= clipse
> > and then i set the facet Dynamic web module to the project.
> >
> > If i look at the directory $WORKSPACE/.plugins/org.apache.geronim= o.st.v21.core then i find
> > a war file but there are no libs in the folder WEB-INF/lib...
> >
> > Are they not deployed to Geronimo? Does Geronimo get the projects= classpath
> > then i deploy the webapp to it?
> >
> > Or am i wrong and i have another issue with Geronimo and JSF 2?
That's an issue with your eclipse project (or the import into Ecl= ipse). Can you describe how your maven project is defined? A simple sample = would be helpful... Not my cup-of-tea. Perhaps somebody will have an answer= for you...

--kevan

--000e0ce049405f693504a6dfc69c--