Announcement Announcement Module
Collapse
No announcement yet.
Integration .xsd not being propperly refferenced Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integration .xsd not being propperly refferenced

    Hey,

    The problem I'm having is in properly referencing the spring-integration.xsd which I can find and download, but for some reason cannot reference from within a services-context.xml file when attempting to create a publisher-subscriber-channel.


    The *-context.xml is as follows:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:intg="http://www.springframework.org/schema/integration"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    	xmlns:context="http://www.springframework.org/schema/context"
    	xmlns:task="http://www.springframework.org/schema/task"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd
        http://www.springframework.org/schema/integration 
        http://www.springframework.org/schema/integration/spring-integration.xsd">
        
        
        <context:spring-configured/>  
        <context:component-scan base-package="com.company.services"/> 
        <intg:publish-subscribe-channel id="channel"/>	
    	<bean id="serviceExecutor" class="com.company.services.executor.ServiceExecutorImpl" scope="singleton">
    		<property name="taskExecutor" ref="task-executor" />
    		<property name="taskScheduler" ref="task-scheduler" />
    	</bean>
    	<bean id="task-scheduler" class="org.springframework.scheduling.commonj.TimerManagerTaskScheduler" scope="singleton">
    		<property name="timerManagerName" value="java:comp/env/tm/AvondaleTimerManager"/>
    		<property name="resourceRef" value="true"/>
    	</bean>
    	<bean id="task-executor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor" scope="singleton">
    		<property name="workManagerName" value="java:comp/env/wm/companyWorkManager" />
    		<property name="resourceRef" value="true"/>
    	</bean>	
    	<bean id="jobServiceDAO" class="com.company.services.jobs.JobServiceDAO" scope="singleton"/>
    	<bean id="jobCoordinator" class="com.company.services.jobs.JobCoordinator" scope="singleton"/>
    	<bean id="jobServiceMessageProvider" class="com.oracle.pgbu.services.jobs.JobServiceMessageProvider" scope="singleton"/>
    	<bean id="appContextProvider" class="com.company.services.coordinator.AppContextProvider" scope="singleton"/>
    </beans>
    The stack trace being generated is:
    Code:
    <Jan 17, 2012 11:54:01 AM EST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from ServletContext resource [/WEB-INF/services-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int:publish-subscribe-channel'..
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from ServletContext resource [/WEB-INF/services-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int:publish-subscribe-channel'.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    	at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    	at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    	at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    	at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    	at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int:publish-subscribe-channel'.
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    
    ...
    ...
    ...



    A workaround I'm using for now is downloading the .xsd and referencing it from within the *-context.xml like so:

    Code:
        http://www.springframework.org/schema/integration 
        file:///home/mcapozzi/Downloads/spring-integration.xsd">

  • #2
    Line 14 in XML document from ServletContext resource [/WEB-INF/services-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'intublish-subscribe-channel'.
    Your exception complains about the int namespace where as you are using intg in your config. Doesn't look like this exception is for config you have posted.
    Also you should not be getting it if you have all the required jars in the classpath.

    Comment

    Working...
    X