Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Hightide doesnt load the jdbc JNDI

First, if this is not the right mailing list, sorry. Which mailing
list shoud I send question about hightide ?

As hightide is a jetty with muscles, I wanted to give it a try and
configure a datasource. No success at this task.

Caused by: org.hibernate.HibernateException: Could not find datasource
        at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
        at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
...more
Caused by: javax.naming.NameNotFoundException; remaining name 'jdbc/evconf'
        at org.mortbay.naming.NamingContext.lookup(NamingContext.java:634)
        at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)
        at org.mortbay.naming.local.localContextRoot.lookup(localContextRoot.java:164)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)

I create a etc/jdbc-pools.xml and the jdbc pool (just the relevant part)
<Configure id="Server" class="org.mortbay.jetty.Server">

    <New id="ezmod-xa-psql-pool" class="org.mortbay.jetty.plus.naming.Resource">
        <Arg><Ref id="Server"/></Arg>
        <Arg>jdbc/evconf</Arg>
        <Arg>
            <New class="com.atomikos.jdbc.AtomikosDataSourceBean">
                <Set name="minPoolSize">1</Set>
                <Set name="maxPoolSize">4</Set>
                <Set
name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
                <Set name="UniqueResourceName">evconf-psql-xa</Set>
                <Get name="xaProperties">
                    database,address, user, etc.
                </Get>
            </New>
        </Arg>
    </New>
</Configure>

The bin/hightide.sh is configured to load the additional xml files,
see the RUN_CMD parameter

$ ./hightide.sh check
Checking arguments to Hightide:
HIGHTIDE_HOME     =  /opt/hightide-6.1H.22
HIGHTIDE_CONF     =
HIGHTIDE_RUN      =  /tmp
HIGHTIDE_PID      =  /tmp/hightide.pid
HIGHTIDE_PORT     =
HIGHTIDE_LOGS     =
CONFIGS        =  /opt/hightide-6.1H.22/etc/hightide.xml
JAVA_OPTIONS   =  -server -Xss96k -Xmn102m
-XX:+HeapDumpOnOutOfMemoryError -Xmx198m -Xverify:none
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
-Dfile.encoding=UTF-8 -Duser.timezone=America/Sao_Paulo
-Duser.language=pt  -Duser.country=BR
-Dmail.smtp.connectiontimeout=20000 -Dmail.smtp.timeout=20000
-Dmail.imap.connectiontimeout=20000 -Dmail.imap.timeout=20000
-Djetty.home=/opt/hightide-6.1H.22 -Djava.io.tmpdir=/tmp
JAVA           =  /opt/javavm/bin/java
CLASSPATH      =
RUN_CMD        =  /opt/javavm/bin/java -server -Xss96k -Xmn102m
-XX:+HeapDumpOnOutOfMemoryError -Xmx198m -Xverify:none
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
-Dfile.encoding=UTF-8 -Duser.timezone=America/Sao_Paulo
-Duser.language=pt  -Duser.country=BR
-Dmail.smtp.connectiontimeout=20000 -Dmail.smtp.timeout=20000
-Dmail.imap.connectiontimeout=20000 -Dmail.imap.timeout=20000
-Djetty.home=/opt/hightide-6.1H.22 -Djava.io.tmpdir=/tmp -jar
/opt/hightide-6.1H.22/start.jar
/opt/hightide-6.1H.22/etc/jdbc-pools.xml
/opt/hightide-6.1H.22/etc/mail-jndi.xml
/opt/hightide-6.1H.22/etc/hightide.xml


-- 
  Claudio Miranda
  _______________________________________________


Back to the top