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

There are some problems when running WAS (Tomcat). #611

Open
kdaek21 opened this issue Nov 1, 2024 · 2 comments
Open

There are some problems when running WAS (Tomcat). #611

kdaek21 opened this issue Nov 1, 2024 · 2 comments

Comments

@kdaek21
Copy link

kdaek21 commented Nov 1, 2024

Thank you for creating a JVM that runs on .NET.

When I tried to run WAS (Web Application Server) on IKVM and set Tomcat to run on IKVM, it crashed with a StackOverflowException. So I tested it by removing the option parts created in the batch file used when running Tomcat one by one, and confirmed that it crashed with the exception when the '-Djava.protocol.handler.pkgs=org.apache.catalina.webresources' option was entered.
The comment for the option part is as follows.

rem Register custom URL handlers
rem Do this here so custom URL handles (specifically 'war:...') can be used in the security policy

It seems that a class inside the 'org.apache.catalina.webresources' package inside Tomcat is doing some work and causing a StackOverflowException. In the net472 version, it only displays the message 'Process is terminated due to StackOverflowException.' and dies, but in the net8.0 version, it shows a detailed call stack, so you can check where the exception occurs. The original Java made in C or C++ does not cause this exception. Is there a possibility that this issue will be resolved in a future version?

Also, when the WAS (Tomcat) starts and the first connection is made, it takes a long time to compile the JSP. Is there a possibility that this issue will be resolved?

@wasabii
Copy link
Contributor

wasabii commented Nov 1, 2024

Going to need more information, such as the stack trace, etc.

@kdaek21
Copy link
Author

kdaek21 commented Nov 2, 2024

The net472 version only shows the message 'Process is terminated due to StackOverflowException.', so I attached the Stacktrace from running it on the net8.0 version.

IKVM-8.10.3-jre-net8.0-win-x64-Tomcat9-stackoverflow.txt

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