Announcement Announcement Module
Collapse
No announcement yet.
datasource xml is not reading from Jboss deploy folder Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • junugari
    started a topic datasource xml is not reading from Jboss deploy folder

    datasource xml is not reading from Jboss deploy folder

    Hi all I put my xx-ora-ds.xml in C:\JBOSS\jboss-5.1.0.GA-C4v1.2\server\default\deploy folder

    am traying to retrive it from ejb-context.xml the code is

    <property name="jndiName"
    value="xxx-ora-ds"/>
    <property name="resourceRef"
    value="false" />
    </bean>

    I am getting the following exception...

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name xxx-ora-ds defined in class path resource [/ejb-application-context.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: xxx-ora-ds not bound
    Last edited by junugari; May 5th, 2011, 10:44 AM.

  • DaveyS
    replied
    Hi,

    I'm pleased we're getting further!

    Looks like you haven't got the Spring jars on your runtime classpath by the error.

    Leave a comment:


  • junugari
    replied
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Template' defined in class path resource /ejb-application-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/core/namedparam/SqlParameterSource
    Last edited by junugari; May 5th, 2011, 10:51 AM. Reason: afda

    Leave a comment:


  • junugari
    replied
    its working fnie

    thanx Dave its working now

    in or-ds.xml i changed like <use-java-context>false</use-java-context>

    I am getting other exception like..

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Template' defined in class path resource /ejb-application-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/core/namedparam/SqlParameterSource

    Leave a comment:


  • junugari
    replied
    Its not working

    I changed the context.xml like

    <property name="jndiName"
    value="OracleDS"/>
    <property name="resourceRef"
    value="false" />

    and even I tried like

    <property name="jndiName"
    value="java:comp/env/OracleDS"/>
    <property name="resourceRef"
    value="false" />


    But i am still getting exception-----

    Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: OracleDS not bound
    Last edited by junugari; May 5th, 2011, 10:21 AM.

    Leave a comment:


  • DaveyS
    replied
    If you change the context.xml does it all work?

    Leave a comment:


  • junugari
    replied
    I need to retrive it from server location

    xx-ora-ds is xml file name that i put in delpoy directory
    Last edited by junugari; May 5th, 2011, 10:46 AM.

    Leave a comment:


  • DaveyS
    replied
    Yes, I think so.

    Leave a comment:


  • junugari
    replied
    I need to change in the context.xml ???

    Do i need to change in context.xml ???

    like

    <property name="jndiName"
    value="OracleDS"/>
    <property name="resourceRef"
    value="false" />
    </bean>

    Leave a comment:


  • DaveyS
    replied
    Your JNDI name is OracleDS not portailCarburant-ora-ds

    Leave a comment:


  • junugari
    replied
    jndi name is OracleDS

    dear DaveYS my xml loooks like

    <datasources>
    <local-tx-datasource>
    <jndi-name>OracleDS</jndi-name>
    <connection-url>jdbc:oracle:thin:@thin:1521:XE</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    Last edited by junugari; May 5th, 2011, 10:45 AM.

    Leave a comment:


  • DaveyS
    replied
    What JNDI name have you specified in the ..-ds.xml file?

    Leave a comment:

Working...
X