Ich lerne JSF kennen und deshalb versuche ich eine Hallo Welt xhtml Website zu starten. Problem: Beim Zugriff auf die Site im Browser bekomme ich immer den HTTP-Fehlercode 403: verboten.WildFly 10.x immer HTTP-Fehler 403: verboten
Ich benutze Eclipse Neon und WildFly Server v10. Ich stelle es mithilfe des JBoss Tools-Plugins in Eclipse bereit. Ich habe immer die Standardkonfigurationen verwendet. Das Protokoll des Servers zeigt keine Fehler und die Seiten korrekt eingesetzt werden sollten:
09:50:23,999 INFO [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6)
09:50:24,297 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
09:50:24,299 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
09:50:24,315 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0018: Started Driver service with driver-name = mysql-connector-java-5.1.40-bin.jar_com.mysql.jdbc.Driver_5_1
09:50:24,315 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = mysql-connector-java-5.1.40-bin.jar_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
09:50:24,318 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:jboss/datasources/university]
09:50:24,551 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) Mojarra 2.2.13.SP1 20160303-1204 für Kontext '/HelloWorldJSF' wird initialisiert.
09:50:24,551 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 65) Mojarra 2.2.13.SP1 20160303-1204 für Kontext '/HelloWorld' wird initialisiert.
09:50:25,034 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 60) WFLYUT0021: Registered web context: /HelloWorldJSF
09:50:25,034 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0021: Registered web context: /HelloWorld
09:50:25,060 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "mysql-connector-java-5.1.40-bin.jar" (runtime-name : "mysql-connector-java-5.1.40-bin.jar")
09:50:25,061 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "HelloWorldJSF.war" (runtime-name : "HelloWorldJSF.war")
09:50:25,061 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "HelloWorld.war" (runtime-name : "HelloWorld.war")
09:50:25,159 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
09:50:25,160 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
09:50:25,160 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 3828ms - Started 521 of 783 services (424 services are lazy, passive or on-demand)
Die Standorte werden eingesetzt:
C:\wildfly-10.1.0.Final\standalone\deployments
ich zwei Webprojekte tatsächlich verwendet wird. Ich habe selbst eine erstellt und die andere direkt aus einem Tutorial genommen. Das Tutorial hat nichts über zusätzliche Konfiguration gesagt. Was vermisse ich?
Was ist die URL, die Sie zu gehen sind versuchen? –
Ich rufe http: // localhost: 8080/HelloWorldJSF/oder http: // localhost: 8080/HelloWorld/ habe auch andere versucht aber dann habe ich den Fehler 404 - nicht gefunden. –
Danke für Ihre Hilfe! Bin dankbar! Aber ich habe alles neu installiert und jetzt funktioniert es. –