[equinox-dev] I need jetty 6, for the clustering sake

2008-03-18 Thread 耿韶光
Hi every one,

My team is constructing web app on the bases of OSGi(equinox now), but a 
problem raised:

We need cluster, and found a solution from wadi.codehaus.org but seems that 
jetty version 6.x is supported.

So I post this mail seeing that running jetty 6 on equinox.

I this interesting to rest of you?

Is is valuable to write a newer bundle that makes this work?

Thank you very much, here.

Yours ShaoGuang.Geng___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Using log4j with LogService

2008-03-18 Thread Alex Blewitt
On Tue, Mar 18, 2008 at 3:49 AM, Srijith Kochunni [EMAIL PROTECTED] wrote:

 Thanks for the quick reply. Yes I can use the LogReader Service and then
 direct it to log4j.

Have you looked at PAX logging?

http://wiki.ops4j.org/confluence/display/ops4j/Pax+Logging

That allows you to have an OSGi LogService implementation that picks
up messages and forwards them to the back-end logger of your choice,
including log4j. And because it exports logging packages, clients can
transparently use existing log4j logging code - PAX logging - log4j
at the back end.

Alex
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


RE: AW: [equinox-dev] Classloading problems running Equinox weaved AspectJ

2008-03-18 Thread Kiev Gama
Actually I'm not using the Equinox from the Equinox Aspects project.
I'm doing AspectJ compile-time (offline) weaving of a standard Equinox 
framework.

AspectJ 1.5
Equinox 3.2.0

Does the list allow the attaching of a file?
I can attach the weaved jar.

Thanks for the help.


Subject: AW: [equinox-dev] Classloading problems running Equinox weaved AspectJ
Date: Tue, 18 Mar 2008 13:33:10 +0100
From: [EMAIL PROTECTED]
To: equinox-dev@eclipse.org



















Kiev,

 

Could you please provide
some more information about your setting?

 

- Are you using
compile-time weaving or loag-time weaving by Equinox Aspects?

- Which AspectJ version
are you using?

 

Further it could be
valuable if you could attach your project(s) …

 

Heiko

 









Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Kiev Gama

Gesendet: Dienstag, 18. März 2008
02:11

An: equinox-dev@eclipse.org

Betreff: [equinox-dev]
Classloading problems running Equinox weaved AspectJ



 

Hello,



I weaved Equinox framework v 3.2.0 with AspectJ and I am getting the following
the weaved framework:



Exception in thread main java.lang.NoClassDefFoundError:
org/eclipse/osgi/framework/log/FrameworkLogEntry

Caused by: java.lang.ClassNotFoundException:
org.eclipse.osgi.framework.log.FrameworkLogEntry

at java.net.URLClassLoader$1.run(Unknown Source)

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

at java.net.URLClassLoader.findClass(Unknown
Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown
Source)





The FrameworkLogEntry class is the weaved jar. Does anybody know in detail how
the class loading works or why that is happening?



This version does not use digitally signed jars. I found errors regarding the
hashing of classes with version 3.3 and that is why I've tried weaving a
previous version.



Thanks,



Kiev Gama

 







Do more with your photos with Windows Live Photo Gallery. Get Windows Live-Free







_
Do more with your photos with Windows Live Photo Gallery.
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


RE: AW: AW: [equinox-dev] Classloading problems running Equinox weavedAspectJ

2008-03-18 Thread Kiev Gama
Thanks for the response.

I have tried to run in two different ways:

1 - If I put aspectJrt.jar in the classpath I get an explicit dependency error 
on the AJ classes
2 - Then, I've set the aspectJ\lib in the java.ext.dirs option and I've got the 
error that I sent.

I'll check on that other tip that you gave me.
Can I use fragment bundles with the bundle 0 (framework bundle) ?

Thanks again



Subject: AW: AW: [equinox-dev] Classloading problems running Equinox
weavedAspectJ
Date: Tue, 18 Mar 2008 14:18:12 +0100
From: [EMAIL PROTECTED]
To: equinox-dev@eclipse.org



















Kiev,

 

Thank you for the information
provided.

 

As far as I understand
you are weaving some aspects into Equinox (into the FrameworkLogEntry), right?

 

This will create
dependencies from Equinox to your classes and possibly to AspectJ (for example
when using around advices). These dependencies cannot be resolved, because in
OSGi only dependencies declared in the bundle manifest are visible.

 

Maybe you could put your
classes and the AspectJ runtime library into a framework extension fragment
(look for details in the Eclipse Wiki).

Any comments on this?

 

Another solution could be
to use Equinox Aspects and load-time weaving.

 

Heiko

 









Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Kiev Gama

Gesendet: Dienstag, 18. März 2008
05:53

An: Equinox development mailing
list

Betreff: RE: AW: [equinox-dev]
Classloading problems running Equinox weavedAspectJ



 

Actually I'm not using the Equinox from the Equinox Aspects
project.

I'm doing AspectJ compile-time (offline) weaving of a standard Equinox
framework.



AspectJ 1.5

Equinox 3.2.0



