Hi guys, I am having a problem whereby my Apache James server is not
starting up possibly due to not being able to connect to the Oracle database
we are using. Here is the config.xml extract for database-connections:

<data-source name="maildb"
class="org.apache.james.util.dbcp.JdbcDataSource">
         <driver>oracle.jdbc.driver.OracleDriver</driver>
         <dburl>jdbc:oracle:thin:@OURSERVER:1521:SOCPROD1</dburl>
         <user>MAILUser</user>
         <password>myPassword</password>
         <poolPreparedStatements>true</poolPreparedStatements>
         <max>100</max>
</data-source>

The error I am getting when I attempt to start the server is below:

INFO    2011-03-14 18:25:12.450 [Phoenix ] (): Logger started
WARN    2011-03-14 18:25:12.468 [Phoenix ] (): Phoenix was not started by
the daemon thus it will not be possible to restart the JVM via the
Management interface.
INFO    2011-03-14 18:25:12.537 [Phoenix.] (): Installing Sar located at
file:/usr/local/james/apps/james.sar.
WARN    2011-03-14 18:25:12.624 [Phoenix.] (): The file
conf/sqlResources.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/sqlResources.xml because there is a file in
the way.
WARN    2011-03-14 18:25:12.624 [Phoenix.] (): The file
conf/james-fetchmail.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/james-fetchmail.xml because there is a file
in the way.
WARN    2011-03-14 18:25:12.624 [Phoenix.] (): The file
conf/james-smtphandlerchain.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/james-smtphandlerchain.xml because there is
a file in the way.
WARN    2011-03-14 18:25:12.625 [Phoenix.] (): The file conf/miResources.xml
can not be extracted from the Sar "file:/usr/local/james/apps/james.sar"
into directory /usr/local/james/apps/james/conf/miResources.xml because
there is a file in the way.
WARN    2011-03-14 18:25:12.625 [Phoenix.] (): The file
conf/james-listmanager.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/james-listmanager.xml because there is a
file in the way.
WARN    2011-03-14 18:25:12.625 [Phoenix.] (): The file
conf/james-liststores.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/james-liststores.xml because there is a
file in the way.
WARN    2011-03-14 18:25:12.626 [Phoenix.] (): The file
conf/samples/fetchmail/maxMessageSize.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/maxMessageSize.xml
because there is a file in the way.
WARN    2011-03-14 18:25:12.626 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountManyUsers.xml can not be extracted from the
Sar "file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/oneAccountManyUsers.xml
because there is a file in the way.
WARN    2011-03-14 18:25:12.626 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountManyUsersDynamic.xml can not be extracted
from the Sar "file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/oneAccountManyUsersDynami
c.xml because there is a file in the way.
WARN    2011-03-14 18:25:12.627 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountPerUser.xml can not be extracted from the
Sar "file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/oneAccountPerUser.xml
because there is a file in the way.
WARN    2011-03-14 18:25:12.627 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountPerUserDynamic.xml can not be extracted
from the Sar "file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/oneAccountPerUserDynamic.
xml because there is a file in the way.
WARN    2011-03-14 18:25:12.627 [Phoenix.] (): The file
conf/samples/fetchmail/remoteReceivedHeader.xml can not be extracted from
the Sar "file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/conf/samples/fetchmail/remoteReceivedHeader.xml
because there is a file in the way.
WARN    2011-03-14 18:25:12.628 [Phoenix.] (): The file SAR-INF/config.xml
can not be extracted from the Sar "file:/usr/local/james/apps/james.sar"
into directory /usr/local/james/apps/james/SAR-INF/config.xml because there
is a file in the way.
WARN    2011-03-14 18:25:12.628 [Phoenix.] (): The file SAR-INF/assembly.xml
can not be extracted from the Sar "file:/usr/local/james/apps/james.sar"
into directory /usr/local/james/apps/james/SAR-INF/assembly.xml because
there is a file in the way.
WARN    2011-03-14 18:25:12.628 [Phoenix.] (): The file
SAR-INF/environment.xml can not be extracted from the Sar
"file:/usr/local/james/apps/james.sar" into directory
/usr/local/james/apps/james/SAR-INF/environment.xml because there is a file
in the way. 
INFO    2011-03-14 18:25:12.841 [Phoenix.] (): Verifying that all key-stores
have valid names.
INFO    2011-03-14 18:25:12.841 [Phoenix.] (): Verify that any keystore
names used by grant or permission reference actual keystores
INFO    2011-03-14 18:25:12.841 [Phoenix.] (): Verify that if target is null
then actions is null.
INFO    2011-03-14 18:25:13.035 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are valid.
INFO    2011-03-14 18:25:13.036 [Phoenix.] (): Verifying that the names
specified for Component are valid.
INFO    2011-03-14 18:25:13.036 [Phoenix.] (): Verifying that the names
specified for the Components are unique.
INFO    2011-03-14 18:25:13.037 [Phoenix.] (): Verifying that the dependency
mapping is valid according to ComponentInfos.
INFO    2011-03-14 18:25:13.037 [Phoenix.] (): Verifying that the dependency
mapping for every Component is valid with respect to other components.
INFO    2011-03-14 18:25:13.037 [Phoenix.] (): Verifying that there are no
circular dependencies between Components.
INFO    2011-03-14 18:25:13.039 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are unique.
INFO    2011-03-14 18:25:13.039 [Phoenix.] (): Verifying that the specified
Blocks have valid types.
INFO    2011-03-14 18:25:13.070 [Phoenix.] (): Verifying that the specified
BlockListeners have valid types.
INFO    2011-03-14 18:25:13.115 [Phoenix.] (): 20 Blocks to process for
phase "startup". Order of processing = [dnsserver, database-connections,
mailstore, users-store, localusersrepository, spoolrepository, sockets,
thread-manager, scheduler, James, mailetpackages, matcherpackages,
spoolmanager, connections, remotemanager, pop3server, smtpserver,
nntp-repository, nntpserver, fetchmail].
ERROR   2011-03-14 18:25:13.448 [Phoenix.] (): Component named
"database-connections" failed to pass through the Starting stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource).
ERROR   2011-03-14 18:25:13.448 [Phoenix.] (): There was an error running
phase "startup" for Block named "database-connections". (Reason: Component
named "database-connections" failed to pass through the Starting stage.
(Reason: org.apache.avalon.framework.configuration.ConfigurationException:
Error configurable datasource).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "database-connections" failed to pass through the Starting
stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource).
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(Lifecy
cleHelper.java:354)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:226)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:530)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPha
se(DefaultApplication.java:478)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase
(DefaultApplication.java:409)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.start(De
faultApplication.java:180)
        at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java
:260)
rethrown from
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource
        at
org.apache.james.util.dbcp.JdbcDataSource.configure(JdbcDataSource.java:200)
        at
org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.i
nitialize(DefaultDataSourceSelector.java:147)
        at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:244)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:200)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:530)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPha
se(DefaultApplication.java:478)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase
(DefaultApplication.java:409)
rethrown from
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (OAUTH marshaling failure)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:855)
        at
org.apache.james.util.dbcp.JdbcDataSource$1.createDataSource(JdbcDataSource.
java:113)
        at
org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:59
8)
        at
org.apache.james.util.dbcp.JdbcDataSource.configure(JdbcDataSource.java:157)
        at
org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.i
nitialize(DefaultDataSourceSelector.java:147)
        at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:244)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:200)
rethrown from
java.sql.SQLException: OAUTH marshaling failure
        at
oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:663)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
        at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
        at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:
32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
        at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne
ctionFactory.java:37)
INFO    2011-03-14 18:25:13.453 [Phoenix.] (): exception while
starting:Component named "database-connections" failed to pass through the
Starting stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource).

WARN    2011-03-14 18:25:13.457 [Phoenix.] (): Failed to start application
james.
org.apache.avalon.framework.CascadingException: Failed to start application
james.
        at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKer
nel.java:313)
        at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(Def
aultKernel.java:376)
        at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Default
Deployer.java:357)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:542)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:535)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(De
faultEmbeddor.java:520)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultA
pplications(DefaultEmbeddor.java:509)
rethrown from
org.apache.avalon.phoenix.interfaces.ApplicationException: Component named
"database-connections" failed to pass through the Starting stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource).
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.start(De
faultApplication.java:186)
        at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java
:260)
        at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKer
nel.java:295)
        at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(Def
aultKernel.java:376)
        at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Default
Deployer.java:357)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:542)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:535)
rethrown from
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "database-connections" failed to pass through the Starting
stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource).
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(Lifecy
cleHelper.java:354)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:226)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:530)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPha
se(DefaultApplication.java:478)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase
(DefaultApplication.java:409)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.start(De
faultApplication.java:180)
        at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java
:260)
rethrown from
org.apache.avalon.framework.configuration.ConfigurationException: Error
configurable datasource
        at
org.apache.james.util.dbcp.JdbcDataSource.configure(JdbcDataSource.java:200)
        at
org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.i
nitialize(DefaultDataSourceSelector.java:147)
        at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:244)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:200)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:530)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPha
se(DefaultApplication.java:478)
        at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase
(DefaultApplication.java:409)
rethrown from
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (OAUTH marshaling failure)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:855)
        at
org.apache.james.util.dbcp.JdbcDataSource$1.createDataSource(JdbcDataSource.
java:113)
        at
org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:59
8)
        at
org.apache.james.util.dbcp.JdbcDataSource.configure(JdbcDataSource.java:157)
        at
org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.i
nitialize(DefaultDataSourceSelector.java:147)
        at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:244)
        at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(Lif
ecycleHelper.java:200)
rethrown from
java.sql.SQLException: OAUTH marshaling failure
        at
oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:663)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
        at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
        at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:
32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
        at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne
ctionFactory.java:37)
WARN    2011-03-14 18:25:13.480 [Phoenix.] (): Failed to stop application
james as it is not initialized/started.

------------------------------------

I am able to connect to the database using the exact string I use in the
configuration file using the SQL Squirrel client for example. The
OracleDriver is also present and has the correct permissions. The JAVA_HOME
and LD_LIBRARY_PATH are also seemingly set correctly.

Does anybody know what the problem might be?

Many thanks for any help that you can offer.

Paul Kilgour



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to