Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Virgo/FAQ"

(What's a uses constraint and what can I do if one is violated?)
Line 11: Line 11:
  
 
Virgo typically produces helpful [http://underlap.blogspot.com/2011/03/eclipse-virgo-diagnostics-for-uses.html diagnostics] for uses constraint violations. To solve uses constraint violations, see Rob Harrop's [http://blog.springsource.com/2008/11/22/diagnosing-osgi-uses-conflicts/ blog] and Neil Bartlett's [http://njbartlett.name/2011/02/09/uses-constraints.html blog].
 
Virgo typically produces helpful [http://underlap.blogspot.com/2011/03/eclipse-virgo-diagnostics-for-uses.html diagnostics] for uses constraint violations. To solve uses constraint violations, see Rob Harrop's [http://blog.springsource.com/2008/11/22/diagnosing-osgi-uses-conflicts/ blog] and Neil Bartlett's [http://njbartlett.name/2011/02/09/uses-constraints.html blog].
 +
 +
= How can I import a package into someone else's bundle without hacking the manifest? =
 +
 +
See this [http://underlap.blogspot.com/2011/03/importing-packages-into-3rd-party.html blog].
  
 
= How can I get a graphical application to work in Virgo? =
 
= How can I get a graphical application to work in Virgo? =

Revision as of 03:53, 27 May 2011

How can I diagnose class loading problems?

See this blog.

What's a uses constraint and what can I do if one is violated?

Uses constraints are explained in this blog.

Virgo typically produces helpful diagnostics for uses constraint violations. To solve uses constraint violations, see Rob Harrop's blog and Neil Bartlett's blog.

How can I import a package into someone else's bundle without hacking the manifest?

See this blog.

How can I get a graphical application to work in Virgo?

To get GUI apps to work in Virgo, you have to edit lib/java6-server.profile in order to add some packages to the org.osgi.framework.bootdelegation property.

On Mac, you need to add some Apple packages:

org.osgi.framework.bootdelegation = \
 org.eclipse.virgo.osgi.extensions.*,\
 org.eclipse.virgo.osgi.launcher.*,\
 org.eclipse.virgo.kernel.authentication,\
 com.sun.*,\
 javax.xml.*,\
 org.apache.xerces.jaxp.*,\
 org.w3c.*,\
 org.xml.*,\
 sun.*,\
 apple.*,\
 com.apple.*

On Windows, you just need to add com.sun.* as sun.* is already in the list.

org.osgi.framework.bootdelegation = \
 org.eclipse.virgo.osgi.extensions.*,\
 org.eclipse.virgo.osgi.launcher.*,\
 org.eclipse.virgo.kernel.authentication,\
 com.sun.*,\
 javax.xml.*,\
 org.apache.xerces.jaxp.*,\
 org.w3c.*,\
 org.xml.*,\
 sun.*,\
 com.sun.*

Back to the top