Cristiano Gavião | 25 Aug 15:43 2014
Picon

Declarative Service and support of TargetPID ?

Hello,

I'm trying to create a Configuration using a targetPID as defined in Configuration Admin Service spec 1.5(cmpn.5.0).

I created a factory config using this targetPID:
servicefactory1|org.c4biz.utils.osgi.itests.samples.bundle|88.0.0
and CM seems have properly created the PID and properties are ok too:
 servicefactory1|org.c4biz.utils.osgi.itests.samples.bundle|88.0.0-1408970963277-1

Even the configuration being properly created my declarative services based component (using configuration-policy = require) are not being activated with that configuration. but when I try with 'servicefactory1' only it works as expected.

So, am I missing something or Equinox DS doesn't support TargetPID yet ?

thanks,

Cristiano
<div>
    Hello,<br><br>
    I'm trying to create a Configuration using a targetPID as defined in
    Configuration Admin Service spec 1.5(cmpn.5.0).<br><br>
    I created a factory config using this targetPID: <br><blockquote>servicefactory1|org.c4biz.utils.osgi.itests.samples.bundle|88.0.0<br>
</blockquote>
    and CM seems have properly created the PID and properties are ok
    too:<br><blockquote>&nbsp;servicefactory1|org.c4biz.utils.osgi.itests.samples.bundle|88.0.0-1408970963277-1<br><br>
</blockquote>
    Even the configuration being properly created my declarative
    services based component (using configuration-policy = require) are
    not being activated with that configuration. but when I try with
    'servicefactory1' only it works as expected.<br><br>
    So, am I missing something or Equinox DS doesn't support TargetPID
    yet ? <br><br>
    thanks,<br><br>
    Cristiano<br>
</div>
Raymond Auge | 22 Aug 19:26 2014

milestones in a maven repo

Hey All,

I'd like to ask again what is the barrier to getting milestone builds into a maven repo?

I mean https://repo.eclipse.org/content/repositories/eclipse/ exists. Why not extend it's use for publishing milestones?

Wouldn't it quite literally be a single extra command invoked during the release process?

--
Raymond Augé ( <at> rotty3000)
Senior Software Architect
Liferay, Inc. ( <at> Liferay)

<div><div dir="ltr">Hey All,<div><br></div>
<div>I'd like to ask again what is the barrier to getting milestone builds into a maven repo?</div>
<div><br></div>
<div>I mean&nbsp;<a href="https://repo.eclipse.org/content/repositories/eclipse/">https://repo.eclipse.org/content/repositories/eclipse/</a> exists. Why not extend it's use for publishing milestones?</div>
<div><br></div>
<div>Wouldn't it quite literally be a single extra command invoked during the release process?<br clear="all"><div><br></div>-- <br><div dir="ltr">
<span><a href="http://www.liferay.com/web/raymond.auge/profile" target="_blank">Raymond Aug&eacute;</a>&nbsp;( <at> rotty3000)</span><div>
<span>Senior Software Architect</span>
</div>
<div>
<a href="http://www.liferay.com" target="_blank">Liferay, Inc.</a><span>&nbsp;( <at> Liferay)</span><div>
<div>
<div><br></div>
<p></p>
</div>
<span><span></span></span><div>
<p></p>
<p>
</p>
</div>
</div>
</div>
</div>
</div>
</div></div>
David M Williams | 15 Aug 23:45 2014
Picon

Announcing availability of Luna SR1 RC1 +0 downloads

The URLs below give access to our "warm-up" RC for Luna SR1.

        Eclipse downloads:
        http://download.eclipse.org/eclipse/downloads/drops4/M-4.4.1RC1-201408130800/

        Update existing (non-production) installs:
        http://download.eclipse.org/eclipse/updates/4.4milestones/

        Specific repository good for building against:
        http://download.eclipse.org/eclipse/updates/4.4milestones/M-4.4.1RC1-201408130800/

        Equinox specific downloads:
        http://download.eclipse.org/equinox/drops/M-LunaSR1RC1-201408130800/


