This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, I am trying to configure Datasource for my applicaiton.I am using struts. My Jboss version is 3.2.5. I am using postgres. I place my postgres jdbc driver in server/defafult/deploy/lib. My Struts-config.xml file is as below. <?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<datasources> <local-tx-datasource> <jndi-name>PostgresDS</jndi-name> <connection-url>jdbc ostgresql://192.168.1.25:5432/sudhakar</connection-url> <driver-class>org.postgresql.Driver</driver-class> <user-name>postgres</user-name> <password>postgres</password> <!-- sql to call when connection is created <new-connection-sql>some arbitrary sql</new-connection-sql> -->
<!-- sql to call on an existing pooled connection when it is obtained from pool <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> -->
Originally posted by DVVN Sudhakara Rao: Hi Nicolas I already have struts.jar in my classpath. C:\jboss-3.2.5\server\default\deploy\Sample.war\WEB-INF\lib
Since you have put the struts jar inside of web application it is available only to sample.war web application and not to JBOSS that deploys the ds file. I suggest you to move the jar file to $JBOSS_HOME/server/default/lib dir.