You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by gsilverman <GS...@dylt.com> on 2008/08/14 18:22:29 UTC
Help! Could not publish to server error
Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
Eclipse 3.4.
I followed the tutorial, Web Application for EJB access, to the letter and I
get the following error when I add the ejb and web projects to the running
Geronimo server in Eclipse:
Publishing to Apache Geronimo v2.1 Server at localhost...has encountered a
problem. Could not publish to servrer.
The "details" page explains this is due to a
"java.lang.NullPointerException".
What's going on. Has anyone been able to publish to tutorial app?
--
View this message in context: http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18984957.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help! Could not publish to server error
Posted by Ted Kirby <te...@gmail.com>.
Sorry, I should have been more clear. It supports Java 1.5 and Java 1.6.
Ted Kirby
On Thu, Aug 14, 2008 at 1:34 PM, gsilverman <GS...@dylt.com> wrote:
> I'll get the new Geronimo plugin and see if that helps. By the way, does
> this versin support Java 1.6, or do I still need to use 1.5?
>
> gsilverman wrote:
> Seems there are others on this forum with the same problem, and it appears
> to be a Java version issue. I'm using 1.6 but will have to try it with 1.5.
>
> gsilverman wrote:
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4.
>
> ________________________________
> View this message in context: Re: Help! Could not publish to server error
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
Re: Help! Could not publish to server error
Posted by gsilverman <GS...@dylt.com>.
I'll get the new Geronimo plugin and see if that helps.
By the way, does this versin support Java 1.6, or do I still need to use
1.5?
gsilverman wrote:
>
> Seems there are others on this forum with the same problem, and it appears
> to be a Java version issue. I'm using 1.6 but will have to try it with
> 1.5.
>
>
> gsilverman wrote:
>>
>> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
>> Eclipse 3.4.
>>
>
>
--
View this message in context: http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18986213.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help! Could not publish to server error
Posted by Ted Kirby <te...@gmail.com>.
What version of the Geronimo Eclipse Plugin (GEP) did you use? We are
about to release GEP 212, which should fix this problem. See
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200808.mbox/ajax/%3c48A3EFBD.4060507@gmail.com%3e
for details on how to get it. It would be useful for us to know if
that fixes the problem for you.
Thanks,
Ted Kirby
On Thu, Aug 14, 2008 at 12:31 PM, gsilverman <GS...@dylt.com> wrote:
> Seems there are others on this forum with the same problem, and it appears
> to be a Java version issue. I'm using 1.6 but will have to try it with 1.5.
>
> gsilverman wrote:
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4.
>
> ________________________________
> View this message in context: Re: Help! Could not publish to server error
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
Re: Help! Could not publish to server error
Posted by gsilverman <GS...@dylt.com>.
Seems there are others on this forum with the same problem, and it appears to
be a Java version issue. I'm using 1.6 but will have to try it with 1.5.
gsilverman wrote:
>
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4.
>
--
View this message in context: http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18985110.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help! Could not publish to server error
Posted by Ted Kirby <te...@gmail.com>.
I was able to do this:
http://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html
. Can you do that?
Also, with J6, I created a dynamic web project with New->Project...
I then right-clicked on the new project, and chose New->Servlet.
That generated the java code for me.
Do those steps work for you? What steps are you using? Are there any
errors in the .log file in your workspace/.metadata directory?
Ted
On Thu, Aug 14, 2008 at 2:37 PM, gsilverman <GS...@dylt.com> wrote:
> Problem with new GEP!!! You can't add a servlet to a Dynamic Web Application
> project. The wizard adds the servlet mapping elements to web.xml, but does
> not create the java file. Therefore, I can't test to see if it fixed
> publishing issue.
>
> gsilverman wrote:
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4. I followed the tutorial, Web Application for EJB access, to the
> letter and I get the following error when I add the ejb and web projects to
> the running Geronimo server in Eclipse: Publishing to Apache Geronimo v2.1
> Server at localhost...has encountered a problem. Could not publish to
> servrer. The "details" page explains this is due to a
> "java.lang.NullPointerException". What's going on. Has anyone been able to
> publish to tutorial app?
>
> ________________________________
> View this message in context: Re: Help! Could not publish to server error
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
Re: Help! Could not publish to server error
Posted by gsilverman <GS...@dylt.com>.
Problem with new GEP!!! You can't add a servlet to a Dynamic Web Application
project. The wizard adds the servlet mapping elements to web.xml, but does
not create the java file. Therefore, I can't test to see if it fixed
publishing issue.
gsilverman wrote:
>
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4.
>
> I followed the tutorial, Web Application for EJB access, to the letter and
> I get the following error when I add the ejb and web projects to the
> running Geronimo server in Eclipse:
>
> Publishing to Apache Geronimo v2.1 Server at localhost...has encountered a
> problem. Could not publish to servrer.
>
> The "details" page explains this is due to a
> "java.lang.NullPointerException".
>
> What's going on. Has anyone been able to publish to tutorial app?
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18987218.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help! Could not publish to server error
Posted by Tim McConnell <ti...@gmail.com>.
Hi gsilverman, You don't have to regress to Eclipse 3.3. The GEP 2.1.2 version
will in fact support Eclipse 3.4. Just to be clear, when you used the ant script
to download the ganymede prereqs, you installed/copied that into a clean eclipse
installation ?? I've noticed before that ganymede cannot simply be copied over an
existing europa installation. Also, would you be able to zip up and provide me
your entire eclipse installation so I can see exactly what is wrong ?? Thanks.
gsilverman wrote:
> The *5-minute Tutorial on Enterprise Application Development with
> Eclipse and Geronimo* is all about JDK 5 and Eclipse 3.3, not 3.4. I'm
> not planning to regress to that. As for the steps I'm currently taking,
> I ran the ant script to download the latest Eclipse distribution and
> installed GEP 212 per the instructions. I checked that it installed
> correctly. The *Geronimo v21 Server Tools core plugin* icon appears in
> my *About Eclipse Platform *dialog. Then I created the
> CurrencyConverterEJB and the WebEJB projects using the Eclipse wizards.
> I then right-clicked on the WebEJB project, and chose New->Servlet. This
> modified my web.xml but did not create the java code. I tried it with
> other Dynamic Web Projects, same result. I get the following stack trace
> in my .log file: java.lang.NullPointerException at
> org.eclipse.jst.servlet.ui.internal.wizard.NewWebArtifactWizard.openJavaClass(NewWebArtifactWizard.java:72)
> at
> org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard.postPerformFinish(AddServletWizard.java:79)
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:195)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at
> org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at
> org.eclipse.jface.window.Window.open(Window.java:801) at
> org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:94)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at
> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at
> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at
> org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
> 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:382)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at
> org.eclipse.equinox.launcher.Main.run(Main.java:1236) Glenn...
>
> gsilverman wrote:
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2
> using Eclipse 3.4. I followed the tutorial, *Web Application for EJB
> access*, to the letter and I get the following error when I add the
> ejb and web projects to the running Geronimo server in Eclipse:
> Publishing to Apache Geronimo v2.1 Server at localhost...has
> encountered a problem. Could not publish to servrer. The "details"
> page explains this is due to a "java.lang.NullPointerException".
> What's going on. Has anyone been able to publish to tutorial app?
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Help! Could not publish to server
> error
> <http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18999799.html>
> Sent from the Apache Geronimo - Users mailing list archive
> <http://www.nabble.com/Apache-Geronimo---Users-f135.html> at Nabble.com.
--
Thanks,
Tim McConnell
Re: Help! Could not publish to server error
Posted by gsilverman <GS...@dylt.com>.
The 5-minute Tutorial on Enterprise Application Development with Eclipse and
Geronimo
is all about JDK 5 and Eclipse 3.3, not 3.4. I'm not planning to regress to
that.
As for the steps I'm currently taking, I ran the ant script to download the
latest Eclipse distribution and installed GEP 212 per the instructions. I
checked that it installed correctly. The Geronimo v21 Server Tools core
plugin icon appears in my About Eclipse Platform dialog.
Then I created the CurrencyConverterEJB and the WebEJB projects using the
Eclipse wizards. I then right-clicked on the WebEJB project, and chose
New->Servlet. This modified my web.xml but did not create the java code. I
tried it with other Dynamic Web Projects, same result.
I get the following stack trace in my .log file:
java.lang.NullPointerException
at
org.eclipse.jst.servlet.ui.internal.wizard.NewWebArtifactWizard.openJavaClass(NewWebArtifactWizard.java:72)
at
org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard.postPerformFinish(AddServletWizard.java:79)
at
org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:195)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:94)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Glenn...
gsilverman wrote:
>
> Help! I cannot publish a dynamic web application to Geronimo v2.1.2 using
> Eclipse 3.4.
>
> I followed the tutorial, Web Application for EJB access, to the letter and
> I get the following error when I add the ejb and web projects to the
> running Geronimo server in Eclipse:
>
> Publishing to Apache Geronimo v2.1 Server at localhost...has encountered a
> problem. Could not publish to servrer.
>
> The "details" page explains this is due to a
> "java.lang.NullPointerException".
>
> What's going on. Has anyone been able to publish to tutorial app?
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Help%21-Could-not-publish-to-server-error-tp18984957s134p18999799.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.