Thanks to all,
<div>The URLs below give access to our "warm-up"
RC for Luna SR1. 
<br><br>&nbsp; &nbsp; &nbsp; &nbsp; Eclipse
downloads:
<br>&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://download.eclipse.org/eclipse/downloads/drops4/M-4.4.1RC1-201408130800/">http://download.eclipse.org/eclipse/downloads/drops4/M-4.4.1RC1-201408130800/</a>
<br><br>&nbsp; &nbsp; &nbsp; &nbsp; Update
existing (non-production) installs:
<br>&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://download.eclipse.org/eclipse/updates/4.4milestones/">http://download.eclipse.org/eclipse/updates/4.4milestones/</a>
<br><br>&nbsp; &nbsp; &nbsp; &nbsp; Specific
repository good for building against:
<br>&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://download.eclipse.org/eclipse/updates/4.4milestones/M-4.4.1RC1-201408130800/">http://download.eclipse.org/eclipse/updates/4.4milestones/M-4.4.1RC1-201408130800/</a>
<br><br>&nbsp; &nbsp; &nbsp; &nbsp; Equinox
specific downloads:
<br>&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://download.eclipse.org/equinox/drops/M-LunaSR1RC1-201408130800/">http://download.eclipse.org/equinox/drops/M-LunaSR1RC1-201408130800/</a>
<br><br><br>Thanks to all, 
<br>
</div>
Jabsiri Jjab | 14 Aug 00:33 2014
Picon

servletbridge weblogic javax.xml.parsers.FactoryConfigurationError

Hello. 

I am developing using servletbride. 

and using the provided bridge.war http://www.eclipse.org/equinox/server/http_in_container.phphere. (change to osgi.framework is 3.5.0, osgi.equinox.update.configurator is 3.3.2) 

The following error occurred in the weblogic 12c was used. 

================================================================================================

eclipse.buildId=unknown

java.version=1.6.0_45

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=linux, ARCH=x86_64, WS=motif, NL=ko_KR

Framework arguments:  -Dlog4j.debug=true

Command-line arguments:  -consoleLog -console -Dlog4j.debug=true


!ENTRY org.eclipse.update.configurator 4 0 2014-08-13 18:34:39.895

!MESSAGE 

!STACK 0

org.osgi.framework.BundleException: Exception in org.eclipse.update.internal.configurator.ConfigurationActivator.start() of bundle org.eclipse.update.configurator.

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)

at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:631)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:505)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:279)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:465)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

Caused by: javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not found

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)

at org.eclipse.update.internal.configurator.PlatformConfiguration.saveAsXML(PlatformConfiguration.java:1216)

at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:644)

at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:574)

at org.eclipse.update.internal.configurator.PlatformConfiguration.startup(PlatformConfiguration.java:714)

at org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConfiguration(ConfigurationActivator.java:404)

at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:136)

at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:69)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)

... 10 more

Root exception:

javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not found

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)

at org.eclipse.update.internal.configurator.PlatformConfiguration.saveAsXML(PlatformConfiguration.java:1216)

at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:644)

at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:574)

at org.eclipse.update.internal.configurator.PlatformConfiguration.startup(PlatformConfiguration.java:714)

at org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConfiguration(ConfigurationActivator.java:404)

at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:136)

at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:69)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)

at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:631)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:505)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:279)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:465)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

================================================================================================

How do I know what to fix it?  Or Is able to provide examples for weblogic?

Thank you. 

(Sorry I do not speak English well.)
<div><div dir="ltr">
<div>Hello.&nbsp;</div>
<div><br></div>
<div>I am developing using servletbride.&nbsp;</div>

<div><br></div>
<div>and using the provided bridge.war&nbsp;<a href="http://www.eclipse.org/equinox/server/http_in_container.php" target="_blank">http://www.eclipse.org/equinox/server/http_in_container.php</a>here. (change to osgi.framework is 3.5.0, osgi.equinox.update.configurator is 3.3.2)&nbsp;</div>

<div><br></div>
<div>The following error occurred in the weblogic 12c was used.&nbsp;</div>
<div>

<br>
</div>
<div>================================================================================================<br>
</div>
<div>

