Cannot run org.jboss.tools.jsf.ui.test plug-in tests using tycho build
by vrubezhny@exadel.com
Hi, All!
I have a problem while trying to start JUnit testing on
org.jboss.tools.jsf.ui plug-in using tycho build.
While discovering the error log I see that it's failed while trying to
read manifest from some plug-in, while last successful operation was
expanding macosx-targeted jar:
[DEBUG] Using test framework org.junit4
[DEBUG] Expanding:
/home/jeremy/projects/jbosstools-src/.repository/p2/osgi/bundle/org.eclipse.equinox.launcher.cocoa.macosx/1.1.2.R36x_v20101019_1345/org.eclipse.equinox.launcher.cocoa.macosx-1.1.2.R36x_v20101019_1345.jar
into
/home/jeremy/projects/jbosstools-src/jsf/tests/org.jboss.tools.jsf.ui.test/target/work/plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.2.R36x_v20101019_1345
[DEBUG] expand complete
[WARNING] Exception reading bundle manifest
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
Maybe the problem is near these operations, because I'm trying to run this
test under linux amd64, but not under macosx. (However I didn't specified
a certain platform in mvn build command: I used -P -helios-no-target
option).
See full error log attached.
Thanks in advance,
Victor Rubezhny
14 years
Cannot build seam and jsf projects using tycho build
by vrubezhny@exadel.com
Hi, All!
I have a problem while trying to build Seam and JSF projects using tycho
build.
It seams that one of the libraries needed to build
org.jboss.tools.ui.bot.ext plug-in is lost.
Does anybody faced the same problem? How did you resolved it?
Thanks in advance,
Victor Rubezhny
PS: My environment is Linux x64, java version "1.6.0_20", OpenJDK Runtime
Environment (IcedTea6 1.9.1) (6b20-1.9.1-1ubuntu3), OpenJDK 64-Bit Server
VM (build 17.0-b16, mixed mode)
PPS: The following is the error log:
INFO] Adding repository
http://download.jboss.org/jbosstools/builds/staging/jbosstools-drools/all...
[WARNING] Failed to access p2 repository jboss-drools-nightly
(http://download.jboss.org/jbosstools/builds/staging/jbosstools-drools/all...),
will try to use local cache. Reason:
org.eclipse.equinox.p2.core.ProvisionException: No repository found at
http://download.jboss.org/jbosstools/builds/staging/jbosstools-drools/all....
java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No repository found at
http://download.jboss.org/jbosstools/builds/staging/jbosstools-drools/all....
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.addP2Repository(P2ResolverImpl.java:247)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:252)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:105)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:68)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:200)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:95)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:430)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:160)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository
found at
http://download.jboss.org/jbosstools/builds/staging/jbosstools-drools/all....
at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:392)
at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:676)
at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.addP2Repository(P2ResolverImpl.java:223)
... 17 more
[INFO] Adding repository (cached)
http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/
[DEBUG] Added p2 repository swtbot-helios
(http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/)
[INFO] Adding repository (cached) http://m2eclipse.sonatype.org/sites/m2e/
[DEBUG] Added p2 repository m2eclipse
(http://m2eclipse.sonatype.org/sites/m2e/)
[INFO] Adding repository (cached)
http://m2eclipse.sonatype.org/sites/m2e-extras/
[DEBUG] Added p2 repository m2eclipse-extras
(http://m2eclipse.sonatype.org/sites/m2e-extras/)
[INFO] Adding repository (cached)
http://download.jboss.org/jbosstools/updates/requirements/thirdparty/
[DEBUG] Added p2 repository jboss-thirdparty
(http://download.jboss.org/jbosstools/updates/requirements/thirdparty/)
[INFO] Adding repository (cached)
http://download.jboss.org/jbosstools/updates/requirements/xulrunner-1.9.1.2/
[DEBUG] Added p2 repository jboss-xulrunner-1.9.1.2
(http://download.jboss.org/jbosstools/updates/requirements/xulrunner-1.9.1.2/)
[INFO] Adding repository (cached) http://dl.google.com/eclipse/plugin/3.6
[DEBUG] Added p2 repository google eclipse plugins
(http://dl.google.com/eclipse/plugin/3.6)
[DEBUG] Ignoring Maven repository jboss-public-repository-group
(http://repository.jboss.org/nexus/content/groups/public/)
[DEBUG] Ignoring Maven repository central (http://repo1.maven.org/maven2)
[INFO] Cannot complete the request. Generating details.
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=cocoa, osgi.arch=x86, osgi.os=macosx,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[INFO] [Software being installed: org.jboss.tools.ui.bot.ext
3.2.0.qualifier, Missing requirement: org.jboss.tools.ui.bot.ext
3.2.0.qualifier requires 'package com.metamatrix.modeler.diagram.ui.figure
0.0.0' but it could not be found]
[ERROR] Internal error: java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found because
the problem is unsatisfiable. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found because
the problem is unsatisfiable.
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:430)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:160)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found because
the problem is unsatisfiable.
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:98)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:335)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:300)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:406)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:105)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:68)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:200)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:95)
... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No solution
found because the problem is unsatisfiable.
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
14 years
Trunk open for CR1
by Max Rydahl Andersen
Hi,
Just to be clear, trunk is open for CR1 fixes now that we have branched for Beta2.
Please remember that CR1 is *not* for adding new features or radically change new things.
If something needs radical change to fix a big bug/missing requirement then raise it and we'll look into it.
/max
14 years
Re: [jbosstools-dev] @Target for qualifier type
by Alexey Kazakov
Sure.
On 11/23/2010 05:41 PM, Pete Muir wrote:
> Can you file an issue with the archetypes, they are wrong.
>
> On 23 Nov 2010, at 14:41, Pete Muir wrote:
>
>> I think it should have the @Target's that the spec describes, anything else is non-portable. Erroring, or maybe warning (I would prefer an error), is a good idea.
>>
>> On 23 Nov 2010, at 14:27, Alexey Kazakov wrote:
>>
>>> Hi Pete,
>>>
>>> Could you take a look at https://jira.jboss.org/browse/JBIDE-7710
>>> JSR-299 says that a qualifier type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE}) or @Target({FIELD, PARAMETER}) (an event qualifier type):
>>>
>>> 2.3.2. Defining new qualifier types
>>> A qualifier type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME).
>>> ...
>>>
>>> 10.1. Event types and qualifier types
>>> ...
>>> An event qualifier type is just an ordinary qualifier type as specified in Section 2.3.2, “Defining new qualifier types” with the exception that it may be declared @Target({FIELD, PARAMETER}).
>>> ...
>>>
>>> But the spec doesn't require to treat other kinds of @Target (for example @Target({FIELD, METHOD, PARAMETER} which is used in weld-jsf-jee archetype) as a definition error.
>>> It seems that we got it wrong and if there is any @Target except @Target({METHOD, FIELD, PARAMETER, TYPE}) or @Target({FIELD, PARAMETER}) then JBT marks such definitions as errors:
>>> Qualifier annotation type must be annotated with @Target({TYPE, METHOD, FIELD, PARAMETER}) or @Target({METHOD, FIELD}) [JSR-299 §2.3.2, §10.1]
>>> Can you confirm that actually a qualifier type could have any @Target?
>>>
>>> Thanks.
14 years
@Target for qualifier type
by Alexey Kazakov
Hi Pete,
Could you take a look at https://jira.jboss.org/browse/JBIDE-7710
JSR-299 says that a qualifier type is a Java annotation defined as
@Target({METHOD, FIELD, PARAMETER, TYPE}) or @Target({FIELD, PARAMETER})
(an event qualifier type):
/2.3.2. Defining new qualifier types/
/A qualifier type is a Java annotation defined as @Target({METHOD,
FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME)./
/.../
/10.1. Event types and qualifier types/
/.../
/An event qualifier type is just an ordinary qualifier type as
specified in Section 2.3.2, “Defining new qualifier types” with the
exception that it may be declared @Target({FIELD, PARAMETER})./
/.../
But the spec doesn't require to treat other kinds of @Target (for
example @Target({FIELD, METHOD, PARAMETER} which is used in weld-jsf-jee
archetype) as a definition error.
It seems that we got it wrong and if there is any @Target except
@Target({METHOD, FIELD, PARAMETER, TYPE}) or @Target({FIELD, PARAMETER})
then JBT marks such definitions as errors:
/Qualifier annotation type must be annotated with @Target({TYPE,
METHOD, FIELD, PARAMETER}) or @Target({METHOD, FIELD}) [JSR-299
§2.3.2, §10.1]/
Can you confirm that actually a qualifier type could have any @Target?
Thanks.
14 years
Cannot build seam project using tycho
by vrubezhny@exadel.com
Hi, All!
Since this morning update i cannot build seam project using tycho...
All I've done is just updated from svn, then built the parent pom.
To build the seam project I used the following command:
mvn clean install -f build/pom.xml -Dmaven.test.skip -P
helios-no-target,seam-bootstrap
this results to the following error:
[INFO] Adding repository (cached) http://dl.google.com/eclipse/plugin/3.6
[WARNING] Exception reading bundle manifest
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at
org.codehaus.tycho.osgitools.DefaultBundleReader.doLoadManifest(DefaultBundleReader.java:85)
at
org.codehaus.tycho.osgitools.DefaultBundleReader.loadManifest(DefaultBundleReader.java:47)
at
org.codehaus.tycho.osgitools.EquinoxResolver.loadManifest(EquinoxResolver.java:199)
at
org.codehaus.tycho.osgitools.EquinoxResolver.addBundle(EquinoxResolver.java:175)
at
org.codehaus.tycho.osgitools.EquinoxResolver.newState(EquinoxResolver.java:157)
at
org.codehaus.tycho.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:52)
at
org.codehaus.tycho.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:194)
at
org.codehaus.tycho.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:142)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:80)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:200)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:95)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:430)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:160)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
(full log attached)
I tried to build jsf project using the similar command and it is built
successfully. The problems appears only when I try to build seam project.
Any suggestions are appreciated.
Thanks,
Victor Rubezhny
14 years