Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Server runtime lost
Server runtime lost [message #149522] Mon, 28 November 2005 06:27 Go to next message
Eclipse UserFriend
Originally posted by: lf_killspam.hemmis.be

Hello,

I have upgraded from WTP0.7 to WTP1.0M9, but I seem to have lost the
server runtime settings for my project and can't change or reset it.

I installed all WTP plugins and prerequisites in a new extension
location and used the server definitions for JBoss 4.0.x from
"http://www.projst.com/eclipse/updates/". Also the JBoss server 4.0.3 is
defined correctly in the server definitions under Eclipse preferences.
Everything seems to be installed correctly.

But somehow, my project is unable to correctly identify the server
runtime. So the required jar's for my j2ee sources can't be found (but
of course I can work around this by adding those jar's by hand to the
build path).

Any idea how I could set the server runtime for my project? I have also
noticed the following error in the eclipse log files.

java.lang.NullPointerException
at
org.eclipse.jst.server.core.internal.RuntimeBridge.getExport edRuntimeNames(RuntimeBridge.java:81)
at
org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.bridge(RuntimeManagerImpl.java:333)
at
org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.getRuntimes(RuntimeManagerImpl.java:125)
at
org.eclipse.wst.common.project.facet.core.runtime.RuntimeMan ager.getRuntimes(RuntimeManager.java:78)
at
org.eclipse.wst.common.project.facet.ui.internal.RuntimesPan el$ContentProvider.getElements(RuntimesPanel.java:357)
at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:848)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:896)
at
org.eclipse.jface.viewers.StructuredViewer.getFilteredChildr en(StructuredViewer.java:790)
at
org.eclipse.jface.viewers.StructuredViewer.getSortedChildren (StructuredViewer.java:905)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:512)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:494)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:983)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1201)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:973)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:248)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1417)
at
org.eclipse.wst.common.project.facet.ui.internal.RuntimesPan el. <init>(RuntimesPanel.java:104)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel. <init>(FacetsSelectionPanel.java:401)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPage.createControl(FacetsSelectionPage.java:139)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.ja va:179)
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d.createPageControls(AddRemoveFacetsWizard.java:250)
at
org.eclipse.jface.wizard.WizardDialog.createPageControls(Wiz ardDialog.java:611)
at
org.eclipse.jface.wizard.WizardDialog.createContents(WizardD ialog.java:502)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at
org.eclipse.wst.common.project.facet.ui.internal.AddRemoveFa cetsAction.run(AddRemoveFacetsAction.java:75)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

Thank you for your help.