<p>eclipse.buildId=unknown</p>
<p>java.version=1.6.0_45</p>
<p>java.vendor=Sun Microsystems Inc.</p>
<p>BootLoader constants: OS=linux, ARCH=x86_64, WS=motif, NL=ko_KR</p>
<p>Framework arguments:&nbsp; -Dlog4j.debug=true</p>
<p>Command-line arguments:&nbsp; -consoleLog -console -Dlog4j.debug=true</p>

<p><br></p>
<p>!ENTRY org.eclipse.update.configurator 4 0 2014-08-13 18:34:39.895</p>
<p>!MESSAGE&nbsp;</p>
<p>!STACK 0</p>
<p>org.osgi.framework.BundleException: Exception in org.eclipse.update.internal.configurator.ConfigurationActivator.start() of bundle org.eclipse.update.configurator.</p>

<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)</p>

<p>at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)</p>
<p>at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:631)</p>

<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:505)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:279)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:465)</p>

<p>at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)</p>
<p>at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)</p>
<p>Caused by: javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not found</p>

<p>at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.saveAsXML(PlatformConfiguration.java:1216)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:644)</p>

<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:574)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.startup(PlatformConfiguration.java:714)</p>

<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConfiguration(ConfigurationActivator.java:404)</p>
<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:136)</p>

<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:69)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)</p>
<p>at java.security.AccessController.doPrivileged(Native Method)</p>

<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)</p>
<p>... 10 more</p>
<p>Root exception:</p>
<p>javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not found</p>

<p>at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.saveAsXML(PlatformConfiguration.java:1216)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:644)</p>

<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.save(PlatformConfiguration.java:574)</p>
<p>at org.eclipse.update.internal.configurator.PlatformConfiguration.startup(PlatformConfiguration.java:714)</p>

<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConfiguration(ConfigurationActivator.java:404)</p>
<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:136)</p>

<p>at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:69)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)</p>
<p>at java.security.AccessController.doPrivileged(Native Method)</p>

<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)</p>
<p>at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)</p>

<p>at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)</p>
<p>at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:631)</p>

<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:505)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:279)</p>
<p>at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:465)</p>

<p>at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)</p>
<p>at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)</p>
</div>
<div>

================================================================================================<br>
</div>
<div><br></div>
<div>

How do I know what to fix it? &nbsp;Or Is able to provide examples for weblogic?</div>
<div><br></div>
<div>Thank you.&nbsp;</div>

<div><br></div>
<div>(Sorry I do not speak English well.)</div>
</div></div>
David Cao | 12 Aug 16:52 2014
Picon

Automatically redeploy servlet bridge bundles

Hello there,

So right now, if update my bundle in Tomcat servlet bridge, I need to send a request to 

http://<host>/bridge/sp_redeploy

to update the bundle to the framework. Is there other options by Equinox? for example i am hoping that the plugins folder is monitored and automatically redeploy whenever bundles are updated?

thanks a lot!
David
<div><div dir="ltr">Hello there,<div><br></div>
<div>So right now, if update my bundle in Tomcat servlet bridge, I need to send a request to&nbsp;</div>
<div><br></div>
<div>http://&lt;host&gt;/bridge/sp_redeploy</div>
<div><br></div>
<div>
to update the bundle to the framework. Is there other options by Equinox? for example i am hoping that the plugins folder is monitored and automatically redeploy whenever bundles are updated?</div>
<div><br></div>
<div>thanks a lot!</div>
<div>David</div>
</div></div>
Alex Blewitt | 7 Aug 21:57 2014
Picon

Re: Composite repository entry that does not bring in categories

No, this is not possible with P2. You can however mirror the repository then strip out the categories from the file though. 

Alex

Sent from my iPhone 5

On 7 Aug 2014, at 20:25, "Konstantin Komissarchik" <konstantin.komissarchik <at> oracle.com> wrote:

<!-- /* Font Definitions */ <at> font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.msgbodytext {mso-style-name:msgbodytext;} .MsoChpDefault {mso-style-type:export-only;} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

Sending this question to the dev mailing list since I didn’t get any response on the forum and other channels. Would appreciate a response, even if it’s of the “we can’t do that right now” nature.

 

