You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Knusende-Ro (via GitHub)" <gi...@apache.org> on 2025/06/07 20:12:30 UTC

[D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

GitHub user Knusende-Ro created a discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi folks,
It seems that HTTP Monitor stopped working in Netbeans 26. It used to work previously. In the Apache Tomcat log tab, the following error message is displayed when starting Tomcat from Netbeans, and the HTTP Monitor option active (run or debug):

`org.apache.catalina.core.StandardContext.filterStart Exception starting filter [HTTPMonitorFilter] 	java.lang.NoClassDefFoundError: javax/servlet/Filter`

The error does not seem to be project oriented, as it occurs just by starting Tomcat from the Service tab in Netbeans. There don't seem to be any other project problems I'm aware of. Everything compiles, runs and debugs as could be expected.

I would be grateful for any information about how to get this working. It's not a complete show stopper, but the HTTP Monitor is useful sometimes.

**Environment:**
OS: Debian Bookworm 12.11 with current packages from Bookworm backports, kernel 6.12.22+bpo-amd64
Graphical environment: LXDE
Project location: Share on Samba server (Samba 4.22.1)
Java: OpenJDK Runtime Environment Zulu21.42+19-CA (build 21.0.7+6-LTS)
Apache Tomcat: 11.0.7 installed under user environment
Netbeans 26: Installed with global access under /opt/netbeans

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro reopened a discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi folks,
It seems that HTTP Monitor stopped working in Netbeans 26. It used to work previously. In the Apache Tomcat log tab, the following error message is displayed when starting Tomcat from Netbeans, and the HTTP Monitor option active (run or debug):

`org.apache.catalina.core.StandardContext.filterStart Exception starting filter [HTTPMonitorFilter] 	java.lang.NoClassDefFoundError: javax/servlet/Filter`

The error does not seem to be project oriented, as it occurs just by starting Tomcat from the Service tab in Netbeans. There don't seem to be any other project problems I'm aware of. Everything compiles, runs and debugs as could be expected.

I would be grateful for any information about how to get this working. It's not a complete show stopper, but the HTTP Monitor is useful sometimes.

**Environment:**
OS: Debian Bookworm 12.11 with current packages from Bookworm backports, kernel 6.12.22+bpo-amd64
Graphical environment: LXDE
Project location: Share on Samba server (Samba 4.22.1)
Java: OpenJDK Runtime Environment Zulu21.42+19-CA (build 21.0.7+6-LTS)
Apache Tomcat: 11.0.7 installed under user environment
Netbeans 26: Installed with global access under /opt/netbeans

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
GitHub user matthiasblaesing added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

@Knusende-Ro Thanks for testing. Did you test both tomcat 9+11 or only one of these, if only one, which one?

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13425365

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi Matthias,

Thanks for the clarification. I had a hunch that that was the reason.

Wouldn't it be nice to have the HTTP monitor as a plugin, where the user could choose whether to use the javax based, or the jakarta based one? Unfortunately, I'm currently not in the position to help with developing of a jakarta based HTTP monitor. Otherwise I would be glad to help.

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13401882

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi Matthias,

Many thanks for the test build. HTTP monitor works!

Really appreciated.

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13410604

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi Matthias,

I tested only Tomcat 11, as it is what I mainly work with. The 
applications under Tomcat 9 are slowly being phased out, so the need for 
the HTTP monitor is not essential.

Many thanks for your effort, very appreciated!

Best regards,

Peter

On 10.06.2025 22:01, Matthias Bläsing wrote:
>
> @Knusende-Ro <https://github.com/Knusende-Ro> Thanks for testing. Did 
> you test both tomcat 9+11 or only one of these, if only one, which one?
>
> —
> Reply to this email directly, view it on GitHub 
> <https://github.com/apache/netbeans/discussions/8570#discussioncomment-13425365>, 
> or unsubscribe 
> <https://github.com/notifications/unsubscribe-auth/BBY3S5CNMJN2IQYSD7F43W33C42RZAVCNFSM6AAAAAB62H6DZKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBSGUZTMNI>.
> You are receiving this because you were mentioned.Message ID: 
> ***@***.***>
>


GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13428981

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro closed a discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi folks,
It seems that HTTP Monitor stopped working in Netbeans 26. It used to work previously. In the Apache Tomcat log tab, the following error message is displayed when starting Tomcat from Netbeans, and the HTTP Monitor option active (run or debug):

`org.apache.catalina.core.StandardContext.filterStart Exception starting filter [HTTPMonitorFilter] 	java.lang.NoClassDefFoundError: javax/servlet/Filter`

The error does not seem to be project oriented, as it occurs just by starting Tomcat from the Service tab in Netbeans. There don't seem to be any other project problems I'm aware of. Everything compiles, runs and debugs as could be expected.

I would be grateful for any information about how to get this working. It's not a complete show stopper, but the HTTP Monitor is useful sometimes.

**Environment:**
OS: Debian Bookworm 12.11 with current packages from Bookworm backports, kernel 6.12.22+bpo-amd64
Graphical environment: LXDE
Project location: Share on Samba server (Samba 4.22.1)
Java: OpenJDK Runtime Environment Zulu21.42+19-CA (build 21.0.7+6-LTS)
Apache Tomcat: 11.0.7 installed under user environment
Netbeans 26: Installed with global access under /opt/netbeans

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro closed the discussion with a comment: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi Matthias,
That was a quick PR. I will sure appreciate the new jakarta HTTP monitor, when NetBeans 27 is out. In the meantime, I'll try to sort things out using other tools.

Thanks a lot for the effort!

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13403009

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "Knusende-Ro (via GitHub)" <gi...@apache.org>.
GitHub user Knusende-Ro added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

Hi folks,
I have continued to test the failure of the HTTP monitor. It works with NetBeans up to Tomcat 9.0.xxx. From Tomcat 10 and up it doesn't. I have a mix of older projects using javax and newer ones with jakarta, so I switch between Tomcat versions, and naturally got confused.
It's a pity the HTML monitor doesn't work with later versions of Tomcat. It's quite useful sometimes.

Best regards,

Peter

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13401774

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [D] HTTP Monitor raises error when starting Tomcat in Netbeans 26 [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
GitHub user matthiasblaesing added a comment to the discussion: HTTP Monitor raises error when starting Tomcat in Netbeans 26

The monitor is implemented as a servlet filter and thus tied to Servlet specification. Tomat 9 is based on JavaEE, while Tomecat 10 is based on JakartaEE.

With the JavaEE -> JakartaEE transition the Eclipse Foundation was forced to change the namespaces of the classes and XML schemas. Causing all code to break. This is another problem indroduced by that.

I had a quick look and I think it is doable to build this, so that it works in both worlds (JavaEE and JakartaEE).

GitHub link: https://github.com/apache/netbeans/discussions/8570#discussioncomment-13401822

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists