Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:

Go Back   Caucho Forums > Quercus

Thread Tools Display Modes
Old 11-10-2013, 12:46 AM
nick.davidson nick.davidson is offline
Junior Member
Join Date: Nov 2013
Posts: 1
Default Installing Drupal on Quercus

I am trying to install drupal 7 on a JBoss Application Server. I have created a MYSQL database and set up a JNDI resource inside of JBoss (downloaded the MYSQL connector jar file and placed it in the modules director). When I install Drupal, what do I need to place in the fields for database and connection url for the drupal installation?

Thank you!
Reply With Quote
Old 01-04-2014, 08:24 AM
nam nam is offline
Join Date: Aug 2009
Posts: 337

You'll need to use the JNDI name for the URL.

Example: java:comp/env/...

On a related note, you will need to patch a Drupal7 file to get it to install correctly (or your Drupal will look unstylized).

function drupal_parse_info_format($data) {
$info = array();
$constants = get_defined_constants();

if (preg_match_all('
@^\s* # Start at the beginning of a line, ignoring leading whitespace
[^=;\[\]]| # Key names cannot contain equal signs, semi-colons or square brackets,
\[[^\[\]]*\] # unless they are balanced and not nested
\s*=\s* # Key/value pairs are separated by equal signs (ignoring white-space)
("(?:[^"]|(?<=\\\\)&quot*&quot| # Double-quoted string, which may contain slash-escaped quotes/slashes
(\'(?:[^\']|(?<=\\\\)\')*\')| # Single-quoted string, which may contain slash-escaped quotes/slashes
([^\r\n]*?) # Non-quoted string
)\s*$ # Stop at the next end of a line, ignoring trailing whitespace
@msx', $data, $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) {
// Fetch the key and value string.
$i = 0;
foreach (array('key', 'value1', 'value2', 'value3') as $var) {
$$var = isset($match[++$i]) ? $match[$i] : '';
$value = stripslashes(substr($value1, 1, -1)) . stripslashes(substr($value2, 1, -1)) . $value3;

// Parse array syntax.
$keys = preg_split('/\]?\[/', rtrim($key, ']'));
$last = array_pop($keys);
$parent = &$info;

// Create nested arrays.
foreach ($keys as $key) {
if ($key == '') {
$key = count($parent);
if (!isset($parent[$key]) || !is_array($parent[$key])) {
$parent[$key] = array();
$parent = &$parent[$key];

// Handle PHP constants.
if (isset($constants[$value])) {
$value = $constants[$value];

// Insert actual value.
if ($last == '') {
$last = count($parent);
$parent[$last] = $value;

return drupal_quercus_copy_array($info);

function drupal_quercus_copy_array($array)
$copy = array();

if (! is_array($array)) {
return $array;

foreach ($array as $key => $value) {
$copy[$key] = drupal_quercus_copy_array($value);

return $copy;
Reply With Quote

drupal, jboss, jndi, mysql, quercus

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:27 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.