We need to add an entry to a p2 composite repository that does not merge the feature categorization from the referenced repository. Basically, we need to content of the repo to be accessible for dependency resolution, but not present to the user of the composite for selection.

Is that possible?

 

Thanks,

 

- Konstantin

 

_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev
<div>
<div>No, this is not possible with P2. You can however mirror the repository then strip out the categories from the file though.&nbsp;</div>
<div><br></div>
<div>Alex<br><br>Sent from my iPhone 5</div>
<div>
<br>On 7 Aug 2014, at 20:25, "Konstantin Komissarchik" &lt;<a href="mailto:konstantin.komissarchik@...">konstantin.komissarchik <at> oracle.com</a>&gt; wrote:<br><br>
</div>
<blockquote type="cite"><div>&lt;!--
/* Font Definitions */
 <at> font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
 <at> font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.msgbodytext
	{mso-style-name:msgbodytext;}
.MsoChpDefault
	{mso-style-type:export-only;}
 <at> page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--&gt;<div class="WordSection1">
<p class="MsoNormal">Sending this question to the dev mailing list since I didn&rsquo;t get any response on the forum and other channels. Would appreciate a response, even if it&rsquo;s of the &ldquo;we can&rsquo;t do that right now&rdquo; nature.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span class="msgbodytext">We need to add an entry to a p2 composite repository that does not merge the feature categorization from the referenced repository. Basically, we need to content of the repo to be accessible for dependency resolution, but not present to the user of the composite for selection.</span><br><br><span class="msgbodytext">Is that possible?<p></p></span></p>
<p class="MsoNormal"><span class="msgbodytext"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span class="msgbodytext">Thanks,<p></p></span></p>
<p class="MsoNormal"><span class="msgbodytext"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span class="msgbodytext">- Konstantin<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div></blockquote>
<blockquote type="cite"><div>
<span>_______________________________________________</span><br><span>equinox-dev mailing list</span><br><span><a href="mailto:equinox-dev@...">equinox-dev@...</a></span><br><span>To change your delivery options, retrieve your password, or unsubscribe from this list, visit</span><br><span><a href="https://dev.eclipse.org/mailman/listinfo/equinox-dev">https://dev.eclipse.org/mailman/listinfo/equinox-dev</a></span>
</div></blockquote>
</div>
Konstantin Komissarchik | 7 Aug 21:25 2014
Picon

Composite repository entry that does not bring in categories

Sending this question to the dev mailing list since I didn’t get any response on the forum and other channels. Would appreciate a response, even if it’s of the “we can’t do that right now” nature.

 

We need to add an entry to a p2 composite repository that does not merge the feature categorization from the referenced repository. Basically, we need to content of the repo to be accessible for dependency resolution, but not present to the user of the composite for selection.

Is that possible?

 

Thanks,

 

- Konstantin

 

<div><div class="WordSection1">
<p class="MsoNormal">Sending this question to the dev mailing list since I didn&rsquo;t get any response on the forum and other channels. Would appreciate a response, even if it&rsquo;s of the &ldquo;we can&rsquo;t do that right now&rdquo; nature.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span class="msgbodytext">We need to add an entry to a p2 composite repository that does not merge the feature categorization from the referenced repository. Basically, we need to content of the repo to be accessible for dependency resolution, but not present to the user of the composite for selection.</span><br><br><span class="msgbodytext">Is that possible?<p></p></span></p>
<p class="MsoNormal"><span class="msgbodytext"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span class="msgbodytext">Thanks,<p></p></span></p>
<p class="MsoNormal"><span class="msgbodytext"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span class="msgbodytext">- Konstantin<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Raymond Auge | 31 Jul 07:57 2014

possible regression in equinox

Hey all,

I think I found a regression in equinox when using the framework API.

:(

The scenario is quite simple to reproduce.

java.util.ServiceLoader<FrameworkFactory> loader = java.util.ServiceLoader.load(FrameworkFactory.class);
Map<String, String> properties = new HashMap<String, String>();
properties.put("blah", null);
Framework newFramework = loader.iterator().next().newFramework(properties);

// fails with NPE

This would work fine in every previous version of equinox.

Rationale
So, this might sounds like it's a silly thing to want to do in the first place. 

However, one very good reason for this is because it's the only way to "set" (or rather "unset") certain equinox flags due to the fact that the only check causing them to be unset is a null check (which if I can't set it null will obviously never be the case).

