This discussion is archived
2 Replies Latest reply: Aug 15, 2012 2:32 AM by user13323132 RSS

Coherence*Web and Push Replication problem

859938 Newbie
Currently Being Moderated
INC10 push replication example for Coherence*Web includes SiteSessionExpiryFilterFactory and SiteExtractor classes, referenced in web.xml:

<context-param>
<description>Session expiry filter that excludes sessions not managed by this site; required by Coherence*Web push replication</description>
<param-name>coherence-session-expiry-filter-factory-class</param-name>
<param-value>com.oracle.coherence.examples.incubator.pushreplicationpattern.web.SiteSessionExpiryFilterFactory</param-value>
</context-param>

These classes require coherence-web.jar and coherence-web-spi.jar, located inside coherence-web-spi.war. I'm loading this war file as shared library in WebLogic. However, running push replication example, I always get ClassNotFound exception, triggered by SiteSessionExpiryFilterFactory. It seems WebLogic just cannot reference jars inside the coherence-web-spi.war, even it is shared library. So, I extracted these jars and placed them directly on classpath, now it cannot find session-cache-config.xml, that is in a right place for sure. Removing SiteSessionExpiryFilterFactory from web.xml makes Coherence*Web work again, but I'd like push replication to work with it. Any advice or tips how to make this work would be greatly appreciated. Thank you.
  • 1. Re: Coherence*Web and Push Replication problem
    859938 Newbie
    Currently Being Moderated
    It seems Coherence*Web push-replication example currently published with Incubator 10 is broken and maybe incompatible with Coherence 3.7. It would be helpful if this example is removed from the zip until fixed, so users like me don't spend valuable time trying to make things work that cannot work in a first place.

    Thanks,
    Alex
  • 2. Re: Coherence*Web and Push Replication problem
    user13323132 Newbie
    Currently Being Moderated
    Not sure if still revelant, but i've fixed the build by modifying the build.xml:

    Add <mkdir dir="${build.dir}/tmplib" />

    Change the extraction of coherence-web.jar to

    <unzip src="${coherence.home}/lib/coherence-web-spi.war"
    dest="${build.dir}/tmplib">
    <patternset>
    <include name="WEB-INF/lib/coherence-web.jar"/>
    </patternset>
    <mapper type="flatten"/>
    </unzip>


    Cheers,
    Lex

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points