[jboss-user] [Beginners Corner] - Deploying XWiki using JBOSS / Oracle.

rgordon do-not-reply at jboss.com
Wed Jul 4 13:04:09 EDT 2007


I am having a problem getting xwiki 1.1 to deploy using jboss and as I am sure it a config problem on my side I thought it OK to post here for some advance.

I have setup an Oracle Datasource and deployed it using the following (it seems to deploy fine)


  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>jdbc/XWikiDS</jndi-name>
  |     <connection-url>jdbc:oracle:thin:@serv1:1521:oradb</connection-url>
  |     <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
  |     <user-name>xwiki_test</user-name>
  |     <password>password</password>
  |     <min-pool-size>5</min-pool-size>
  |     <max-pool-size>20</max-pool-size>
  |     <idle-timeout-minutes>5</idle-timeout-minutes>
  |   </local-tx-datasource>
  | </datasources>
  | 

I then altered the the web.xml in the war file to the following :-

    
  | <resource-ref>
  |    <description>DB Connection</description>
  |    <res-ref-name>jdbc/XWikiDS</res-ref-name>
  |    <res-type>javax.sql.DataSource</res-type>
  |     <res-auth>Container</res-auth>
  |  </resource-ref>

and finally added a jboss-web.xml file to the war

<?xml version="1.0" encoding="ISO-8859-1"?>
  | <!DOCTYPE jboss-web PUBLIC  "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
  | <jboss-web>
  |   <resource-ref>
  | 	<res-ref-name>jdbc/XWikiDS</res-ref-name>
  | 	<jndi-name>java:jdbc/XWikiDS</jndi-name>
  |    </resource-ref>
  | </jboss-web>

However when I deploy the app as an exploded war I get expection error due to the following problem.

  status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/XWikiDS has no valid JNDI binding. Check the jboss-web/resource-ref.)

Any help in what I am doing wrong in the configuration would be appreciated.

Thanks,

Richard


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060547#4060547

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060547



More information about the jboss-user mailing list