You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Enrico Ballarin Dolfin <en...@sed.ethz.ch> on 2008/09/03 10:52:00 UTC

Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Hi,

in my development environment (openSUSE 10.3) I could develop a  
cocoon 2.2 application using maven, run it using Jetty and also  
deploy the generated WAR file on the local tomcat 5.5 and everything  
worked well.

Trying to deploy the same WAR on a tomcat 5.5 in production, the WAR  
file get expanded automatically in the webapps directory, but when I  
restart tomcat to let recognize the new application, I'm getting  
following error:


Logfile: catalina_2008-09-02.log

Sep 2, 2008 5:17:49 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive getReceivers-1.0.0.war
log4j:WARN No appenders could be found for logger  
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/getReceivers-1.0.0] startup failed due to previous  
errors


- I'm missing something in the production tomcat 5.5 environment ?
   I thougth that everythng needed should be contained in the WAR  
package...

- Do I need to install maven also in the production environment, to  
be able to run there the WAR application on tomcat ?


I have also tried to increase the debug level to get more information  
about the "listenerStart" problem in the log file, but without success.


Thanks in advance for your help!

Enrico


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Posted by Enrico Ballarin Dolfin <en...@sed.ethz.ch>.
Ciao llamar,

I'm using java 1.6.0_02 in production and 1.6.0_07 in the development  
environment.

Cheers,
Enrico

Am 03.09.2008 um 11:35 schrieb llamar burgess:

> Ciao Enrico,
>
> could it happen to be, that you compiled the application (locally)  
> with a newer version of java then the one on the production machine?
>
> Just a wild guess..
>
> best regards
> llamar
>
>
>
> Enrico Ballarin Dolfin wrote:
>> Hi,
>>
>> in my development environment (openSUSE 10.3) I could develop a  
>> cocoon 2.2 application using maven, run it using Jetty and also  
>> deploy the generated WAR file on the local tomcat 5.5 and  
>> everything worked well.
>>
>> Trying to deploy the same WAR on a tomcat 5.5 in production, the  
>> WAR file get expanded automatically in the webapps directory, but  
>> when I restart tomcat to let recognize the new application, I'm  
>> getting following error:
>>
>>
>> Logfile: catalina_2008-09-02.log
>>
>> Sep 2, 2008 5:17:49 PM org.apache.catalina.startup.HostConfig  
>> deployWAR
>> INFO: Deploying web application archive getReceivers-1.0.0.war
>> log4j:WARN No appenders could be found for logger  
>> (org.apache.commons.digester.Digester.sax).
>> log4j:WARN Please initialize the log4j system properly.
>> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/getReceivers-1.0.0] startup failed due to  
>> previous errors
>>
>>
>> - I'm missing something in the production tomcat 5.5 environment ?
>> I thougth that everythng needed should be contained in the WAR  
>> package...
>>
>> - Do I need to install maven also in the production environment,  
>> to be able to run there the WAR application on tomcat ?
>>
>>
>> I have also tried to increase the debug level to get more  
>> information about the "listenerStart" problem in the log file, but  
>> without success.
>>
>>
>> Thanks in advance for your help!
>>
>> Enrico
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

---
Enrico Ballarin Dolfin

Schweizerischer Erdbebendienst (SED)-Institut für Geophysik
     (Swiss Seismological Service-Institute of Geophysics)
HPP P1.2
ETH Hönggerberg
CH-8093 Zürich
Phone: +41 44 633 6625
Mail: enrico.ballarin-dolfin@sed.ethz.ch


Re: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Posted by llamar burgess <ll...@kraftfeld.org>.
Ciao Enrico,

could it happen to be, that you compiled the application (locally) with 
a newer version of java then the one on the production machine?

Just a wild guess..

best regards
llamar