Does the list allow the attaching of a file?

I can attach the weaved jar.



Thanks for the help.











Subject: AW: [equinox-dev]
Classloading problems running Equinox weaved AspectJ

Date: Tue, 18 Mar 2008 13:33:10 +0100

From: [EMAIL PROTECTED]

To: equinox-dev@eclipse.org



Kiev,

 

Could you please provide
some more information about your setting?

 

- Are you using
compile-time weaving or loag-time weaving by Equinox Aspects?

- Which AspectJ version
are you using?

 

Further it could be
valuable if you could attach your project(s) …

 

Heiko

 









Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im
Auftrag von Kiev Gama

Gesendet: Dienstag, 18. März 2008
02:11

An: equinox-dev@eclipse.org

Betreff: [equinox-dev]
Classloading problems running Equinox weaved AspectJ



 

Hello,



I weaved Equinox framework v 3.2.0 with AspectJ and I am getting the following
the weaved framework:



Exception in thread main java.lang.NoClassDefFoundError:
org/eclipse/osgi/framework/log/FrameworkLogEntry

Caused by: java.lang.ClassNotFoundException: 
org.eclipse.osgi.framework.log.FrameworkLogEntry

at java.net.URLClassLoader$1.run(Unknown Source)

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

at java.net.URLClassLoader.findClass(Unknown
Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown
Source)





The FrameworkLogEntry class is the weaved jar. Does anybody know in detail how
the class loading works or why that is happening?



This version does not use digitally signed jars. I found errors regarding the
hashing of classes with version 3.3 and that is why I've tried weaving a
previous version.



Thanks,



Kiev Gama

 







Do more with your photos with Windows Live Photo Gallery. Get Windows Live-Free



 







Do more with your photos with Windows Live Photo Gallery. Get Windows Live—Free







_
Don't get caught with egg on your face. Play chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_feb___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


RE: AW: AW: AW: [equinox-dev] Classloading problems running EquinoxweavedAspectJ

2008-03-18 Thread Kiev Gama
Thank you Heiko.

Here is what I did after your last mail:

1-I've bundlized aspectjrt.jar into aspectjrt-osgi.jar, and copied it to the 
same place of the weaved equinox
My aspectjrt-osgi.jar has the following header in its manifest
Fragment-Host: org.eclipse.osgi;bundle-version=3.2.0.v20060601

2-Run the equinox like this:
java -Dosgi.framework.extensions=aspectjrt-osgi.jar -jar 
org.eclipse.osgi_3.2.0.v20060601.jar -console

3-The following happens:

java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
at org.eclipse.osgi.baseadaptor.BaseAdaptor$ParentClassLoader.init(Bas
eAdaptor.java:76)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.clinit(BaseAdaptor.java:70
)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.createAdaptor(Eclipse
Starter.java:777)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarte
r.java:280)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:173)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.j
ava:150)
Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.NoAspectBoundExcep
tion
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 8 more


However if I run like this it works fine:
java -Djava.ext.dirs=. -jar org.eclipse.osgi_3.2.0.v20060601.jar -console


I am not sure of the consequences (I would be glad to know it) of this in the 
long run, but I've installed some bundles with no problem. The weaving worked 
as well.

If you could help me to do it the right way that would be awesome.

Thanks again!

Kiev
Subject: AW: AW: AW: [equinox-dev] Classloading problems running
EquinoxweavedAspectJ
Date: Tue, 18 Mar 2008 15:59:27 +0100
From: [EMAIL PROTECTED]
To: equinox-dev@eclipse.org























Kiev,

 

OSGi will not allow you
any non-OSGi class loading tricks.

 

Yes, you can have a
fragment for the system bundle. These are called framework extension bundles.

In order to be found by Equinox
this fragment has to be co-located with the system bundle and you have to
register it by the system property

osgi.framework.extensions=FRAGMENT

 

Heiko









Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im
Auftrag von Kiev Gama

Gesendet: Dienstag, 18. März 2008
06:57

An: Equinox
 development mailing list

Betreff: RE: AW: AW: [equinox-dev]
Classloading problems running EquinoxweavedAspectJ



 

Thanks for the response.



I have tried to run in two different ways:



1 - If I put aspectJrt.jar in the classpath I get an explicit dependency error
on the AJ classes

2 - Then, I've set the aspectJ\lib in the java.ext.dirs option and I've got the
error that I sent.



I'll check on that other tip that you gave me.

Can I use fragment bundles with the bundle 0 (framework bundle) ?



Thanks again













Subject: AW: AW: [equinox-dev]
Classloading problems running Equinox weavedAspectJ

Date: Tue, 18 Mar 2008 14:18:12 +0100

From: [EMAIL PROTECTED]

To: equinox-dev@eclipse.org



Kiev,

 

Thank you for the
information provided.

 

As far as I understand
you are weaving some aspects into Equinox (into the FrameworkLogEntry), right?

 

This will create
dependencies from Equinox to your classes and possibly to AspectJ (for example
when using around advices). These dependencies cannot be resolved, because in
OSGi only dependencies declared in the bundle manifest are visible.

 

