MAX BUILD SPEED
  • Home
  • About
Sign in Subscribe

Max Rohde

Max Rohde
Cannot find the class file for org.dom4j.io.XMLWriter (Eclipse Problem)

Cannot find the class file for org.dom4j.io.XMLWriter (Eclipse Problem)

Problem Eclipse won‘t compile a project, that is compiled by Maven without problems. The error message is: „Cannot find the class file for org.dom4j.io.XMLWriter“ Solution For me, it solved the problem to provide a bundle, which wraps the dom4j jar, and explicitly import the bundle „org.

By Max Rohde 01 Jul 2010
Maven Eclipse Plugin: Update MANIFEST.MF (Eclipse Problem)

Maven Eclipse Plugin: Update MANIFEST.MF (Eclipse Problem)

Problem As I have written earlier, I copy the MANIFEST.MF, which is generated by the Maven Bundle Plugin into my eclipse PDE projects. The problem is that eclipse PDE has problems with picking up the contents of the newly created MANIFEST.MF. Solution One solution I have found is

By Max Rohde 01 Jul 2010
Maven Bundle Plugin Configuration

Maven Bundle Plugin Configuration

In a previous post, I have provided an example of a possible Maven configuration to use the maven eclipse plugin with eclipse PDE. Besides these settings, which are the same for every project, each bundle needs to be configured as OSGi bundle in order to be usable by eclipse PDE.

By Max Rohde 30 Jun 2010
Maven Eclipse Plugin and Eclipse PDE: The Right Configuration

Maven Eclipse Plugin and Eclipse PDE: The Right Configuration

pom.xml As noted on the Maven Eclipse plugin website, a two additional plugins need to be added to the project‘s pom. These copy the dependencies‘ jar files into the project folder and remove them on the eclipse:clean command. I found it helpful to add a further antrun

By Max Rohde 29 Jun 2010
Google Docs API: UnsupportedDataTypeException MIME type application/atom+xml

Google Docs API: UnsupportedDataTypeException MIME type application/atom+xml

Problem When trying to use the Google Docs API inside an OSGi bundle, the following exception is thrown, for instance when trying to upload a document: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/atom+xml         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:877)         at javax.activation.DataHandler.

By Max Rohde 26 Jun 2010
XStream: Cannot create java.beans.PropertyChangeSupport by JDK serialization

XStream: Cannot create java.beans.PropertyChangeSupport by JDK serialization

Problem When attempting to serialize a bean, which uses property change support, XStream throws the following exepection. message : Cannot create java.beans.PropertyChangeSupport by JDK serialization : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException Solution The only solution I found was to ignore the field pointing to the PropertyChangeSupport class

By Max Rohde 26 Jun 2010
Cannot find lifecycle mapping for packaging: 'bundle'.

Cannot find lifecycle mapping for packaging: 'bundle'.

Problem When trying to package or install a project using the maven-bundle-plugin, an error message as the following is given: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot find lifecycle mapping for packaging: 'bundle'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingbundle.

By Max Rohde 24 Jun 2010
Maven-Eclipse-Plugin: Problem with Project Dependencies

Maven-Eclipse-Plugin: Problem with Project Dependencies

Problem When creating eclipse meta-data with the maven-eclipse-plugin for plug-in projects, other related projects, which are part of the same eclipse workspace are not added to the project‘s classpath. Therewith, the project, although it compiles without problems in maven, shows syntax errors such as „[class] cannot be resolved“ and

By Max Rohde 24 Jun 2010
Version Ranges in OSGi and Maven

Version Ranges in OSGi and Maven

Version ranges have slightly different meaning in OSGi and Maven. in OSGi: 1.0.0 is an earlier version than 1.0.0-SNAPSHOT, therewith 1.0.0-SNAPSHOT is in [1.0,2.0) in Maven: 1.0.0 is a later version than 1.0.0-SNAPSHOT, therewith 1.0.0-SNAPSHOT

By Max Rohde 23 Jun 2010
Module Pattern

Module Pattern

Design patterns are a well-established concept for the design of classes and their relationships in object oriented programming. Build tools like Maven can encourage us to think of similar patterns for modules or libraries. In Maven, every module or library (a project in Maven terms) is described by a project

By Max Rohde 22 Jun 2010
Link Collection: Pax Exam

Link Collection: Pax Exam

Pax Exam is a very useful framework to write automatic tests for OSGi bundles in multiple OSGi containers. Resources Pax Exam Core Configuration Options Pax Exam Reference Documentation Wiki Page about using Pax-Exam (from Fuse ESB) DZone article Test Driven Development in OSGi

By Max Rohde 20 Jun 2010
Java Code Completion does not work in MyEclipse 8.5 in OS X

Java Code Completion does not work in MyEclipse 8.5 in OS X

Problem Java code completion does not work in MyEclipse after installation on Mac OS X. The first time, Java code completion is used, the following message is displayed: Solution Change the settings in the Content Assist as shown below: Resources Java Code Completion does not work in MyEclipse 7.1,

By Max Rohde 19 Jun 2010
See all
MAX BUILD SPEED

MAX BUILD SPEED

be calm & code.

MAX BUILD SPEED
  • Sign up
Powered by Ghost

MAX BUILD SPEED

be calm & code.