Discussion:
Problem "Servlet API classes are not on the classpath, some scriptlet editing features are disabled"
Marcin Pieciukiewicz
2007-12-10 11:45:24 UTC
Permalink
I have this problem since late Milestones of Netbeans 6, but I've waited
until Final Release was available.

I don't have many of the IDE features while editing JSP files, such as code
completion.
After I open a JSP file I've got a warning message:
"Servlet API classes are not on the classpath, some scriptlet editing
features are disabled"

I have added a javaee.jar to my project classpath, but it didn't help. I
think it might be a problem with my system configuration (Fedora 7), such as
environment variables, but I've tried many options and they didn't help.
I've got JDK and JDK for EE installed on my system.

I've tried to install Netbeans 6 on Ubuntu Linux and it was working fine. I
cannot reinstall the Fedora because it is installed by system administrator
in my company.

Does anybody know how to solve the problem?
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p14251506.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Niklasr
2008-01-02 01:28:38 UTC
Permalink
Adding servlet-api.jar to the classpath in Netbeans worked for me when I had
the same problem with Netbeans 6 on ms-windows.
Post by Marcin Pieciukiewicz
I have this problem since late Milestones of Netbeans 6, but I've waited
until Final Release was available.
I don't have many of the IDE features while editing JSP files, such as
code completion.
"Servlet API classes are not on the classpath, some scriptlet editing
features are disabled"
I have added a javaee.jar to my project classpath, but it didn't help. I
think it might be a problem with my system configuration (Fedora 7), such
as environment variables, but I've tried many options and they didn't
help. I've got JDK and JDK for EE installed on my system.
I've tried to install Netbeans 6 on Ubuntu Linux and it was working fine.
I cannot reinstall the Fedora because it is installed by system
administrator in my company.
Does anybody know how to solve the problem?
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p14572376.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Marcin Pieciukiewicz
2008-01-02 12:20:41 UTC
Permalink
Post by Niklasr
Adding servlet-api.jar to the classpath in Netbeans worked for me when I
had the same problem with Netbeans 6 on ms-windows.
I've added servlet-api.jar from my tomcat and it worked fine.
Thank you very much.

Regards
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p14577423.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Jeremy Ross
2008-01-08 21:17:14 UTC
Permalink
I added my local Tomcat installation as a server to the project and it solved
this problem. I'm curious though. Did you edit the classpath for NetBeans
or the classpath for the project?
Post by Niklasr
Adding servlet-api.jar to the classpath in Netbeans worked for me when I
had the same problem with Netbeans 6 on ms-windows.
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p14699066.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Niklasr
2008-01-09 07:29:20 UTC
Permalink
It was added to the classpath for the project here, and after configuring
netbeans with jboss app server installation the jar was loaded through jboss
library, so no need to set classpath after that. My project wasn't a new nb6
web app project, but a checkout of my hg repository code checked in with nb5
and having NetBeans regenerate the build xml file it works fine. In the
future I want to build projects with maven which seems to load the latest
versions of any required jar from online repositories.
Post by Jeremy Ross
I added my local Tomcat installation as a server to the project and it
solved this problem. I'm curious though. Did you edit the classpath for
NetBeans or the classpath for the project?
Post by Niklasr
Adding servlet-api.jar to the classpath in Netbeans worked for me when I
had the same problem with Netbeans 6 on ms-windows.
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p14706546.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
EagleKing
2008-01-24 14:33:20 UTC
Permalink
Sorry folks but I am almost rookie in java and of course in NB 6. It seems I
have the same problem with my friend above with a little twist. That message
it is showed to me when I try to open jsp pages, which are dynamically
created by Visual JSF framework, from the "build" dir in "Files" tab. I
currently use GlassFish as Application Server. Although my index page runs
perfectly nothing else does. I try to add servlet-api.jar but I dont know
where it is. I found servlet2.5-jsp2.1-api.jar instead and I add it to the
Libraries classpath of my project, but still nothing. The project is very
simple. It has one index page which opens two others. It also sees an SQL
Server DB. For a mysterious reason, when I first created them, they were
working fine then suddenly not. What am I doing wrong? I am very frustrated
guys I am trying to use JSF for developing web applications because of its
power but now I am beginning to change my mind..
Post by Niklasr
Adding servlet-api.jar to the classpath in Netbeans worked for me when I
had the same problem with Netbeans 6 on ms-windows.
Post by Marcin Pieciukiewicz
I have this problem since late Milestones of Netbeans 6, but I've waited
until Final Release was available.
I don't have many of the IDE features while editing JSP files, such as
code completion.
"Servlet API classes are not on the classpath, some scriptlet editing
features are disabled"
I have added a javaee.jar to my project classpath, but it didn't help. I
think it might be a problem with my system configuration (Fedora 7), such
as environment variables, but I've tried many options and they didn't
help. I've got JDK and JDK for EE installed on my system.
I've tried to install Netbeans 6 on Ubuntu Linux and it was working fine.
I cannot reinstall the Fedora because it is installed by system
administrator in my company.
Does anybody know how to solve the problem?
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p15065131.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
mbarnes
2008-02-29 17:13:03 UTC
Permalink
I still cannot get this message to go away. I'm using NB 6.0.1 on Win XP
Pro.
Tomcat 5.0.28. JDK 1.6.0_04.

I have added Tomcat as a server for NetBeans ( Tools->Servers ) and note
on the "Classes" tab that all the jar files in "common" and "shared" are
listed.

I added a Library in the NetBeans Library Manager ( Tools->Libraries ). In
this library I have added Tomcat's servlet-api.jar and jsp-api.jar.

I have added these same two jar files to the Java Sources Classpath for
the project ( [project]->Properties->Java Sources Classpath )

I shut down and re-start NetBeans.

When I bring up in the editor a jsp file for the project, I still get the
error
message.

JSP Code Completion does work, by the way. If I enter "ag<tab>" the
editor substitutes the cose as expected. I don't know what "scriptlet
editing features" the error message is talking about.

Now what?
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p15762899.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Vincent Shiu
2008-04-30 06:54:47 UTC
Permalink
I have the same problem too. I have add my local tomcat to NB6.1, and add
servlet jar files to my project's classpath, the message is still there, and
I guess that causes javascript editor out of order.
The javascript autocompletion is partially work. it can only show standard
javascript DOM or Object property and function. But my own functions and
functions other javascript libraries like prototype.js is missing.
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p16976782.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Roti
2008-07-15 16:52:45 UTC
Permalink
Hi!

I still have the same problem. It is only a problem when I create a new
project from existing source. If I make a new web project, it works great.

I tried to add every kind of jars to the project. The "Servlet API classes
are not on the classpath, some scriptlet editing features are disabled"
disappeared, but I dont have the code completion in jsps.
Only these items:
abstract
class
enum
final
import
interface
packae
public


Roti
--
View this message in context: http://www.nabble.com/Problem-%22Servlet-API-classes-are-not-on-the-classpath%2C-some-scriptlet-editing-features-are-disabled%22-tp14251506p18469998.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Loading...