Maybe you could put your
classes and the AspectJ runtime library into a framework extension fragment
(look for details in the Eclipse Wiki).

Any comments on this?

 

Another solution could be
to use Equinox Aspects and load-time weaving.

 

Heiko

 









Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Kiev Gama

Gesendet: Dienstag, 18. März 2008
05:53

An: Equinox
 development mailing list

Betreff: RE: AW: [equinox-dev]
Classloading problems running Equinox weavedAspectJ



 

Actually I'm not using the Equinox from the Equinox Aspects
project.

I'm doing AspectJ compile-time (offline) weaving of a standard Equinox
framework.



AspectJ 1.5

Equinox 3.2.0



Does the list allow the attaching of a file?

I can attach the weaved jar.



Thanks for the help.







Subject: AW: [equinox-dev]
Classloading problems running Equinox weaved AspectJ

Date: Tue, 18 Mar 2008 13:33:10 +0100

From: [EMAIL PROTECTED]

To: equinox-dev@eclipse.org



Kiev,

 

Could you please provide
some more information about your setting?

 

- Are you using 

[equinox-dev] AUTO: Michael Iles is out of the office (returning 21/03/2008)

2008-03-18 Thread Michael Iles

I am out of the office until 21/03/2008.

I am out of the office for the week of Mar. 17 to 20 with regular access to
email. For emergency Go! Mobile issues please contact Michael Cyze.


Note: This is an automated response to your message Re: AW: AW: AW:
[equinox-dev] Classloading problems running EquinoxweavedAspectJ sent
on 3/18/08 12:50:23.
You will receive a notification for each message you send to this person
while the person is away.

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


[equinox-dev] AUTO: Michael Iles is out of the office (returning 21/03/2008)

2008-03-18 Thread Michael Iles

I am out of the office until 21/03/2008.

I am out of the office for the week of Mar. 17 to 20 with regular access to
email. For emergency Go! Mobile issues please contact Michael Cyze.


Note: This is an automated response to your message Re: [equinox-dev] P2
artifact repositories and caching sent on 3/18/08 15:43:11.
You will receive a notification for each message you send to this person
while the person is away.

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Re: Does equinox support extension:=bootclasspath

2008-03-18 Thread Thomas Watson

The short answer is no and we have no plans to implement it in the current
3.4 release.  But there is a bug open
https://bugs.eclipse.org/bugs/show_bug.cgi?id=127724

We could consider implementing it in a future release.  The struggle we
have had with this feature in OSGi is to implement true boot classpath
extensions we need to know about the extensions before the VM is even
launched.  This could be done by modifying the eclipse.ini but the problem
with this is that eclipse.ini is not managed by the framework.  In 3.4 p2
can now manage this file.  One possibility would be to have p2 manage the
eclipse.ini to add the proper boot classpath arguments with the
bootclasspath extension content.  I don't really like this solution either
because it involves a dance between p2 and the framework in order to make
bootclasspath fragments really work.  In other words they will not work in
a framework that does not have p2 managing it.

Tom





  
  From:   Alin Dreghiciu [EMAIL PROTECTED]  
   

  
  To: equinox-dev@eclipse.org   
  

  
  Date:   03/18/2008 08:10 AM   
  

  
  Subject:[equinox-dev] Re: Does equinox support extension:=bootclasspath   


  





And related: If the answer is no, is there a plan to supported in the
future?

Thanx again,
Alin

On Tue, Mar 18, 2008 at 9:04 PM, Alin Dreghiciu [EMAIL PROTECTED]
wrote:
 Hi guys,

  Does equinox support extension:=bootclasspath? I cannot find a clear
  reference about the subject, only some mail archive back from 2006.
  As I see the property org.osgi.supports.bootclasspath.extension is
  not set (in 3.3.1), so it defaults to false = it does not support.

  Thanx,
  Alin Dreghiciu

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
inline: graycol.gifinline: ecblank.gif___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


[equinox-dev] AUTO: Michael Iles is out of the office (returning 21/03/2008)

2008-03-18 Thread Michael Iles

I am out of the office until 21/03/2008.

I am out of the office for the week of Mar. 17 to 20 with regular access to
email. For emergency Go! Mobile issues please contact Michael Cyze.


Note: This is an automated response to your message [equinox-dev] AUTO:
Michael Iles is out of the office (returning21/03/2008) sent on 3/18/08
16:04:03.
You will receive a notification for each message you send to this person
while the person is away.

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


[equinox-dev] AUTO: Michael Iles is out of the office (returning 21/03/2008)

2008-03-18 Thread Michael Iles

I am out of the office until 21/03/2008.

I am out of the office for the week of Mar. 17 to 20 with regular access to
email. For emergency Go! Mobile issues please contact Michael Cyze.


Note: This is an automated response to your message [equinox-dev] AUTO:
Michael Iles is out of the office (returning21/03/2008) sent on 3/18/08
16:04:03.
You will receive a notification for each message you send to this person
while the person is away.

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev