On Tue, Jan 31, 2023 at 4:33 PM Konstantin Kolinko <knst.koli...@gmail.com>
wrote:

> > INFO: No global web.xml found
>
> The above message is odd.
> Essentially, it means that the file %CATALINA_BASE%\conf\web.xml does not
> exist.
>

Solved.

That was it. After copying over the conf/web.xml into myapp-base/conf, the
app now works.

The REALLY embarrassing thing is that I just asked about this on Nov 15,
2021 and even after taking notes about it, I failed to include the web.xml
in my notes.

How have you configured your %CATALINA_BASE% directory?
>

These are all of the files that give me what appear to be a working config:

C:\tmp\myapp-base>tree /f
Folder PATH listing
Volume serial number is BAF1-D00E
C:.
│   cmd.lnk
│
├───bin
│       start.bat
│
├───conf
│   │   server.xml
│   │   tomcat-users.xml
│   │   web.xml
│   │
│   └───Catalina
│       └───localhost
├───logs
│       myapp.log
│       localhost_access_log.2023-01-31.txt
│
├───temp
├───webapps
│   └───myapp
│       │   index.jsp
│       │
│       └───WEB-INF
│           │   example.prp
│           │   web.xml
│           │
│           └───lib
│                   myapp-jakarta-1.2.3.jar
│
└───work
    └───Catalina
        └───localhost
            └───myapp
                └───org
                    └───apache
                        └───jsp
                                index_jsp.class
                                index_jsp.java


>
>
> The conf/web.xml configures all the defaults, shared by all web
> applications.
> That includes
> - declaration of DefaultServlet
> - declaration of JspServlet
> - "welcome-file-list"
> - "mime-mapping"s
>
> > How does one enable a debug log? The documentation about such things is
> > pretty cryptic.
>
> It assumes that you are familiar with java.util.logging.
>

That's unfortunate.  It would be so much nicer if it was a simple one-liner.

Mike

Reply via email to