Unable to add files for review using P4 plugin for smartbear code collaborator - macos

I've recently set up my mac for code reviewing using p4v for file syncing/ changelists and ccollab for the review platform. Versions are:
MacOS - 10.15.7
Perforce - P4V/MACOSX1015X86_64/2020.1/1966006
ccollab client - 13_1_13100
Via the coollabgui app, I have the SCM verified and connected with no errors. I am unable to add pending changelists for review, but I can add submitted changelists. What's more is I'm able to submit files for review by manually uploading them through the web client. The big headache comes when I attempt to use the smartbear custom tool that installation builds into P4V. Attempting to right-click and add any changelist results in the following error:
No SCM Configuration could be determined
Cannot run program "p4" (in directory "/Applications/ccollab_client/ccollabgui.app"): error=2, No such file or director
I have reviewed the following other topics on the smartbear forums and found no solutions:
https://community.smartbear.com/t5/Collaborator/quot-No-SCM-could-be-determined-quot-p4-plugin-does-...
https://community.smartbear.com/t5/Collaborator/Config-p4-plugin-on-Mac/m-p/44317
Any ideas? It's looking like this could be a potential bug.
latest log info is:
!SESSION 2020-11-30 09:13:08.279 -----------------------------------------------
eclipse.buildId=unknown
java.version=11
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
!ENTRY com.smartbear.collaborator.ui.standalone 4 0 2020-11-30 09:13:09.284
!MESSAGE Collaborator Enterprise version 13.1.13100
!ENTRY com.smartbear.collaborator 1 0 2020-11-30 09:13:11.024
!MESSAGE INFO: Mon Nov 30 09:13:11 EST 2020: com.smartbear.util.PoolThreadFactory
Thread CommandRunner-1325903125-1 created by thread ModalContext
!ENTRY com.smartbear.collaborator 1 0 2020-11-30 09:13:11.035
!MESSAGE INFO: Mon Nov 30 09:13:11 EST 2020: com.smartbear.util.PoolThreadFactory
Thread CommandRunner-1325903125-2 created by thread ModalContext
!ENTRY com.smartbear.collaborator 1 0 2020-11-30 09:13:11.060
!MESSAGE INFO: Mon Nov 30 09:13:11 EST 2020: com.smartbear.util.PoolThreadFactory
Thread CommandRunner-1325903125-3 created by thread ModalContext
!SESSION 2020-11-30 09:13:26.372 -----------------------------------------------
eclipse.buildId=unknown
java.version=11
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
!ENTRY com.smartbear.collaborator.ui.standalone 4 0 2020-11-30 09:13:27.238
!MESSAGE Collaborator Enterprise version 13.1.13100
!ENTRY com.smartbear.collaborator.ui 4 0 2020-11-30 09:13:28.388
!MESSAGE No SCM Configuration could be determined
!STACK 0
com.smartbear.scm.ScmConfigurationException: Cannot run program "p4" (in directory "/Applications/ccollab_client/ccollabgui.app"): error=2, No such file or directory
at com.smartbear.scm.impl.newp4.P4System.getClientConfiguration(P4System.java:135)
at com.smartbear.scm.impl.newp4.P4System.getClientConfiguration(P4System.java:85)
at com.smartbear.scm.impl.perforce.PerforceSystem.getClientConfiguration(PerforceSystem.java:119)
at com.smartbear.scm.ScmUtils.requireScm(ScmUtils.java:591)
at com.smartbear.collaborator.ui.standalone.wizards.StandaloneScmConfigAddToReviewWizard$1.run(StandaloneScmConfigAddToReviewWizard.java:82)
at com.smartbear.collaborator.ui.wizards.ProgressWizardDialog$AsyncWorkerThread.run(ProgressWizardDialog.java:231)
Caused by: com.smartbear.cmdline.ScmCommunicationException: Cannot run program "p4" (in directory "/Applications/ccollab_client/ccollabgui.app"): error=2, No such file or directory
at com.smartbear.scm.cmd.impl.ScmCmdRunner.run(ScmCmdRunner.java:32)
at com.smartbear.scm.impl.newp4.cli.P4CliConn.executeTextCmd(P4CliConn.java:147)
at com.smartbear.scm.impl.newp4.cli.P4CliConn.<init>(P4CliConn.java:80)
at com.smartbear.scm.impl.newp4.P4System.getClientConfiguration(P4System.java:120)
... 5 more
Caused by: java.io.IOException: Cannot run program "p4" (in directory "/Applications/ccollab_client/ccollabgui.app"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.smartbear.scm.cmd.impl.CommandRunner.run(CommandRunner.java:70)
at com.smartbear.scm.cmd.impl.AutoDebugCommandRunner.run(AutoDebugCommandRunner.java:48)
at com.smartbear.scm.cmd.impl.ScmCmdRunner.run(ScmCmdRunner.java:27)
... 8 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 12 more

Just heard back from the smartbear community and got it fixed. In case someone else tries googling their way to success and needs the answer, it was this for me:
In the P4v client, select "Tools | Manage custom Tools | SmartBear - Add to Review" and click "Edit".
In the "Arguments" field, add the "--p4 your_current_path_to_p4" option after "--scm perforce".
Note: Don't change any other options.
Click "OK", restart the P4v client, and try to reproduce the issue.

Related

IntelliJ community edition 2018.2 Unable to import maven project: See logs for details

I am using IntelliJ on Mac OS Mojave and having an issue loading maven projects in the IDE
I updated my IntelliJ to latest version i.e. 2018.2 community edition
Updated my JDK to 11.0.1
updated maven to 3.5.4
Now I am not able to see maven projects in my IDE and my IDE keeps on showing me "Unable to import" error in the events logs window. Strangely I can compile the project using mvn commands from terminal but cant see the maven projects in IDE window.
error screen shot
I also tried to check the logs which has following in it. I have made sure that Java version used by IntelliJ is version 11. I also tried clearing the idea folder as suggested for other similar questions but that did not help either
Settings
018-10-31 00:45:28,583 [ 119986] INFO - tartup.impl.StartupManagerImpl - Activity run in 109ms on UI thread
2018-10-31 00:45:29,001 [ 120404] INFO - j.ide.ui.OptionsTopHitProvider - 233 ms spent on EDT to cache options in project
2018-10-31 00:45:29,585 [ 120988] WARN - ution.rmi.RemoteProcessSupport - Unrecognized option: -d64
2018-10-31 00:45:29,585 [ 120988] WARN - ution.rmi.RemoteProcessSupport - Error: Could not create the Java Virtual Machine.
2018-10-31 00:45:29,585 [ 120988] WARN - ution.rmi.RemoteProcessSupport - Error: A fatal exception has occurred. Program will exit.
2018-10-31 00:45:29,630 [ 121033] WARN - ution.rmi.RemoteProcessSupport - Unrecognized option: -d64
2018-10-31 00:45:29,630 [ 121033] WARN - ution.rmi.RemoteProcessSupport - Error: Could not create the Java Virtual Machine.
2018-10-31 00:45:29,630 [ 121033] WARN - ution.rmi.RemoteProcessSupport - Error: A fatal exception has occurred. Program will exit.
2018-10-31 00:45:29,632 [ 121035] ERROR - #org.jetbrains.idea.maven - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles(MavenServerManager.java:526)
at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:394)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:103)
at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:62)
at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:655)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:555)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doAdd(MavenProjectsTree.java:500)
at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:461)
at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:432)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorReadingTask.perform(MavenProjectsProcessorReadingTask.java:60)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:132)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:107)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:449)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException: Unrecognized option: -d64
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:161)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:66)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager.lambda$applyProfiles$3(MavenServerManager.java:526)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 20 more
Caused by: com.intellij.execution.ExecutionException: Unrecognized option: -d64
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:159)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:158)
... 24 more
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - IntelliJ IDEA 2018.2.5 Build #IC-182.4892.20
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - JDK: 1.8.0_152-release
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - VM: OpenJDK 64-Bit Server VM
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - Vendor: JetBrains s.r.o
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - OS: Mac OS X
2018-10-31 00:45:29,633 [ 121036] ERROR - #org.jetbrains.idea.maven - Last Action: EditorBackSpace
Finally, I managed to solve it by uninstalling IntelliJ, deleting all the setting from current and previous versions of IntelliJ ( ⁨Users⁩/⁨/⁨Library⁩/ ⁨Preferences⁩) and then reinstalling it again
Before that , I tried all the following as suggested in various posts that did not help much in my case
Cleaning up .idea folder
setting up PATH variables correctly
Using maven from installed directory instead of bundled option
Most important part was cleaning up the old settings and a simple reinstall did not work for me.
What I am not sure still is that what was causing "Invalid options -d64" error from those settings. But finally now I can try out latest Java, Maven and IntelliJ
Thanks.
It's a known issue with JDK 10/11: https://youtrack.jetbrains.com/issue/IDEA-195143. Bug is fixed in 2018.3
It seems you are running Maven with an unrecognized option, -d64, and that's causing that error. Check your Maven settings in IntelliJ.

