Hi guys,
I'm using the ganymede SR1 release with the latest developer build of
m2eclipse. Couple things I had to track down:
---------------------------------
For those experiencing the message "An internal error occurred during:
Initializing Java Tooling", and the stack trace in your error log:
java.lang.NullPointerException
at
org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.isEJBArchive(JavaEEArchiveUtilities.java:687)
You can unzip the jar "icu4j-2.6.1.jar" (the version might be different)
in your maven repo, remove the offending file:
com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class and re-zip the
jar. The problem goes away. No clue why this class has a problem.
---------------------------------
If you have filtered resources in your maven projects under
src/main/resources, the maven builder will correctly copy and filter
them to your target folder (mine is target/ROOT). If you then use the
web tools to try to deploy your app to a local server, the web tools
will NOT copy the target/ROOT contents, but will copy only the compiled
classes folder. To manually fix this (I'm not sure of any GUI way to do
it), open the <project root>/.settings/ file and observe the following:
<wb-resource deploy-path="/WEB-INF/classes"
source-path="src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
Web tools references each wb-resource when copying things to its own
wtp-xxx server folder. You need to DELETE ALL of these wb-resource
components, and add a new one like:
<wb-resource deploy-path="/" source-path="/target/ROOT"/>
changing the value of source-path to your target folder. Adding this
wb-resource without deleting the existing ones doesn't consistently work.
---------------------------------
Hopefully these will be fixed in the next release of m2eclipse (or wtp?)
Connor
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email