Fresh install on Win11 Pro loads Admin but not site pages

I have a brand new Windows 11 Pro PC, which is running IIS 10.0.26100.1. I can successfully access http://localhost/iisstart.htm.

After installing Lucee I can access http://127.0.0.1:8888/lucee/admin/. I can also successfully access HTML files in subfolders of c:\inetpub\wwwroot. However, if I try to call a .CFM page, either via localhost or 127.0.0.1/ it does not work.

If I try localhost:
After about 10 seconds delay I get ‘The page isn’t redirecting properly’. The URL shows http://localhost/subfolder/myfile.cfm?&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__

If I try 127.0.0.1
Changing localhost to 127.0.0.1 produces the following error:

HTTP Status 500 – Internal Server Error


Type Exception Report

Message Servlet.init() for servlet [CFMLServlet] threw exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

jakarta.servlet.ServletException: Servlet.init() for servlet [CFMLServlet] threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:431) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) java.base/java.lang.Thread.run(Unknown Source)

Root Cause

java.lang.ClassCastException: class lucee.runtime.exp.PageServletException cannot be cast to class lucee.loader.servlet.jakarta.ServletExceptionJavax (lucee.runtime.exp.PageServletException and lucee.loader.servlet.jakarta.ServletExceptionJavax are in unnamed module of loader java.net.URLClassLoader @32a1bec0) lucee.loader.servlet.jakarta.CFMLServlet.init(CFMLServlet.java:42) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:431) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) java.base/java.lang.Thread.run(Unknown Source)

Once I get this error, I can no longer access the Lucee Admin url, as I then get the same error message.

Can anyone give me some ideas as to what I can try next?

Thanks in advance.

OS: Windows 11 Pro
Java Version: 21.0.6 (Eclipse Adoptium 64bit)
Tomcat Version: 10.1.36
Lucee Version: 6.2.0.321

1 Like

We can close this topic.

I have managed to get past this error. I’ve tried several solutions from this forum and am not sure which one was successful, having restarted Lucee, IIS and then rebooting several times. I now have a 403 error on CFM pages, but .HTM pages load OK, so I’ll continue to investigate that and potentially raise another post.

This is not a solution. I am having the same issue on Windows 11 Pro

I only marked it as a ‘solution’ as I had (somehow) resolved it myself, but could be 100% sure of exactly what I did, and whether it was one of several changes that only took effect after a reboot.

At one point, even restarting Lucee and IIS was still generating 500 errors, but a reboot solved them.

However, here is what I KNOW I changed. I hope that this is of use to you.

  1. in c:\lucee\tomcat\conf\server.xml I modified the AJP connector as follows:

The 403 error appears to relate to permissions - it can see the files but does not have permission to run them, I believe because of the secret. I read that it’s not enough to just set secretRequired=“false” - you also need to remove the secret=“SECRETHERE” variable. Also, the address=“::1” was something I learnt that I had to add the last time I installed Lucee, as without it there was a 1 second delay in opening every single page.

  1. In the Lucee Admin Control Centre, under Archives and Resources, I had to create a map. I added / to virtual and c:\inetpub\wwwroot\ to resource. Archived was blank, Primary set to Resource, Inspect set to Inherit (Auto), type to Inherit and Mode to Inherit.

I hope some of the above helps. I literally spent about 5 hours yesterday trying all manner of things to fix this. Am happy to report any other settings if you need them. I’m not too technical on Tomcat and how it interacts with IIS, I’m afraid.

I appreciate you taking the time to explain. I hope this can help others. Unfortunately, it did not work for me. I am still seeing “Warning, if you can see this message, your webserver webroot is not mapped to [C:\inetpub\wwwroot].”

That is how I see the default Lucee page now, but that’s OK - I can access the admin section without issue, and I can access my sites, that are stored in a subfolder of c:\inetpub\wwwroot\

(It looks like the reason behind that is that it’s not loading the style sheets, which means that whatever forwarding you have in place is preventing the default landing page from loading, but not affecting the admin section).

Did you check to make sure that permissions are not the issue? Temporarily, try setting permissions on wwwroot to Everyone/Full access. There may be a folder within the \Lucee folder that you need to grant extra permissions on.

Hope that helps. Happy to keep sharing settings from my end!

I see this page when trying to load any site configured on IIS. This page load instead of the website index page.

I see that page if I visit 127.0.0.1 or localhost. However, if I add a subfolder (that is located within c:\inetpub\wwwroot) then it loads as expected.

Previously, I did experience being able to load .html pages but not .cfm pages, which showed me that IIS was working, but that the hand off between IIS and Lucee/Tomcat was not. Did you test HTML pages?