• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Error listenerStart during deployment of grails application

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I created a grails application by "grails create-app test", added logging.properties to WEB-INF/classes, created a WAR file by "grails prod war" and dropped the WAR file into /var/lib/tomcat6/webapps of my web server. As a consequence, I got the following messages in the catalina log file



Has anyone an idea what I have to do to fix this? I read that one has to add logging.properties to WEB-INF/classes, but apparently this did not help.
 
Saloon Keeper
Posts: 23268
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your localhost log file. Often, when the primary log doesn't have any information, it will.
 
M. Mohammed Omar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Check your localhost log file. Often, when the primary log doesn't have any information, it will.



For 6:05 the localhost log file does not contain any entries. But 4 minutes later I seem to have retried to deploy, the catalina log file for that time contains



the localhost log file contains



Is anyone able to draw any conclusions about what the problem might be (to me this seems perfectly fine)?
 
Tim Holloway
Saloon Keeper
Posts: 23268
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Odd. Usually there's more messages than that.

Check your webapp and see if it's writing any logfiles and what they say.

If that doesn't help, edit your JVM loggin file to enable debug-level logging on the org.apache.catalina resources. That way at least you'll be able to see what listeners are being processed.
 
M. Mohammed Omar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I now found out that the error only occurs if another grails-based web application is running in tomcat. If only one of the two applications is running, everything is fine. Has anyone an idea what the problem could be in this case (I am still trying to get more logging)?

 
Tim Holloway
Saloon Keeper
Posts: 23268
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's possible that you have a classpath issue because you placed a non-sharable jar in the Tomcat lib directory.

My experience with this kind of error is that other people have it too, so Google and see what you get.
 
We can walk to school together. And we can both read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic