You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "ampEducator (via GitHub)" <gi...@apache.org> on 2023/08/12 18:41:55 UTC
[GitHub] [netbeans] ampEducator opened a new issue, #6334: Servlet API Classes not on classpath for JSP editor
ampEducator opened a new issue, #6334:
URL: https://github.com/apache/netbeans/issues/6334
### Apache NetBeans version
Apache NetBeans 18
### What happened
When editing a JSP I get the line 'Servlet API classes are not on the classpath, some scriplet features are disabled.'
Running the code is fine, the JSP is compiled and runs properly. HTML highlighting / completion works, Tag highlighting / completion work, JS highlight works, it's anything in a Java block <% .... %> that is disabled.
I've looked through the project.properties file and can see that j2ee.platform.classpath is set properly and I also confirmed that j2ee.server.home is correct and pointing to the Tomcat 10 folder. I can see that Tomcat is included in the library folder and it contains the servlet-api jar. I've also tried to add the built it Jakarata EE 10 API and / or Jakarte EE 10 Web API libraries which doesn't work.
Using Netbeans 18 with Tomcat 10.1.11, Open JDK 17 (17.0.7) on Linux (Ubuntu 18.04.6) .
We were previously using Netbean 8.2 with Tomcat 8.5 and the JSP editor was fine.
I'm happy to provide any other information / details. I downloaded Netbeans 18 zip folder. I thought maybe this was the issue so I also tried with the installer and same results.

### How to reproduce
Create a new Java App with Ant -> Java Web -> Web Application using the Tomcat Server 10.1 and Jakarta EE 10. Add a new JSP. Edit the JSP. Editing anything in Java block <% ..... %> produces the error.
### Did this work correctly in an earlier version?
Apache NetBeans 13 or earlier
### Operating System
Linux
### JDK
OPEN JDK 17.0.7
### Apache NetBeans packaging
Apache NetBeans provided installer, Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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: [I] Servlet API Classes not on classpath for JSP editor [netbeans]
Posted by "frpascua (via GitHub)" <gi...@apache.org>.
frpascua commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1893407351
I have experienced the same behaviour using Netbeans 20 with Tomcat 10.1.5 and OpenJDK Runtime Environment 21.0.1+12-LTS on Windows 10.
Fortunately, it gets resolved if I change jakartaee version as @mbien indicated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] mbien commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1680289555
this is likely due to the new jakarta namespace, if you set the version to 8.x it should work fine:
```xml
<dependencies>
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>8.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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: [I] Servlet API Classes not on classpath for JSP editor [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1896350683
I'll have a look, the disabling is trivial to fix, the places where the code will fail afterwards will be much more interesting ;-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] ampEducator commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "ampEducator (via GitHub)" <gi...@apache.org>.
ampEducator commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1683429719
I just noticed you note about the new release candidate. I will try and see if the problem has been fixed in the newer version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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: [I] Servlet API Classes not on classpath for JSP editor [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #6334: Servlet API Classes not on classpath for JSP editor
URL: https://github.com/apache/netbeans/issues/6334
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] ampEducator commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "ampEducator (via GitHub)" <gi...@apache.org>.
ampEducator commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1676394669
I see this was labelled as Ant. I have tried creating a identical new web project with Maven and Gradle and I get the same results. Editing Java blocks in a JSP brings up the 'Servlet API Classes not on classpath...'
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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: [I] Servlet API Classes not on classpath for JSP editor [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1904878778
Please see referenced PR for a suggested change. Please test the nightly build available from the checkspage of the PR and report back here:
https://github.com/apache/netbeans/actions/runs/7617306399
or directly:
https://github.com/apache/netbeans/actions/runs/7617306399/artifacts/1186921848
The build is available for the next 5 days.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] mbien commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1680267460
@ampEducator I labeled it as ant since you mentioned it explicitly. Removed it again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] ampEducator commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "ampEducator (via GitHub)" <gi...@apache.org>.
ampEducator commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1683395340
Since we're using Ant I had to add the version 8 of the library (Jakarta EE Web 8 - which is still javax.servlet... instead of the jakarta.servlet....) and the JSP editor works fine but now I have version 8 in my class path and version 10 (from Tomcat). It doesn't make sense to have both? Does the JSP editor have to be updated to use the new version?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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
[GitHub] [netbeans] mbien commented on issue #6334: Servlet API Classes not on classpath for JSP editor
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6334:
URL: https://github.com/apache/netbeans/issues/6334#issuecomment-1684831450
> Does the JSP editor have to be updated to use the new version?
Probably. It is likely expecting the old `javax.*` namespace of Java EE 8, since Jakarta EE 9+ uses the new `jakarta.*` namespace.
It got fixed for JSF #6160 (and for many other features), looks like JSPs need some attention too, but this would be too late for NB 19 and would have to wait for the next release.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.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