Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 18969 invoked from network); 28 Apr 2008 15:29:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 15:29:31 -0000 Received: (qmail 41184 invoked by uid 500); 28 Apr 2008 15:29:31 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 40827 invoked by uid 500); 28 Apr 2008 15:29:30 -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 40804 invoked by uid 99); 28 Apr 2008 15:29:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 08:29:30 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 74.125.46.29 as permitted sender) Received: from [74.125.46.29] (HELO yw-out-2324.google.com) (74.125.46.29) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 15:28:43 +0000 Received: by yw-out-2324.google.com with SMTP id 9so1018854ywe.85 for ; Mon, 28 Apr 2008 08:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; bh=OiHsQ4H3DBZmk9thU78ItVkHAegljTchIfxIHM0zzgY=; b=iGdEz0gmzFfqQ1QaI0CrfFfW1x7ULL5n0B/30JV2ZvStz2aeNiSbbrPt4loPoGGIYu8R0E0Gfh7je6KxMWhcwDCO30nHilxX+9xFlJ77gzjWLhY4r0IX5X9fuixbYExmfT3TTDCo5GNEq5jCugdVNedPcEoXSpJlwB6OHjkwTQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; b=dG6ZCTXhXzouBW8s3X7i+4m7+VUCiwOzdRuIeoqa8/PGU5Q+M8zSnYOx6gSSP2ZQjYqj8ItQlh6cyLfgSQ9DSibhTEeq/k8GOe6yBAvKGXDtihJTQ1XFK31GXftp7YZISmwoxmDgbac3hKXxJ4t6BePfjv+YhoJemn2DqVQ8AJs= Received: by 10.150.83.41 with SMTP id g41mr3864979ybb.193.1209396529939; Mon, 28 Apr 2008 08:28:49 -0700 (PDT) Received: from ?10.0.1.194? ( [65.190.205.55]) by mx.google.com with ESMTPS id 12sm9605688wrl.20.2008.04.28.08.28.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Apr 2008 08:28:49 -0700 (PDT) Message-Id: From: Kevan Miller To: user@geronimo.apache.org In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-15--838906078 Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Migrting application into Geronimo Date: Mon, 28 Apr 2008 11:28:47 -0400 References: X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-15--838906078 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Apr 28, 2008, at 9:50 AM, Alexey Kakunin wrote: > Hello! I'm currently working with migrating quite big war-only > application (http://www.emforge.org) to the Geronimo. > We are using Tomcat 5.5/6.0 for development, but already prepared > "special" versions for JBossAS and GlassFis to provide better > integration (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has > a little bit more details). > > So, now the turn on Geronimo. > > This application is used many dependencies, some of which make sense > are: > * JSF-RI 1.2 & Facelets & RichFaces 3.2.0 > * Spring 2.5.2 > * CXF 2.0.5-incubator. > > During trying to run application on GlassFish I met some problems, > seems related to the facts, that Geronimo is used a little bit > another versions: > * MyFaces 1.2 (as JSF Implementation) > * Spring 2.0.5 > * CXF 2.0.2 > > But before one general question: how to use some default (I suppose > jdbc/ActiveDS) DataSource in my application? > We need it because by default, we are using build-in file-based > HSQL, but in these "special" pacjkages for J2EE servers we provide > some better integration - for example we are using some default DS > as DataSource. It allows user to start application by simple > deploying (without any external configuration) and avoid from using > HSQL (it has some problems). > > I read documentation (http://cwiki.apache.org/GMOxDOC21/deployment-plans.html > ) and trying to do like it is described there - added resource into > web.xml: > > > jdbc/ActiveDS > javax.sql.DataSource > Container > Shareable > > > And added dependency into geronimo-web.xml (may be it is not correct > - but I tried different ways): > > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" > xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" > xmlns:sys="http://geronimo.apache.org/xml/ns/ > deployment-1.2"> > > > > org.emforge > EmForge > 0.23 > war > > > > > org.jaxen,org.springframework,org.apache.cxf > > > > > console.dbpool > jdbc%2FActiveDS > > > > /EmForge > > jdbc/ActiveDS > jdbc/ActiveDS > > console.dbpool > jdbc%2FActiveDS > jdbc/ActiveDS > > > > > But in this case I'm getting error during deployment: > > error: cvc-complex-type.2.4a: Expected elements 'non-overridable- > classes@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse- > classloading@http://geronimo.apache.org/xml/ns/deployment-1.2 > suppress-default-environment@http://geronimo.apache.org/xml/ns/deployment-1.2' > instead of 'dependencies@http://geronimo.apache.org/xml/ns/deployment-1.2' > here in element environment@http://geronimo.apache.org/xml/ns/deployment-1.2 > > > error: cvc-complex-type.2.4b: Element not allowed: pattern@http://geronimo.apache.org/xml/ns/naming-1.2 > in element resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2 > > > > > What I'm doing wrong here? You've got the ordering wrong. Move your element below your . Will take a look at your other questions later... --kevan --Apple-Mail-15--838906078 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Apr 28, 2008, = at 9:50 AM, Alexey Kakunin wrote:

