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

  • 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, 09:44 AM.

  • #2
    What JNDI name have you specified in the ..-ds.xml file?

    Comment


    • #3
      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, 09:45 AM.

      Comment


      • #4
        Your JNDI name is OracleDS not portailCarburant-ora-ds

        Comment


        • #5
          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>

          Comment


          • #6
            Yes, I think so.

            Comment


            • #7
              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, 09:46 AM.

              Comment


              • #8
                If you change the context.xml does it all work?

                Comment


                • #9
                  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, 09:21 AM.

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      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, 09:51 AM. Reason: afda

                      Comment


                      • #12
                        Hi,

                        I'm pleased we're getting further!

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

                        Comment

                        Working...
                        X