You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Emilio Recio <er...@technisys.net> on 2009/08/15 00:43:18 UTC

SEVERE Error listenerStart

Hi, i have installed Debian and Tomcat 5.5.26. I need  install Archiva 
1.2.1 as Web App.
> I config Tomcat like official site 
> http://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+on+Tomcat
> The dif in my archiva.xml are:
>
> <Context path="/archiva"
>         docBase="${catalina.base}/archiva-webapp-1.0-SNAPSHOT.war">
>
>  <Resource name="jdbc/users"
>            auth="Container"
>            type="javax.sql.DataSource"
>            username="sa"
>            password=""
>            driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>            
> url="jdbc:derby:/usr/share/tomcat5.5/database/users;create=true" />
>
>  <Resource name="jdbc/archiva"
>            auth="Container"
>            type="javax.sql.DataSource"
>            username="sa"
>            password=""
>            driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>            
> url="jdbc:derby:/usr/share/tomcat5.5/database/archiva;create=true" />
>
>  <Resource name="mail/Session"
>            auth="Container"
>            type="javax.mail.Session"
>            mail.smtp.host="localhost"/>
> </Context>
>
> When i restart Tomcat it oks, but in catalina.out has the next errors:
>    SEVERE Error listenerStart
>    SEVERE: Context [/archiva] startup failed due to previous errors
> and the http://localhost:8180/archiva has the next 404 error:
> _    The requested resource () is not available._
>
>
> I need your help! :-)
> Thanks! 


Re: SEVERE Error listenerStart

Posted by Deng Ching <oc...@apache.org>.
Hi Emilio,

That looks like a Spring problem. My hunch is that it's related to
http://jira.codehaus.org/browse/MRM-1085.
Try adding this in the unpacked Archiva webapp WEB-INF/classes/log4j.xml to
output the real error in the tomcat console:

<appender name="console" class="org.apache.log4j.ConsoleAppender">
  <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
  </layout>
</appender>

<logger name="org.springframework.web">
  <level value="debug"/>
  <appender-ref ref="console"/>
</logger>

You might also need to switch the log priority value to "debug".

Thanks,
Deng

On Sat, Aug 15, 2009 at 6:43 AM, Emilio Recio <er...@technisys.net> wrote:

> Hi, i have installed Debian and Tomcat 5.5.26. I need  install Archiva
> 1.2.1 as Web App.
>
>> I config Tomcat like official site
>> http://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+on+Tomcat
>> The dif in my archiva.xml are:
>>
>> <Context path="/archiva"
>>        docBase="${catalina.base}/archiva-webapp-1.0-SNAPSHOT.war">
>>
>>  <Resource name="jdbc/users"
>>           auth="Container"
>>           type="javax.sql.DataSource"
>>           username="sa"
>>           password=""
>>           driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>>           url="jdbc:derby:/usr/share/tomcat5.5/database/users;create=true"
>> />
>>
>>  <Resource name="jdbc/archiva"
>>           auth="Container"
>>           type="javax.sql.DataSource"
>>           username="sa"
>>           password=""
>>           driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>>
>> url="jdbc:derby:/usr/share/tomcat5.5/database/archiva;create=true" />
>>
>>  <Resource name="mail/Session"
>>           auth="Container"
>>           type="javax.mail.Session"
>>           mail.smtp.host="localhost"/>
>> </Context>
>>
>> When i restart Tomcat it oks, but in catalina.out has the next errors:
>>   SEVERE Error listenerStart
>>   SEVERE: Context [/archiva] startup failed due to previous errors
>> and the http://localhost:8180/archiva has the next 404 error:
>> _    The requested resource () is not available._
>>
>>
>> I need your help! :-)
>> Thanks!
>>
>
>