This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233588 - maven osgi bundle gets stuck on run
Summary: maven osgi bundle gets stuck on run
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven OSGi bundles (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 229482
  Show dependency tree
 
Reported: 2013-07-29 12:18 UTC by Petr Cyhelsky
Modified: 2014-08-22 10:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2013-07-29 12:18:36 UTC
Steps to reproduce: Create new maven OSGI bundle -> clean and build it -> run it -> the run gets stuck on: 

[antrun:run]
Executing tasks

main:
[propertyfile] Creating new property file: /tmp/mavenproject1/target/run.properties
Comment 1 Milos Kleint 2013-08-20 10:25:39 UTC
when running with debug output on, it appears that the felix container should be started, just doesn't print any output..

main:
Setting project property: vm.args -> 
[pathconvert] Set property plugins.jars = 
Setting project property: plugins.jars -> 
  [makeurl] file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar
  [makeurl] Setting urls to URL file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar
Setting project property: urls -> file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar
[propertyfile] Updating property file: C:\Users\mkleint\AppData\Local\Temp\mavenproject109\target\run.properties
  [makeurl] Setting run.properties.url to URL file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties
Setting project property: run.properties.url -> file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties
     [java] Executing 'C:\Program Files\Java\jdk1.7.0_21\jre\bin\java.exe' with arguments:
     [java] '-Dfelix.config.properties=file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties'
     [java] '-jar'
     [java] 'C:\Users\mkleint\.m2\repository\org\apache\felix\org.apache.felix.main\4.0.3\org.apache.felix.main-4.0.3.jar'
     [java] 
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.7.0_21\jre\bin\java.exe' with arguments:
'-Dfelix.config.properties=file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties'
'-jar'
'C:\Users\mkleint\.m2\repository\org\apache\felix\org.apache.felix.main\4.0.3\org.apache.felix.main-4.0.3.jar'

The ' characters around the executable and arguments are
not part of the command.
Comment 2 Milos Kleint 2013-08-26 07:40:49 UTC
appears to work for me.. the felix VM is clearly running and when I add a system out in the BundleActivator class, it gets printed to the maven build output.
Comment 3 karamba84 2014-08-22 07:03:41 UTC
I have the same problem. And i know, somehow i fixed it a couple of months or even a year ago, but can not remember :(

First i would try is to disable the auto-save stuff. This was causing a lot of problems in osgi/maven/felix combinations for me.

Unfortunately this does not occur on "simple" setups on my machine, means simply creating an osgi bundle wont be enough to reproduce. I have a couple of dependencies in my project to other bundles.
Comment 4 karamba84 2014-08-22 07:26:20 UTC
to reproduce the problem, one can checkout my project at https://github.com/olze/SoundBox
The master branch has that problem, whereas the develop does not.
Sorry, have no small project with that behaviour
Comment 5 Tomas Stupka 2014-08-22 10:53:43 UTC
hm, seems to work for me
or at least after clean build and run i've got some gui 

please prvide more info