Luc
Re: Server runtime lost [message #149563 is a reply to message #149522] Mon, 28 November 2005 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.schneider.unisys.com

If it's any consolation, my server definition files from 0.7 don't work for
JBoss 4.0.2 either (they worked on M8). It would be really nice if WTP
shipped with current server definition files. I'm hoping that this is just
an issue with the "M" levels and the final 1.0 release will be complete ...
or at least there will be common place to find and download needed server
definition files.

"Luc Feys" <lf_killspam@hemmis.be> wrote in message
news:dmep5j$cef$1@news.eclipse.org...
> Hello,
>
> I have upgraded from WTP0.7 to WTP1.0M9, but I seem to have lost the
> server runtime settings for my project and can't change or reset it.
>
> I installed all WTP plugins and prerequisites in a new extension location
> and used the server definitions for JBoss 4.0.x from
> "http://www.projst.com/eclipse/updates/". Also the JBoss server 4.0.3 is
> defined correctly in the server definitions under Eclipse preferences.
> Everything seems to be installed correctly.
>
> But somehow, my project is unable to correctly identify the server
> runtime. So the required jar's for my j2ee sources can't be found (but of
> course I can work around this by adding those jar's by hand to the build
> path).
>
> Any idea how I could set the server runtime for my project? I have also
> noticed the following error in the eclipse log files.
>
> java.lang.NullPointerException
> at
> org.eclipse.jst.server.core.internal.RuntimeBridge.getExport edRuntimeNames(RuntimeBridge.java:81)
> at
> org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.bridge(RuntimeManagerImpl.java:333)
> at
> org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.getRuntimes(RuntimeManagerImpl.java:125)
> at
> org.eclipse.wst.common.project.facet.core.runtime.RuntimeMan ager.getRuntimes(RuntimeManager.java:78)
> at
> org.eclipse.wst.common.project.facet.ui.internal.RuntimesPan el$ContentProvider.getElements(RuntimesPanel.java:357)
> at
> org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:848)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:896)
> at
> org.eclipse.jface.viewers.StructuredViewer.getFilteredChildr en(StructuredViewer.java:790)
> at
> org.eclipse.jface.viewers.StructuredViewer.getSortedChildren (StructuredViewer.java:905)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:512)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:494)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:983)
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1201)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:973)
> at
> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:248)
> at
> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1417)
> at
> org.eclipse.wst.common.project.facet.ui.internal.RuntimesPan el. <init>(RuntimesPanel.java:104)
> at
> org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel. <init>(FacetsSelectionPanel.java:401)
> at
> org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPage.createControl(FacetsSelectionPage.java:139)
> at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.ja va:179)
> at
> org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d.createPageControls(AddRemoveFacetsWizard.java:250)
> at
> org.eclipse.jface.wizard.WizardDialog.createPageControls(Wiz ardDialog.java:611)
> at
> org.eclipse.jface.wizard.WizardDialog.createContents(WizardD ialog.java:502)
> at org.eclipse.jface.window.Window.create(Window.java:418)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
> at org.eclipse.jface.window.Window.open(Window.java:776)
> at
> org.eclipse.wst.common.project.facet.ui.internal.AddRemoveFa cetsAction.run(AddRemoveFacetsAction.java:75)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
> Thank you for your help.
>
> Luc
Re: Server runtime lost [message #149582 is a reply to message #149522] Mon, 28 November 2005 15:31 Go to previous messageGo to next message
Eclipse UserFriend
wtp 1.x do not include serverdefs on theri own.. its moving towards to a plugin system for te serverdefs..

I am not sure if te JBOSS wtp0.7.x plugins work wit wtp1.x as of yet..
Re: Server runtime lost [message #149652 is a reply to message #149582] Tue, 29 November 2005 03:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lf_killspam.hemmis.be

Fred Grott wrote:
> wtp 1.x do not include serverdefs on theri own.. its moving towards to a plugin system for te serverdefs..
>
> I am not sure if te JBOSS wtp0.7.x plugins work wit wtp1.x as of yet..
I switched back to wtp07, to see what was different and the problem is
that in M9, on the 'Project properties'|'Server' page, there is no way
to select the server runtime. The combobox that should allow me to
choose the server for my project has disappeared. I guess that might be
related to the exception I noticed in the logs (see below).
In wtp07 I can choose the correct server runtime from a combobox, so
I'll stick with the old version for the time being, until a new version
of the JBoss server defs is available.


This is the exception I have found in the log files when using M9. It
might be an explanation for why the combobox with server runtimes can
not be loaded.

java.lang.NullPointerException
at
org.eclipse.jst.server.core.internal.RuntimeBridge.getExport edRuntimeNames(RuntimeBridge.java:81)
at
org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.bridge(RuntimeManagerImpl.java:333)
at
org.eclipse.wst.common.project.facet.core.runtime.internal.R untimeManagerImpl.getRuntimes(RuntimeManagerImpl.java:125)
....

Thanks for the help.
Re: Server runtime lost [message #149692 is a reply to message #149652] Tue, 29 November 2005 09:10 Go to previous message
Eclipse UserFriend
It's a shame that so far the most used app server is not yet included in
the default configuration. I used the jboss configuration with 0.7, what
used to work nicely.
Previous Topic:hi
Next Topic:Does Web Services Explorer support WS-Policy and WS-Security?
Goto Forum:
  


Current Time: Wed May 07 19:44:10 EDT 2025

Powered by FUDForum. Page generated in 0.07784 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top