Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » SeMantic Information Logistics Architecture (SMILA) » Including a crawler in the build
Including a crawler in the build [message #1021] Tue, 09 June 2009 14:42 Go to next message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
I tried to include a Crawler into the Smila-Projekt so that i could be
part of my own buidl, but even after adding the projekt, updating the
feature, the plugin.xml, the config-file, adding the schema i dont see
this crawler in the active-crawler list. All files are generated und
placed where they have to be. This problem only occures wenn I build it
with the make.bat, under eclipse debuging the crawler is listed.
Re: Including a crawler in the build [message #1056 is a reply to message #1021] Tue, 09 June 2009 15:10 Go to previous messageGo to next message
Daniel Stucky is currently offline Daniel StuckyFriend
Messages: 35
Registered: July 2009
Member
Hi Roman,

so I guess the build with make.bat succeeds without any errors or warnings
concerning your bundle.

If you start SMILA, do you see your bundle in the OSGi console and is it
"started".

If your don't see it, check out if the bundle is in the plugins/ folder
and recheck the build log file.

If you seee it and it's not started you may have forgotten to add a start
entry for your bundle in file SMILA.application/configuration/config.ini.
You have to start your bundle as Crawlers are OSGi DeclarativeServices.

Bye,
Daniel
Re: Including a crawler in the build [message #1084 is a reply to message #1056] Tue, 09 June 2009 15:44 Go to previous messageGo to next message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
- so I guess the build with make.bat succeeds without any errors or
warnings concerning your bundle.

yes no errors in this bundle

- If you start SMILA, do you see your bundle in the OSGi console and is it
"started".

No BUT i also don't see the other crawler which i can work with. The
folder and files which are needed exist and their are no errors for this
bundle.

- If you seee it and it's not started you may have forgotten to add a
start entry for your bundle in file
SMILA.application/configuration/config.ini.

Entry for this bundle exists
Re: Including a crawler in the build [message #1112 is a reply to message #1084] Wed, 10 June 2009 08:17 Go to previous messageGo to next message
Daniel Stucky is currently offline Daniel StuckyFriend
Messages: 35
Registered: July 2009
Member
> No BUT i also don't see the other crawler which i can work with. The
> folder and files which are needed exist and their are no errors for this
> bundle.

This is strange. If you type "ss carwler" in your OSGi console you should
see the following bundles in state ACTIVE:
org.eclipse.smila.connectivity.framework.crawler.filesystem_ 0.5.0
org.eclipse.smila.connectivity.framework.crawler.web_0.5.0
org.eclipse.smila.connectivity.framework.crawler.jdbc_0.5.0
As well as the corresponding source bundles in state RESOLVED.

If your bundle also contains the string "crawler" it should be listed, too.
If not - your plugin is not correctly installed.

When typing "services" you should get entries like the following for each
crawler bundle:
{org.osgi.service.component.ComponentFactory}={component.fac tory=CrawlerFactory,
component.name=FileSystemCrawler, service.id=65} Registered by bundle:
initial@reference :file:plugins/org.eclipse.smila.connectivity.framework.crawl er.filesystem_0.5.0.jar/

If not - the service is not started.

> - If you seee it and it's not started you may have forgotten to add a
> start entry for your bundle in file
> SMILA.application/configuration/config.ini.

Please check your config.ini file for any spaces at the end of lines. We
recently had some problems with trailing spaces and all bundles after such
a space were not started.

Bye,
Daniel
Re: Including a crawler in the build [message #1137 is a reply to message #1112] Mon, 15 June 2009 14:42 Go to previous messageGo to next message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
With "ss crawler" i see 2 entries for my crawler the "normal" with the
status ACTIVE and the source with the status RESOLVED. No tailing space in
the config.
Re: Including a crawler in the build [message #1163 is a reply to message #1137] Mon, 15 June 2009 15:04 Go to previous messageGo to next message
Juergen Schumacher is currently offline Juergen SchumacherFriend
Messages: 35
Registered: July 2009
Member
Strange. Another try: Please add a line

-Dequinox.ds.print=true

to SMILA.ini. This should display errors that occur during activation of
your
Crawler service. And if there is nothing, you can add

-Dequinox.ds.debug=true

This will show lots of debug output generated by the service activation.
Somewhere
in this there should be some notice about your service, if DS has tried to
start it
all. I hope we'll find some hint then.

Cheers,
Juergen.
Re: Including a crawler in the build [message #1189 is a reply to message #1163] Tue, 16 June 2009 10:32 Go to previous message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
Problem solved, the osgi-entry in MANIFEST.MF was incorrect.

Thanks for helping me,
Roman
Re: Including a crawler in the build [message #564269 is a reply to message #1021] Tue, 09 June 2009 15:10 Go to previous message
Daniel Stucky is currently offline Daniel StuckyFriend
Messages: 35
Registered: July 2009
Member
Hi Roman,

so I guess the build with make.bat succeeds without any errors or warnings
concerning your bundle.

If you start SMILA, do you see your bundle in the OSGi console and is it
"started".

If your don't see it, check out if the bundle is in the plugins/ folder
and recheck the build log file.

If you seee it and it's not started you may have forgotten to add a start
entry for your bundle in file SMILA.application/configuration/config.ini.
You have to start your bundle as Crawlers are OSGi DeclarativeServices.

Bye,
Daniel
Re: Including a crawler in the build [message #564289 is a reply to message #1056] Tue, 09 June 2009 15:44 Go to previous message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
- so I guess the build with make.bat succeeds without any errors or
warnings concerning your bundle.

yes no errors in this bundle

- If you start SMILA, do you see your bundle in the OSGi console and is it
"started".

No BUT i also don't see the other crawler which i can work with. The
folder and files which are needed exist and their are no errors for this
bundle.

- If you seee it and it's not started you may have forgotten to add a
start entry for your bundle in file
SMILA.application/configuration/config.ini.

Entry for this bundle exists
Re: Including a crawler in the build [message #564316 is a reply to message #1084] Wed, 10 June 2009 08:17 Go to previous message
Daniel Stucky is currently offline Daniel StuckyFriend
Messages: 35
Registered: July 2009
Member
> No BUT i also don't see the other crawler which i can work with. The
> folder and files which are needed exist and their are no errors for this
> bundle.

This is strange. If you type "ss carwler" in your OSGi console you should
see the following bundles in state ACTIVE:
org.eclipse.smila.connectivity.framework.crawler.filesystem_ 0.5.0
org.eclipse.smila.connectivity.framework.crawler.web_0.5.0
org.eclipse.smila.connectivity.framework.crawler.jdbc_0.5.0
As well as the corresponding source bundles in state RESOLVED.

If your bundle also contains the string "crawler" it should be listed, too.
If not - your plugin is not correctly installed.

When typing "services" you should get entries like the following for each
crawler bundle:
{org.osgi.service.component.ComponentFactory}={component.fac tory=CrawlerFactory,
component.name=FileSystemCrawler, service.id=65} Registered by bundle:
initial@reference :file:plugins/org.eclipse.smila.connectivity.framework.crawl er.filesystem_0.5.0.jar/

If not - the service is not started.

> - If you seee it and it's not started you may have forgotten to add a
> start entry for your bundle in file
> SMILA.application/configuration/config.ini.

Please check your config.ini file for any spaces at the end of lines. We
recently had some problems with trailing spaces and all bundles after such
a space were not started.

Bye,
Daniel
Re: Including a crawler in the build [message #564331 is a reply to message #1112] Mon, 15 June 2009 14:42 Go to previous message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
With "ss crawler" i see 2 entries for my crawler the "normal" with the
status ACTIVE and the source with the status RESOLVED. No tailing space in
the config.
Re: Including a crawler in the build [message #564348 is a reply to message #1137] Mon, 15 June 2009 15:04 Go to previous message
Juergen Schumacher is currently offline Juergen SchumacherFriend
Messages: 35
Registered: July 2009
Member
Strange. Another try: Please add a line

-Dequinox.ds.print=true

to SMILA.ini. This should display errors that occur during activation of
your
Crawler service. And if there is nothing, you can add

-Dequinox.ds.debug=true

This will show lots of debug output generated by the service activation.
Somewhere
in this there should be some notice about your service, if DS has tried to
start it
all. I hope we'll find some hint then.

Cheers,
Juergen.
Re: Including a crawler in the build [message #564369 is a reply to message #1163] Tue, 16 June 2009 10:32 Go to previous message
Roman Klimaschewski is currently offline Roman KlimaschewskiFriend
Messages: 10
Registered: July 2009
Junior Member
Problem solved, the osgi-entry in MANIFEST.MF was incorrect.

Thanks for helping me,
Roman
Previous Topic:Including a crawler in the build
Next Topic:0.5 M3 is out!
Goto Forum:
  


Current Time: Tue Mar 19 10:39:50 GMT 2024

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

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

Back to the top