Community
Participate
Working Groups
Build Identifier: 20100617-1415 Installed Java version jre1.5.0_22 successfully Installed Apache 6.0 successfully Installed Axis2 ( tried v1.3 and v1.5.1 ) Modify Eclipse Preference: Web Services->Axis2 Preferences->Axis2 Runtime->Axis2 runtime location; Receive "Axis2 runtime loaded successfully" message Modify Eclipse Preference: Web Services->Wizard Validation; tested all options Trying to create web service or web service client with wizard fails with following error: Unable to add the follwing facets to project TESTWS: Axis2 Web Services Core, Axis2 Web Services Extensions. DETAILS: Unable to add the follwing facets to project TESTWS: Axis2 Web Services Core, Axis2 Web Services Extensions. org.eclipse.wst.common.project.facet.core.FacetedProjectFrameworkException: Failed while installing Axis2 Web Services Core 1.1. at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1508) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:442) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1182) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1118) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:325) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:340) at org.eclipse.jst.ws.internal.consumption.ui.common.FacetOperationDelegate$1.run(FacetOperationDelegate.java:62) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: 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 Reproducible: Always Steps to Reproduce: 1. Create New Dynamic Web Project; Use detault location checked; Target Runtime Apache Tomcat v6.0; Dynamic web module version 2.5 2. Choose custom configuration and select Axis2 Web Services; click OK 3. Click Finish 4. Error Returned: Failed while installing Axis2 Web Services Core 1.1; Reason: Failed while installing Axis2 Web Services Core 1.1; Details: java.lang.NullPointerException Project gets created however any attempt to use wizards as described above result in the error also described
Creating Dynamic Web Project (DWP) using Eclipse Galileo Build id: 20100218-1602 works fine. Wizard problem also goes away - probably because DWP is created without errors. Tested with Axis2 1.3 and 1.5.1 - both work. WTP Details: Galileo: Axis2 Tools Version: 1.1.0.v200905242110-78-FBpDZRDE6FdPdLYYe; Build id: 20090917225226 Eclipse Faceted Project Framework: Version 3.1.1.v200908111817-37718s733L4C585I7F Eclipse Faceted Project Framework JDT Enablement: Version: 3.1.1.v200908111817-37718s733L56485K8H Helios Axis2 Tools: Version: 1.1.100.v201005241530-78-FF0DZRDKDDePSKwHj; Build id: 20100615235519 Eclipse Faceted Project Framework: Version: 3.2.0.v201005290030-377A78s73533D5L355B Eclipse Faceted Project Framework JDT Enablement: Version: 3.2.0.v201005241600-377A78s73533C6A6B39
(In reply to comment #1) > Creating Dynamic Web Project (DWP) using Eclipse Galileo Build id: > 20100218-1602 works fine. Wizard problem also goes away - probably because DWP > is created without errors. Tested with Axis2 1.3 > WTP Details: > Galileo: > Axis2 Tools Version: 1.1.0.v200905242110-78-FBpDZRDE6FdPdLYYe; Build id: > 20090917225226 > Eclipse Faceted Project Framework: Version > 3.1.1.v200908111817-37718s733L4C585I7F > Eclipse Faceted Project Framework JDT Enablement: Version: > 3.1.1.v200908111817-37718s733L56485K8H > Helios > Axis2 Tools: Version: 1.1.100.v201005241530-78-FF0DZRDKDDePSKwHj; Build id: > 20100615235519 > Eclipse Faceted Project Framework: Version: > 3.2.0.v201005290030-377A78s73533D5L355B > Eclipse Faceted Project Framework JDT Enablement: Version: > 3.2.0.v201005241600-377A78s73533C6A6B39 Axis 1.5.1 doesn't work because the AxisAdminServlet is missing from WAR/BIN.
(In reply to comment #1) > Creating Dynamic Web Project (DWP) using Eclipse Galileo Build id: > 20100218-1602 works fine. Wizard problem also goes away - probably because DWP > is created without errors. Tested with Axis2 1.3 and 1.5.1 - both work. > WTP Details: > Galileo: > Axis2 Tools Version: 1.1.0.v200905242110-78-FBpDZRDE6FdPdLYYe; Build id: > 20090917225226 > Eclipse Faceted Project Framework: Version > 3.1.1.v200908111817-37718s733L4C585I7F > Eclipse Faceted Project Framework JDT Enablement: Version: > 3.1.1.v200908111817-37718s733L56485K8H > Helios > Axis2 Tools: Version: 1.1.100.v201005241530-78-FF0DZRDKDDePSKwHj; Build id: > 20100615235519 > Eclipse Faceted Project Framework: Version: > 3.2.0.v201005290030-377A78s73533D5L355B > Eclipse Faceted Project Framework JDT Enablement: Version: > 3.2.0.v201005241600-377A78s73533C6A6B39 Hi Ralph, I can't reproduce this with 3.2 (Helios) wtp-sdk-R-3.2.0-20100615235519. Can you please elaborate? Saminda, do you have any thoughts on this?
(In reply to comment #3) > (In reply to comment #1) > > Creating Dynamic Web Project (DWP) using Eclipse Galileo Build id: > > 20100218-1602 works fine. Wizard problem also goes away - probably because DWP > > is created without errors. Tested with Axis2 1.3 and 1.5.1 - both work. > > WTP Details: > > Galileo: > > Axis2 Tools Version: 1.1.0.v200905242110-78-FBpDZRDE6FdPdLYYe; Build id: > > 20090917225226 > > Eclipse Faceted Project Framework: Version > > 3.1.1.v200908111817-37718s733L4C585I7F > > Eclipse Faceted Project Framework JDT Enablement: Version: > > 3.1.1.v200908111817-37718s733L56485K8H > > Helios > > Axis2 Tools: Version: 1.1.100.v201005241530-78-FF0DZRDKDDePSKwHj; Build id: > > 20100615235519 > > Eclipse Faceted Project Framework: Version: > > 3.2.0.v201005290030-377A78s73533D5L355B > > Eclipse Faceted Project Framework JDT Enablement: Version: > > 3.2.0.v201005241600-377A78s73533C6A6B39 > Hi Ralph, I can't reproduce this with 3.2 (Helios) > wtp-sdk-R-3.2.0-20100615235519. Can you please elaborate? Saminda, do you > have any thoughts on this? Keith, I downloaded and installed Helios. If the above sdk is not included as part of the "normal" download then I'm not sure if I am running wtp-sdk-R-3.2.0-20100615235519 or not? Can you tell me how to verify this? Is wtp and wst the same thing? Sorry, I'm failly new to eclipse so let me apologize in advance for any lack of understanding. I think the problem is that I can't create a DWP without getting the java.lang.NullPointerException. I think I should have stopped there before trying to create a client as I'm not sure if the DWP failure is preventing me from doing much else in the project. I can create a DWP (and clients) in Galileo without any problems following the exact same steps. BTW - no problem creating the DPW in Helios if I DONT'T choose custom configuration and select Axis2 Web Services. But I believe I need to add this facet working with Axis2.
Hi Ralph. No problem. WST (Web Standard Tools) is just a subset of WTP. See http://www.eclipse.org/webtools/wst/main.php Perhaps it'll be simpler if you list off all the zips you've downloaded and extracted?
(In reply to comment #5) > Hi Ralph. No problem. WST (Web Standard Tools) is just a subset of WTP. See > http://www.eclipse.org/webtools/wst/main.php > Perhaps it'll be simpler if you list off all the zips you've downloaded and > extracted? OK I thought maybe starting from scratch on a different machine might help. And I WAS able to sucessfully create a Dynamic Web Project on machine #2 without any problems. So I guess there is something on machine#1 that is causing the problem. Both machines have same JDK, Axis2, ECLIPSE HELIOS versions. Any ideas on where to look would be appreciated. I guess as far as this bug is concerned it can be closed, but I'll let you guys decide that.
(In reply to comment #6) > (In reply to comment #5) > > Hi Ralph. No problem. WST (Web Standard Tools) is just a subset of WTP. See > > http://www.eclipse.org/webtools/wst/main.php > > Perhaps it'll be simpler if you list off all the zips you've downloaded and > > extracted? > OK I thought maybe starting from scratch on a different machine might help. > And I WAS able to sucessfully create a Dynamic Web Project on machine #2 > without any problems. So I guess there is something on machine#1 that is > causing the problem. Both machines have same JDK, Axis2, ECLIPSE HELIOS > versions. Any ideas on where to look would be appreciated. I guess as far as > this bug is concerned it can be closed, but I'll let you guys decide that. "If it ain't broke don't fix it" That's what I'm saing to myself right now! In my attempt to resolve the differences between the two machines I modified the configuration on machine #2 (where I got it to work) to match that of #1 (where I had the problem originally). Now both of them exhibit the same problem and I can't create a dynamic web projecton either. The good thing (i think) is that I know the configurations match on botgh machines. Now I just need to figure out what's wrong with that config.
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > Hi Ralph. No problem. WST (Web Standard Tools) is just a subset of WTP. See > > > http://www.eclipse.org/webtools/wst/main.php > > > Perhaps it'll be simpler if you list off all the zips you've downloaded and > > > extracted? > > OK I thought maybe starting from scratch on a different machine might help. > > And I WAS able to sucessfully create a Dynamic Web Project on machine #2 > > without any problems. So I guess there is something on machine#1 that is > > causing the problem. Both machines have same JDK, Axis2, ECLIPSE HELIOS > > versions. Any ideas on where to look would be appreciated. I guess as far as > > this bug is concerned it can be closed, but I'll let you guys decide that. > > "If it ain't broke don't fix it" That's what I'm saing to myself right now! > In my attempt to resolve the differences between the two machines I modified > the configuration on machine #2 (where I got it to work) to match that of #1 > (where I had the problem originally). Now both of them exhibit the same > problem and I can't create a dynamic web projecton either. The good thing (i > think) is that I know the configurations match on botgh machines. Now I just > need to figure out what's wrong with that config. Hi Ralph, are you saying you changed something in the configuration folder (eclipse/configuration) ?
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #6) > > > (In reply to comment #5) > > > > Hi Ralph. No problem. WST (Web Standard Tools) is just a subset of WTP. See > > > > http://www.eclipse.org/webtools/wst/main.php > > > > Perhaps it'll be simpler if you list off all the zips you've downloaded and > > > > extracted? > > > OK I thought maybe starting from scratch on a different machine might help. > > > And I WAS able to sucessfully create a Dynamic Web Project on machine #2 > > > without any problems. So I guess there is something on machine#1 that is > > > causing the problem. Both machines have same JDK, Axis2, ECLIPSE HELIOS > > > versions. Any ideas on where to look would be appreciated. I guess as far as > > > this bug is concerned it can be closed, but I'll let you guys decide that. > > > > "If it ain't broke don't fix it" That's what I'm saing to myself right now! > > In my attempt to resolve the differences between the two machines I modified > > the configuration on machine #2 (where I got it to work) to match that of #1 > > (where I had the problem originally). Now both of them exhibit the same > > problem and I can't create a dynamic web projecton either. The good thing (i > > think) is that I know the configurations match on botgh machines. Now I just > > need to figure out what's wrong with that config. > Hi Ralph, are you saying you changed something in the configuration folder > (eclipse/configuration) ? Keith, I think I figured it out. I am able to replicate and fix the problem at will on both machines. It appears that in order to use jre1.5.0_22 I have to include the JRE executables in the WINDOWS/SYSTEM32 folder. When I try to configure JAVA via the JAVA_HOME env.var I get the problem. Apparently Machine #2 had both jre1.5.0_22 and JRE6.0 installed. But unknowingly the 6.0 executables (java, javaw and javaws) where also copied to the WINDOWS/SYSTEM32 folder. When I modified the configuration on machine#2 I deleted these executables from that folder and attempted to control the JRE configuration via JAVA_HOME variable and used jre1.5.0_22 as my target. This is when the problem started ocurring on both machines. What's odd is that JRE6.0 can be configured via JAVA_HOME and eveything works but jre1.5.0_22 can not - the exe's for jre1.5.0_22 must exist in the WINDOWS/SYSTEM32 folder for some reason. In fact if I attempt to use JAVA_HOME with jre1.5.0_22 it fails every time. I still don't know if this is a local problem but at least I can control it.
Created attachment 174941 [details] configurations that work for me This file contains the two configuration that worked. It appears that the correct versions of Eclispe, JRE aand Axis2 are required in order to create and deploy a Dynamic Web Service project
Hi Ralph, I'm not sure exactly, but it sounds like you're contaminating your JRE. "It appears that in order to use jre1.5.0_22 I have to include the JRE executables in the WINDOWS/SYSTEM32 folder." "But unknowingly the 6.0 executables (java, javaw and javaws) where also copied to the WINDOWS/SYSTEM32 folder." I suggest uninstalling/removing one and retrying with only one JRE. Note, you can specify the JRE via the -vm command line argument, or you can specify it in the eclipse.ini