I am using Eclipse
Version: 3.6.1
Build id: M20100909-0800
I try to add Axis2 facet to a Web Service project, I get:
Unable to add the follwing facets to project : Axis2 Web Services Core, Axis2 Web Services Extensions
Failed while installing Axis2 Web Services Core 1.1
java.lang.NullPointerException
at org.eclipse.jst.ws.axis2.facet.utils.Axis2RuntimeUtils.getAxis2ServletAdminClass(Axis2RuntimeUtils.java:226)
at org.eclipse.jst.ws.axis2.facet.commands.MergeWEBXMLCommand.getAdmintServletDescriptor(MergeWEBXMLCommand.java:119)
at org.eclipse.jst.ws.axis2.facet.commands.MergeWEBXMLCommand.exexuteOverride(MergeWEBXMLCommand.java:72)
at org.eclipse.jst.ws.axis2.facet.commands.Axis2WebservicesServerCommand.executeOverride(Axis2WebservicesServerCommand.java:134)
at org.eclipse.jst.ws.axis2.facet.deligate.Axis2CoreFacetInstallDelegate.execute(Axis2CoreFacetInstallDelegate.java:43)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1478)
... 8 more
In fact this turns out to be a BUG
https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=327800
See also
http://www.eclipse.org/forums/index.php?&t=msg&th=62333
To configure the Axis2 runtime:
in Windows/Preferences/Web Services/Axis2 Preferences set the runtime location
Windows/Preferences/Web Services/Server and Runtime/Apache Axis2
Dynamic Web Module should be set to 2.5 - they say.
Guys, this is ridiculous, in Eclipse 3.6 one cannot develop Axis2 Web Services. Simply OBSCENE.
"I found the solution for this problem. After conf. the apache tomcat and Axis2 just create new workspace and the error will not be occur again."
ReplyDelete- Neeraj
It worked for me