[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-30 Thread Maciej Matuszewski (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13808983#comment-13808983
 ] 

Maciej Matuszewski commented on SLING-3209:
---

My OSGI-INF data is generated properly and it's in the 
{{target/scr-plugin-generated}} directory. Isn't it a default maven-scr-plugin 
directory? When I manually copy OSGI-INF to the {{target/classes}} it works 
fine. 

I have also other issue - is it possible to restart some other bundle when one 
is modified?

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-30 Thread Stefan Egli (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13808985#comment-13808985
 ] 

Stefan Egli commented on SLING-3209:


bq. My OSGI-INF data is generated properly and it's in the 
target/scr-plugin-generated directory. Isn't it a default maven-scr-plugin 
directory? When I manually copy OSGI-INF to the target/classes it works fine. 

It must be in the target/classes directory. This is due to the way, the install 
servlet works: either it takes the exploded content of target/classes and 
installs it as a bundle. Or the slingclipse creates a jar based on the content 
of target/classes and uploads the jar. Both ways, everything must be under 
target/classes.

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-30 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13809083#comment-13809083
 ] 

Robert Munteanu commented on SLING-3209:


If you update to the latest version of the maven-scr-plugin you will get this 
configuration change automatically.

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-30 Thread Maciej Matuszewski (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13809088#comment-13809088
 ] 

Maciej Matuszewski commented on SLING-3209:
---

Is it possible to change this and make configurable? Or add some mechanism to 
check if OSGI-INF is in target/classes and if it's not there, copy it from 
scr-plugin-generated?

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-29 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13807780#comment-13807780
 ] 

Robert Munteanu commented on SLING-3209:


Right now we expect the project to place all required data in its output 
directory. If data is missing, the deployment will not work properly. How do 
you see this improved?

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-29 Thread Stefan Egli (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13807804#comment-13807804
 ] 

Stefan Egli commented on SLING-3209:


Could it be due to the maven-scr-plugin not being configured properly in the 
pom and/or not picked up by m2e's lifecycle mapping?

[~rombert], could we try to come up with some sanity check for such a case? 
Wouldn't know how exactly though.. But maybe this could become a frequent case 
that people stumble upon..

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-29 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13807813#comment-13807813
 ] 

Robert Munteanu commented on SLING-3209:


What I can think of is inspecting the MANIFEST.MF and looking for a 
Service-Component header . If that header exists, ensure that it matches 
something in the project output directory. Of course, things can get hairy if 
we have a header which is {{OSGI-INF/*.xml}} .

I'm not sure that this is  100% correct, but that's what we can do and is 
pretty much agnostic to how the application is assembled. This can be only one 
of the pre-deployment rules that we have, as I think there is more to be done 
in the future.

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (SLING-3209) Deploying files via Install bundles directly from local directory does not work properly

2013-10-29 Thread Stefan Egli (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13807819#comment-13807819
 ] 

Stefan Egli commented on SLING-3209:


Right. Double-checking the Service-Component property of the manifest sounds 
like a good first step and shouldn't have any side-effects.

 Deploying files via Install bundles directly from local directory does not 
 work properly
 --

 Key: SLING-3209
 URL: https://issues.apache.org/jira/browse/SLING-3209
 Project: Sling
  Issue Type: Bug
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.0
Reporter: Maciej Matuszewski
Priority: Minor
 Fix For: Sling Eclipse IDE 1.0.0


 If you specify how to install artifacts to the launchpad instance as Install 
 bundles directly from local directory, application crushes. This is caused by 
 not sending all required data e.g. OSGI-INF content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)