Again, before Luna, this always worked.

--
Raymond Augé ( <at> rotty3000)
Senior Software Architect
Liferay, Inc. ( <at> Liferay)


<div><div dir="ltr">Hey all,<div><br></div>
<div>I think I found a regression in equinox when using the framework API.</div>
<div><br></div>
<div>:(</div>
<div><br></div>
<div>The scenario is quite simple to reproduce.</div>
<div><br></div>
<div>
<div>java.util.ServiceLoader&lt;FrameworkFactory&gt; loader = java.util.ServiceLoader.load(FrameworkFactory.class);</div>
<div><span class="">		</span></div>
<div>Map&lt;String, String&gt; properties = new HashMap&lt;String, String&gt;();</div>
<div><span class="">		</span></div>
<div>properties.put("blah", null);</div>
<div><span class="">		</span></div>
<div>Framework newFramework = loader.iterator().next().newFramework(properties);</div>
</div>
<div><br></div>
<div>// fails with NPE</div>
<div><br></div>
<div>This would work fine in every previous version of equinox.</div>
<div><br></div>
<div>Rationale</div>
<div>So, this might sounds like it's a silly thing to want to do in the first place.&nbsp;</div>
<div><br></div>
<div>However, one very good reason for this is because it's the only way to "set" (or rather "unset") certain equinox flags due to the fact that the only check causing them to be unset is a null check (which if I can't set it null will obviously never be the case).<br><br>Again, before Luna, this always worked.</div>
<div>
<div><br></div>-- <br><div dir="ltr">
<span><a href="http://www.liferay.com/web/raymond.auge/profile" target="_blank">Raymond Aug&eacute;</a>&nbsp;( <at> rotty3000)</span><div>
<span>Senior Software Architect</span>
</div>
<div>
<a href="http://www.liferay.com" target="_blank">Liferay, Inc.</a><span>&nbsp;( <at> Liferay)</span><div>
<div>
<div><br></div>
<div><br></div>
<p></p>
</div>
<span><span></span></span><div>
<p></p>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div></div>
David Cao | 31 Jul 01:04 2014
Picon

One bundle does not auto start in Servlet Bridge

Hello there,

I have two bundle configured to auto start when Servlet Bridge project start. Here is my /WEB-INF/eclipse/configuration/config.ini,

osgi.bundles=org.eclipse.equinox.common <at> 2:start, org.eclipse.update.configurator <at> start, org.eclipse.equinox.http.servletbridge <at> start, org.eclipse.equinox.http.registry <at> start, org.apache.felix.webconsole <at> start, masterconsole.web <at> start, masterconsole.persistence <at> start
osgi.bundles.defaultStartLevel=4


However, materconsole.persistence always starts fine; but masterconsole.web always shows Resolved; and I have to manually start it in Felix console. (masterconsole.web is a converted from a .war archive)

Here is the manifest of the masterconsole.web bundle,

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: masterconsole.web
Bundle-SymbolicName: masterconsole.web
Bundle-Version: 2.0.0
Bundle-Activator: masterconsole.web.Activator
Bundle-ClassPath: .,
 WEB-INF/classes,
 WEB-INF/lib/...
Import-Package: mc.console.api,
 javax.servlet,
 javax.servlet.http,
 org.osgi.framework;version="1.3.0",
 org.osgi.service.http;version="1.2.0",
 org.osgi.util.tracker;version="1.3.1"


