Thanks much for your suggestion!

The issue is, we have absolutely no code involved in this, nor can we run any.  
We are running an Eclipse plugin's "Wizard" to generate the web services.  It 
examines our code to do its work, but the actual code being run is not ours, it 
is in the plugin.


So any suggestions to run something in code is impossible to do in this case.


Unless you know a way to force a third-party plugin to run arbitrary code if 
there's no entry point for it to do so?


- Tim


________________________________
From: Mike Kienenberger <mkien...@gmail.com>
Sent: Tuesday, January 16, 2018 6:38 AM
To: Velocity Developers List
Subject: Re: Problem in Eclipse with JBoss's java2ws using velocity - "The 
specified logger class org.apache.velocity.runtime.log.NullLogSystem does not 
implement the org.apache.velocity.runtime.log.LogChute interface"

While I can't share the code, one of my clients has written a generic
class that dumps the current app's classpath, so this can be done
within your own java code.

The code I have access to is much more complicated, but a simple
approach can be found here:

http://cp.mcafee.com/d/2DRPoA73gA76QnQn4kmnT63pJ55d5VBdZZ4SyyCyYOCUOyrdCPqJyLQFm7bCStIg5km7J5tIXtQwUMaLeeA1lxNZ4l8njKaFK6zBZMQszJhLt4SrdCPo09kGmH0zO-2eCtMDkMnDkKJ6k9BWJPbP9-nIT6fMCnmzkh-QOZzZFhrpAYdzsyLCy02Fv3U4fyh-9Ewd7yFmnM-1054hfBPhYrd79EVjudwLQzh05ER87-Gq89gd40Ro-iRfd41ykOpEw0wpHixEDEq817jeFCa6y1KAE4jh0pY-JFjb6y0Kq83h42ivCy2yTSAXbQ3h0vkyh-9EwIvJa6y003SHroD_6vfHqkOThrxeiLYvkzMcrff2Ji8MmFfRjh0xnW6y25pCy2iGN_G_2pEwCjYQg00uRrr4_UPVZriCmWbs9Ol_zWAu2Ji8AjrDVEwB2vNtSTCy8SDsQsCQPrNKVJUSyrh

The approached used by my client checked the "java.class.path" system
property, pulled out the classes in the JRE's lib/rt.jar file for
bootstrap classes, as well as the JRE's lib/ext classes.
It then pulled out the actual classes used with specific code based on
whether the classpath resource was a directory, zip, or a jar file.



On Mon, Jan 15, 2018 at 6:13 PM, Bessie, Timothy
<tim.bes...@mckesson.com> wrote:
> Sorry, I should clarify - there doesn't appear to be a way to know what 
> classpath is being used, modify it, etc.  It's a black box we have little 
> control over.
>
> - Tim
>
> -----Original Message-----
> From: Bessie, Timothy [mailto:tim.bes...@mckesson.com]
> Sent: Monday, January 15, 2018 14:32
> To: Velocity Developers List <dev@velocity.apache.org>
> Subject: RE: Problem in Eclipse with JBoss's java2ws using velocity - "The 
> specified logger class org.apache.velocity.runtime.log.NullLogSystem does not 
> implement the org.apache.velocity.runtime.log.LogChute interface"
>
>>> Claude Brisson: Most probably, you have several instances of Velocity in 
>>> your classpath, an 1.7 and an older one somewhere else.
>> That's what I suspected at first as well; I testing by removing all but a 
>> single instance of Velocity 1.7 (I renamed all other instances - I'm not 
>> sure if I have direct control over the classpath that this plugin uses, or 
>> if I do I'm not sure how to modify it, as I don't think it uses the project 
>> classpath directly).  Got the same stacktrace, unfortunately.
> I think it's worth spending some time finding out which classpath is JBoss 
> using. Since I'm not using it personally I can't help you on this, sometimes 
> it's just as simple as printing the CLASSPATH environment variable.
>
> I'm not sure if that's possible - this is the classpath being used by the 
> WebService wizard plugin; I see no way to modify its default behavior.  We're 
> going to lodge a support ticket with Red Hat to see if they can advise.
>
> - Tim
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to