Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Specifying the Target JVM and a possible bug..?

I'll look into it, but I'm getting kinda short on time with the approaching release.

 In the meantime, I discovered that the original scenario does still work as expected, so this may just be a similar use-case. The error below is occurring at dependency resolution (parsing the P2 repos - for the moxy bundle if moxy's BREE is set to J2SE-1.5, using either 0.14.1 or 0.15.0-SNAPSHOT). The original issue was at compile time (access restriction-in the core bundle if BREE was J2SE-1.5 using 0.14.1, 0.15.0-SNAPSHOT still resolves the issue).

I'll try to setup an example project I can send you to demonstrate the former.

-Eric

On 24/05/2012 5:41 PM, Igor Fedorenko wrote:
Can you provide a simple standalone project we can use to reproduce the
problem? The regression tests for bug 371565 pass, so it must be some
other scenario (or the tests are wrong).

--
Regards,
Igor

On 12-05-24 3:15 PM, Eric Gwin wrote:
Igor,

I just did a spot check of the latest 0.15.0-SNAPSHOT, and it seems that
the bug fixed below (and verified earlier) has regressed. I'm getting
the error message below when I revert the BREE to "J2SE-1.5" for the
Moxy bundle even when using 0.15.0-SNAPSHOT:

[java] [ERROR] Cannot resolve project dependencies:
[java] [ERROR] Software being installed: org.eclipse.persistence.moxy
2.4.0.qualifier
[java] [ERROR] Missing requirement: org.eclipse.persistence.moxy
2.4.0.qualifier requires 'package javax.xml.transform.stax 0.0.0' but it
could
not be found
[java] [ERROR]
[java] [ERROR] Internal error: java.lang.RuntimeException: "No solution
found because the problem is unsatisfiable.": ["Unable to satisfy depende
ncy from org.eclipse.persistence.moxy 2.4.0.qualifier to package
javax.xml.transform.stax 0.0.0.", "No solution found because the problem
is unsatisfi
able."] -> [Help 1]
[java] org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: "No solution found because the problem is
unsatisfiab
le.": ["Unable to satisfy dependency from org.eclipse.persistence.moxy
2.4.0.qualifier to package javax.xml.transform.stax 0.0.0.", "No
solution found
because the problem is unsatisfiable."]

-Eric

On 25/04/2012 4:04 PM, Igor Fedorenko wrote:
Current plan is to release tycho 0.15 "soon after Eclipse Juno M7".

--
Regards,
Igor

On 12-04-25 3:58 PM, Eric Gwin wrote:
Igor,

Thanks. 0.15.0-SNAPSHOT seems to fix it. Do you have a target date for
release availability yet?

-Eric
Can I get a URL for the plugin?

<url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-004/</url>



Isn't working...

[java] [ERROR] Unresolveable build extension: Plugin
org.eclipse.tycho:tycho-maven-plugin:0.15.0-SNAPSHOT or one of its
dependencies could not be resol
ved: Could not find artifact
org.eclipse.tycho:tycho-maven-plugin:jar:0.15.0-SNAPSHOT in
tycho-0.14.0-staged
(https://oss.sonatype.org/content/repositories/orge
clipsetycho-004/) -> [Help 2]

Eric

On 25/04/2012 2:57 PM, Igor Fedorenko wrote:
Sounds like bug 371565 [1]. Can you check if 0.15.0-SNAPSHOT works
better?

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=371565

--
Regards,
Igor

On 12-04-25 2:47 PM, Eric Gwin wrote:
Hi,

We have a bundle that depends upon javax.xml.stream, compile
against JDK
1.6, but are currently trying to maintain compatibility with JDK
1.5. I
thought previous posts stated that the target JVM flag is set
according
to the manifest's Bundle-RequiredExecutionEnvironment parameter, but
cannot find the reference.

At any rate, Using JDK 1.6, Maven 3.0.4, and Tycho 0.14.1,
compiling the
bundle in question using Bundle-RequiredExecutionEnvironment:
J2SE-1.5,
yields:

...
[java] [ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.14.1:compile
(default-compile)
on project org.eclipse.persistence.core: Compilation failure:
Compilation failure:
[java] [ERROR]
D:\_EL_Trunk2\foundation\org.eclipse.persistence.core\src\org\eclipse\persistence\oxm\record\XMLEventWriterRecord.java:[22,0]




[java] [ERROR] import javax.xml.stream.XMLEventFactory;
[java] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [ERROR] Access restriction: The type XMLEventFactory is not
accessible due to restriction on classpath entry C:\Program
Files\Java\jdk1.6.0_26\jre\lib\rt.jar
[java] [ERROR]
D:\_EL_Trunk2\foundation\org.eclipse.persistence.core\src\org\eclipse\persistence\oxm\record\XMLEventWriterRecord.java:[23,0]




[java] [ERROR] import javax.xml.stream.XMLEventWriter;
[java] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [ERROR] Access restriction: The type XMLEventWriter is not
accessible due to restriction on classpath entry C:\Program
Files\Java\jdk1.6.0_26\jre\lib\rt.jar
[java] [ERROR]
D:\_EL_Trunk2\foundation\org.eclipse.persistence.core\src\org\eclipse\persistence\oxm\record\XMLEventWriterRecord.java:[24,0]




[java] [ERROR] import javax.xml.stream.XMLStreamException;
[java] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [ERROR] Access restriction: The type XMLStreamException is
not
accessible due to restriction on classpath entry C:\Program
Files\Java\jdk1.6.0_26\jre\lib\rt.jar
[java] [ERROR]
D:\_EL_Trunk2\foundation\org.eclipse.persistence.core\src\org\eclipse\persistence\oxm\record\XMLEventWriterRecord.java:[25,0]




[java] [ERROR] import javax.xml.stream.events.XMLEvent;
[java] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[java] [ERROR] Access restriction: The type XMLEvent is not
accessible
due to restriction on classpath entry C:\Program
Files\Java\jdk1.6.0_26\jre\lib\rt.jar
...

The thing is, while these packages are in the 1.6 JVM, they
aren't in
the 1.5. However, we have a repository setting for Orbit, so Tycho
should be able to resolve the packages from the javax.xml.stream
bundle
there. Instead to make the errors go away I've had to change the
manifest setting to "JavaSE-1.6".

Is this a Tycho bug, or a configuration issue on my part? Does
changing
that setting mean the JVM target has changed to 1.6?

-Eric

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top