Mantis - Quercus
Viewing Issue Advanced Details
2650 minor always 05-06-08 16:39 09-18-11 15:21
ferg  
 
normal  
new 3.1.6  
open  
none    
none  
0002650: Quercus: open-x fails
(rep by Carl Whalley)

Sorry to raise a bug report without a resin stack trace, the fact is the resin log thinks all is well but it clearly isn't.
Just after you enter the db details on the openx setup page you get "PEAR Error MDB2 Error: Array " and then "failed to create database_action audit table" and "failed to create upgrade_action audit table". When you inspect the db, it seems most of it has been created.

Exact steps to reproduce:

- Download openx 2.4.5 (http://www.openx.org/download) [^]
- Add a suitable web app host to resin. Unzip openx to its root.
- Use this WEB-INF\resin-web.xml :

<web-app xmlns="http://caucho.com/ns/resin"> [^]
<database jndi-name='jdbc/example'>
  <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
    <url>jdbc:mysql://localhost/example</url> [^]
    <user>root</user>
    <password></password>
  </driver>
</database>

<servlet-mapping url-pattern="*.php"
               servlet-class="com.caucho.quercus.servlet.QuercusServlet">
  <init>
    <compile>true</compile>
    <database>java:comp/env/jdbc/example</database>
    <script-encoding>iso-8859-1</script-encoding>
  </init>
</servlet-mapping>

</web-app>

- Create an empty database "example"
- Go through the setup at http://localhost:8080/example [^] and observe after entering the db details the mentioned error messages
- Notice most of the database has been created and resin didn't show any errors.

It seems most of the error messages come from PEAR.


Notes
(0005431)
krystian   
08-06-11 05:29   
I can't see any update from Caucho, but Carl - were you able to go anywhere further with OpenX + Resin?

Cheers,
Krystian
(0005437)
krystian   
08-08-11 17:38   
FYI: see issue 4704
(0005512)
krystian   
09-18-11 15:21   
An update for you Carl, if you're still planning to use OpenX on Resin - as for now there seems to be a blocking bug in Resin/Quercus with array cookies - see http://bugs.caucho.com/view.php?id=4767 [^] - which are used by some OpenX's delivery scripts and because of that some conditions like in https://svn.openx.org/openx/trunk/lib/max/Delivery/tracker.php [^] might not be properly evaluated.

Cheers,
Krystian