Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to set Axis2 runtime location programmatically?
How to set Axis2 runtime location programmatically? [message #212814] Tue, 22 April 2008 22:51 Go to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

Hello,

I am trying to write some JUnit tests to exercise our dynamic web
project code that depends on the Axis2 facets being available. I
presume that I need to ensure the Axis2 runtime location is set in order
for axis2.core facet to be accessible from the ProjectFacetsManager. Is
there any way I can programatically set this, since we want our test
suite to be automated? I was poking around the core plugin for axis2
support, but couldn't find a way to get at the plugin preferences.

Thanks,
David
Re: How to set Axis2 runtime location programmatically? [message #212839 is a reply to message #212814] Wed, 23 April 2008 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

David Whiteman wrote:
> Hello,
>
> I am trying to write some JUnit tests to exercise our dynamic web
> project code that depends on the Axis2 facets being available. I
> presume that I need to ensure the Axis2 runtime location is set in order
> for axis2.core facet to be accessible from the ProjectFacetsManager. Is
> there any way I can programatically set this, since we want our test
> suite to be automated? I was poking around the core plugin for axis2
> support, but couldn't find a way to get at the plugin preferences.
>
> Thanks,
> David

It turns out that even with that value set, for some reason when I
invoke ProjectFacetsManager.getProjectFacet("axis2.core"), I get an
IllegalAccessException, but when I use the UI to create a dynamic web
project and check the Axis2 Core facet, it has no problem finding the
facet. Why can't "axis2.core" be located using getProjectFacet()? I
need to find it so my JUnit test can install the facet in the project
I'm building.

Thanks,
David
Re: How to set Axis2 runtime location programmatically? [message #212918 is a reply to message #212839] Thu, 24 April 2008 21:28 Go to previous message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

David Whiteman wrote:
> David Whiteman wrote:
>> Hello,
>>
>> I am trying to write some JUnit tests to exercise our dynamic web
>> project code that depends on the Axis2 facets being available. I
>> presume that I need to ensure the Axis2 runtime location is set in
>> order for axis2.core facet to be accessible from the
>> ProjectFacetsManager. Is there any way I can programatically set
>> this, since we want our test suite to be automated? I was poking
>> around the core plugin for axis2 support, but couldn't find a way to
>> get at the plugin preferences.
>>
>> Thanks,
>> David
>
> It turns out that even with that value set, for some reason when I
> invoke ProjectFacetsManager.getProjectFacet("axis2.core"), I get an
> IllegalAccessException, but when I use the UI to create a dynamic web
> project and check the Axis2 Core facet, it has no problem finding the
> facet. Why can't "axis2.core" be located using getProjectFacet()? I
> need to find it so my JUnit test can install the facet in the project
> I'm building.
>
> Thanks,
> David

I should have typed IllegalArgumentException, which is what you get when
the facet cannot be found. The trick here is I'm launching a TPTP test
in the PDE, and can't tell if the Axis2 location is set in that
workspace, and am not 100% sure that setting that location is what makes
the axis2.core facet visible to the facet manager. Does anyone know
much about this?

David
Previous Topic:classpath error with embedded tomcat
Next Topic:Starting Liferay Tomcat bundle from Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 04:34:56 GMT 2024

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

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

Back to the top