Hi,
I'm a new user of LCF.
First of all I'm really sorry for my poor english !
I try to build and deploy LCF with ubuntu but I'm experimenting a few
problem.
I follow the build &
deploy<http://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Build+and+Deploy+Lucene+Connectors+Framework>page
on the wiki.
The first step : building the framework and connectors was really easy to
follow : I use ant without problem and build the project without special
connector (only jdbc driver that I put in
modules/connectors/jdbc/jdbc-drivers)
Second step : build the apache.so plugin : no problem.
Here you can find a copy of the properties.ini :
org.apache.lcf.synchdirectory=/home/username/lcf/synchDir
org.apache.lcf.logconfigfile=/home/username/lcf/logging.ini
and here is the logging.ini
# Set the default log level and parameters
# This gets inherited by all child loggers
log4j.rootLogger=WARN, MAIN
log4j.additivity.org.apache=false
log4j.appender.MAIN=org.apache.log4j.RollingFileAppender
log4j.appender.MAIN.File=/home/username/lcf/dataarea/lcf.log
log4j.appender.MAIN.MaxFileSize=50MB
log4j.appender.MAIN.MaxBackupIndex=10
log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout
log4j.appender.MAIN.layout.ConversionPattern=[%d]%-5p %m%n
Well, here is the problem : When I try the command :
org.apache.lcf.core.DBCreate postgres PassWord
org.apache.lcf.core.interfaces.LCFException: Error getting connection
at org.apache.lcf.core.database.ConnectionFactory.getConnection(Unknown
Source)
at org.apache.lcf.core.database.Database.executeUncachedQuery(Unknown
Source)
at
org.apache.lcf.core.database.Database$QueryCacheExecutor.create(Unknown
Source)
at
org.apache.lcf.core.cachemanager.CacheManager.findObjectsAndExecute(Unknown
Source)
at org.apache.lcf.core.database.Database.executeQuery(Unknown Source)
at
org.apache.lcf.core.database.DBInterfacePostgreSQL.performQuery(Unknown
Source)
at org.apache.lcf.core.database.DBInterfacePostgreSQL.lookupUser(Unknown
Source)
at org.apache.lcf.core.system.LCF.createSystemDatabase(Unknown Source)
at org.apache.lcf.core.DBCreate.main(Unknown Source)
Caused by: org.postgresql.util.PSQLException: FATAL: authentification par
mot de passe ?chou?e pour l'utilisateur << postgres >>
at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:382)
at org.postgresql.Driver.connect(Driver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at
com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.java:468)
at
com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
at
com.bitmechanic.sql.ConnectionPoolManager.connect(ConnectionPoolManager.java:442)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:222)
at
org.apache.lcf.core.database.ConnectionFactory.getConnectionWithRetries(Unknown
Source)
... 9 more
I guess it could come from my class path so here is my class path... if you
see something wrong :
/home/username/Search/LCF/modules/dist/processes/commons-codec.jar
/home/username/Search/LCF/modules/dist/processes/commons-collections.jar
/home/username/Search/LCF/modules/dist/processes/commons-el.jar
/home/username/Search/LCF/modules/dist/processes/commons-fileupload.jar
/home/username/Search/LCF/modules/dist/processes/commons-httpclient-lcf.jar
/home/username/Search/LCF/modules/dist/processes/commons-io.jar
/home/username/Search/LCF/modules/dist/processes/commons-logging.jar
/home/username/Search/LCF/modules/dist/processes/jdbcpool-0.99.jar
/home/username/Search/LCF/modules/dist/processes/lcf-agents.jar
/home/username/Search/LCF/modules/dist/processes/lcf-core.jar
/home/username/Search/LCF/modules/dist/processes/lcf-filesystem-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-gts-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-jdbc-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-nulloutput-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-pull-agent.jar
/home/username/Search/LCF/modules/dist/processes/lcf-rss-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-solr-connector.jar
/home/username/Search/LCF/modules/dist/processes/lcf-web-connector.jar
/home/username/Search/LCF/modules/dist/processes/log4j-1.2.jar
/home/username/Search/LCF/modules/dist/processes/servlet-api.jar
/home/username/Search/LCF/modules/dist/processes/xalan2.jar
/home/username/Search/LCF/modules/dist/processes/xercesImpl-lcf.jar
/home/username/Search/LCF/modules/dist/processes/xml-apis.jar
/home/username/Search/LCF/modules/connectors/jdbc/lib/postgresql.jar
I think it come from this line in the CLASSPATH :
/home/username/Search/LCF/modules/connectors/jdbc/lib/postgresql.jar
But I can't figure out where to find the proper postgresql.jar
Can anyone help me?
Damien MABIN
mobile phone : +33 647 152 638
e-mail : [email protected]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/M d+ s++:-->- a-- C++(+++) UL++(+++) P+++@ L+@ E+(++) W+ N? o? K w O? M-
V?
PS PE Y PGP-
t 5? X+ R+ tv-- b++ DI? D G
e++@ h r(+) y+--*
------END GEEK CODE BLOCK------