You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by jetpilot <ig...@gmail.com> on 2008/10/13 22:35:47 UTC
class loader in Apache Jserv and Apache HTTP server
Hi All
I'm trying to use Aspect's J load time weaving feature using
WeavingURLClassLoader. Aspect that i write is defined on one method in
JServConnection class in ApacheJServ module.Basically i need to set class
loader(WeavingURLClassLoader, i guess using system property) to be used
when Apache HTTP Server starts and load the classes.This way loader will
weave the aspect.But i didn't find a way how to set this parameter, in
jserv.properties there is wrapper.bin param where you specify java path, but
how can i change default class loader being used.
--
View this message in context: http://www.nabble.com/class-loader-in-Apache-Jserv-and-Apache-HTTP-server-tp19962423p19962423.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.
Re: class loader in Apache Jserv and Apache HTTP server
Posted by Jess Holle <je...@ptc.com>.
Sorry -- I for one can't help. I've been using Tomcat since 3.x days
and never used JServ.
--
Jess Holle
jetpilot wrote:
> Tnx for responses
>
> I'm aware of 1.5 agent capabilities and that JServ is retired project, but
> unfortunately not every customer have same environment, and older version of
> Oracle AS use Jserv, so we need support for 1.4 + Jserv.As you pointed out
> this isn't the best place to ask this question and i couldn't find place
> where to post these kind of question but still i hoped that someone remember
> or had experience with it.
>
> Jess Holle wrote:
>
>> AspectJ's documentation should give some coverage to wedging use of this
>> ClassLoader into an existing app, but this really isn't the place for
>> such a question. If it were Tomcat, I'd suggest the Tomcat user's group
>> as some Tomcat user has likely done something similar, but there's no
>> such resource for JServ at this point.
>>
>> Also I'd suggest just moving up to Java 5 (and a recent AspectJ version)
>> and using the javaagent-based approach, which is a lot easier and
>> cleaner than ClassLoader hackery.
>>
>> --
>> Jess Holle
>>
>> Ruediger Pluem wrote:
>>
>>> On 10/13/2008 10:35 PM, jetpilot wrote:
>>>
>>>
>>>> Hi All
>>>>
>>>> I'm trying to use Aspect's J load time weaving feature using
>>>> WeavingURLClassLoader. Aspect that i write is defined on one method in
>>>> JServConnection class in ApacheJServ module.Basically i need to set
>>>> class
>>>> loader(WeavingURLClassLoader, i guess using system property) to be used
>>>> when Apache HTTP Server starts and load the classes.This way loader will
>>>> weave the aspect.But i didn't find a way how to set this parameter, in
>>>> jserv.properties there is wrapper.bin param where you specify java path,
>>>> but
>>>> how can i change default class loader being used.
>>>>
>>>>
>>> Apache Jserv is not part of the Apache HTTP Server project and it was
>>> retired
>>> long time ago and replaced with Tomcat (see
>>> http://jakarta.apache.org/site/retired-projects.html).
>>> So I can't give you a pointer where to post your question.
>>>
>>> Regards
>>>
>>> Rüdiger
>>>
>>>
>>>
>>
>>
>
>
Re: class loader in Apache Jserv and Apache HTTP server
Posted by jetpilot <ig...@gmail.com>.
Tnx for responses
I'm aware of 1.5 agent capabilities and that JServ is retired project, but
unfortunately not every customer have same environment, and older version of
Oracle AS use Jserv, so we need support for 1.4 + Jserv.As you pointed out
this isn't the best place to ask this question and i couldn't find place
where to post these kind of question but still i hoped that someone remember
or had experience with it.
Jess Holle wrote:
>
> AspectJ's documentation should give some coverage to wedging use of this
> ClassLoader into an existing app, but this really isn't the place for
> such a question. If it were Tomcat, I'd suggest the Tomcat user's group
> as some Tomcat user has likely done something similar, but there's no
> such resource for JServ at this point.
>
> Also I'd suggest just moving up to Java 5 (and a recent AspectJ version)
> and using the javaagent-based approach, which is a lot easier and
> cleaner than ClassLoader hackery.
>
> --
> Jess Holle
>
> Ruediger Pluem wrote:
>> On 10/13/2008 10:35 PM, jetpilot wrote:
>>
>>> Hi All
>>>
>>> I'm trying to use Aspect's J load time weaving feature using
>>> WeavingURLClassLoader. Aspect that i write is defined on one method in
>>> JServConnection class in ApacheJServ module.Basically i need to set
>>> class
>>> loader(WeavingURLClassLoader, i guess using system property) to be used
>>> when Apache HTTP Server starts and load the classes.This way loader will
>>> weave the aspect.But i didn't find a way how to set this parameter, in
>>> jserv.properties there is wrapper.bin param where you specify java path,
>>> but
>>> how can i change default class loader being used.
>>>
>>
>> Apache Jserv is not part of the Apache HTTP Server project and it was
>> retired
>> long time ago and replaced with Tomcat (see
>> http://jakarta.apache.org/site/retired-projects.html).
>> So I can't give you a pointer where to post your question.
>>
>> Regards
>>
>> Rüdiger
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/class-loader-in-Apache-Jserv-and-Apache-HTTP-server-tp19962423p19963184.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.
Re: class loader in Apache Jserv and Apache HTTP server
Posted by Jess Holle <je...@ptc.com>.
AspectJ's documentation should give some coverage to wedging use of this
ClassLoader into an existing app, but this really isn't the place for
such a question. If it were Tomcat, I'd suggest the Tomcat user's group
as some Tomcat user has likely done something similar, but there's no
such resource for JServ at this point.
Also I'd suggest just moving up to Java 5 (and a recent AspectJ version)
and using the javaagent-based approach, which is a lot easier and
cleaner than ClassLoader hackery.
--
Jess Holle
Ruediger Pluem wrote:
> On 10/13/2008 10:35 PM, jetpilot wrote:
>
>> Hi All
>>
>> I'm trying to use Aspect's J load time weaving feature using
>> WeavingURLClassLoader. Aspect that i write is defined on one method in
>> JServConnection class in ApacheJServ module.Basically i need to set class
>> loader(WeavingURLClassLoader, i guess using system property) to be used
>> when Apache HTTP Server starts and load the classes.This way loader will
>> weave the aspect.But i didn't find a way how to set this parameter, in
>> jserv.properties there is wrapper.bin param where you specify java path, but
>> how can i change default class loader being used.
>>
>
> Apache Jserv is not part of the Apache HTTP Server project and it was retired
> long time ago and replaced with Tomcat (see http://jakarta.apache.org/site/retired-projects.html).
> So I can't give you a pointer where to post your question.
>
> Regards
>
> Rüdiger
>
>
Re: class loader in Apache Jserv and Apache HTTP server
Posted by Ruediger Pluem <rp...@apache.org>.
On 10/13/2008 10:35 PM, jetpilot wrote:
> Hi All
>
> I'm trying to use Aspect's J load time weaving feature using
> WeavingURLClassLoader. Aspect that i write is defined on one method in
> JServConnection class in ApacheJServ module.Basically i need to set class
> loader(WeavingURLClassLoader, i guess using system property) to be used
> when Apache HTTP Server starts and load the classes.This way loader will
> weave the aspect.But i didn't find a way how to set this parameter, in
> jserv.properties there is wrapper.bin param where you specify java path, but
> how can i change default class loader being used.
Apache Jserv is not part of the Apache HTTP Server project and it was retired
long time ago and replaced with Tomcat (see http://jakarta.apache.org/site/retired-projects.html).
So I can't give you a pointer where to post your question.
Regards
Rüdiger