Code Monkey home page Code Monkey logo

osgi-in-action's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

osgi-in-action's Issues

chapter 07 pax exam example code not working

What steps will reproduce the problem?

  1. Download source
  2. changed into the directory [osgi-in-action]/chapter07/testing-example
  3. executed: ant test.container

What is the expected output?
successful tests.

What do you see instead?
... Caused by: org.ops4j.pax.runner.platform.PlatformException: [mvn:org.ops4j.pax.exam/pax-exam/1.1.0] is not a valid bundle ... Caused by: java.util.zip.ZipException: error in opening zip file ...

What version of the product are you using? On what operating system?
Ant 1.9
JDK 1.8 (also tried JDK 1.6)
Windows 10 64 bit (also tried Mac OS)

Please provide any additional information below.
The other examples all work for me

Running the GWTAPP

What steps will reproduce the problem?
1. build everything with "ant" command on top directory
2. try to run launcher.jar
3. nothing happens

What is the expected output? What do you see instead?
The StockWatcher app running nothing happened even if I try to double click the 
.jar file or run the .war on Tomcat

What version of the product are you using? On what operating system?
Windows 7, latest download available, java 1.6

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 4 Jul 2011 at 10:10

Error when launching osgiInAction chapter02/paint-modular

What steps will reproduce the problem?
1. go to osgiInAction/osgi-in-action/chapter02/paint-modular
2. execute ant
3. issue the following command: java -jar launcher.jar bundles/

What is the expected output? What do you see instead?
I expect to see the paint app run. Instead i get the following error:

Error starting framework: org.osgi.framework.BundleException: Unresolved 
constraint in bundle org.foo.shape.circle [1]: Unable to resolve 1.0: missing 
requirement [1.0] package; (package=javax.swing)
org.osgi.framework.BundleException: Unresolved constraint in bundle 
org.foo.shape.circle [1]: Unable to resolve 1.0: missing requirement [1.0] 
package; (package=javax.swing)
    at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:909)
    at launcher.Main.main(Main.java:92)


What version of the product are you using? On what operating system?
I downloaded the code at your web site: www.manning.com/OSGIinAction
I am using Fedora 18 with java 1.7.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Jul 2014 at 9:42

  • Merged into: #4

Some problem with examples in chapter2

What steps will reproduce the problem?
When I was using the paint-modular example in chapter2,after typing in 
"ant"and"java -jar launcher.jar"

What is the expected output? What do you see instead?

Error starting framework: org.osgi.framework.BundleException: Unresolved constra
int in bundle org.foo.shape.circle [1]: Unable to resolve 1.0: missing requireme
nt [1.0] package; (package=javax.swing)
org.osgi.framework.BundleException: Unresolved constraint in bundle org.foo.shap
e.circle [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package
=javax.swing)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:909)
        at launcher.Main.main(Main.java:92)

What version of the product are you using? On what operating system?
apache ant 1.8.4 , Win 7 

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 7 Jun 2012 at 8:14

jedit example in 6.2.2 doesn't work for me

What steps will reproduce the problem?
1. Followed the instructions for running jedit with 3 bundles
2. ant jEdit.unpack
3. ant jEdit.patch
4. cd jEdit
5. ant dist
6. cd ..
7. java -Djedit.home=jEdit -jar launcher.jar jEdit

What is the expected output? What do you see instead?
I'm getting lots of exceptions about missing swing classes. Starting with
AWT-EventQueue-0: UIDefaults.getUI() failed: no ComponentUI class for: 
javax.swing.JButton

What version of the product are you using? On what operating system?
Ant 1.8.4
JDK 1.7.0_11
Windows 7 64 bit


Please provide any additional information below.

The previous examples all work for me (e.g jedit-mega.bnd)


Original issue reported on code.google.com by [email protected] on 5 Feb 2013 at 2:24

implementation dependent code

What steps will reproduce the problem?
1. Just look at the line 86 of ShapeTracker class in chapter 3 example
code. That is:

if ((m_context.getBundle(0).getState() & (Bundle.STARTING | Bundle.ACTIVE))
== 0)

2.
3.

