2012-03-28 3 views
0

첫 번째 스프링 애플리케이션을 개발하여 tomcat 7에 배포하려고합니다. 프로젝트 구성을 만들었고 모든 것이 잘 작동했습니다. 나는 onetoone 필드 가져 오기 모드를 LAZY로 바꿨을 때 문제가 발생했습니다.tomcat 7 Spring 3.1 Eclipselink 2.3

나는 다음

구성되어 문제가로드 시간 직물으로 생각하십시오 META-INF/context.xml에에 다음

<bean id="scholarDataSource" class="org.apache.tomcat.jdbc.pool.DataSource" destroy-method="close"> 
    ... 
</bean> 

<bean id="scholarEmf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> 
    <property name="dataSource" ref="scholarDataSource" /> 
    <property name="packagesToScan" value="edu.najah.scholar.spring.entities" /> 
    <property name="jpaVendorAdapter"> 
     <bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter"> 
      <property name="showSql" value="true"/> 
      <property name="generateDdl" value="true"/> 
      <property name="databasePlatform" value="org.eclipse.persistence.platform.database.oracle.Oracle11Platform"/> 
     </bean> 
    </property> 
    <property name="jpaDialect"> 
     <bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect" /> 
    </property>   
    <property name="loadTimeWeaver"> 
     <bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" /> 
    </property> 
</bean> 


<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager"> 
    <property name="entityManagerFactory" ref="scholarEmf" /> 
</bean> 

<tx:annotation-driven transaction-manager="txManager"/> 
<context:component-scan base-package="edu.najah.scholar.spring" /> 
<context:load-time-weaver /> 

내가 추가

<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/> 

다음 오류는 첫 번째 요청에서 제기되었습니다.

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.IntegrityException 
Descriptor Exceptions: 
--------------------------------------------------------- 

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The method [_persistence_set_translation_vh] or [_persistence_get_translation_vh] is not defined in the object [edu.najah.scholar.entities.Node]. 
Internal Exception: java.lang.NoSuchMethodException: edu.najah.scholar.entities.Node._persistence_get_translation_vh() 
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[translation] 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Node --> [DatabaseTable(SCHOLAR.NODE)]) 

Exception [EclipseLink-218] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A NullPointerException would have occurred accessing a non-existent weaved _vh_ method [_persistence_get_translation_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it. 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-41] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A non-read-only mapping must be defined for the sequence number field. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.JournalIssue --> [DatabaseTable(SCHOLAR.NODE), DatabaseTable(SCHOLAR.JOURNAL_ISSUE)]) 

Runtime Exceptions: 
--------------------------------------------------------- 

java.lang.NullPointerException 

    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 


root cause 

javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.IntegrityException 
Descriptor Exceptions: 
--------------------------------------------------------- 

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The method [_persistence_set_translation_vh] or [_persistence_get_translation_vh] is not defined in the object [edu.najah.scholar.entities.Node]. 
Internal Exception: java.lang.NoSuchMethodException: edu.najah.scholar.entities.Node._persistence_get_translation_vh() 
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[translation] 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Node --> [DatabaseTable(SCHOLAR.NODE)]) 

Exception [EclipseLink-218] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A NullPointerException would have occurred accessing a non-existent weaved _vh_ method [_persistence_get_translation_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it. 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-41] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A non-read-only mapping must be defined for the sequence number field. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.JournalIssue --> [DatabaseTable(SCHOLAR.NODE), DatabaseTable(SCHOLAR.JOURNAL_ISSUE)]) 

Runtime Exceptions: 
--------------------------------------------------------- 

java.lang.NullPointerException 

    org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:501) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:290) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:268) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.invokeProxyMethod(AbstractEntityManagerFactoryBean.java:376) 
    org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:517) 
    $Proxy33.createEntityManager(Unknown Source) 
    org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:234) 
    $Proxy43.find(Unknown Source) 
    edu.najah.scholar.spring.dao.NodeDaoImpl.find(NodeDaoImpl.java:43) 
    edu.najah.scholar.spring.bo.NodeBoImpl.find(NodeBoImpl.java:38) 
    edu.najah.scholar.spring.controller.JounralController.test(JounralController.java:91) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) 
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900) 
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 


root cause 

Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.IntegrityException 
Descriptor Exceptions: 
--------------------------------------------------------- 

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The method [_persistence_set_translation_vh] or [_persistence_get_translation_vh] is not defined in the object [edu.najah.scholar.entities.Node]. 
Internal Exception: java.lang.NoSuchMethodException: edu.najah.scholar.entities.Node._persistence_get_translation_vh() 
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[translation] 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Node --> [DatabaseTable(SCHOLAR.NODE)]) 

Exception [EclipseLink-218] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A NullPointerException would have occurred accessing a non-existent weaved _vh_ method [_persistence_get_translation_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it. 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-93] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: The table [NODE] is not present in this descriptor. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Journal --> [DatabaseTable(SCHOLAR.JOURANL)]) 

