cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco & Geronimo

mgiovagnoli
Champ in-the-making
Champ in-the-making
I have problem installing Alfresco Community Edition 3.2r with Geronimo 2.2 using Tomcat 6.0 (Java Version 1.6.0_18)

Deploying alfresco.war running a command:

# java -jar /opt/geronimo-tomcat6-javaee5-2.2/bin/deployer.jar –user system –password manager deploy alfresco.war

got this error:

2010-03-29 21:05:28,555 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy alfresco.war: Unable to resolve resource reference 'jdbc/dataSource' (Could not auto-map to resource.  Try adding a resource-ref mapping to your Geronimo deployment plan.
Search conducted in current module and dependencies:
[ALL: org.apache.geronimo.configs/tomcat6/2.2/car]
[ALL: org.apache.geronimo.configs/myfaces//car]
[ALL: org.apache.geronimo.configs/concurrent/2.2/car]
[ALL: org.apache.geronimo.configs/openjpa//car]
[ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car]
[CLASSES: org.apache.geronimo.configs/openejb//car]
[ALL: org.apache.geronimo.configs/axis//car]
[ALL: org.apache.geronimo.configs/axis2//car]
)

        at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45)
        at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:149)
        at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125)
        at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168)
        at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)

I would like install Alfresco with Geronimo 2.2 because I need to deploy Liferay and Intalio on the same platform.

Regards
2 REPLIES 2

mgiovagnoli
Champ in-the-making
Champ in-the-making
Ok guys,

the right way to deploy Alfresco Community Edition 3.2r into Geronimo 2.2 is to write an appropriate geronimo-web.xml file … 😉
So you have to unpack the alfresco,war and place geronimo-web.xml under WEB-INF.
The file content is:

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
<environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
<moduleId>
<groupId>alfresco</groupId>
<artifactId>alfresco</artifactId>
<version>3.2.r2</version>
<type>war</type>
</moduleId>
<dependencies>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>3.1.12</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>console.dbpool</groupId>
                <artifactId>alfresco</artifactId>
            </dependency>
</dependencies>
</environment>

<context-root>/alfresco</context-root>
<!– define a reference name to the db pool–>
<resource-ref>
                <ref-name>jdbc/dataSource</ref-name>
                <resource-link>alfresco</resource-link>
</resource-ref>
</web-app>

You have to create a new database pool named "alfresco" , of course.
Repack the alfresco.war with the new content and you don't have THIS problem anymore ……

Now I got another ERROR (sigh!)

2010-04-01 16:11:46,077 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy alfresco.war: WSDL must be specified for @WebServiceProvider service org.apache.cxf.js.rhino.DOMPayloadProvider

        at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45)
        at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:149)
        at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125)
        at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168)
        at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)

What does it mean "WSDL must be specified for @WebServiceProvider service org.apache.cxf.js.rhino.DOMPayloadProvider" ????

Can anyone help me please ?

Thanks in advance.

alex4u2nv
Champ in-the-making
Champ in-the-making
Hi,

were you able to get further than this?
😃