You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Nikodemus Kumber <ni...@hotmail.com> on 2002/09/26 09:36:51 UTC
Informix JDBC Driver and Jetspeed
Hi all,
I have trouble with my Jetspeed(1.4b1)-Informix connection. The problem is
the unknow JDBC driver of Informix. The driver ifxjdbc.jar is in my system
classpath and I copied into WEB-INF/lib of jetspeed under tomcat. Could
anyone tell me, what's wrong with my connection.
I got follow error in the jetspeed.log:
java.lang.InstantiationException: Unknown JDBC driver:
com.informix.jdbc.IfxDriver: Check your configuration file
at org.apache.torque.adapter.DBFactory.create(DBFactory.java:225)
at org.apache.torque.pool.ConnectionPool.getDB(ConnectionPool.java:335)
at
org.apache.torque.pool.ConnectionPool.getNewConnection(ConnectionPool.java:444)
at
org.apache.torque.pool.ConnectionPool.getConnection(ConnectionPool.java:279)
at org.apache.torque.Torque.getConnection(Torque.java:751)
----------------
In the torque.properties I insert follow:
database.adaptor=DBInformix
database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
database.dbase1.driver=com.informix.jdbc.IfxDriver
database.dbase1.url=jdbc:informix-sqli://192.168.17.155:1526/tut62:INFORMIXSERVER=dns
database.dbase1.username=informix
database.dbase1.password=informix
---------------
Also in Turbine.Resources.properties (Is it important or not?)
database.adaptor=DBInformix
database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
---------
In demo-portlets.xreg I integrated the portlet-entry:
<portlet-entry name="Informix" hidden="false" type="ref"
parent="DatabaseBrowserPortlet" application="false">
<meta-info>
<title>Informix</title>
<description>Abfrage DB</description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.browser.DatabaseBrowserPortlet</classname>
<parameter name="template" value="database-browser-portlet"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
<parameter name="customizeTemplate"
value="database-browser-customize" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
<parameter name="action"
value="portlets.browser.DatabaseBrowserAction"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
<parameter name="sql" value="SELECT * FROM relate"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
<parameter name="poolname" value="dbase1" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
<parameter name="windowSize" value="1" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
<media-type ref="html"/>
<url cachedOnURL="true"/>
</portlet-entry>
Anyone knows of this problem with Informix driver? Thank you for your help.
Best regards,
Niko Kumber
_________________________________________________________________
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden:
http://messenger.msn.de
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>