vscode-server-connector icon indicating copy to clipboard operation
vscode-server-connector copied to clipboard

servlet only works when deployed manually

Open omboido opened this issue 1 year ago • 1 comments

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

omboido avatar Sep 19 '24 22:09 omboido