Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with the Coherence Example

e.geeskenMar 6 2015 — edited Mar 13 2015

Hi,

I am trying to build the Coherence example (JSP) for Coherence 3.7.1. My Environment is Oracle Enterprise Linux 6.6 (64bit), JDK 1.6.0_43 (64bit) and WebLogic Server 10.3.6 (64bit).

I have downloaded the coherence-java-3.7.1.0b27797 form Oracle and extracted the coherence.jar file and put it into the WEB-INF/lib folder.

When I now try the example (JSP) I get the errors "Failed to apply the element override: /tangosol-coherence-override.xml". I know there is a similar forum thread () about that problem but i tried all the suggestions with no luck (and found no way to add this question to the thread).

I am using eclipse and even in the editor eclipse complains that the <cluster-config tag is not known.

I unpacked the coherence.jar and found that a lot of configuration files in the coherence.jar are stored without permissions and i can not read them. Is this normal? Can that causes the problem?

The error message I get is:

Error 500--Internal Server Error

(Wrapped) java.lang.reflect.InvocationTargetException

  at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)

  at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)

  at com.tangosol.net.CacheFactory.getCluster(CacheFactory.java:401)

  at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:421)

  at jsp_servlet.__testcache._jspService(__testcache.java:82)

  at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

  at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)

  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:327)

  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)

  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732)

  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)

  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

  at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Caused by: java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at com.tangosol.net.CacheFactory.getCluster(CacheFactory.java:397)

  ... 18 more

Caused by: (Wrapped: Failed to apply the element override: /tangosol-coherence-override-dev.xml) (Wrapped: Failed to apply the element override: /tangosol-coherence-override.xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'cluster-config'. One of '{"http://xmlns.oracle.com/coherence/coherence-operational-config":cluster-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":logging-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":configurable-cache-factory-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":cache-factory-builder-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":management-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":security-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":license-config}' is expected.

  at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)

  at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:83)

  at com.tangosol.coherence.component.application.console.Coherence.loadConfiguration(Coherence.CDB:37)

  at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:13)

  at com.tangosol.coherence.component.application.console.Coherence.ensureRunningLogger(Coherence.CDB:15)

  at com.tangosol.coherence.component.application.console.Coherence.getSafeCluster(Coherence.CDB:18)

  ... 23 more

Caused by: (Wrapped: Failed to apply the element override: /tangosol-coherence-override.xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'cluster-config'. One of '{"http://xmlns.oracle.com/coherence/coherence-operational-config":cluster-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":logging-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":configurable-cache-factory-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":cache-factory-builder-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":management-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":security-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":license-config}' is expected.

  at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)

  at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:83)

  at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:64)

  ... 27 more

Caused by: (Wrapped) java.io.IOException: Exception occurred during schema validation:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'cluster-config'. One of '{"http://xmlns.oracle.com/coherence/coherence-operational-config":cluster-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":logging-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":configurable-cache-factory-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":cache-factory-builder-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":management-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":security-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":license-config}' is expected.

  at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:122)

  at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:157)

  at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:41)

  ... 28 more

Caused by: java.io.IOException: Exception occurred during schema validation:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'cluster-config'. One of '{"http://xmlns.oracle.com/coherence/coherence-operational-config":cluster-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":logging-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":configurable-cache-factory-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":cache-factory-builder-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":management-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":security-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":license-config}' is expected.

  at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:212)

  at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:93)

  at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:162)

  at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:115)

  at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:118)

  ... 30 more

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cluster-config'. One of '{"http://xmlns.oracle.com/coherence/coherence-operational-config":cluster-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":logging-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":configurable-cache-factory-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":cache-factory-builder-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":management-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":security-config, "http://xmlns.oracle.com/coherence/coherence-operational-config":license-config}' is expected.

  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)

  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)

  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)

  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)

  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)

  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)

  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1812)

  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:711)

  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

  at com.sun.org.apache.xerces.internal.jaxp.validation.StreamValidatorHelper.validate(StreamValidatorHelper.java:147)

  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:111)

  at javax.xml.validation.Validator.validate(Validator.java:127)

  at com.tangosol.run.xml.SaxParser.validateXsd(SaxParser.java:236)

  at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:206)

  ... 34 more

The tangosol-coherence-override.xml looks like that:

<?xml version="1.0" encoding="UTF-8"?>

<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"

xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">

    <!--coherence-version:3.7.1-->

   <cluster-config xmlns="">

      <member-identity>

         <cluster-name>sso</cluster-name>

      </member-identity>

 

      <multicast-listener>

         <address>224.3.6.0</address>

         <port>3333</port>

         <time-to-live>0</time-to-live>

      </multicast-listener>

   </cluster-config>

 

   <configurable-cache-factory-config xmlns="">

      <init-params>

         <init-param>

            <param-type>java.lang.String</param-type>

            <param-value system-property="tangosol.coherence.cacheconfig">

               sso-config.xml</param-value>

        </init-param>

      </init-params>

   </configurable-cache-factory-config>

</coherence>

Any idea what i missed to define?

Regards

Edmund

This post has been answered by Steve-Oracle on Mar 13 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2015
Added on Mar 6 2015
1 comment
1,543 views