[LoggingHandler] org.springframework.integration.MessageHandlingException: java.lang.IllegalArgumentException: Unknown entity

Error:

01:52:45,877 INFO  [STDOUT] 01:52:45,877 INFO  [NamingHelper]
 JNDI InitialContext properties:{}
01:52:46,849 INFO  [STDOUT] 01:52:46,849 ERROR [LoggingHandler]
 org.springframework.integration.MessageHandlingException: 
 java.lang.IllegalArgumentException: Unknown entity: 
 com.model.ExampleEntity
    at org.springframework.integration.handler.
    MethodInvokingMessageProcessor.processMessage(
    MethodInvokingMessageProcessor.java:76)
    at org.springframework.integration.filter.
    AbstractMessageProcessingSelector.accept(
    AbstractMessageProcessingSelector.java:59)

Solution:

persistence.xml

<persistence-unit name="db-scheme"  
transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <non-jta-data-source>java:dataSurce</non-jta-data-source>
    <jar-file>lib/app-model-1.0.jar</jar-file>
    <class>com.model.ExampleEntity</class>
    <properties>
        <property name="hibernate.transaction.factory_class"  
value="org.hibernate.transaction.JDBCTransactionFactory"/>
        <property name="hibernate.current_session_context_class"  
value="thread"/>
        <property name="hibernate.dialect"  
value="org.hibernate.dialect.Oracle10gDialect"/>
        <property name="hibernate.show_sql" value="true"/>
        <property name="hibernate.archive.autodetection"  
value="class, hbm"/>
        <property name="hibernate.hbm2ddl.auto" value="none"/>
    </properties>
</persistence-unit>

I expect your comment on this topic and other questions relating to this topic...