Exception [EclipseLink-41] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: A non-read-only mapping must be defined for the sequence number field. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.JournalIssue --> [DatabaseTable(SCHOLAR.NODE), DatabaseTable(SCHOLAR.JOURNAL_ISSUE)]) 

Runtime Exceptions: 
--------------------------------------------------------- 

java.lang.NullPointerException 

    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:535) 
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:476) 
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:435) 
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:673) 
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:631) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208) 
    org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:472) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:290) 
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:268) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.invokeProxyMethod(AbstractEntityManagerFactoryBean.java:376) 
    org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:517) 
    $Proxy33.createEntityManager(Unknown Source) 
    org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:234) 
    $Proxy43.find(Unknown Source) 
    edu.najah.scholar.spring.dao.NodeDaoImpl.find(NodeDaoImpl.java:43) 
    edu.najah.scholar.spring.bo.NodeBoImpl.find(NodeBoImpl.java:38) 
    edu.najah.scholar.spring.controller.JounralController.test(JounralController.java:91) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) 
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900) 
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.22 logs. 
다음과 같은 오류가 제기 된 다음 IN 요청

:

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is Exception [EclipseLink-44] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: Missing class indicator field from database row [ArrayRecord(
    SCHOLAR.NODE.ID => 407 
    SCHOLAR.NODE.LANG => ar 
    SCHOLAR.NODE.OWNER => null 
    SCHOLAR.NODE.TRANSLATION_ID => 408)]. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Node --> [DatabaseTable(SCHOLAR.NODE)]) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 


root cause 

Exception [EclipseLink-44] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DescriptorException 
Exception Description: Missing class indicator field from database row [ArrayRecord(
    SCHOLAR.NODE.ID => 407 
    SCHOLAR.NODE.LANG => ar 
    SCHOLAR.NODE.OWNER => null 
    SCHOLAR.NODE.TRANSLATION_ID => 408)]. 
Descriptor: RelationalDescriptor(edu.najah.scholar.entities.Node --> [DatabaseTable(SCHOLAR.NODE)]) 
    org.eclipse.persistence.exceptions.DescriptorException.missingClassIndicatorField(DescriptorException.java:945) 
    org.eclipse.persistence.descriptors.InheritancePolicy.classFromRow(InheritancePolicy.java:341) 
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:597) 
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:568) 
    org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:733) 
    org.eclipse.persistence.queries.ReadObjectQuery.registerResultInUnitOfWork(ReadObjectQuery.java:774) 
    org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:455) 
    org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1097) 
    org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:829) 
    org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1056) 
    org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:416) 
    org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1144) 
    org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2863) 
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1501) 
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1483) 
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1443) 
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.executeQuery(EntityManagerImpl.java:820) 
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:760) 
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:653) 
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) 
    $Proxy43.find(Unknown Source) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240) 
    $Proxy43.find(Unknown Source) 
    edu.najah.scholar.spring.dao.NodeDaoImpl.find(NodeDaoImpl.java:43) 
    edu.najah.scholar.spring.bo.NodeBoImpl.find(NodeBoImpl.java:38) 
    edu.najah.scholar.spring.controller.JounralController.test(JounralController.java:91) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:601) 
    org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) 
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900) 
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.22 logs. 

참고 : 나는 다형성 쿼리 (부모 엔티티 클래스를 쿼리)

사람이 내 응용 프로그램을 구성 할 올바른 방향으로 날 지점 수를 사용하고 엔터티 클래스를 오른쪽으로 짜는 것?

참고 : glassfish (EJB sessionfacade 사용)에서 동일한 쿼리를 테스트했는데 정상적으로 작동합니다.

답변

0

실제로 버그는 톰캣 버전에서 발생했습니다. 톰캣 7.0.22를 사용하고 있었고 버그가 7.0.26 버전으로 수정되어 톰캣 서버를 업그레이드하면 문제가 해결되었습니다.

0

오류는 제직이 발생하지 않았 음을 의미합니다. 따라서 스프링을 올바르게 설정하지 않았습니다.

로깅을 최상으로 설정하면 EclipseLink에서 위빙을 수행하는지 확인할 수 있습니다.

설정 파일에 이상이 없는데 TomcatInstrumentableClassLoader를 추가하지 않으면 어떻게됩니까?

스프링 컨텍스트에 액세스하기 전에 클래스에 액세스 할 수 있습니다. 이렇게하면 Spring은 이미 클래스를로드 할 준비가되기 전에 클래스가로드됩니다.

역동적 인 위빙이 작동하지 않는 경우 정적 위빙을 사용하거나 위빙을 비활성화 할 수 있습니다.

+0

하지만 어떻게 이것을 인식 할 수 있습니까? 구성을 변경해야하는 이유는 무엇입니까? –

+0

참조, http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving – James