2016-09-22 3 views
0

Java 용으로 작성된 big for me 프로젝트에 문제가 있습니다. 내 Java 지식은 평균이므로 도움이 필요합니다. 아래 언급 된 로그는 하나의 xml 파일 gorules-ontology-beans.xml을 만듭니다. rulego \ gorulespolsl \ go-ontology \ target \ classes 및 rulego \ gorulespolsl \ go-ontology \ src \ main \ resources에서 두 개의 파일을 찾았습니다. 나는 그것을 고치려고했지만 그것은별로 도움이되지 못했다. 이 파일의 내용 :일치하는 와일드 카드가 엄격하지만 'neo4j : repositories'요소에 대한 선언을 찾을 수 없습니다

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:neo4j="http://www.springframework.org/schema/data/neo4j" 
    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/spring-context-3.0.xsd 
    http://www.springframework.org/schema/data/neo4j http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd 
    "> 

    <neo4j:repositories base-package="pl.polsl.lstypka.gorules.ontology.repository" /> 

</beans> 

프로그램 로그, 너무 길어서 잘라냅니다.

SEVERE: StandardWrapper.Throwable 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [gorules-ontology-beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 84; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'neo4j:repositories'. 

org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 5; SchemaLocation: schemaLocation value = 'http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/data/neo4j http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd ' must have even number of URI's. 

INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.s[email protected]61df6a84: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.context.annotation.internalScheduledAnnotationProcessor,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,fdrCalculator,ruleSimilarityCalculator,copyRuleSimilarityFilter,fdrFilter,goIncludedFilter,mainFilter,PValueFilter,ruleSimilarityFilter,decisionTableService,ruleCandidateService,ruleService,workerService,ruleSorter,resultMapper,goRulesCoreConfig,abstractController,notificationController,ontologyController,speciesController,taskController,testController,userController,coreOntologyService,coreResultService,coreSpeciesService,coreStatisticsService,coreTaskService,coreUserService,emailService,notificationService,passwordService,sessionTokenService,speciesMappingService,taskValidator,userValidator,cleanupViewWorker,sessionTokenWorker,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,jsonMessageConverter,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,goDatabaseConfig,geneDao,geneDatabaseDao,notificationDao,sessionTokenDao,speciesDao,speciesImportDao,taskDao,userDao,authorityMapper,geneMapper,speciesMapper,userMapper,authorityRepository,geneRepository,notificationRepository,sessionTokenRepository,speciesMappingRepository,speciesRepository,taskRepository,termRepository,userRepository,org.springframework.aop.config.internalAutoProxyCreator,ontologyCoreConfig,isAHandler,relationshipHandler,alternativeIdHandler,anonymousHandler,commentHandler,considerHandler,defHandler,idHandler,nameHandler,namespaceHandler,obsoleteHandler,replacedByHandler,subsetHandler,synonymHandler,xrefHandler,migrator,relationshipMigrator,termMigrator,ontologyMigratorService,ontologyService,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#1,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#2,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#3,resultConfig,goDocumentMapper,recalculateMapper,resultDocumentMapper,ruleDocumentMapper,statisticsMapper,submitMapper,connectorService,resultService,delegatingWebMvcConfiguration,requestMappingHandlerMapping,viewControllerHandlerMapping,beanNameHandlerMapping,resourceHandlerMapping,defaultServletHandlerMapping,requestMappingHandlerAdapter,mvcConversionService,mvcValidator,httpRequestHandlerAdapter,simpleControllerHandlerAdapter,handlerExceptionResolver,proxyTransactionManagementConfiguration,org.springframework.transaction.config.internalTransactionAdvisor,transactionAttributeSource,transactionInterceptor,configureDataSource,configureEntityManagerFactory,exceptionTranslation,goCoreTransactionManager,graphDatabaseService,mappingInfrastructure,isNewStrategyFactory,neo4jTemplate,relationshipTypeRepresentationStrategy,nodeTypeRepresentationStrategy,typeRepresentationStrategyFactory,entityStateHandler,nodeTypeMapper,relationshipTypeMapper,entityFetchHandler,nodeStateTransmitter,neo4jConversionService,graphRelationshipInstantiator,graphEntityInstantiator,neo4jMappingContext,entityAlias,relationshipEntityStateFactory,nodeEntityStateFactory,nodeDelegatingFieldAccessorFactory,relationshipDelegatingFieldAccessorFactory,neo4jTransactionManager,indexCreationMappingEventListener,graphDatabase,configurationCheck,persistenceExceptionTranslator,indexProvider,typeSafetyPolicy]; parent: org.s[email protected]f418199 
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [gorules-ontology-beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 84; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'neo4j:repositories'. 

Caused by: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 84; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'neo4j:repositories'. 

wrz 22, 2016 7:17:25 PM org.apache.catalina.core.StandardContext loadOnStartup 
SEVERE: Servlet [appServlet] in web application [/go-core] threw load() exception 
org.xml.sax.SAXParseException; lineNumber: 11; columnNumb 

답변

0

classpath에 spring-data-neo4j jar가 있습니까? 참조하는 XSD는 해당 jar 파일의 2.X 버전에 포함되어 있습니다 : I 클래스 경로에이를 찾지 못했습니다

+0

소스 코드에 링크 할 수 있습니까? 명명 된 neo4j 스프링 데이터 항아리가 classpath에없는 경우 문제가됩니다. –

+0

오랫동안 대답하지 못해 죄송합니다. 또한 소스 코드를 공유 할 수 없습니다. 내가 뭘 찾아야하는지 말해 줄 수 있니? 아니면 다른 방법으로 이걸 도와 줄 수 있니? – 193michalll

0

. rulesum \ gorulespolsl \ go-ontology와 rulego \ gorulespolsl \ go-ontology \ target \ classes \ META-INF \ mave n \ pl.polsl.lstypka \ g-ontology의 pom.xml에서만이 사실을 발견했습니다. 포함 내역

<?xml version="1.0" encoding="UTF-8"?> 
<classpath> 
    <classpathentry kind="src" output="target/classes" path="src/main/java"> 
     <attributes> 
      <attribute name="optional" value="true"/> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 
    <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> 
     <attributes> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 
    <classpathentry kind="src" output="target/test-classes" path="src/test/java"> 
     <attributes> 
      <attribute name="optional" value="true"/> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"> 
     <attributes> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 
    <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> 
     <attributes> 
      <attribute name="maven.pomderived" value="true"/> 
      <attribute name="org.eclipse.jst.component.nondependency" value=""/> 
     </attributes> 
    </classpathentry> 
    <classpathentry kind="output" path="target/classes"/> 
</classpath> 
관련 문제