Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Issue with publishing to app servers
Issue with publishing to app servers [message #212549] Fri, 18 April 2008 16:22 Go to next message
Eclipse User
Originally posted by: andrew.knott.atosorigin.com

It has been suggested to me by Wayne Beaton, that I should re post an
issue I have in this forum - in the hope that you can resolve the issue
for me.

The initial problem I reported was:

I'm trying to follow an example in terms of creating a simple web service
within Eclipse, and then using the JBoss 4.2 app server to deploy this web
service.
the tutorial I've been following is:
http://www.mirrorservice.org/sites/download.eclipse.org/ecli pseMirror/technology/phoenix/europa/EclipseIdeForJeeDevelope rs/

Everytime I try to run the web service on the Jboss server, I get a null
pointer exception - particularly unhelpful error message.

I've ensured that the JAVA_HOME is pointing at the directory holding the
JDK 1.5 on the machine.

I attempted to deploy this on Jboss, and Glassfish, with no success what
so ever.

The following message is what is reported in the log file when attempting
to run the service on the app server

!ENTRY org.eclipse.wst.server.core 4 0 2008-04-18 16:16:42.950
!MESSAGE Could not publish to the server.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.wst.common.componentcore.internal.util.Component Utilities.getDeployUriOfComponent(ComponentUtilities.java:32 7)
at
org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeploy able.getURI(J2EEFlexProjDeployable.java:429)
at
org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.guessModuleName(AntPublisher.java:259)
at
org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.getPublishProperties(AntPublisher.java:224)
at
org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.publish(AntPublisher.java:110)
at
org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour.publishModule(GenericServerBehaviour.java:84)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModule(ServerBehaviourDelegate.java:749)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModules(ServerBehaviourDelegate.java:835)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:669)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
at
org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Can you please advise what is causing this issue - I am unsure whether it
is a configuration issue or not - I am very new to this technology, so any
help would be appreciated.

Cheers

Andy
Re: Issue with publishing to app servers [message #212574 is a reply to message #212549] Fri, 18 April 2008 17:18 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Andy wrote:
> It has been suggested to me by Wayne Beaton, that I should re post an
> issue I have in this forum - in the hope that you can resolve the issue
> for me.
>
> The initial problem I reported was:
>
> I'm trying to follow an example in terms of creating a simple web
> service within Eclipse, and then using the JBoss 4.2 app server to
> deploy this web service.
> the tutorial I've been following is:
> http://www.mirrorservice.org/sites/download.eclipse.org/ecli pseMirror/technology/phoenix/europa/EclipseIdeForJeeDevelope rs/
>
>
> Everytime I try to run the web service on the Jboss server, I get a null
> pointer exception - particularly unhelpful error message.
>
> I've ensured that the JAVA_HOME is pointing at the directory holding the
> JDK 1.5 on the machine.
>
> I attempted to deploy this on Jboss, and Glassfish, with no success what
> so ever.
> The following message is what is reported in the log file when
> attempting to run the service on the app server
>
> !ENTRY org.eclipse.wst.server.core 4 0 2008-04-18 16:16:42.950
> !MESSAGE Could not publish to the server.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.wst.common.componentcore.internal.util.Component Utilities.getDeployUriOfComponent(ComponentUtilities.java:32 7)
>
> at
> org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeploy able.getURI(J2EEFlexProjDeployable.java:429)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.guessModuleName(AntPublisher.java:259)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.getPublishProperties(AntPublisher.java:224)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.publish(AntPublisher.java:110)
>
> at
> org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour.publishModule(GenericServerBehaviour.java:84)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModule(ServerBehaviourDelegate.java:749)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModules(ServerBehaviourDelegate.java:835)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:669)
>
> at
> org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
> at
> org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Can you please advise what is causing this issue - I am unsure whether
> it is a configuration issue or not - I am very new to this technology,
> so any help would be appreciated.
>
> Cheers
>
> Andy
>

Use Install/Update to install the 2.0.2 Patches from the Web Tools
update site. I believe the patches include a fix for this bug.

Cheers,
Larry
Re: Issue with publishing to app servers [message #212622 is a reply to message #212574] Fri, 18 April 2008 21:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.knott.atosorigin.com

It does indeed seem to have resolved the issue - is there any chance you
could explain the nature of this bug, just so I understand why it is that
me following the published instructions didn't work.

Many thanks to you - and please pass on my thanks to Wayne as well.

Regards
Re: Issue with publishing to app servers [message #212709 is a reply to message #212622] Mon, 21 April 2008 13:02 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Andy wrote:
> It does indeed seem to have resolved the issue - is there any chance you
> could explain the nature of this bug, just so I understand why it is
> that me following the published instructions didn't work.
>
> Many thanks to you - and please pass on my thanks to Wayne as well.
>
> Regards
>

I think the details can be found in Bug 219627[1].

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=219627
Previous Topic:The requested resource (/baseball/) is not available
Next Topic:EMF, WSDL and SOAP
Goto Forum:
  


Current Time: Fri Oct 24 23:07:16 GMT 2014

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

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