Does anyone have such experience before? thanks!!!
David
<div><div dir="ltr">Hello there,<div><br></div>
<div>I have two bundle configured to auto start when Servlet Bridge project start. Here is my /WEB-INF/eclipse/configuration/config.ini,</div>
<div><br></div>
<div>
<div>osgi.bundles=org.eclipse.equinox.common <at> 2:start, org.eclipse.update.configurator <at> start, org.eclipse.equinox.http.servletbridge <at> start, org.eclipse.equinox.http.registry <at> start, org.apache.felix.webconsole <at> start, masterconsole.web <at> start, masterconsole.persistence <at> start</div>
<div>osgi.bundles.defaultStartLevel=4</div>
</div>
<div><br></div>
<div><br></div>
<div>However, materconsole.persistence&nbsp;always starts fine; but masterconsole.web&nbsp;always shows Resolved; and I have to manually start it in Felix console. (masterconsole.web is a converted from a .war archive)</div>
<div><br></div>
<div>Here is the manifest of the masterconsole.web bundle,</div>
<div><br></div>
<div>
<div>Manifest-Version: 1.0</div>
<div>Bundle-ManifestVersion: 2</div>
<div>Bundle-Name: masterconsole.web</div>
<div>Bundle-SymbolicName: masterconsole.web</div>
<div>Bundle-Version: 2.0.0</div>
<div>Bundle-Activator: masterconsole.web.Activator</div>
<div>Bundle-ClassPath: .,</div>
<div>&nbsp;WEB-INF/classes,</div>
<div>&nbsp;WEB-INF/lib/...<br>
</div>
<div>Import-Package: mc.console.api,</div>
<div>
&nbsp;javax.servlet,</div>
<div>&nbsp;javax.servlet.http,</div>
<div>&nbsp;org.osgi.framework;version="1.3.0",</div>
<div>&nbsp;org.osgi.service.http;version="1.2.0",</div>
<div>&nbsp;org.osgi.util.tracker;version="1.3.1"</div>
</div>
<div><br></div>
<div><br></div>
<div>Does anyone have such experience before? thanks!!!</div>
<div>David</div>
</div></div>
David Cao | 29 Jul 22:23 2014
Picon

Access Tomcat lib jar from Equinox Servlet Bridge

Hello there,

My OSGi'rized webapp has a run-time dependency on "jsp-api.jar" under Tomcat 6 lib. Is there a way I can inherit package from Tomcat catalina classpath? what are my other options here?

Thanks a lot!
David


<div><div dir="ltr">Hello there,<div><br></div>
<div>My OSGi'rized webapp has a run-time dependency on "jsp-api.jar" under Tomcat 6 lib. Is there a way I can inherit package from Tomcat catalina classpath? what are my other options here?</div>
<div><br></div>
<div>Thanks a lot!</div>
<div>David</div>
<div><br></div>
<div><br></div>
</div></div>
David Cao | 29 Jul 16:51 2014
Picon

Deployment Descriptor in Equinox Servlet bridge

Hello there,

So if I register a servlet with context param left as null,

httpService.registerServlet("/sname", new MyServlet(), params, null);

It will be registered to the default HttpContext which is configured with the Servlet Bridge /WEB-INF/web.xml, right? if so, I could move some descriptors as <context-param>, <security-role>, <security-constraint>, <login-config>, etc. in the legacy web.xml to bridge web.xml, right?

When I search the archives, I saw this OLD post "http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg02957.html". It sounds could solve my request without any coding. But I don't see a "org.eclipse.equinox.webapp.service" bundle. Does anyone know the current update on this one?

Thanks a lot!!
David
<div><div dir="ltr">Hello there,<div><br></div>
<div>So if I register a servlet with context param left as null,</div>
<div><br></div>
<div>httpService.registerServlet("/sname", new MyServlet(), params, null);<br>
</div>
<div><br></div>
<div>It will be registered to the default HttpContext which is configured with the Servlet Bridge /WEB-INF/web.xml, right? if so, I could move some descriptors as &lt;context-param&gt;, &lt;security-role&gt;, &lt;security-constraint&gt;, &lt;login-config&gt;, etc. in the legacy web.xml to bridge web.xml, right?</div>
<div><br></div>
<div>When I search the archives, I saw this OLD post "<a href="http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg02957.html">http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg02957.html</a>". It sounds could solve my request without any coding. But I don't see a "org.eclipse.equinox.webapp.service" bundle. Does anyone know the current update on this one?</div>
<div><br></div>
<div>Thanks a lot!!</div>
<div>David</div>
</div></div>

Gmane