Announcement Announcement Module
Collapse
No announcement yet.
exposeAccessContext when using JndiObjectFactory for DS-lookup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • exposeAccessContext when using JndiObjectFactory for DS-lookup

    Hello,

    I am trying to deploy an app on a WebLogic-server 10.3. When Spring tries to lookup my datasource I get this error:

    Code:
    Error creating bean with name 'applicationDatasource': Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'exposeAccessContext' of bean class [org.springframework.jndi.JndiObjectFactoryBean]: No property 'exposeAccessContext' found
    My spring-config is this:
    Code:
    <bean id="DatabaseService" class="package.DatabaseService"
        p:dataSource-ref="applicationDatasource"/>
      
      <jee:jndi-lookup id="applicationDatasource" expose-access-context="false" jndi-name="myJndiName" resource-ref="true" expected-type="javax.sql.DataSource" />
    I tried different options regarding expose-access-context but it doesn`t seem to help, since it says this property is not found.

    What am I doing wrong?

    Edited:
    It seems that Weblogic 10.3 comes with Spring-2.5 where there is no such attribute called excposeAccessContext, but still I donīt see how this could happen. I have added the spring-jars to my app, but the server is using its own spring-implementation.
    Any clues?
    MJ
    Last edited by mortensjenssen; May 4th, 2010, 07:21 AM.
Working...
X