У меня есть приложение grails, разработанное в версии 1.3.7. Оно работает очень хорошо, когда я запускаю команду grails "grails run-app".
Я создал файл war с помощью команды grails "grails war" и развернул его в версии tomcat 5.5, работающей на моей локальной машине. Приложение не отображается на URL ..
Когда я проверял файлы журналов, было несколько операторов INFO, за которыми следовала ошибка «Ошибка прослушивания прослушивания». Ниже приведен текст из файла журнала.
</p>
<pre><code>Sep 20, 2011 1:57:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Sep 20, 2011 1:57:44 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:57:44 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:57:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 484 ms
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.33
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 20, 2011 1:57:45 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive sample-0.2.war
Sep 20, 2011 1:57:49 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Sep 20, 2011 1:57:49 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 20 13:57:49 MDT 2011]; root of context hierarchy
Sep 20, 2011 1:57:49 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
Sep 20, 2011 1:57:49 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1cf662f: defining beans [grailsApplication,pluginManager,grailsConfigurator,grailsResourceLoader,grailsResourceHolder,characterEncodingFilter]; root of factory hierarchy
Sep 20, 2011 1:57:49 PM org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean afterPropertiesSet
INFO: Loading Grails application with information from descriptor.
Sep 20, 2011 1:57:49 PM org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean afterPropertiesSet
INFO: No reloading, using standard classloader.
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager findUserPlugins
INFO: Attempting to load [0] user defined plugins
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [logging] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [i18n] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [core] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [filters] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [servlets] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [release] with version [1.0.0.M1] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [svn] with version [1.0.0.M1] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [dataSource] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [groovyPages] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [codecs] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [urlMappings] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [controllers] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [scaffolding] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [mimeTypes] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [domainClass] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [converters] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [hibernate] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [services] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [validation] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 20, 2011 1:57:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sample-0.2] startup failed due to previous errors
Sep 20, 2011 1:57:55 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:57:55 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:57:55 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Sep 20, 2011 1:57:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10438 ms
Sep 20, 2011 1:58:09 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:58:09 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:58:10 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 20, 2011 1:58:10 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:58:10 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Я очень ценю вашу помощь здесь