Hi all,
I am facing a problem in connecting to the database(Postgresql).I have given the following in my struts-config.xml file :
<data-sources>
<data-source>
<set-property property="description" value="PostgreSQL Data Source"/>
<set-property property="driverClass" value="org.postgresql.Driver" />
<set-property property="username" value="shyam"/>
<set-property property="password" value="shyam"/>
<set-property property="url" value="jdbc
ostgresql://192.168.15.105:5432/MGS"/>
</data-source>
</data-sources>
I am getting the following error :
javax.servlet.ServletException: Servlet.init() for
servlet action threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)
Thanks in advance.