Hello,
When I attempt to enable Form Builder to use MySQL, I get the following error message in the orbeon.log file:
2012-05-24 16:23:06,563 ERROR ProcessorService - Exception at oxf:/apps/fr/persistence/mysql/search.xpl (executing XSLT transformation)
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.orbeon.oxf.processor.DatabaseContext.getConnection(DatabaseContext.java:56)
at org.orbeon.oxf.processor.sql.SQLProcessorInterpreterContext.getConnection(SQLProcessorInterpreterContext.java:334)….
Once I get to this point, I’m no longer able to save or publish any new forms that I create.
I’d imagine that this is a configuration error, but I’m not sure what I configured incorrectly.
This is the mysql database configuration that I set up in my Tomcat /conf/server.xml file:
<Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"
initialSize="3" maxActive="10" maxIdle="20" maxWait="30000"
driverClassName="com.mysql.jdbc.Driver"
poolPreparedStatements="true"
username="orbeon"
password="password"
url="jdbc:mysql://localhost:3306/orbeon?useUnicode=true&characterEncoding=UTF8"/>
And this is the configuration in my properties-local.xml file:
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oxf="http://www.orbeon.com/oxf/processors">
<property as="xs:anyURI" name="oxf.fr.persistence.app.uri.*.*.*" value="/fr/service/mysql"/>
<property as="xs:anyURI" name="oxf.fr.persistence.service.mysql.datasource" value="jdbc/mysql"/>
</properties>
I also created the database successfully, and placed the MySQL connector .jar file in the correct location.
Does anyone have ideas on how I can continue to troubleshoot this issue?
Thanks,
Dan
Free forum by Nabble | Edit this page |