Hello! I'm = currently working with migrating quite big war-only application (http://www.emforge.org) to the = Geronimo.
We are using Tomcat 5.5/6.0 for development, but already = prepared "special" versions for JBossAS and GlassFis to provide better = integration (http://www.emf= orge.org/wiki/EmForgeJ2EEIntegration has a little bit more = details).

So, now the turn on Geronimo.

This application = is used many dependencies, some of which make sense are:
* JSF-RI 1.2 = & Facelets & RichFaces 3.2.0
* Spring 2.5.2
* CXF = 2.0.5-incubator.

During trying to run application on GlassFish I = met some problems, seems related to the facts, that Geronimo is used a = little bit another versions:
* MyFaces 1.2 (as JSF = Implementation)
* Spring 2.0.5
* CXF 2.0.2

But before one = general question: how to use some default (I suppose jdbc/ActiveDS) = DataSource in my application?
We need it because by default, we are = using build-in file-based HSQL, but in these "special" pacjkages for = J2EE servers we provide some better integration - for example we are = using some default DS as DataSource. It allows user to start application = by simple deploying (without any external configuration) and avoid from = using HSQL (it has some problems).

I read documentation (http://cw= iki.apache.org/GMOxDOC21/deployment-plans.html) and trying to do = like it is described there  - added resource into web.xml:
=
    = <resource-ref>
        = <res-ref-name>jdbc/ActiveDS</res-ref-name>
   &nbs= p;    = <res-type>javax.sql.DataSource</res-type>
    = ;    = <res-auth>Container</res-auth>
     &nbs= p;  <res-sharing-scope>Shareable</res-sharing-scope>
=     </resource-ref>

And added = dependency into geronimo-web.xml (may be it is not correct - but I tried = different ways):


<web-app xmlns=3D"http://geronimo.= apache.org/xml/ns/j2ee/web-2.0.1"
=           xmlns:nam=3D"http://geronimo.apac= he.org/xml/ns/naming-1.2"
       = ;   xmlns:sec=3D"http://geronimo.ap= ache.org/xml/ns/security-2.0"
=           xmlns:sys=3D"http://geronimo.= apache.org/xml/ns/deployment-1.2">

    = <sys:environment>
        = <sys:moduleId>
         = ;   <sys:groupId>org.emforge</sys:groupId>
=             = <sys:artifactId>EmForge</sys:artifactId>
    =         = <sys:version>0.23</sys:version>
     &nb= sp;      = <sys:type>war</sys:type>
      &nbs= p; </sys:moduleId>
       
=         = <sys:hidden-classes>
       =         = <sys:filter>org.jaxen,org.springframework,org.apache.cxf</sys:filter= >
           = </sys:hidden-classes>
       =    
       =     <sys:dependencies>
=             = <sys:dependency>
        &nb= sp;       = <sys:groupId>console.dbpool</sys:groupId>
    = ;            = <sys:artifactId>jdbc%2FActiveDS</sys:artifactId>
  &nbs= p;         = </sys:dependency>
        = </sys:dependencies>
    = </sys:environment>
    = <context-root>/EmForge</context-root>
    = <nam:resource-ref>
        = <nam:ref-name>jdbc/ActiveDS</nam:ref-name>
=         = <nam:resource-link>jdbc/ActiveDS</nam:resource-link>
  =       = <nam:pattern>
         = = <nam:groupId>console.dbpool</nam:groupId>
    = ;      = <nam:artifactId>jdbc%2FActiveDS</nam:artifactId>
=           = <nam:name>jdbc/ActiveDS</nam:name>
     =    </nam:pattern>
    = </nam:resource-ref>


But in this case I'm getting error = during deployment:

error: cvc-complex-type.2.4a: Expected =
elements 'non-overridable-classes@http://geronimo.=
apache.org/xml/ns/deployment-1.2 inverse-classloading@http://geronimo.=
apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://geronimo.=
apache.org/xml/ns/deployment-1.2' instead of 'dependencies@http://geronimo.=
apache.org/xml/ns/deployment-1.2' here in element environment@http://geronimo.=
apache.org/xml/ns/deployment-1.2

error: cvc-complex-type.2.4b: Element not allowed: pattern@http://geronimo.apac= he.org/xml/ns/naming-1.2 in element resource-ref@http://geronimo.apac= he.org/xml/ns/naming-1.2



What I'm doing wrong = here?

You've got the ordering wrong. Move = your <sys:hidden-classes> element below your = <sys:dependencies>.

Will take a look at your = other questions = later...

--kevan
= --Apple-Mail-15--838906078--