Error installing IBM Rational Software Architect for MacOs

I'm able to successfully install RSA 9.6 on my MacBook, but when I try to start the application I get the following error written out into my log. Any help would be gratefully welcomed
!SESSION Fri Jun 30 08:21:28 CDT 2017 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2017-06-30 08:21:28.394
!MESSAGE Could not find extension: com.ibm.cds
!SESSION 2017-06-30 08:21:28.353 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product com.ibm.rational.rsa.product.v90.ide
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -clean -product com.ibm.rational.rsa.product.v90.ide
!ENTRY org.eclipse.osgi 4 0 2017-06-30 08:21:29.088
!MESSAGE Bundle com.ibm.cds not found.
!ENTRY org.eclipse.equinox.app 0 0 2017-06-30 08:21:29.379
!MESSAGE Product com.ibm.rational.rsa.product.v90.ide could not be found.
!ENTRY org.eclipse.osgi 4 0 2017-06-30 08:21:36.198
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
I found this on https://www.ibm.com/developerworks/community/forums/html/topic?id=9ed43812-9c67-4fd5-921b-f7acb405e12b. The short answer is edit the following file:
/Applications/IBM/SoftwareDeliveryPlatform/RSA.app/Contents/MacOS/ExecuteScript
And change the one line to specify v9.6 instead of 9.5. I tried an earlier version of RSA (9.1) and it had a similar problem of pointing to 9.0. Really sad because this is a very powerful tool.
Change $ECLIPSE_APP -product com.ibm.rational.rsa.product.v95.ide &
to $ECLIPSE_APP -product com.ibm.rational.rsa.product.v96.ide &
https://www.ibm.com/developerworks/community/forums/html/topic?id=9ed43812-9c67-4fd5-921b-f7acb405e12b