Enrico Ballarin Dolfin wrote:
> Hi,
>
> in my development environment (openSUSE 10.3) I could develop a cocoon 
> 2.2 application using maven, run it using Jetty and also deploy the 
> generated WAR file on the local tomcat 5.5 and everything worked well.
>
> Trying to deploy the same WAR on a tomcat 5.5 in production, the WAR 
> file get expanded automatically in the webapps directory, but when I 
> restart tomcat to let recognize the new application, I'm getting 
> following error:
>
>
> Logfile: catalina_2008-09-02.log
>
> Sep 2, 2008 5:17:49 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive getReceivers-1.0.0.war
> log4j:WARN No appenders could be found for logger 
> (org.apache.commons.digester.Digester.sax).
> log4j:WARN Please initialize the log4j system properly.
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/getReceivers-1.0.0] startup failed due to previous 
> errors
>
>
> - I'm missing something in the production tomcat 5.5 environment ?
> I thougth that everythng needed should be contained in the WAR package...
>
> - Do I need to install maven also in the production environment, to be 
> able to run there the WAR application on tomcat ?
>
>
> I have also tried to increase the debug level to get more information 
> about the "listenerStart" problem in the log file, but without success.
>
>
> Thanks in advance for your help!
>
> Enrico
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Posted by Enrico Ballarin Dolfin <en...@sed.ethz.ch>.
Hi Francesco,

thanks for your suggestion: in my $TOMCAT_HOME/common/endorsed  
directory there were already 2 links to the xercesImpl.jar and xml- 
apis.jar;
I have added in the endorsed directory a symbolic link to the already  
existing /usr/share/java/xalan2.jar .

After restarting tomcat, unfortunately I'm getting the same error :-(.

Cheers,
Enrico

Am 03.09.2008 um 10:58 schrieb Francesco Chicchiriccò:

> On 03/sep/08, at 10:52, Enrico Ballarin Dolfin wrote:
>
>> Hi,
>>
>> in my development environment (openSUSE 10.3) I could develop a  
>> cocoon 2.2 application using maven, run it using Jetty and also  
>> deploy the generated WAR file on the local tomcat 5.5 and  
>> everything worked well.
>>
>> Trying to deploy the same WAR on a tomcat 5.5 in production, the  
>> WAR file get expanded automatically in the webapps directory, but  
>> when I restart tomcat to let recognize the new application, I'm  
>> getting following error:
>>
>>
>> Logfile: catalina_2008-09-02.log
>>
>> Sep 2, 2008 5:17:49 PM org.apache.catalina.startup.HostConfig  
>> deployWAR
>> INFO: Deploying web application archive getReceivers-1.0.0.war
>> log4j:WARN No appenders could be found for logger  
>> (org.apache.commons.digester.Digester.sax).
>> log4j:WARN Please initialize the log4j system properly.
>> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/getReceivers-1.0.0] startup failed due to  
>> previous errors
>>
>>
>> - I'm missing something in the production tomcat 5.5 environment ?
>>  I thougth that everythng needed should be contained in the WAR  
>> package...
>>
>> - Do I need to install maven also in the production environment,  
>> to be able to run there the WAR application on tomcat ?
>>
>>
>> I have also tried to increase the debug level to get more  
>> information about the "listenerStart" problem in the log file, but  
>> without success.
>
>
> Hi Enrico,
> never test with Cocoon 2.2 so far, but at least until Cocoon 2.1.11  
> you must copy a few jars under $TOMCAT_HOME/common/endorsed from  
> your cocoon distribution (or maven cache for 2.2 I guess):
> • xercesImpl-<version>.jar
> • xml-apis.jar
> • xalan-<version>.jar
> Please let me know if this helps.
> Cheers.
> --
> ###########################################################
>
> "Computer Science is no more about computers than astronomy
> is about telescopes." (E. W. Dijkstra)
>
> Dott. Francesco Chicchiriccò
> Amministratore unico
> Tel +393290573276
>
> ePOSSE S.r.l.
> Sedi operative
>  * Via dei Marrucini, 11 - 65127 Pescara
>  * V.le P.L. Nervi, 188 G 7 - 04100 Latina
>
> Tel / FAX +390854503336
> http://www.eposse.it
>
> ###########################################################
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Posted by Francesco Chicchiriccò <fr...@eposse.it>.
On 03/sep/08, at 10:52, Enrico Ballarin Dolfin wrote:

> Hi,
>
> in my development environment (openSUSE 10.3) I could develop a  
> cocoon 2.2 application using maven, run it using Jetty and also  
> deploy the generated WAR file on the local tomcat 5.5 and everything  
> worked well.
>
> Trying to deploy the same WAR on a tomcat 5.5 in production, the WAR  
> file get expanded automatically in the webapps directory, but when I  
> restart tomcat to let recognize the new application, I'm getting  
> following error:
>
>
> Logfile: catalina_2008-09-02.log
>
> Sep 2, 2008 5:17:49 PM org.apache.catalina.startup.HostConfig  
> deployWAR
> INFO: Deploying web application archive getReceivers-1.0.0.war
> log4j:WARN No appenders could be found for logger  
> (org.apache.commons.digester.Digester.sax).
> log4j:WARN Please initialize the log4j system properly.
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/getReceivers-1.0.0] startup failed due to previous  
> errors
>
>
> - I'm missing something in the production tomcat 5.5 environment ?
>  I thougth that everythng needed should be contained in the WAR  
> package...
>
> - Do I need to install maven also in the production environment, to  
> be able to run there the WAR application on tomcat ?
>
>
> I have also tried to increase the debug level to get more  
> information about the "listenerStart" problem in the log file, but  
> without success.


Hi Enrico,
never test with Cocoon 2.2 so far, but at least until Cocoon 2.1.11  
you must copy a few jars under $TOMCAT_HOME/common/endorsed from your  
cocoon distribution (or maven cache for 2.2 I guess):
• xercesImpl-<version>.jar
• xml-apis.jar
• xalan-<version>.jar
Please let me know if this helps.
Cheers.
--
###########################################################

"Computer Science is no more about computers than astronomy
is about telescopes." (E. W. Dijkstra)

Dott. Francesco Chicchiriccò
Amministratore unico
Tel +393290573276

ePOSSE S.r.l.
Sedi operative
  * Via dei Marrucini, 11 - 65127 Pescara
  * V.le P.L. Nervi, 188 G 7 - 04100 Latina

Tel / FAX +390854503336
http://www.eposse.it

###########################################################


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

Posted by Kjetil Kjernsmo <Kj...@computas.com>.
On Wednesday 03 September 2008 10:52:00 Enrico Ballarin Dolfin wrote:
> log4j:WARN Please initialize the log4j system properly.
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/getReceivers-1.0.0] startup failed due to previous  
> errors

Actually, I had exactly the same messages for some time. After much agony, 
gnashing of teeth and tearing of hair, the problem just vanished. We never 
understood neither why it happened, nor why it disappeared. And thus, I 
cannot tell for sure it is the same problem, but...

> - I'm missing something in the production tomcat 5.5 environment ?
>    I thougth that everythng needed should be contained in the WAR  
> package...

Yup.

> - Do I need to install maven also in the production environment, to  
> be able to run there the WAR application on tomcat ?

No, I'm pretty sure that's not the case.

>
> I have also tried to increase the debug level to get more information  
> about the "listenerStart" problem in the log file, but without success.

Yeah, the warn there is about log4j, which was the source of most of the 
problems. A logging infrastructure should never require configuration to get 
basic debugging information, that's the whole idea of logging, but this one 
does. You have to initialise it properly, but I never found any really good 
documentation how you would do it.

One of the things that we did was to move the config around, responding to 
conflicting advices from different parties, but now it half-works, and I've 
placed it in 
src/main/webapp/WEB-INF/log4j.xml

I cannot tell for sure, but I think log4j was responsible for the problems we 
had. It still throws an exception so that I have to restart tomcat every time 
I deploy, but I can live with that. 

I guess this isn't encouraging nor very helpful, but since you haven't any 
other answers that did the trick, that's my wild guess, have a log4j config 
that you move around in likely and unlikely locations.

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: kjetil.kjernsmo@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | 
Fax:+47 6783 1001


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org