This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191023 - package javax.servlet.jsp does not exist
Summary: package javax.servlet.jsp does not exist
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 10:19 UTC by Tomas Mysik
Modified: 2015-08-26 07:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2010-10-15 10:19:05 UTC
I tried to follow a tutorial on [1], so I downloaded sources [2]. Maven resolved all missing dependencies correctly, however, if one opens EmployeeViewer.jsp, it is marked with an error on the 1st line (package javax.servlet.jsp does not exist). I tried to specify a server (Tomcat 6.x) and also to build the application - buid is OK but the error remains.

Thanks a lot.

Product Version: NetBeans IDE Dev (Build 101014-aba4df6c138d)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01
System: Linux version 2.6.32-25-generic running on amd64; UTF-8; cs_CZ (nb)

[1]  http://www.podolinsky.cz/2010/09/jak-vytvorit-java-web-aplikaci-s-podporou-spring-a-jpa/
[2] http://www.podolinsky.cz/wp-content/uploads/2010/09/spring-helloworld-src.zip
Comment 1 everflux 2011-01-07 20:51:46 UTC
(In reply to comment #0)
> I tried to follow a tutorial on [1], so I downloaded sources [2]. Maven
> resolved all missing dependencies correctly, however, if one opens

I assume that you have a missing dependency on the JSP api. Please try adding this to the pom.xml and "clean and build" your project.
Reload the JSP file afterwards and check if this resolves your problem.

        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
        </dependency>
Comment 2 Anton Chechel 2011-01-12 13:29:30 UTC
Does it solve your problem?
Comment 3 Tomas Mysik 2011-01-12 13:56:26 UTC
(In reply to comment #2)
> Does it solve your problem?

Yes, thanks a lot!
Comment 4 Cibor 2011-05-31 19:55:37 UTC
I'm facing this problem in a Netbeans Web free-form project which is not Maven-based.

Any idea what would help?

Best regards,
Konrad Ciborowski
Kraków, Poland
Comment 5 Petr Hejl 2015-08-26 07:09:30 UTC
Does not seem to be a NetBeans issue. One has to configure the classpath properly.