openoffice annoyances

Written by Mark Howard on 17.06.2009 | Tags:

Just a few notes in case I forget these annoying workarounds:

If the navigator window (hit F5) becomes detached on linux, it won’t automatically re-attach by dragging. To re-attach it, hold ctrl down and double-click on the gray area behind the toolbar

To add a cross references, don’t use the navigator window, it will just mess things up. Use Insert-cross reference with a reference to the headings and format Number (full context). Apparently this gets ugly if you try to read it in MS word though.

eclipse subversion (subclipse) on ubuntu 9.04

Written by Mark Howard on 17.06.2009 | Tags: , , ,

To avoid connection problems and svn ignoring your proxy configurations, it’s best to use the JavaHL (JNI) library for subclipse. This can be set from the Team->SVN->SVN interface preferences dialog within eclipse. The libraries must be installed (libsvn-java package)
The missing piece of the puzzle though is that the native libraries need adding to the java library path (they aren’t there by default). To do this, add the following to your eclipse.ini file:
-Djava.library.path=/usr/lib/jni

Doesn’t seem to be documented anywhere useful…

jaxws-maven-plugin on java 5

Written by Mark Howard on 12.11.2008 | Tags: , ,

I’ve just spent another 2 hours trying to get the jaxb-maven-plugin to work on my build machine. I’ve noticed this problem several times in the past too – javb-maven-plugin is not happy when you move between JVMs. Unfortunately to identify the problem I had to modify and re-build the plgin to get it to show an exception. At least it’s open source and maven makes it trivial to do this though…

To use the plugin in java 1.5, you need to specify a jaxws dependency:


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.11-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>com.mypackage</packageName>
<wsdlDirectory>src/main/resources/</wsdlDirectory>
<wsdlFiles>
<wsdlFile>MyService.wsdl</wsdlFile>
</wsdlFiles>
<verbose>false</verbose>
<target>2.0</target>
</configuration>
<dependencies>
<dependency>
<groupId>javax.jws</groupId>
<artifactId>jsr181-api</artifactId>
<version>1.0-MR1</version>
</dependency>
</dependencies>
</plugin>

Thanks to this forum thread for giving the final clues

Comments

Recent Comments

  • uc: this definitely helped!!!
  • Nick: Great information – I dropped this into my maven poms and that fixed it for me in about 2 mins. Many...
  • Georg: Nothing happened at all!
  • Oisín: Mark: Thanks for this, it’s exactly what I was looking for (at least an hour has gone down the drain...
  • Mark Howard: Petr: Thanks for the comment – learning from experienced users is always helpul. I hadn’t...