?? Could not publish to server (Glassfish) Helios [message #634713] |
Fri, 22 October 2010 19:54  |
Eclipse User |
|
|
|
I have a project which claims to be unable to publish to Glassfish, although the project does propertly install. This means I can't use interactive debug on Glassfish. Other web projects work okay.
The problem project is a web project. It was *copied* from another web project a file at a time into the current eclipse project, which was not originally an Eclipse web project. When I examine all the metadata files (.project, .settings/*, etc), they are the same between the two projects other than the project name.
Help!
Details:
Eclipse: Helios with JEE
GlassFish: Open Source Edition 3
Error message: ''
" Publishing to GlassFish Server Open Source Edition 3 (Java EE 6) at localhost...' has encountered a problem.
Could not publish to the server."
Tried restarting eclipse with -clean, and tried rebuilding project numerous times.
GlassFish log does not contain any errors, and project is successfully installed and started.
Eclipse log ({workspace}/.metadata/.log:
!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2010-10-22 12:46:52.059
!MESSAGE GlassFish: publishModule kind= 2 deltaKind=2 1 NewNGVitals
!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2010-10-22 12:46:52.059
!MESSAGE GlassFish: publishModule kind= 1 deltaKind=2 1 NGVitals
!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2010-10-22 12:46:57.683
!MESSAGE GlassFish: publishModule kind= 1 deltaKind=0 2 NGVitals
!ENTRY org.eclipse.wst.server.core 4 0 2010-10-22 12:46:57.918
!MESSAGE Could not publish to the server.
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectFrameworkImpl.create(FacetedProjectFrameworkImpl.java:670)
at org.eclipse.wst.common.project.facet.core.ProjectFacetsManager.create(ProjectFacetsManager.java:346)
at org.eclipse.wst.common.componentcore.internal.util.FacetedProjectUtilities.getProjectFacetVersion(FacetedProjectUtilities.java:28)
at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.getProjectFacetVersion(JavaEEProjectUtilities.java:61)
at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isProjectOfType(JavaEEProjectUtilities.java:57)
at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isDynamicWebProject(JavaEEProjectUtilities.java:108)
at com.sun.enterprise.jst.server.sunappsrv.sunresource.wizards.ResourceUtils.getRuntimeResourceLocation(ResourceUtils.java:212)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.registerSunResource(SunAppServerBehaviour.java:792)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishDeployedDirectory(SunAppServerBehaviour.java:710)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModuleForGlassFishV3(SunAppServerBehaviour.java:598)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModule(SunAppServerBehaviour.java:288)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1016)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1106)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:939)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2888)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
|
|
|
|
Re: ?? Could not publish to server (Glassfish) Helios [message #649755 is a reply to message #649647] |
Thu, 20 January 2011 14:30   |
Eclipse User |
|
|
|
First try this
in eclispe..
Go to-->project->clean..
this will clean you project.
Server View in elcipse.
Now right click on server .
Say clean...This will clean the server for all the earlier publish states..
Now say restart and say publish..
Hope this will sort out the problem..
|
|
|
Re: ?? Could not publish to server (Glassfish) Helios [message #664348 is a reply to message #634713] |
Fri, 08 April 2011 13:30   |
Eclipse User |
|
|
|
This doesn't work.
I have problem with Glassfish 2.1.1 and Eclipse Helios. After installing Glassfish plugin from Marketplace it is possible to start/stop server, but after adding application to server, publishing doesn't do anything. It starts for the first time and ends immediately. Then clicking "publish" or "clean" again doesn't do anything - only Package explorer view and Servers view blinks several times and that's it
Glassfish's instance title says "Glassfish 2.1.1...[Republish]" and applications' titles is "...[Synchronized]".
No suspicious logs in .log file in workspace/.metadata.
Version 3.x works fine.
I have tested it a minute ago with clean Glassfish 2.1.1 and Eclipse Helios installed.
Edit:
Creating new server, adding some application to it, start the server and try to publish (also cleaning) doesn't even create temporary directory for this server in EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.c ore\
I forgot to mention: Eclipse Helios, Glassfish 2.1.1, Windows XP SP3
[Updated on: Mon, 11 April 2011 10:58] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: ?? Could not publish to server (Glassfish) Helios [message #673645 is a reply to message #634713] |
Tue, 24 May 2011 10:35   |
Eclipse User |
|
|
|
anyone got the solution yet??
in my case, i created a dynamic web project with a default index.jsp file.
whenever i try to run it, i will get this error message.
" Publishing to GlassFish Server Open Source Edition 3 (Java EE 6) at localhost...' has encountered a problem.
Could not publish to the server."
|
|
|
Re: ?? Could not publish to server (Glassfish) Helios [message #676804 is a reply to message #634713] |
Mon, 06 June 2011 15:12   |
Eclipse User |
|
|
|
Hi,
I got the same issue that has been wasting my day.
I've visited several forums and tried several solutions, but was unsuccesfull. Please help.
The goal is to deploy from within the Eclipse 3.6 Release 2 IDE to a locally installed Glassfish 2.1.1 AS.
I do not want to use an embedded Glassfish AS since I'm restricted to 2.1.1 and it's configurations.
I'm behind a corporate network, so I have configured a proxy for http/https.
So far I managed to start & stop the glassfish instance (restart fails due to timing) using the Oracle Glassfish Adapter.
However a publish action for a webapp (add) in the IDE does absolutely nothing. No logging from Eclipse nor Glassfish nor any action to deploy the webapp.
So I'm only capable to use glassfish's web admin pages for deployment, while having quite some webapps so this is lousy.
Eventually I tried the Glassfish Eclipse Plugin.
This plugin was supposed to be compatible with Eclipse 3.6 and Glassfish 2 & 3.
Never-the-less, this only added a embedded AS and no improvement on a locally installed AS.
Currently this is driving me nuts, has anybody any clue on how to get the desired functionality operational?
Many thanx
|
|
|
Re: ?? Could not publish to server (Glassfish) Helios [message #693448 is a reply to message #634713] |
Wed, 06 July 2011 13:47   |
Eclipse User |
|
|
|
Hi!
I have the same problem using Eclipse Version: 3.6.2, Build id: M20110210-1200
GlassFish 3.1.
The only difference, that the application _IS_ installed, but the dialog is still saying "Could not publish to the server."
What i have found so far, if I remove the other projects from the server, then the publishing works without error message.
[Updated on: Wed, 06 July 2011 13:53] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03693 seconds