Rodolfo,
ok, so back to your initial issue :)
usually bundles stay in the installed state if a needed dependency isn't
resolved.
And this is usually also not printed to you on the console. So how you
may get still
to this. Another way for testing this is to manually start the
corresponding bundles.
Now I'm not sure either if this really works with pax exam since the
main focus
for exam is to run unit/integration tests inside a osgi environment.
Now if I do recall correct you have a lot of bundles to get this going,
right?
One thing I would try is to setup a "working" environment for testing
such cases.
now depending on what kind of bundles you got (FileInstaller) for
example you
might consider to use Apache Karaf as your Runtime to test your bundles.
With Karaf you also get a interactive Shell for testing such scenarios.
regards, Achim
Am 20.07.2011 00:22, schrieb Rodolfo Barbeiro:
Achim,
"but usually the std. console log should be sufficient"
In the consoledoes not showwhy thebundlesare not being "activated".I
have listedall thebundlesmanually, showingthe status.AndI found
thatmost staywith the status "Installed".
In the consolelogshows nothingwrong.
------------------------------------------------------------------------
Date: Wed, 20 Jul 2011 00:06:49 +0200
From: [email protected]
To: [email protected]
Subject: Re: Pax Exam - Bundles are not activated
Ok,
if you want to use the felix fileinstaller you also need the
ConfigurationAdmin Service installed.
Since the fileinstaller interprets the config file as a setting for
the ConfigurationAdmin Service.
In turn the pax logging bundle does get configured accordingly.
but usually the std. console log should be sufficient
regards, Achim
Am 19.07.2011 23:43, schrieb Rodolfo Barbeiro:
I added the bundle pax-logging-service.
Howdo I set thecfg file?I tried toindicate theproperty
"systemProperty("felix.fileinstall.filename=org.ops4j.pax.logging.cfg")"did
not work.
The file "org.ops4j.pax.logging.cfg"exists!Just do notknow if
it'sin correct place...:)
------------------------------------------------------------------------
Date: Tue, 19 Jul 2011 23:29:18 +0200
From: [email protected] <mailto:[email protected]>
To: [email protected] <mailto:[email protected]>
Subject: Re: Pax Exam - Bundles are not activated
Hi Rodolfe,
yep this is the one. So I guess you already used it :-)
But do you also use the pax-logging-service?
Cause that's the one actually doing the logging.
If you have these running you actually should see
log messages on the console, I'm unsure about
a specialized log file. For that you might need to
configure it to use a cfg file.
regards, Achim
Am 19.07.2011 23:22, schrieb Rodolfo Barbeiro:
Hello Achim!
Are you referring to this bundle:
mavenBundle().groupId("org.ops4j.pax.logging").artifactId("pax-logging-api").version("1.6.1"),
------------------------------------------------------------------------
Date: Tue, 19 Jul 2011 23:14:34 +0200
From: [email protected] <mailto:[email protected]>
To: [email protected] <mailto:[email protected]>
Subject: Re: Pax Exam - Bundles are not activated
Hi,
you also need to provide the pax logging bundles.
AFAIK those are not included with the pax exam bundles
so you need to tell exam to also start those.
regards, Achim
Am 19.07.2011 23:10, schrieb Rodolfo Barbeiro:
Hello Harald!
I'm using felix framework.
I would liketo knowhow to enable logging.BecauseI noticed
thatin the cache folder has nolog filesso I caninspect.
I setthe property: systemProperty(
"org.ops4j.pax.logging.DefaultServiceLog.level").value("DEBUG").
But thelogis not generated.
You canhelp me with this?
Rodolfo Barbeiro
> Date: Tue, 19 Jul 2011 22:36:44 +0200
> From: [email protected] <mailto:[email protected]>
> To: [email protected] <mailto:[email protected]>
> Subject: Re: Pax Exam - Bundles are not activated
>
> To find out why your bundles fail to resolve, add the
following to your
> Pax Exam configuration
>
> equinox(),
> workingDirectory("/tmp/pax"),
> keepCaches()
>
> When your test terminates, you will find the bundles
provisioned by Pax
> Exam and the generated config.ini in the "equinox" and
"bundles"
> subdirectories of /tmp/pax
>
> Running Equinox manually via
>
> java -jar path/to/org.eclipse.osgi_XXX.jar
-configuration <configDir>
> -console
>
> (sorry, I don't remember the exact names off the top of
my head...)
>
> you can then use
>
> diag <bundle id>
>
> from the Equinox console to find out what dependencies
the given bundle
> is missing.
>
> Or you can set a breakpoint in your Pax Exam test and
connect to the
> console of the running Equinox framework via
>
> telnet localhost 6666
>
> I don't know if Pax Exam activates the console by
default - if not, then
> have a look at the Equinox documentation (Eclipse Help |
Eclipse
> Runtime Options) to find the system property you need to
set.
>
> HTH,
> Harald
>
>
>
>
> Am 19.07.2011 20:16, schrieb Rodolfo Barbeiro:
> > But thebundlesI needto simulatemy environmentdoes
notbecome
> > active.Almost everybody getsthe status"Installed".
> >
> > Is this normal?
> >
>
> _______________________________________________
> general mailing list
> [email protected] <mailto:[email protected]>
> http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected] <mailto:[email protected]>
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________ general
mailing list [email protected]
<mailto:[email protected]>
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected] <mailto:[email protected]>
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________ general mailing
list [email protected] <mailto:[email protected]>
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected] <mailto:[email protected]>
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________ general mailing list
[email protected] http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general