Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Issue compiling CBI WTP with Access Restriction error

Okay, I had a look. From what I can tell, Tycho behaves correctly and
identified a bug in org.eclipse.wst.sse.core.

This bundle has Bundle-RequiredExecutionEnvironment: J2SE-1.4, which
does not provide org.w3c.dom.traversal AFAIK, so the class can't be
resolved from JVM libraries. And none of the bundle dependencies provide
org.w3c.dom.traversal package either.

I'd bring this to WTP developers. I think they should either set bundle
runtime execution environment to J2SE-1.5, which provides
org.w3c.dom.traversal package, or find some other way to source it.

--
Regards,
Igor

On 12-05-15 11:58 PM, Thanh Ha wrote:
On 05/15/2012 08:18 PM, Igor Fedorenko wrote:
Can you try Tycho 0.15.0-SNAPSHOT? It has fixes for couple of problems
related to bundle runtime execution environment handling, which I think
can explain the compilation errors that you see.
I tried with 0.15.0-SNAPSHOT and am still seeing the same errors.


[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.15.0-SNAPSHOT:compile
(default-compile) on project org.eclipse.wst.sse.core: Compilation
failure: Compilation failure:
[ERROR]
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[46,0]

[ERROR] import org.w3c.dom.traversal.NodeIterator;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Access restriction: The type NodeIterator is not accessible due
to restriction on classpath entry
/home/user/Downloads/jdk1.6.0_32/jre/lib/rt.jar
[ERROR]
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[288,0]

[ERROR] public void printTree(NodeIterator iter) {
[ERROR] ^^^^^^^^^^^^
[ERROR] Access restriction: The type NodeIterator is not accessible due
to restriction on classpath entry
/home/user/Downloads/jdk1.6.0_32/jre/lib/rt.jar
[ERROR]
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[290,0]

[ERROR] while ((n = iter.nextNode()) != null) {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] Access restriction: The method nextNode() from the type
NodeIterator is not accessible due to restriction on classpath entry
/home/user/Downloads/jdk1.6.0_32/jre/lib/rt.jar
[ERROR] 3 problems (3 errors)
[ERROR] -> [Help 1]

_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top