Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Monitoring with static parser
Monitoring with static parser [message #103994] Tue, 10 July 2007 13:15 Go to next message
Eclipse User
Originally posted by: mohamedm.amazon.com

Hi,

I am trying to create a static parser to parse my application log files. I
am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1

I started by importing the org,eclipse.hyades.logging.parsers plugin which
comes with 3 different parser sets (Apache, Windows, and XML). The Java XML
parser is closest to my needs so I am working with this one.
The next thing I did was to change the parser class by changing the
parserClassName property on the SingleFileSensor component. I set the class
name to my Java static parser class which extends
import org.eclipse.hyades.logging.parsers.MonitoringParser

I try to test by running the adapter from the Extraxtor Result view but I
get this error:

IWAT0426E The static parser class xxx.xxxx could not be loaded. Ensure it is
accessible via the class path or an extension point.

Can someone please help me figure out how to set the class path or an
extension point.

Thanks,
Mohamed
Re: Monitoring with static parser [message #104055 is a reply to message #103994] Tue, 10 July 2007 17:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: cindyjin.ca.ibm.com

Hi Mohamed:

You can either run your static parser plugin in eclipse runtime
environment, or export your static parser plugin and deploy it to your
eclipse plugins, then create a new plugin which has a dependency to your
static parser plugin and also your adapter.

Thanks
Cindy


Mohamed Mansour wrote:
> Hi,
>
> I am trying to create a static parser to parse my application log files. I
> am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1
>
> I started by importing the org,eclipse.hyades.logging.parsers plugin which
> comes with 3 different parser sets (Apache, Windows, and XML). The Java XML
> parser is closest to my needs so I am working with this one.
> The next thing I did was to change the parser class by changing the
> parserClassName property on the SingleFileSensor component. I set the class
> name to my Java static parser class which extends
> import org.eclipse.hyades.logging.parsers.MonitoringParser
>
> I try to test by running the adapter from the Extraxtor Result view but I
> get this error:
>
> IWAT0426E The static parser class xxx.xxxx could not be loaded. Ensure it is
> accessible via the class path or an extension point.
>
> Can someone please help me figure out how to set the class path or an
> extension point.
>
> Thanks,
> Mohamed
>
>
Re: Monitoring with static parser [message #104163 is a reply to message #104055] Tue, 10 July 2007 18:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: mohamedm.amazon.com

Hi Cindy,

I prefer to run the plugin in my eclipse enviroment. When I tried that I get
the error I listed in my original posting.

"IWAT0426E The static parser class omaparser.MyParser could not be loaded.
Ensure it is accessible via the class path or an extension point."

How can I setup my classpath to point my static parser class?? the class is
created within the same plugin-project so I am not sure why eclipse can't
see it!

Thanks,
Mohamed

"Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
news:f70e3j$gfq$1@build.eclipse.org...
> Hi Mohamed:
>
> You can either run your static parser plugin in eclipse runtime
> environment, or export your static parser plugin and deploy it to your
> eclipse plugins, then create a new plugin which has a dependency to your
> static parser plugin and also your adapter.
>
> Thanks
> Cindy
>
>
> Mohamed Mansour wrote:
>> Hi,
>>
>> I am trying to create a static parser to parse my application log files.
>> I am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1
>>
>> I started by importing the org,eclipse.hyades.logging.parsers plugin
>> which comes with 3 different parser sets (Apache, Windows, and XML). The
>> Java XML parser is closest to my needs so I am working with this one.
>> The next thing I did was to change the parser class by changing the
>> parserClassName property on the SingleFileSensor component. I set the
>> class name to my Java static parser class which extends
>> import org.eclipse.hyades.logging.parsers.MonitoringParser
>>
>> I try to test by running the adapter from the Extraxtor Result view but I
>> get this error:
>>
>> IWAT0426E The static parser class xxx.xxxx could not be loaded. Ensure it
>> is accessible via the class path or an extension point.
>>
>> Can someone please help me figure out how to set the class path or an
>> extension point.
>>
>> Thanks,
>> Mohamed
Re: Monitoring with static parser [message #104178 is a reply to message #104163] Tue, 10 July 2007 19:00 Go to previous messageGo to next message
Eclipse User
Originally posted by: cindyjin.ca.ibm.com

hi Mohamed:

You need to export your static parser plugin as "deployable plug-ins and
fragments", then store that jar to your eclipse/plugins/. Restart your
eclipse with eclipse.exe -clean command, create a new plugin project
which has a dependency to your startic parser plugin, then creat the
adapter, set the parser class in the single file sensor. It should work.

Currently the extract viewer tool can't find the classpath to classes in
your workbrench plugin porject. You can open a feature request to allow
user set the classpath to external classes in the extract viewer.

Thanks
Cindy

Mohamed Mansour wrote:
> Hi Cindy,
>
> I prefer to run the plugin in my eclipse enviroment. When I tried that I get
> the error I listed in my original posting.
>
> "IWAT0426E The static parser class omaparser.MyParser could not be loaded.
> Ensure it is accessible via the class path or an extension point."
>
> How can I setup my classpath to point my static parser class?? the class is
> created within the same plugin-project so I am not sure why eclipse can't
> see it!
>
> Thanks,
> Mohamed
>
> "Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
> news:f70e3j$gfq$1@build.eclipse.org...
>> Hi Mohamed:
>>
>> You can either run your static parser plugin in eclipse runtime
>> environment, or export your static parser plugin and deploy it to your
>> eclipse plugins, then create a new plugin which has a dependency to your
>> static parser plugin and also your adapter.
>>
>> Thanks
>> Cindy
>>
>>
>> Mohamed Mansour wrote:
>>> Hi,
>>>
>>> I am trying to create a static parser to parse my application log files.
>>> I am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1
>>>
>>> I started by importing the org,eclipse.hyades.logging.parsers plugin
>>> which comes with 3 different parser sets (Apache, Windows, and XML). The
>>> Java XML parser is closest to my needs so I am working with this one.
>>> The next thing I did was to change the parser class by changing the
>>> parserClassName property on the SingleFileSensor component. I set the
>>> class name to my Java static parser class which extends
>>> import org.eclipse.hyades.logging.parsers.MonitoringParser
>>>
>>> I try to test by running the adapter from the Extraxtor Result view but I
>>> get this error:
>>>
>>> IWAT0426E The static parser class xxx.xxxx could not be loaded. Ensure it
>>> is accessible via the class path or an extension point.
>>>
>>> Can someone please help me figure out how to set the class path or an
>>> extension point.
>>>
>>> Thanks,
>>> Mohamed
>
>
Re: Monitoring with static parser [message #104217 is a reply to message #104178] Tue, 10 July 2007 21:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: mohamedm.amazon.com

Ok, now I understand why I was getting this error.

It works for me now if I run the plugin project as an Eclipse application,
this would magically create a new eclipse workspace that includes the
plugin.

What I am trying to do now is run this plugin on a remote host and view the
events using the log and trace analyzer. I installed the generic log adapter
and the agent controller on the remote host, then I exported the plugin as a
deployable plugin and fragments, to a zip file which I unzipped to the
plugin directory of the generic log adapter directory.

When I try to run my adapter using gla I get this error:

IWAT0426E The static parser class omaparser.OMAParser could not be loaded.
Ensure it is accessible via the classpath or an extension point.

The same plugin works if I run it as an eclipse application. I must be
missing some configuration file somewhere, any help will be greatly
appreciated.

Thanks,
Mohamed

"Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
news:f70kvj$1ps$1@build.eclipse.org...
> hi Mohamed:
>
> You need to export your static parser plugin as "deployable plug-ins and
> fragments", then store that jar to your eclipse/plugins/. Restart your
> eclipse with eclipse.exe -clean command, create a new plugin project which
> has a dependency to your startic parser plugin, then creat the adapter,
> set the parser class in the single file sensor. It should work.
>
> Currently the extract viewer tool can't find the classpath to classes in
> your workbrench plugin porject. You can open a feature request to allow
> user set the classpath to external classes in the extract viewer.
>
> Thanks
> Cindy
>
> Mohamed Mansour wrote:
>> Hi Cindy,
>>
>> I prefer to run the plugin in my eclipse enviroment. When I tried that I
>> get the error I listed in my original posting.
>>
>> "IWAT0426E The static parser class omaparser.MyParser could not be
>> loaded. Ensure it is accessible via the class path or an extension
>> point."
>>
>> How can I setup my classpath to point my static parser class?? the class
>> is created within the same plugin-project so I am not sure why eclipse
>> can't see it!
>>
>> Thanks,
>> Mohamed
>>
>> "Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
>> news:f70e3j$gfq$1@build.eclipse.org...
>>> Hi Mohamed:
>>>
>>> You can either run your static parser plugin in eclipse runtime
>>> environment, or export your static parser plugin and deploy it to your
>>> eclipse plugins, then create a new plugin which has a dependency to your
>>> static parser plugin and also your adapter.
>>>
>>> Thanks
>>> Cindy
>>>
>>>
>>> Mohamed Mansour wrote:
>>>> Hi,
>>>>
>>>> I am trying to create a static parser to parse my application log
>>>> files. I am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1
>>>>
>>>> I started by importing the org,eclipse.hyades.logging.parsers plugin
>>>> which comes with 3 different parser sets (Apache, Windows, and XML).
>>>> The Java XML parser is closest to my needs so I am working with this
>>>> one.
>>>> The next thing I did was to change the parser class by changing the
>>>> parserClassName property on the SingleFileSensor component. I set the
>>>> class name to my Java static parser class which extends
>>>> import org.eclipse.hyades.logging.parsers.MonitoringParser
>>>>
>>>> I try to test by running the adapter from the Extraxtor Result view but
>>>> I get this error:
>>>>
>>>> IWAT0426E The static parser class xxx.xxxx could not be loaded. Ensure
>>>> it is accessible via the class path or an extension point.
>>>>
>>>> Can someone please help me figure out how to set the class path or an
>>>> extension point.
>>>>
>>>> Thanks,
>>>> Mohamed
>>
Re: Monitoring with static parser [message #106541 is a reply to message #104217] Wed, 25 July 2007 17:18 Go to previous message
Dave Smith is currently offline Dave Smith
Messages: 14
Registered: July 2009
Junior Member
Hi Mohamed,

There are two ways to parse and show the records of a log on a remote system
in the Log and Trace Analyzer views on the local system:
1) install Agent Controller on the remote system and deploy the plugin
project containing your static parser class and static adapter file in the
Agent Controller plugins directory. See
http://help.eclipse.org/help33/topic/org.eclipse.tptp.monito ring.doc.isv/tasks/tconfiguremanifestfile.html
for the steps required.
2) install Agent Controller and Stand-alone Generic Log Adapter packages on
the remote system, change your static adapter file to use the Logging Agent
Outputter (org.eclipse.hyades.logging.adapter.outputters.CBELogOutputt er)
instead of the Log Import Outputter
(org.eclipse.hyades.logging.parsers.adapter.outputters.LogIm portOutputter),
and run GLA with the changed static adapter file. See
http://help.eclipse.org/help33/topic/org.eclipse.tptp.monito ring.doc.isv/tasks/tmonitorapp.html
for the details.

I don't know which method you were trying but it appears your static parser
class was not in the classpath. For method 1), ensure you have a
config/pluginconfig.xml file defined in you plugin project that adds the jar
containing your static parser class to the RemoteLogParserLoader application
classpath when it is launched by Agent Controller. See
http://help.eclipse.org/help33/topic/org.eclipse.tptp.monito ring.doc.isv/tasks/tconfiguremanifestfile.html#package
for a sample pluginconfig.xml file. For method 2), add the jar containing
your static parser class to the classpath in the gla script file used to run
the stand-alone GLA.

Dave


"Mohamed Mansour" <mohamedm@amazon.com> wrote in message
news:f70t3q$u8a$1@build.eclipse.org...
> Ok, now I understand why I was getting this error.
>
> It works for me now if I run the plugin project as an Eclipse application,
> this would magically create a new eclipse workspace that includes the
> plugin.
>
> What I am trying to do now is run this plugin on a remote host and view
the
> events using the log and trace analyzer. I installed the generic log
adapter
> and the agent controller on the remote host, then I exported the plugin as
a
> deployable plugin and fragments, to a zip file which I unzipped to the
> plugin directory of the generic log adapter directory.
>
> When I try to run my adapter using gla I get this error:
>
> IWAT0426E The static parser class omaparser.OMAParser could not be loaded.
> Ensure it is accessible via the classpath or an extension point.
>
> The same plugin works if I run it as an eclipse application. I must be
> missing some configuration file somewhere, any help will be greatly
> appreciated.
>
> Thanks,
> Mohamed
>
> "Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
> news:f70kvj$1ps$1@build.eclipse.org...
> > hi Mohamed:
> >
> > You need to export your static parser plugin as "deployable plug-ins and
> > fragments", then store that jar to your eclipse/plugins/. Restart your
> > eclipse with eclipse.exe -clean command, create a new plugin project
which
> > has a dependency to your startic parser plugin, then creat the adapter,
> > set the parser class in the single file sensor. It should work.
> >
> > Currently the extract viewer tool can't find the classpath to classes in
> > your workbrench plugin porject. You can open a feature request to allow
> > user set the classpath to external classes in the extract viewer.
> >
> > Thanks
> > Cindy
> >
> > Mohamed Mansour wrote:
> >> Hi Cindy,
> >>
> >> I prefer to run the plugin in my eclipse enviroment. When I tried that
I
> >> get the error I listed in my original posting.
> >>
> >> "IWAT0426E The static parser class omaparser.MyParser could not be
> >> loaded. Ensure it is accessible via the class path or an extension
> >> point."
> >>
> >> How can I setup my classpath to point my static parser class?? the
class
> >> is created within the same plugin-project so I am not sure why eclipse
> >> can't see it!
> >>
> >> Thanks,
> >> Mohamed
> >>
> >> "Cindy Jin" <cindyjin@ca.ibm.com> wrote in message
> >> news:f70e3j$gfq$1@build.eclipse.org...
> >>> Hi Mohamed:
> >>>
> >>> You can either run your static parser plugin in eclipse runtime
> >>> environment, or export your static parser plugin and deploy it to your
> >>> eclipse plugins, then create a new plugin which has a dependency to
your
> >>> static parser plugin and also your adapter.
> >>>
> >>> Thanks
> >>> Cindy
> >>>
> >>>
> >>> Mohamed Mansour wrote:
> >>>> Hi,
> >>>>
> >>>> I am trying to create a static parser to parse my application log
> >>>> files. I am using eclipse 3.2.2 build M20070212-1330 with tptp 4.3.1
> >>>>
> >>>> I started by importing the org,eclipse.hyades.logging.parsers plugin
> >>>> which comes with 3 different parser sets (Apache, Windows, and XML).
> >>>> The Java XML parser is closest to my needs so I am working with this
> >>>> one.
> >>>> The next thing I did was to change the parser class by changing the
> >>>> parserClassName property on the SingleFileSensor component. I set the
> >>>> class name to my Java static parser class which extends
> >>>> import org.eclipse.hyades.logging.parsers.MonitoringParser
> >>>>
> >>>> I try to test by running the adapter from the Extraxtor Result view
but
> >>>> I get this error:
> >>>>
> >>>> IWAT0426E The static parser class xxx.xxxx could not be loaded.
Ensure
> >>>> it is accessible via the class path or an extension point.
> >>>>
> >>>> Can someone please help me figure out how to set the class path or an
> >>>> extension point.
> >>>>
> >>>> Thanks,
> >>>> Mohamed
> >>
>
Previous Topic:How to profile as "Eclipse Application"
Next Topic:Recognizing automated GUI test results in Ant
Goto Forum:
  


Current Time: Sat Oct 25 23:36:11 GMT 2014

Powered by FUDForum. Page generated in 0.02975 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software