archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bowsher <>
Subject Re: Archiva deployment on Jetty?
Date Wed, 06 Dec 2006 13:12:55 GMT
Emmanuel Venisse wrote:
> what do you have in your jetty.xml?

My jetty.xml is completely unmodified from what shipped with jetty.
Then, I have jetty-archiva.xml with content as below, and am invoking
jetty as:
  java -jar start.jar etc/jetty.xml etc/jetty-archiva.xml

<Configure id="Server" class="org.mortbay.jetty.Server">

  <Array id="plusConfig" type="java.lang.String">

  <Call class="org.mortbay.jetty.webapp.WebAppContext"
    <Arg><Ref id="contexts"/></Arg>
    <Arg><Ref id="plusConfig"/></Arg>
    <Arg type="boolean">True</Arg>
    <Arg type="boolean">False</Arg>

  <Call class="java.lang.System" name="setProperty">
    <Arg><SystemProperty name=""/></Arg>

  <New class="">
      <New class="org.apache.derby.jdbc.EmbeddedDataSource">
        <Set name="DatabaseName">target/database</Set>
        <Set name="user">sa</Set>
        <Set name="createDatabase">create</Set>

  <New class="">
      <New class="org.apache.derby.jdbc.EmbeddedDataSource">
        <Set name="DatabaseName">target/database</Set>
        <Set name="user">sa</Set>
        <Set name="shutdownDatabase">shutdown</Set>


> Max Bowsher a écrit :
>> Emmanuel Venisse wrote:
>>> you need to put derby jar in jetty lib
>> Done that. It's starting up fine.
>> However, on the first HTTP request, it all falls over (exception below).
>> Therefore, I'm hoping for a known-good config to identify what I'm doing
>> wrong.
[snipped exception]

>>> Max Bowsher a écrit :
>>>> Does anyone have a working configuration of Archiva deployed on Jetty,
>>>> for which they'd be willing to share the Jetty config files?
>>>> (I'm referring to deployment on a standalone Jetty, here, rather than
>>>> testing via maven-jetty-plugin).
>>>> I've tried to get this working myself, but only succeeded by
>>>> configuring
>>>> the JNDI datasource stuff via WEB-INF/jetty-env.xml. When I try to move
>>>> that configuration to the main Jetty config so that I do not have to
>>>> poke around inside the Archiva war, I can't get the JNDI bindings to
>>>> work right.

View raw message