What is the expected output? What do you see instead?
This code would only work if the different states in the Bundle interface
are set as a bit-map i.e. if a single bit is set to represent the state.
This might be a plausible expectation but by no means it is guaranteed
since the data type of the states defined in the Bundle interface is simply
an "int". This becomes more interesting because the book suggests that one
of the goals in OSGi modularity layer is to hide the implementation details
from the client code. 


What version of the product are you using? On what operating system?

I believe I am using  osgi-in-action-20090928.zip

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 8 Oct 2009 at 6:10

Missing Dist target for the ant build.xml files

I want to follow the code example using the book. Forked the project, opened the first chapter, and wanted to build it using in the terminal:

ant

I get the following error:

 Buildfile: C:\Users\ahmet.eroglu\eclipse-workspace\chapter01\greeting-example\lifecycle\build.xml

BUILD FAILED
C:\Users\ahmet.eroglu\eclipse-workspace\chapter01\greeting-example\lifecycle\build.xml:6: The following error occurred while executing this line:
C:\Users\ahmet.eroglu\eclipse-workspace\chapter01\greeting-example\build.xml:3: The following error occurred while executing this line:
C:\Users\ahmet.eroglu\eclipse-workspace\chapter01\build.xml:4: Cannot find C:\Users\ahmet.eroglu\eclipse-workspace\build.xml imported from C:\Users\ahmet.eroglu\eclipse-workspace\chapter01\build.xml

Total time: 0 seconds

The build.xml files look as follows:

<?xml version="1.0"?>
<project name="lifecycle" default="dist">

  <property name="version" value="2.0"/>
  <dirname property="example.dir" file="${ant.file.lifecycle}"/>
  <import file="../build.xml"/>

  <target name="provider">
    <ant dir="${example.dir}/org.foo.hello" inheritAll="false"/>
  </target>

  <target name="consumer">
    <ant dir="${example.dir}/org.foo.hello.client" inheritAll="false"/>
  </target>

  <target name="main">
    <ant dir="${example.dir}/org.foo.hello.main" inheritAll="false"/>
  </target>

</project>

As can be seen, the dist target is missing, what should I define and/or do for defining the dist and get the project up and running to follow exercises. Thanks in advance.

cannot build the examples

What steps will reproduce the problem?
1. simply type ant from the top examples directory i.e. in my setup:
A:\osgi-in-action>ant

What is the expected output? What do you see instead?
Expected the examples get built. Instead I get the following error:
A:\osgi-in-action>ant
Buildfile: build.xml

BUILD FAILED
A:\osgi-in-action\build.xml:4: The following error occurred while executing 
this line:
A:\osgi-in-action\common.xml:9: The <pathconvert> type doesn't support the 
nested "fileset" element.



What version of the product are you using? On what operating system?

1. I downloaded this version of the examples: osgi-in-action-20090422.zip
2. and my ant and java versions are:

A:\osgi-in-action>ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
A:\osgi-in-action>
A:\osgi-in-action>java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Sep 2009 at 3:35

chapter 07 pax exam example: could not find or load main class org.apache.felix.main.Main

What steps will reproduce the problem?

  1. Download source
  2. changed into the directory [osgi-in-action]/chapter07/testing-example
  3. made sure the required osgi bundles are available in the local maven rop (see issue #9 )
  4. executed: ant test.container

What is the expected output?
successful tests.

What do you see instead?
... Fehler: Hauptklasse org.apache.felix.main.Main konnte nicht gefunden oder geladen werden ...

What version of the product are you using? On what operating system?
Ant 1.9
JDK 1.6
Windows 10 64 bit

Please provide any additional information below.
The other examples all work for me

chapter 07 pax exam example code not compatible with Java 8

What steps will reproduce the problem?

1. Download source
2. changed into the directory [osgi-in-action]/chapter07/testing-example
3. made sure the required osgi bundles are available in the local maven rop (see issue #9 )
3. executed: ant test.container

What is the expected output?
successful tests.

What do you see instead?
... java.net.MalformedURLException: no protocol [J2SE-1.8] ...

What version of the product are you using? On what operating system?
Ant 1.9
JDK 1.8 (with JDK 1.6 it works fine)
Windows 10 64 bit (also tried Mac OS)

Please provide any additional information below.
The other examples all work for me
(with JDK 1.6 it works fine)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.