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 122950 - Errors in JSP files that work fine in 5.5 & 5.5.1
Summary: Errors in JSP files that work fine in 5.5 & 5.5.1
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
: 122949 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-28 10:57 UTC by bumblebee
Modified: 2008-11-25 12:10 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 bumblebee 2007-11-28 10:57:30 UTC
When opening a JSP that works in 5.5 and 5.5.1, or creating a new JSP in 6.0 RC2, I get the following message:

<identifier> expectedunexpected typerequired: classfound : identifier(31)[serial] serializable class 
SimplifiedJSPServlet has no definition of serialVersionUID

Code:

<%-- 
    Document   : qwerty
    Created on : 2007/11/28, 12:02:34
    Author     : xxxx
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Hello World!</h2>
    </body>
</html>

Also, doesn't autocomplete any imports or imported java code.
Comment 1 bumblebee 2007-11-28 11:05:27 UTC
*** Issue 122949 has been marked as a duplicate of this issue. ***
Comment 2 Peter Pis 2007-12-03 15:50:30 UTC
Reassigning to "web".
Comment 3 bumblebee 2007-12-04 09:31:36 UTC
This happens in a Java 1.4 project and it does not recognise any imported objects referenced in <%=  %> braces.

I changed the project source to Java 1.5, but the errors remained.
Comment 4 Tomasz Slota 2008-02-27 16:29:01 UTC
I cannot reproduce it, would you mind to attach your project (or send it to tomslot@sun.com)? Thanks
Comment 5 Jiri Prox 2008-04-11 01:13:29 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 Jindrich Sedek 2008-11-25 12:10:16 UTC
I'm not able reproduce the problem. Serial version UID should be already fixed and codecompletion should works well 
after that, could you please try NetBeans 6.5?