Mac Appcelerator Studio: An error has occurred

When trying to run Appcelerator Studio getting this error
Ive tried to reinstall Studio with all libraries and caches, nothing works.
OSX 10.10.4 (14E46)
Java 8 Update 60
An error has occurred.
See the log file
~/Appcelerator_Studio_Workspace/.metadata/.log.
!SESSION 2015-08-20 19:53:03.688 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.9.0-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ru_RU
Framework arguments: -keyring /Users/user/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/user/.eclipse_keyring -consoleLog -showlocation
!ENTRY org.eclipse.core.resources 2 10035 2015-08-20 19:53:05.671
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.core.net 1 0 2015-08-20 19:53:06.419
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.osgi 4 0 2015-08-20 19:53:17.256
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheetList
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:759)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 44 more
!ENTRY org.eclipse.core.jobs 2 2 2015-08-20 19:53:17.680
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.aptana.usage.internal.DefaultAnalyticsEventHandler$1
To fix this issue you need to switch JavaVirtualMachines from jdk1.9.0.jdk to jdk1.7.0_80.jdk or 1.6.0.jdk
/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/

Eclipse Google Plugin - WTP Server - Not creating lib folder

since a few days the Eclipse plugins started to show this error.
The project is an App Engine project based on Maven, and the dev-server is launched using the WTP integration provided by the Google Eclipse Plugin.
AVVERTENZA: failed
com.google.appengine.tools.development.DevAppEngineWebAppContext#345541bd{/,C:\Noovle\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\Ape_Core}:
java.lang.NoClassDefFoundError: com/google/appengine/api/utils/SystemProperty
Here is the full stack trace when the server is loaded
lug 07, 2015 11:43:12 AM java.util.prefs.WindowsPreferences <init>
AVVERTENZA: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
lug 07, 2015 11:43:12 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFORMAZIONI: Successfully processed C:\Noovle\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\Ape_Core\WEB-INF/appengine-web.xml
lug 07, 2015 11:43:12 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFORMAZIONI: Successfully processed C:\Noovle\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\Ape_Core\WEB-INF/web.xml
lug 07, 2015 11:43:13 AM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFORMAZIONI: Overwriting system property key 'java.util.logging.config.file', value 'C:\Users\Nicola\.m2\repository\com\google\appengine\appengine-java-sdk\1.9.22\appengine-java-sdk\appengine-java-sdk-1.9.22\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Noovle\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\Ape_Core\WEB-INF\appengine-web.xml'
lug 07, 2015 11:43:13 AM com.google.apphosting.utils.jetty.JettyLogger info
INFORMAZIONI: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
lug 07, 2015 11:43:14 AM com.google.apphosting.utils.jetty.JettyLogger info
INFORMAZIONI: jetty-6.1.x
lug 07, 2015 11:43:18 AM com.google.apphosting.utils.jetty.JettyLogger warn
AVVERTENZA: failed com.google.appengine.tools.development.DevAppEngineWebAppContext#345541bd{/,C:\Noovle\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\Ape_Core}: java.lang.NoClassDefFoundError: com/google/appengine/api/utils/SystemProperty
lug 07, 2015 11:43:18 AM com.google.apphosting.utils.jetty.JettyLogger warn
AVVERTENZA: failed JettyContainerService$ApiProxyHandler#2b8d9248: java.lang.NoClassDefFoundError: com/google/appengine/api/utils/SystemProperty
lug 07, 2015 11:43:18 AM com.google.apphosting.utils.jetty.JettyLogger warn
AVVERTENZA: Error starting handlers
java.lang.NoClassDefFoundError: com/google/appengine/api/utils/SystemProperty
at it.noovle.ape.tools.ToolsEnvironment.getApplicationVersion(ToolsEnvironment.java:26)
After some analysis I found the problem: when the server is published (or even a new one is created) the lib folder in WEB-INF is not created.
I'm sure about that because if I copy the lib folder from another project (they share the same libraries) the server starts without problems.
I tried a clean start creating a new server, and as expected the lib folder is missing.
In the Error Log tab of Eclipse no problems are shown during the creation and publication of the server
I also need to clarify that if I launch the project with the devserver maven goal, there are no problems at all.
I'm running on Windows 8 with Eclipse Mars (my coworker has Luna instead but same problem is shown).
The version of Google Plugin is Google Plugin for Eclipse 4.4 3.8.0.v201410302155-rel-r44. Another coworker of mine has the same version of the plugin with Eclipse Luna and does not show this problem
Is there a way to debug the steps of the WTP plugin to understand why the lib folder is not created?
Which is the possible explanation of this behaviour?
Solved, missing Maven Dependencies on Deployment Assembly project properties

