My situation is pretty unusual, I'll do the best to simplify and describe
the issue..

My deployment process is as follows (simplified a bit to save from
explaining unnecessary details):
1) Karaf clean/start
2) Install multiple features
3) Karaf stop
4) Karaf start
5) Kar:install

These 4 steps work fine, my application is deployed and things are great.
 I noticed when I do a system reboot, after the system comes back up and I
check the karaf console, the bundles that were installed via kar are
invalid and/or corrupted.   I can't refresh them or even remove them. The
bundles from the feature installs are fine.


So after some trial and error there are some alternative scenarios that do
not result in invalid bundles:

Alternate 1 (Do not karaf stop&start before kar install):
1) Karaf clean/start
2) Install multiple features
3) Kar:install


Alternate 2 (Karaf stop after kar:install)
1) Karaf clean/start
2) Install multiple features
3) Karaf stop
4) Karaf start
5) Kar:install
6) Karaf stop


So in summary, the pattern is that if I don't do the karaf stop/start
before the kar, I'm fine.  If I do the karaf stop/start before the kar then
I also have to do a karaf stop after the kar.

Does this make any sense?  What is the significance of karaf stop/start in
relation to kar files?

My colleages mentioned something about obr resolver and start level issues.


Any insight is much appreciated.  Thanks!

Paul





On Thu, Aug 7, 2014 at 12:26 PM, jbonofre [via Karaf] <
[email protected]> wrote:

> Hi,
>
> no it should be exactly the same: dropping the kar file into the deploy
> folder or using kar:install command.
>
> Which differences do you have ?
>
> Regards
> JB
>
> On 08/07/2014 06:10 PM, plee wrote:
>
> > Thanks JB.
> >
> > While we are on the topic... does a kar install via kar file and a kar
> > install via mvn url have any difference at all?
> >
> > I've been having some issues with kar install via filepath and was
> > wondering if the install via mvn url would change anything for me.
> >
> >
> >
> >
> > On Thu, Aug 7, 2014 at 11:32 AM, jbonofre [via Karaf] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4034635&i=0>>
> wrote:
> >
> >> Hi,
> >>
> >> It sounds like a bug and I'm sure it worked.
> >>
> >> Let me take a look on that.
> >>
> >> Regards
> >> JB
> >>
> >> On 08/07/2014 03:03 PM, plee wrote:
> >>
> >>> Hey guys,
> >>>
> >>> I am using Karaf 3.0.0.  I can install a kar file just fine using
> >>> "kar:install file://<file_abs_path>".
> >>>
> >>> However, when I try to install using mvn url, "kar:install
> >>> mvn:<groupid>/<artifactid>/<version>/kar"  I get the following error:
> >>>
> >>> "Error executing command: String index out of range: -1"
> >>>
> >>> When I take the "/kar" off the end, it takes the command but then
> wants
> >> to
> >>> find a jar with those mvn coordinates and errors out becomes the jar
> >>> artifact doesn't exist.
> >>>
> >>> I can provide a stack trace if it helps.
> >>>
> >>> Am I doing something wrong here?
> >>>
> >>> Thanks.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>
> http://karaf.922171.n3.nabble.com/kar-install-with-mvn-url-tp4034629.html
> >>> Sent from the Karaf - User mailing list archive at Nabble.com.
> >>>
> >>
> >> --
> >> Jean-Baptiste Onofré
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4034632&i=0>
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >>
> >> ------------------------------
> >>   If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://karaf.922171.n3.nabble.com/kar-install-with-mvn-url-tp4034629p4034632.html
> >>   To unsubscribe from kar:install with mvn url, click here
> >> <
>
> >> .
> >> NAML
> >> <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://karaf.922171.n3.nabble.com/kar-install-with-mvn-url-tp4034629p4034634.html
>
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
>
> --
> Jean-Baptiste Onofré
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4034635&i=1>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/kar-install-with-mvn-url-tp4034629p4034635.html
>  To unsubscribe from kar:install with mvn url, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034629&code=cGF1bHlqbGVlQGdtYWlsLmNvbXw0MDM0NjI5fC00NTM2NjE1Mg==>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://karaf.922171.n3.nabble.com/kar-install-with-mvn-url-tp4034629p4034639.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to