2012-04-11 6 views
0

Ich versuche, wenn ich upgragde kann zu bewerten, um jboss 7.1.1 ich den Krieg Datei meiner Grails-Anwendung erstellt: in der Jboss eigenständige Bereitstellungsverzeichnisjboss scheint meine WAR-Datei zu laden, gibt aber eine 404-Seite, und wie kann ich das beheben?

grails war 

dann habe ich den Krieg Datei. Es scheint, die vom Server abgeholt werden, da ich in der Ausgabe sehen:

11:43:19,026 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "my-application-0.1.war" 
11:43:19,483 INFO [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: my-application:0.1.0 

aber wenn ich versuche, 127.0.0.1/my-application ich eine 404-Fehlermeldung zuzugreifen. Irgendwelche Ideen über was ist los oder wie kann ich dieses Problem debuggen?

Update: Ich habe gerade bemerkt, diesen Fehler in dem Jboss-Log:

12:33:48,499 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4214ms - Started 151 of 227 services (1 services failed or missing dependencies, 74 services are passive or on-demand) 

I another stackoverflow question on grails app not running with jboss gefunden, die sehr ähnlich ist, was ich bin vor. Ich habe die vorgeschlagene Lösung ausprobiert und die Datei standalone.xml bearbeitet. Jetzt sehe ich eine tatsächliche Fehlermeldung, und im Browser bekomme ich immer noch die 404-Nachricht. Hier ist der Fehler von JBoss-Log:

12:59:13,749 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2)JBAS015876: Starting deployment of "my-application-0.1.war" 
12:59:16,530 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."my-application-0.1.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."my-application-0.1.war".PARSE: Failed to process phase PARSE of deployment "my-application-0.1.war" 
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] 
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] 
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_23] 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_23] 
    at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_23] 
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/content/my-application-0.1.war/WEB-INF/jboss-web.xml" at [3,2] 
    at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:77) 
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] 
    ... 5 more 
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,2] 
Message: Unexpected element 'class-loading' encountered 
    at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:108) 
    at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:211) 
    at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:69) 
    ... 6 more 12:59:16,541 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990 12:59:16,541 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5009ms - Started 135 of 179 services (1 services failed or missing dependencies, 42 services are passive or on-demand) 12:59:16,542 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "my-application-0.1.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"my-application-0.1.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"my-application-0.1.war\".PARSE: Failed to process phase PARSE of deployment \"my-application-0.1.war\""}} 12:59:16,819 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment my-application-0.1.war in 276ms 
12:59:16,820 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014777: Services which failed to start:  service jboss.deployment.unit."my-application-0.1.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."my-application-0.1.war".PARSE: Failed to process phase PARSE of deployment "my-application-0.1.war" 
12:59:16,821 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"my-application-0.1.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"my-application-0.1.war\".PARSE: Failed to process phase PARSE of deployment \"my-application-0.1.war\""}}}} 

Antwort

3

Sie verwenden einen alten Jboss-web.xml (mit einem anderen Schema) mit JBoss AS 7. Der ältere Schema hatte ein Element „Klasse-Laden“ genannt, das ist mit JBoss AS 7 nicht verfügbar. Bitte beachten Sie das Schema [1] für das richtige Format.

[1] https://community.jboss.org/wiki/JBossDTDs 
+0

danke. zusammen mit dem Fix aus dem anderen stackoverflow-Post, mit dem ich mich verband, löste das Problem. JBoss läuft jetzt glücklich meine Anwendung. :) – Aras

Verwandte Themen