How to setup a proper equinox installation

I googled this for hours but I couldn't find anything useful.
I have developed some OSGi bundles and now I want to run them outside of the Eclipse IDE in the equinox container, but it always throws an exception:
!SESSION 2011-01-03 14:26:58.958 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_CH
Framework arguments: -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -console;
Command-line arguments: -consoleLog -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -console;
!ENTRY org.eclipse.osgi 4 0 2011-01-03 14:26:59.567
!MESSAGE Error starting bundle: initial#reference:file:javax.transaction_1.1.1.v201006150915.jar/
!STACK 0
org.osgi.framework.BundleException: A fragment bundle cannot be started: javax.transaction_1.1.1.v201006150915 [49]
at org.eclipse.osgi.framework.internal.core.BundleFragment.startWorker(BundleFragment.java:228)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startBundle(EclipseStarter.java:1133)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startBundles(EclipseStarter.java:1126)
at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:646)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:301)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150)
init dd core...
!ENTRY org.eclipse.osgi 4 0 2011-01-03 14:26:59.773
!MESSAGE Bundle javax.transaction_1.1.1.v201006150915 [49] is not active.
(the "init dd core..." text comes properly from my project.)
I have the following file structure:
+configuration
+config.ini
+ch.thobens.dd.commands_1.0.0.jar
+ch.thobens.dd.common.items_1.0.0.jar
+ch.thobens.dd.core_1.0.0.jar
+ch.thobens.dd.game_1.0.0.jar
+javax.transaction_1.1.1.v201006150915.jar
+org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar
+org.eclipse.core.jobs_3.5.0.v20100515.jar
+org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar
+org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520/runtime_registry_compatibility.jar
+org.eclipse.core.runtime_3.6.0.v20100505.jar
+org.eclipse.equinox.app_1.3.0.v20100512.jar
+org.eclipse.equinox.common_3.6.0.v20100503.jar
+org.eclipse.equinox.preferences_3.3.0.v20100503.jar
+org.eclipse.equinox.registry_3.5.0.v20100503.jar
+org.eclipse.osgi.services_3.2.100.v20100503.jar
+org.eclipse.osgi_3.6.0.v20100517.jar
and my config.ini file has the following contents:
osgi.bundles=javax.transaction_1.1.1.v201006150915.jar#start, org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar#start, org.eclipse.core.jobs_3.5.0.v20100515.jar#start, org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar#start,org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520/runtime_registry_compatibility.jar#start, org.eclipse.core.runtime_3.6.0.v20100505.jar#start, org.eclipse.equinox.app_1.3.0.v20100512.jar#start, org.eclipse.equinox.common_3.6.0.v20100503.jar#2:start, org.eclipse.equinox.preferences_3.3.0.v20100503.jar#start, org.eclipse.equinox.registry_3.5.0.v20100503.jar#start, org.eclipse.osgi.services_3.2.100.v20100503.jar#start, ch.thobens.dd.commands_1.0.0.jar#start, ch.thobens.dd.common.items_1.0.0.jar#start, ch.thobens.dd.core_1.0.0.jar#start, ch.thobens.dd.game_1.0.0.jar#1:start
eclipse.ignoreApp=true
osgi.noShutdown=true
The bundles that are listed here are the same bundles that are selected if I select "Add required Plug-ins" in the run configuration. If I run these bundles from the Eclipse PDE, it works fine.
Additionally, there is no difference between running the command
java -jar org.eclipse.osgi_3.6.0.v20100517.jar -consoleLog -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true
and when I use the equinox launcher (via eclipse.exe).
Thanks for any help
I found the solution (through the eclipse product exporter):
The javax.transaction_1.1.1.v201006150915.jar is not an OSGi bundle itself, it's an OSGi framework extension.
I had to change the config.ini file:
Remove the entry for the
javax_transaction bundle in the
property osgi.bundles
added the following line:
osgi.framework.extensions=javax.transaction_1.1.1.v201006150915.jar

Resources