gpt4 book ai didi

grails - Grails 3.1.6部署到JBoss是404

转载 作者:行者123 更新时间:2023-12-02 14:59:54 25 4
gpt4 key购买 nike

当我将helloWorld应用程序部署到JBoss EAP 6.4.0.GA时,它部署时带有警告并且没有错误,显示部署在JBoss Web管理控制台中,但是应用程序上下文返回404。我有一些警告,但是JBoss日志文件中没有错误。

处理:

Grails 3.1.6JVM 1.8.0_77Build on Windows 7 EnterpriseDeploying to JBoss EAP 6.4.0.GA running on CentOS Linux release 7.1.1503
grails create-app helloWorldgrails create-domain-class PersonEdit Person.groovy... add String namegrails henerate-all *gradle bootRun (Works)gradle warDeploy to Tomcat 7.0.41, Win 7, JDK 1.8.0_77-b03 (Works)Deploy to JBoss 6.4.0.GA, CentOS, deploys with warnings, app is 404.

What do I need to do to get it to run on JBoss EAP?

Here are the warnings I get in the JBoss log file:

2016-05-04 14:08:12,842 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry xml-apis.jar in /content/helloWorld.war/WEB-INF/lib/serializer-2.7.2.jar  does not point to a valid jar for a Class-Path reference.
2016-05-04 14:08:12,890 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=grails-core' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,890 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=3.0' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,891 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.grails.spring.context.ApplicationContextExtension' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,891 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=groovy-xml' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,891 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=2.4.6' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,892 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.codehaus.groovy.runtime.XmlGroovyMethods' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,892 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'staticExtensionClasses=' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,892 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=grails-web-servlets-module' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,892 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=1.0' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,893 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.grails.web.servlet.HttpServletRequestExtension,org.grails.web.servlet.HttpServletResponseExtension,org.grails.web.servlet.HttpSessionExtension,org.grails.web.servlet.ServletContextExtension' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,893 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'grails.dev.commands.ApplicationCommand=org.grails.web.mapping.reporting.UrlMappingsReportCommand' for service type 'grails.factories'
2016-05-04 14:08:12,893 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=grails-converters-module' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,894 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=1.0' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,894 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.grails.web.converters.ConvertersExtension' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,894 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=grails-mimetypes-module' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,894 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=1.0' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,895 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.grails.web.mime.HttpServletRequestExtension,org.grails.web.mime.HttpServletResponseExtension' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,895 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=groovy-sql' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,895 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=2.4.6' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,896 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.codehaus.groovy.runtime.SqlGroovyMethods' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,896 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'staticExtensionClasses=' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,896 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleName=grails-codecs' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,896 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'moduleVersion=3.0' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,897 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'extensionClasses=org.grails.plugins.codecs.Base64CodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,897 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.HexCodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,897 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.MD5BytesCodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,897 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.MD5CodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,898 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.SHA1BytesCodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,898 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.SHA1CodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,898 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.grails.plugins.codecs.SHA256BytesCodecExtensionMethods,\' for service type 'org.codehaus.groovy.runtime.ExtensionModule'
2016-05-04 14:08:12,901 WARN [org.jboss.as.ee] (MSC service thread 1-3) JBAS011071: Invalid signature for method initializeTagLibrary annotated with javax.annotation.PostConstruct on class grails.artefact.TagLibrary$Trait$Helper, signature must be 'void methodName(InvocationContext ctx)'
2016-05-04 14:08:13,130 WARN [org.jboss.as.ee] (MSC service thread 1-5) JBAS011006: Not installing optional component grails.async.web.AsyncGrailsWebRequest due to an exception (enable DEBUG log level to see the cause)
2016-05-04 14:08:13,130 WARN [org.jboss.as.ee] (MSC service thread 1-5) JBAS011006: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause)
2016-05-04 14:08:13,131 WARN [org.jboss.as.ee] (MSC service thread 1-5) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)
2016-05-04 14:08:13,151 WARN [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016012: Deployment deployment "helloWorld.war" contains CDI annotations but beans.xml was not found.

最佳答案

this answer中所述,您必须将此配置添加到 application.yml 中:

grails:
web:
servlet:
path: /*

关于grails - Grails 3.1.6部署到JBoss是404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37038356/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com