Error when deploying a simple plugin

Hi!

I must be doing something very wrong but here is the case.

I downloaded and installed Nuxeo DM Tomcat distribution and started it. Then I stopped it and added my plugin to the plugins folder and restarted.

I am getting the following error in the server log:

2011-11-01 11:27:21,809 ERROR [org.nuxeo.runtime.osgi.OSGiRuntimeService] Error deploying resource: jar:file:/D:/NuxeoDM/nxserver/plugins/nuxeo-sample-project-5.4.2.jar!/OSGI-INF/deployment-fragment.xml
2011-11-01 11:27:21,809 ERROR [org.nuxeo.runtime.osgi.OSGiComponentLoader] java.lang.ClassCastException: org.nuxeo.runtime.model.impl.ExtensionImpl cannot be cast to org.nuxeo.runtime.model.impl.RegistrationInfoImpl

This is how my deployment-fragment.xml looks like:

<?xml version="1.0"?>
<fragment version="1">
    <require>org.nuxeo.ecm.platform.lang</require>
    <extension target="faces-config#NAVIGATION">
        <navigation-case>
            <from-outcome>rs_search</from-outcome>
            <to-view-id>/search/rs_search.xhtml</to-view-id>
            <redirect />
        </navigation-case>
    </extension>
    <install>
        <unzip from="${bundle.fileName}" to="/">
            <include>nuxeo.war/**</include>
        </unzip>
        <delete path="sampledir.tmp" />
        <mkdir path="sampledir.tmp" />
        <unzip from="${bundle.fileName}" to="sampledir.tmp">
            <include>**/*.properties</include>
        </unzip>
        <append from="sampledir.tmp/OSGI-INF/l10n/messages.properties"
            to="nuxeo.war/WEB-INF/classes/messages.properties" addNewLine="true" />
        <delete path="sampledir.tmp" />
    </install>

</fragment>

At this point I don't have any clues what the problem might be so any help would be highly appreciated.

0 votes

1 answers

2712 views

ANSWER



It was my bad.

I've had deployment-fragment.xml listed in the manifest file under Nuxeo-Component and processing it was failing.

0 votes