Basic App (Noob) 404 not found

hi all! (sorry my bad english… Im speak Spanish)

Im using Eclipse Neon 2, Vaadin 7.7.0 (Maven Proyect) and Jboss 7.0 (for this proyect i need use 7.0 yes or yes)
I must necessarily use that technology.

My problem is the “404 not found”, i try with Wildfly8,9,10 and Jetty and run perfectly, but no with jboss 7.0.

Note: i not use the web.xml file, the Eclipse wizzad create a pom.xml file (i think is by servelet 3)

I’m new to Vaadin, and I’m just trying out the initial application. The button with the click (default class).

The first time the run de project, error:

20:29:30,204 ERROR [org.jboss.as.deployment]
(DeploymentScanner-threads - 1) {“Composite operation failed and was rolled back. Steps that failed:” => {“Operation step-2” => {“Failed services” => {“jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE” => “org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "MyApp-1.0-SNAPSHOT.war"”}}}}

Clean the console and never appears but the error but the 404.

my url is http://localhost:8080/MyApp/

any help?

thanks all.!!!

Hi,

googling that error message led me to this:
https://developer.jboss.org/thread/199387?_sscc=t
; does that seem to be the same thing? Do you have a jboss-deployment-structure.xml defined?

-Olli

Thanks Olli,

In my project no exist jboss-deployment-structure.xml.
If should create this file, i unknow the content… :frowning:
In the META-INF folder, there is only file MANIFEST.MF and one folder for maven.

Thanks for help.

I copy the complete error when start it the project on [Debug on server]
mode…

12:37:19,850 INFORMACIÓN [org.jboss.modules]
JBoss Modules version 1.0.1.GA
12:37:20,177 INFO [org.jboss.msc]
JBoss MSC version 1.0.0.GA
12:37:20,210 INFO [org.jboss.as]
JBoss AS 7.0.0.Final “Lightning” starting
12:37:21,092 INFO [org.jboss.as]
creating http management service using network interface (management) port (9990) securePort (-1)
12:37:21,103 INFO [org.jboss.as.logging]
Removing bootstrap log handlers
12:37:21,119 INFO [org.jboss.as.connector.subsystems.datasources]
(Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)
12:37:21,149 INFO [org.jboss.as.clustering.infinispan.subsystem]
(Controller Boot Thread) Activating Infinispan subsystem.
12:37:21,220 INFO [org.jboss.as.naming]
(Controller Boot Thread) Activating Naming Subsystem
12:37:21,227 INFO [org.jboss.as.naming]
(MSC service thread 1-4) Starting Naming Service
12:37:21,232 INFO [org.jboss.as.osgi]
(Controller Boot Thread) Activating OSGi Subsystem
12:37:21,243 INFO [org.jboss.as.security]
(Controller Boot Thread) Activating Security Subsystem
12:37:21,247 INFO [org.jboss.remoting]
(MSC service thread 1-3) JBoss Remoting version 3.2.0.Beta2
12:37:21,280 INFO [org.xnio]
(MSC service thread 1-3) XNIO Version 3.0.0.Beta3
12:37:21,287 INFO [org.xnio.nio]
(MSC service thread 1-3) XNIO NIO Implementation Version 3.0.0.Beta3
12:37:21,539 INFO [org.jboss.as.ee]
(Controller Boot Thread) Activating EE subsystem
12:37:21,560 INFO [org.jboss.as.remoting]
(MSC service thread 1-1) Listening on /127.0.0.1:9999
12:37:21,623 INFO [org.jboss.as.jmx.JMXConnectorService]
(MSC service thread 1-6) Starting remote JMX connector
12:37:21,648 INFO [org.apache.coyote.http11.Http11Protocol]
(MSC service thread 1-3) Arrancando Coyote HTTP/1.1 en puerto http–127.0.0.1-8080
12:37:21,812 INFO [org.jboss.as.connector]
(MSC service thread 1-5) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2)
12:37:21,856 INFO [org.jboss.as.connector.subsystems.datasources]
(MSC service thread 1-7) Bound data source [java:jboss/datasources/ExampleDS]

12:37:22,977 INFO [org.jboss.as.deployment]
(MSC service thread 1-4) Started FileSystemDeploymentService for directory C:\jboss-as-web-7.0.0.Final\standalone\deployments
12:37:22,978 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-3) Starting deployment of “mysql-connector-java-5.1.40-bin.jar”
12:37:23,402 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-4) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
12:37:23,407 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-4) Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
12:37:23,408 WARN [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-4) Unable to instantiate driver class “com.mysql.fabric.jdbc.FabricMySQLDriver”: org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.mysql-connector-java-5_1_40-bin_jar is already registered
12:37:23,410 INFO [org.jboss.as.connector.subsystems.datasources]
(MSC service thread 1-4) Bound data source [java:vaadinprueba]

12:37:23,412 INFO [org.jboss.as.server.controller]
(Controller Boot Thread) Deployed “mysql-connector-java-5.1.40-bin.jar”
12:37:23,417 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-4) Starting deployment of “MyApp-1.0-SNAPSHOT.war”
12:37:23,740
ERROR
[org.jboss.msc.service.fail]
(MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit.“MyApp-1.0-SNAPSHOT.war”.STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit.“MyApp-1.0-SNAPSHOT.war”.STRUCTURE: Failed to process phase STRUCTURE of deployment “MyApp-1.0-SNAPSHOT.war”
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.8.0_121]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.8.0_121]

at java.lang.Thread.run(Unknown Source) [:1.8.0_121]

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to index deployment root for annotations
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:113)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
… 5 more
Caused by: java.io.IOException: Could not index class com/example/MyApp/MyUI.class in archive ‘“/C:/jboss-as-web-7.0.0.Final/standalone/deployments/MyApp-1.0-SNAPSHOT.war/WEB-INF/classes”’
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:105)
… 6 more
Caused by: java.lang.IllegalStateException: Unknown tag! pos=36 poolCount = 186
at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:604)
at org.jboss.jandex.Indexer.index(Indexer.java:638)
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:103)
… 6 more

12:37:23,743
ERROR
[org.jboss.as]
(MSC service thread 1-3) JBoss AS 7.0.0.Final “Lightning” started (with errors) in 4059ms - Started 114 of 172 services (1 services failed or missing dependencies, 57 services are passive or on-demand)
12:37:23,744 INFO [org.jboss.as.server.controller]
(DeploymentScanner-threads - 2) Deployment of “MyApp-1.0-SNAPSHOT.war” was rolled back with failure message {“Failed services” => {“jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE” => “org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "MyApp-1.0-SNAPSHOT.war"”}}
12:37:23,746 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-8) Stopped deployment MyApp-1.0-SNAPSHOT.war in 1ms
12:37:23,747
ERROR
[org.jboss.as.deployment]
(DeploymentScanner-threads - 1) {“Composite operation failed and was rolled back. Steps that failed:” => {“Operation step-2” => {“Failed services” => {“jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE” => “org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApp-1.0-SNAPSHOT.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "MyApp-1.0-SNAPSHOT.war"”}}}}