This content has been marked as final.
Show 1 reply
-
1. Re: javax.naming.NameNotFoundException: logreaderDS not bound
spolti Aug 17, 2012 4:40 PM (in response to spolti)Hello guys, problem solved.
the cause is that the web profile have jndi tree simpler than the other profiles (all, default, etc...)
So we need reconfigure the persistence.xml:
<bean id="dataSourceJboss" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true"> <property name="jndiName" value="logreaderDS" /> </bean> TO:
<bean id="dataSourceJboss" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true"> <property name="jndiName" value="java:logreaderDS" /> </bean>
Now works fine on any profile.