File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Error listenerStart during deployment of grails application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error listenerStart during deployment of grails application" Watch "Error listenerStart during deployment of grails application" New topic
Author

Error listenerStart during deployment of grails application

M. Mohammed Omar
Greenhorn

Joined: Nov 07, 2012
Posts: 3
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16222
    
  21

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


Customer surveys are for companies who didn't pay proper attention to begin with.
M. Mohammed Omar
Greenhorn

Joined: Nov 07, 2012
Posts: 3
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

Joined: Jun 25, 2001
Posts: 16222
    
  21

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

Joined: Nov 07, 2012
Posts: 3
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

Joined: Jun 25, 2001
Posts: 16222
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error listenerStart during deployment of grails application