Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

servlet only works when deployed manually #624

Open
omboido opened this issue Sep 19, 2024 · 1 comment
Open

servlet only works when deployed manually #624

omboido opened this issue Sep 19, 2024 · 1 comment

Comments

@omboido
Copy link

omboido commented Sep 19, 2024

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

@mohitsuman
Copy link
Contributor

@robstryker can you please look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants