I'm sorry .I don't think that the article you gave me can help me .
Because I just use Hibernate MBean . the problem that i met displayed that it occured in Hibernate MBean .MayBe I use it incorrectly .
For example i can't use JTATransaction in Spring . I don't know .
please help me .
You missed the point - wrong forum!
Ok, a little help.
This probably happens after you re-deploy your -ds.xml?
If so, check out 'JCA/JBoss
DataSource and Legacy Configuration' or ' Persistence,JBoss/CMP, Hibernate, Database
Persisting your Application's Data' forum.
It should be there - I know there is this issue is certain JEMS stuff, but where exactly ...
I'm sorry to disturb you .
It often happened after the application running some times . i don't why .
I will go to rigth form , Thank you very much .
Did you check your problem doesn't come from a classloader issue?
As you apprently need to specify some classpath inside the META-INF directory (I guess it is in the section 2.5.1 of the JBOSS AS documentation)
Thanks very much . I will check it .
you need the lines in bold
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:/aaaaaaaaaaa" /> <property name="cache" value="false" /> <property name="proxyInterface" value="javax.sql.DataSource" /> </bean>