Quercus on Google App Engine: Class not loading
Posted
by gAMBOOKa
on Stack Overflow
See other posts from Stack Overflow
or by gAMBOOKa
Published on 2010-03-15T12:27:59Z
Indexed on
2010/03/15
12:29 UTC
Read the original article
Hit count: 401
Fatal Error: no matching class connection
index.php
<?php
import database.connection;
$connection = connection::get()->getPersistenceManager(); // ***ERROR HERE***
?>
connection.java
package database;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;
public final class connection {
private static final PersistenceManagerFactory pmfInstance =
JDOHelper.getPersistenceManagerFactory("transactions-optional");
private connection() {}
public static PersistenceManagerFactory get() {
return pmfInstance;
}
}
Quercus is otherwise configured fine, PHP implementation works smoothly on GAE. But when I try to initialize classes, PHP can't find them. What am I doing wrong?
© Stack Overflow or respective owner