Skip to content

servlet only works when deployed manually #624

Description

@omboido

I'm having an issue deploying a Spring servlet.

When I run mvn clean package and deploy the .war file manually on Wildfly10.x on VSCode on Windows, it works and I can access the application via localhost:8081/appURL. Then, under /deployment=myApp.war/subsystem=undertow/servlet=spring I can see my Servlet Class. I also get /deployment=myApp.war:

  • Content: {"hash" => undefined}
  • Owner:
  • Persistent: true

However, when I add a exploded deployment from inside Red Hat Server Connector, I get a registered web context, but the application is not accessible. Then, I can't see my Servlet class, nothing under /deployment=myApp.war/subsystem=undertow. I get on /deployment=myApp.war:

  • Content: {"archive" => false,"path" => "deployments\myApp.war","relative-to" => "jboss.server.base.dir"}
  • Owner: ("subsystem" => "deployment-scanner") ("scanner" => "default")
  • Persistent: false

On both situations I have a working and tested datasource running configured via standalone.xml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions