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.
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
(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>
Does it solve your problem?
(In reply to comment #2) > Does it solve your problem? Yes, thanks a lot!
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
Does not seem to be a NetBeans issue. One has to configure the classpath properly.