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

Tomcat server #41

Open
Shaheer4636 opened this issue Jul 3, 2024 · 5 comments
Open

Tomcat server #41

Shaheer4636 opened this issue Jul 3, 2024 · 5 comments

Comments

@Shaheer4636
Copy link

Shaheer4636 commented Jul 3, 2024

I have added all vprofile-2.war to /var/lib/tomcat9/webapps/ROOT.war. But still the webapp is no accessible on the browser. Its giving 404 error.

I have checked application.properties. they are correct and fine

@hurvai
Copy link

hurvai commented Jul 3, 2024

Facing the same issue as well. Revised multiple times, no luck yet :/
image

@hkhcoder can you please have a look?

@Shaheer4636
Copy link
Author

@hkhcoder please review the issue. I have been trying since yesterday but all progress.

@Shaheer4636
Copy link
Author

There are the logs of tomcat9, the java version is openjdk 11.0.23 2024-04-16

Jul 03 18:34:06 ip-172-31-87-137 tomcat9[7478]: Server startup in [18178] milliseconds
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thr>
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [].>
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1427)
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1052)
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.ja>
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:90)
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Jul 03 18:34:07 ip-172-31-87-137 tomcat9[7478]: at java.base/java.lang.Thread.run(Thread.java:829)

@amalkuriakose
Copy link

Facing the same issue.....

@amalkuriakose
Copy link

amalkuriakose commented Jul 11, 2024

I was able to resolve the issue.

First I checked the /var/log/tomcat9/localhost.YYYY-MM-DD.log file.

In the file, I could see RMQ errors:

Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:342)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:909)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:859)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1000)
at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:355)

This is is because the RMQ user was not created.

I then created the user and restarted the server.

sudo rabbitmqctl add_user test test
sudo rabbitmqctl set_user_tags test administrator
sudo systemctl restart rabbitmq-server

Then restarted tomcat9 also.

After that I was able to see the login page.

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

3 participants