james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scherer Pierre" <scherer_pie...@ibelgique.com>
Subject Log in a DataBase
Date Sun, 09 Mar 2003 12:05:43 GMT

Hi again,

I know that the next question shoud be asked to the avalon mailing-list, but
I have a problem in suscribing to this list :

------------------------------------------------
Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<avalon-dev-subscribe@jakarta.apache.org>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <scherer_pierre@ibelgique.com>
...
-----------------------------------------------

In fact, I must use the JDBCTargetFactory in the environement config-file. I
think that everything is ok. But I don't arrive to connect at my MySQL
DataBase. So, for me, the connect path must be bad.
-----------------------------------------------

<factories>
      <factory type="file"
class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
      <factory type="jdbc"
class="org.apache.avalon.excalibur.logger.factory.JDBCTargetFactory"/>
</factories>

....
<file id="fetchpop-target">
        <filename>${app.home}/logs/fetchpop.log</filename>
        <format>%{time:dd/MM/yy HH:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
        <append>true</append>
      </file>

      <file id="tracking-target">
       <filename>${app.home}/logs/tracking.log</filename>
        <format>%{time:dd/MM/yy HH:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
        <append>true</append>
      </file>
      <jdbc id="tracking-target">
         <datasource>db://maildb/</datasource> //............ I THINK THAT
IS THE PROBLEM
         <normalized>true</normalized>
         <table name="LOG">
             <category>track</category>
        </table>
      </jdbc>
-------------------------------------------------
!!!!!!!!!!!!!The problem!!!!!!!!!!!!
-------------------------------------------------

There was an uncaught exception:
---------------------------------------------------------
--- Message ---
Cannot lookup data source
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Cannot lookup data
source
        at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Default
Deployer.java:379)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:498)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
aultEmbeddor.java:491)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(De
faultEmbeddor.java:476)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultA
pplications(DefaultEmbeddor.j
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(Defaul
tEmbeddor.java:224)
        at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:158)
        at
org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:144)
        at
org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:102)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:94)
        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:46)
Caused by: org.apache.avalon.framework.configuration.ConfigurationException:
Cannot lookup data source
        at
org.apache.avalon.excalibur.logger.factory.JDBCTargetFactory.createTarget(JD
BCTargetFactory.java:129)
        at
org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(Default
LogTargetManager.java:122)
        at
org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetManager(Lo
gKitLoggerManager.java:291)
        at
org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLogge
rManager.java:228)
        at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.
java:192)
        at
org.apache.avalon.phoenix.components.logger.DefaultLogManager.createHierarch
y(DefaultLogManager.java:69)
        at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Default
Deployer.java:349)
        ... 14 more
Caused by: javax.naming.NoInitialContextException: Need to specify class
name in environment or system property, or
arameter, or in an application resource file:  java.naming.factory.initial
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
org.apache.avalon.excalibur.logger.factory.JDBCTargetFactory.createTarget(JD
BCTargetFactory.java:125)
        ... 20 more
-----------------------------------------------------------------------

Also there isn't anyone documentation about JDBCTargetFactory. So I don't
understand the sense of tags (it's also perhaps the problem).
I'm sure that database run because I log mail in.

I know that it is not in your skills and so, if someone can send this mail
at the avalon mailing-list for me, It should be very cool ;-)

Thanks a lot and, one more time, I'm really sorry!!!

-Pierre


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message