geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kakunin" <>
Subject Migrting application into Geronimo
Date Mon, 28 Apr 2008 13:50:53 GMT
Hello! I'm currently working with migrating quite big war-only application ( 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 ( has a little bit more

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 ( and trying to do
like it is described there  - added resource into web.xml:


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

<web-app xmlns=""





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

error: cvc-complex-type.2.4a: Expected elements
instead of 'dependencies@'
here in element

error: cvc-complex-type.2.4b: Element not allowed:
pattern@ in element

What I'm doing wrong here?

Another question - MyFaces and JSF-RI?
Is it possible to configure somehow my application to use JSF-RI instead of
MyFaces. Problem is - we have some  custom renderers, which implementation
is inherited from com.sun renderers, so - when I'm deploying application
into Geronimo - I'm getting class-not-found error.

Last Question - Implementing Web-Services with using CXF & Spring.
Some services in our application wrapped with CXF-based Web-Services
Implementation. For doing it we have defined in spring context:

    <!-- Load CXF modules from cxf.jar -->
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

    <!-- Enable message logging using the CXF logging feature -->

    <!-- Service endpoint -->
    <!-- See regarding CXF + Spring
AOP -->
    <jaxws:endpoint id="bpmWsService"
               <ref bean="wss4jInConfiguration"/>


But I'm getting followed error during starting application:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'bpmWsService': Unsatisfied dependency expressed
through constructor argument with index 2 of type [java.lang.String]:
Ambiguous constructor argument types - did you specify the correct bean
references as constructor arguments?

I tried both - put org.apache.cxf and org.springframework into
hidden-classes via:

But still getting this error.

I tried to hide classes via:


but it is not work at all (I'm starting to get errors related to org.jaxen).

I tried to switch my application to cxf-2.0.2 (since for me it is not so
important which version is used and I like the idea to remove some
dependencies from our war-file to make is smaller) - same effect.
I tried to remove cxf from my war-file libs (so, to use only cxf from
geronimo) - I've got error ClassNotFound on servlet definition:


I looked into tutorials - but found only tutorial about writting
web-services for Geronimo with using Axis2 - not CXF...

So, really do not know what is a correct way to define CXF-based
web-services in Geronimo. Does anybody has any suggestions.

I will be happy to any help. For us it is really important to add support
for Geronimo - in this case our application with run on all most-important
Open-Source J2EE servers.

With best regards,
Alexey Kakunin

View raw message