org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter
===

    I am getting this Exception in Open JPA.
    
    <openjpa-1.2.3-SNAPSHOT-r422266:1295280 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "select a from Test a where a.something='D10584707'". Error message: The name "Test" is not a recogniz entity or identifier. Known entity names: []
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:118)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:180)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:150)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:225)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:195)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:188)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$600(JPQLExpressionBuilder.java:69)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1756)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:56)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:156)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:658)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:639)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:605)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:667)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1492)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.java:123)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:243)
    [7/24/12 8:32:06:228 EDT] 00000015 SystemErr     R 	at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:294)
    
    
   

>  Here is My Persistence XML
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
            http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    	version="1.0">
    	<persistence-unit name="MyDataSource">
    		<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
    		<jta-data-source>jdbc/MyDatasource</jta-data-source>
    		<class>com.vo.Test</class>		
    	</persistence-unit>

    
    I have warp my Application as Web App Archive and it is working. But If I warp the Same Application as EJB3 that's where I have Issues.
    
    I am running on WAS 7.0 


