use spring @service on jboss will make jboss AS 6.0 exception
its like jboss identifies @service is repository need to connect DB,
so give it a dyummy JNDI can fix it.
- <?xml version="1.0"?>
- <!DOCTYPE jboss-web PUBLIC
- "-//JBoss//DTD Web Application 5.0//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
- <jboss-web>
- <resource-env-ref>
- <resource-env-ref-name>applicationParameterManager</resource-env-ref-name>
- <resource-env-ref-type>class<resource-env-ref-type>
- <jndi-name>dummyJNDIName</jndi-name>
- </resource-env-ref>
- </jboss-web>
沒有留言:
張貼留言