Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestNG does not show up in Run Configurations in Eclipse 4.33 #570

Open
mpet opened this issue Oct 25, 2024 · 9 comments
Open

TestNG does not show up in Run Configurations in Eclipse 4.33 #570

mpet opened this issue Oct 25, 2024 · 9 comments

Comments

@mpet
Copy link

mpet commented Oct 25, 2024

Problem Statement

please read https://github.com/cbeust/testng-eclipse/blob/master/docs/Troubleshooting.md first

Any relate message in "Error Log" view

"Windows -> Show View -> Others -> Error Log"
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: se.ericsson.jcat.jcat_eclipse_reports [456]
Unresolved requirement: Require-Bundle: org.testng.eclipse; bundle-version="6.7.0"
-> Bundle-SymbolicName: org.testng.eclipse; bundle-version="7.10.0.202404131040"; singleton:="true"
org.testng.eclipse [451]
Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[15.0.0,22.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:493)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:2074)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:143)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2065)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2005)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1968)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1884)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

The Dependency Management tool for your project

  • Maven

Operating System

  • Linux
@missedone
Copy link
Collaborator

@mpet , could you share the full stack of the error/exceptions, it's hard to tell the issue with your original post.

BTW, I just tried on the latest Eclipse 4.33 Enterprise Java and Web Developer bundle package, it worked:
image

@mpet
Copy link
Author

mpet commented Oct 28, 2024

@missedone

This is the only thing I get in the .log

!SESSION 2024-10-25 12:06:49.318 -----------------------------------------------
eclipse.buildId=I20240914-1800.202409091524
java.version=21.0.4
java.vendor=Azul Systems, Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -data /repo/epkboha/mje_workspace

!ENTRY org.testng.eclipse 4 0 2024-10-25 12:06:52.654
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.testng.eclipse [451]
  Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[15.0.0,22.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:493)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:2074)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:143)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2065)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2005)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1968)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1884)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

!ENTRY se.ericsson.jcat.jcat_eclipse_reports 4 0 2024-10-25 12:06:52.656
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: se.ericsson.jcat.jcat_eclipse_reports [456]
  Unresolved requirement: Require-Bundle: org.testng.eclipse; bundle-version="6.7.0"
    -> Bundle-SymbolicName: org.testng.eclipse; bundle-version="7.10.0.202404131040"; singleton:="true"
       org.testng.eclipse [451]
         Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[15.0.0,22.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:493)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:2074)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:143)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2065)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2005)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1968)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1884)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

br,

//mikael

@mpet
Copy link
Author

mpet commented Nov 1, 2024

@missedone can you share your testng install list so I can see the versions?

@missedone
Copy link
Collaborator

well, it's jus the standard JEE bundle with testng plugin

image

@mpet
Copy link
Author

mpet commented Nov 1, 2024

I checked osgi view

image

What is your version there?

And since the requirement is

Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[15.0.0,22.0.0)"

It will fail.

I wonder if it is possible to see which plugin is pulling 3.33.0-jre?

@mpet
Copy link
Author

mpet commented Nov 4, 2024

@missedone could you check which version you have of guava?

@missedone
Copy link
Collaborator

image

@mpet
Copy link
Author

mpet commented Nov 8, 2024

@missedone could you share you complete plugin config so I can compare.

@mpet
Copy link
Author

mpet commented Nov 8, 2024

@missedone I can also see that the users to this version is:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants