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 113078 - Endorsed Mechanism is not accepted
Summary: Endorsed Mechanism is not accepted
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 112029
  Show dependency tree
 
Reported: 2007-08-17 11:36 UTC by Milan Kuchtiak
Modified: 2007-08-23 12:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error Annotation (42.91 KB, image/jpeg)
2007-08-17 11:36 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2007-08-17 11:36:09 UTC
The error annotations don't accept the endorsed standard overerride mechanism :
See : 
http://java.sun.com/j2se/1.5.0/docs/guide/standards/
or
https://jax-ws.dev.java.net/nonav/2.1.2m1/docs/jaxws-tools.html#running_on_jdk6

Even if java.endorsed.dirs property is set (in etc/netbeans.conf) or if endorsed jars are put to
JAVA_HOME/jre/lib/endorsed we still can see the error anotations though the classes are succesfully compiled.

See also the issue 112029.
Comment 1 Milan Kuchtiak 2007-08-17 11:36:56 UTC
Created attachment 46785 [details]
Error Annotation
Comment 2 Jan Lahoda 2007-08-17 13:08:57 UTC
I do no think this is a problem in Java editor or Java infrastructure - these simply use ClassPath that they get for the
given file. If the classpath is wrong, there is nothing that the Java infrastructure could do.

I am not sure if this is problem in the java/j2seplatform or in the correspodning project type.
Comment 3 Tomas Zezula 2007-08-23 08:46:09 UTC
Endorsed libs are part of the boot cp (at least on linux).
Comment 4 Milan Kuchtiak 2007-08-23 09:21:18 UTC
Look at attached picture. 
Reassign to appropriate issue category if you think it's not in java/platform.
Comment 5 Tomas Zezula 2007-08-23 09:40:19 UTC
The endorsed libs are on boot cp (at least in my setup). Either add a test case or or platform log.

Simple app:
public final class Test {
    public static void main (String...args) {
        System.out.println (System.getProperty("sun.boot.class.path"));
    }
}

Output of ls /usr/lib/jvm/java-1.6.0/jre/lib/endorsed:
je.jar

Output of the app java Test:
/usr/lib/jvm/java-1.6.0/jre/lib/endorsed/je.jar:/usr/lib/jvm/java-1.6.0/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0/jre/classes


Conclusion is obvious.
Comment 6 Milan Kuchtiak 2007-08-23 12:31:31 UTC
Seems that some recent changes fixed the "error annotation" problem.
Can not reproduce any more.