Tagged: LibertyProfile
- This topic has 2 replies, 2 voices, and was last updated 6 months, 1 week ago by Brian Fernandes.
-
AuthorPosts
-
cwhankey1967ParticipantI’m using the WebSphere Application Server LibertyProfile v8.5 to deploy to an Open Liberty server. For one application this server plugin is not deploying .class files. It deploys .java files only.
I use “WebSphere Application Server LibertyProfile v8.5” for other projects & it deploys .class files as expected. I assume this is an incorrect setting somewhere, but what & where?
cwhankey1967Participantupdate: found this error in the .metadata\.log file. Note, other apps use this plugin but don’t get this error.
!ENTRY com.genuitec.eclipse.runtime 4 0 2024-04-25 10:37:17.626
!MESSAGE Runtime WebSphere Application Server V8.5 Liberty Profile cannot provide path for base-dir “server-dir”.
!STACK 0
java.lang.Exception: Runtime WebSphere Application Server V8.5 Liberty Profile cannot provide path for base-dir “server-dir”.
at com.genuitec.eclipse.core.GenuitecCoreException.<init>(GenuitecCoreException.java:80)
at com.genuitec.eclipse.core.GenuitecCoreException.<init>(GenuitecCoreException.java:52)
at com.genuitec.eclipse.runtime.internal.StaticClasspathContributor.doFillClasspathEntries(StaticClasspathContributor.java:94)
at com.genuitec.eclipse.runtime.internal.ClasspathContributor.getClasspathEntries(ClasspathContributor.java:109)
at com.genuitec.eclipse.runtime.internal.ExtPointContainer.fillClasspathEntries(ExtPointContainer.java:220)
at com.genuitec.eclipse.runtime.internal.Container.getClasspathEntries(Container.java:126)
at com.genuitec.eclipse.runtime.internal.RuntimeClasspathContainer.getClasspathEntries(RuntimeClasspathContainer.java:35)
at org.eclipse.jdt.internal.ui.packageview.ClassPathContainer.getChildren(ClassPathContainer.java:193)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.getContainerPackageFragmentRoots(PackageExplorerContentProvider.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.getChildren(PackageExplorerContentProvider.java:300)
at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.getChildren(JavaNavigatorContentProvider.java:182)
at org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.getChildren(SafeDelegateTreeContentProvider.java:98)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider$1.run(NavigatorContentServiceContentProvider.java:160)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.internalGetChildren(NavigatorContentServiceContentProvider.java:146)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.getChildren(NavigatorContentServiceContentProvider.java:125)
at com.genuitec.myeclipse.ui.navigator.MEEmptyLibraryContainerFilter.getRawChildren(MEEmptyLibraryContainerFilter.java:45)
at com.genuitec.myeclipse.ui.navigator.MEEmptyLibraryContainerFilter.hasFilteredChildren(MEEmptyLibraryContainerFilter.java:31)
at com.genuitec.myeclipse.ui.navigator.MEEmptyLibraryContainerFilter.select(MEEmptyLibraryContainerFilter.java:25)
at org.eclipse.jface.viewers.ViewerFilter.filter(ViewerFilter.java:62)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:859)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:621)
at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2664)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1954)
at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:677)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1930)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1887)
at org.eclipse.ui.navigator.CommonViewer.internalRefresh(CommonViewer.java:532)
at org.eclipse.jface.viewers.StructuredViewer.lambda$3(StructuredViewer.java:1484)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1400)
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:363)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1361)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1484)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:538)
at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:349)
at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:495)
at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$4.run(ResourceExtensionContentProvider.java:312)
at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.runUpdates(ResourceExtensionContentProvider.java:323)
at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider.access$1(ResourceExtensionContentProvider.java:321)
at org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider$2.run(ResourceExtensionContentProvider.java:141)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4005)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3633)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Brian FernandesModeratorThanks for providing the stack trace. Can you please confirm the version of MyEclipse you’re using from Help > About?
If we ignore deployment, are you able to start and stop the server successfully?
What exact version of Open Liberty do you have configured?
Note, other apps use this plugin but don’t get this error.
Do you mean you’re able to deploy other applications to this same server and they deploy fine? If so, a good place to start looking is the deployment assembly (project properties > Deployment > Deployment Assembly). It’s very likely that this is incorrectly configured for the project, not mapping the output folder to the deployment assembly as it should. You could compare the deployment assembly of this project with that of a project that you have working to fix this.
Hope this helps, please keep us posted.
-
AuthorPosts