Published on WSO2 Oxygen Tank (http://wso2.org)

Cannot create second projects in WSAS Eclipse WTP

By Sergh
Created 2008-03-04 11:13

Hello,

After creating a test project excatly following the info at  wso2.org/project/wsas/java/2.0/docs/tools/ide.html [1] I was able to publish, make new exposed methods, etc. As soon as I desided to implement an actual solution code I created a different project from scratch, following steps at above url, but giving project and classes more suitable names. At this point sample code used, no customizations.

On step 10, when web service deployment takes place, I get this exception:

Could not publish to the server.
    java.lang.NullPointerException
    at org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities.getDeployUriOfComponent(ComponentUtilities.java:327)
    at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.getURI(J2EEFlexProjDeployable.java:429)
    at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.guessModuleName(AntPublisher.java:259)
    at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.getPublishProperties(AntPublisher.java:224)
    at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:110)
    at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:84)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:749)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:835)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(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.java:874)
    at org.eclipse.jst.ws.internal.consumption.ui.command.StartServerCommand$1.run(StartServerCommand.java:132)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

 

Please provide your comments.

 

 


Source URL:
http://wso2.org/forum/thread/3309