Quick question on a related topic… is there a reason that we don’t have the geronimo10.serverdef file standalone but bundled it inside of the org.apache.geronimo.devtools.eclipse.core jar file?  I noticed I got a standalone serverdef file for pretty much every server runtime I can define within my eclipse:

 

Directory of E:\tools\eclipse3.1.2\eclipse\plugins\org.eclipse.jst.server.gener

ic.serverdefinitions_1.0.0.v20060131b\servers

 

02/17/2006  04:33 PM             4,278 jboss.serverdef

02/17/2006  04:33 PM             5,228 jboss323.serverdef

02/17/2006  04:33 PM             5,120 jonas.serverdef

02/17/2006  04:33 PM             5,212 oracle.10.1.3.serverdef

02/17/2006  04:33 PM             4,144 weblogic81.serverdef

02/17/2006  04:33 PM             4,182 weblogic90.serverdef

 

Thanks,

 

Lin

-----Original Message-----
From: Sachin Patel [mailto:[EMAIL PROTECTED]
Sent:
Tuesday, February 28, 2006 5:35 PM
To: [email protected]
Subject: Re: How to use discouragedRuntimeAccess extension point

 

I think its best if you first need to get an understanding of the eclipse plugin architecture.  Please read this article... http://www.eclipse.org/articles/Article-Plug-in-architecture/plugin_architecture.html.  This particular article may be outdated since the move to OSGI but the concepts are the same.

 

Extension points are defined and loaded inside a plugin.xml.  The .serverdef file is a WTP specific file for defining generic servers.  Its loaded via an EMF model and thus by adding your entry there invalidates your file and thats why you're seeing the exception.

 

- sachin

 



 

On Feb 28, 2006, at 5:22 PM, Ted Kirby wrote:



I want to use this new support.

 

I put

<extension

point="org.apache.geronimo.devtools.eclipse.core.discouragedRuntimeAccess" >

 

<path value="/lib" />

</extension>

in devtools\modules\eclipse-plugin\plugins\org.apache.geronimo.devtools.eclipse.core\serverdef\geronimo10.serverdef, but it did not work.  From the eclipse log, I got:

Wrapped exception
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'extension' not found. (bundleentry://341/serverdef/geronimo10.serverdef, 102, 91)

Where should I put the <extension> element?

 

Reply via email to