-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To configure database connection I can not find file: org.objectledge.database.XaPoolDataSource.xml #1
Comments
Oh, that documentation is really outdated. You should set up the connection using org.objectledge.btm.BitronixTransactionManager.xml instead. |
Yup these docs are completely outdated. Here you have example configuration of postgres database. In case of postgres I guess you also need patched driver from our Nexus or maybe it's not necessary any longer, is it @rkrzewski ? <?xml version="1.0"?>
<config xmlns="http://objectledge.org/btm/1.0">
<tm>
<serverId>node0</serverId>
<disableJmx>true</disableJmx>
<journal>
<disk>
<!-- use absolute paths on production system -->
<logPart1Filename>btm/btm1.tlog</logPart1Filename>
<logPart2Filename>btm/btm2.tlog</logPart2Filename>
</disk>
</journal>
<timer>
<defaultTransactionTimeout>300</defaultTransactionTimeout>
</timer>
</tm>
<tracing>
<disabled />
<statementLog>org.objectledge.database.SQL</statementLog>
</tracing>
<jdbc>
<connectionPool uniqueName="pg">
<className>org.postgresql.xa.PGXADataSource</className>
<maxPoolSize>20</maxPoolSize>
<allowLocalTransactions>true</allowLocalTransactions>
<enableJdbc4ConnectionTest>true</enableJdbc4ConnectionTest>
<preparedStatementCacheSize>20</preparedStatementCacheSize>
<driverProperties>
<property name="serverName">localhost</property>
<property name="databaseName">21_v3</property>
<property name="user">cyklotron</property>
<property name="password">cyklotron</property>
<property name="prepareThreshold">100</property>
</driverProperties>
</connectionPool>
</jdbc>
</config> |
@maghaei that stack trace has no use. Check for log messages, scroll up and see what caused LedgeServletContextListener to fail. |
I only get these info in the log: |
You should keep an eye on WORKDIR/logs/ledge.log and also on Tomcat log files: CATALINA_BASE/logs/catalina.out and CATALINA_BASE/logs/localhost_DATE.log My blind guess is that you database schema is not initialized yet. You need to use cyklotron-installer for that. |
the log that I sent you is tomcat log. I take a look at ledge.log/search.log/sql.log files but they were all empty. I already initialized the data base schema, I can even see the database "lcms" in pgAdmin III. |
I think your guess is kind of correct, I can not run this command: postgre does not accept the password shown in file: org.objectledge.btm.BitronixTransactionManager.xml |
that error means thas org.objectledge.web.LedgeServletContextListener failed to initialize the container. You should see the line below followed by a stack trace in TOMCAT_HOME/logs/localhost.DATE.log
|
creating a database schema is a necessary first step, but then you must use cyklotron-installer to create necessary tables and load initial data. |
How would you create database schema and load initial data? with "mvn init" in cyklotron-installer (I tried it, no init is defined in pom.xml of installer)? |
you need to run mvn install in the installer module to generate the installer jar. then you should edit etc/installer.properties as necessary for your setup and finally launch the installer with |
If you had trouble connecting to the (empty) postgres database from the web application, chances are it won't work from installer too. |
I ran mvn install on installer and changed etc/installer.properties to give the right location of jdbc jar file. However, by running java -jar target/installer-2.25.0.jar I get this error: C:\Users\nainy\NainyBitsDropbox\Dropbox\Automated mobile application navigation |
The error message says that Postgres driver class could not be loaded. Apparently the location of the driver jar you entered is not correct. Did you use an absolute path? |
Yes, I am using absolute path. However, even if I change the etc/installer.properties (to modify the location of jdbc Jar file), the command " java -jar target/installer-2.25.0.jar " uses the original information of etc/installer.properties. |
oh, right sorry. It uses the file packaged inside the jar by default. In fact, it would be better if you made a copy of etc/installer.properties elsewhere and then pass the path of that modified file as an argument to installer invocation. You can also pass the path of the workdir to be prepared as the second argument.
installer will generate a bunch of configuration files in the workdir for you. You will need to pass the workdir location to the web application afterwards. You can do that by creating tomcat contax descriptor like the folowing
|
Thanks, now the installer takes the modified information of installer.properties but still gives me the same error when I run: |
I would really appreciate if you could update the installation document. I promise to complete it If I was able to install the application on my machine :) |
I am trying to setup Cyklotron on my computer but I do not know how to configure database connection, since I can not find file org.objectledge.database.XaPoolDataSource.xml mentioned in "configure database connection" section of installation guide (http://objectledge.org/confluence/display/CYKLO/Installation+overview)
The text was updated successfully, but these errors were encountered: