I got it working for the moment but it is very unstable. My procedure is
to erase the eclipse files and use Update Project Configuration and hit
F5 for refresh. The results vary. Sometimes I get only the source
folders shown in eclipse, sometimes only the Deployment Descriptor and
sometimes the project like it should appear but with a red cross at the
project node. Unfortunately the Problems view does not show a
corresponding error. I could "live"/work with that but if I restart
eclipse I get the NullPointerException (this time during JavaTooling
Initialization) and only the DeploymentDescriptor node is shown. By the
way, unlike in the tutorial I use Deployment Descriptor version 2.5
instead of 2.3. Did anyone got the example (Chapter 6) working (stable)
with tomcat under eclipse? If so, could you please give me the versions
of your installation?
Cheers Jan
Jan Schoppenhorst schrieb:
Hi,
I am following the tutorials in the sonatype Maven book
http://www.sonatype.com/book (Thumbs up). Chapter 4 and 5 worked
perfect under eclipse but when I try the project setup in chapter 6,
which is basically the same as chapters 4 and 5 but in a multi module,
eclipse starts to behave strangely. I am trying to run the tutorial
under tomcat (6.0.16) where I get a ClassNotFoundError for the
tutorial servlet classes (I cannot show it here because I cannot
reproduce the error due to the following issue). With jetty from the
console (like in the tutorial) it worked fine. After this, the
simple-webapp submodule project is broken. When I try Update Project
Configuration I get an error dialog showing the following message:
An internal error occurred during: "Updating Maven Configuration".
java.lang.NullPointerException
And this is the stacktrace in the workspace log
!ENTRY org.eclipse.core.jobs 4 2 2008-09-22 09:23:23.002
!MESSAGE An internal error occurred during: "Updating Maven
Configuration".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.isEJBArchive(JavaEEArchiveUtilities.java:636)
at
org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.refineForJavaEE(JavaEEArchiveUtilities.java:446)
at
org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openArchive(JavaEEArchiveUtilities.java:273)
at
org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openArchive(JavaEEArchiveUtilities.java:121)
at
org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper$ArchiveCache.openArchive(JavaEEBinaryComponentHelper.java:461)
at
org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.openArchive(JavaEEBinaryComponentHelper.java:333)
at
org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.getUniqueArchive(JavaEEBinaryComponentHelper.java:322)
at
org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.getArchive(JavaEEBinaryComponentHelper.java:315)
at
org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.accessArchive(JavaEEBinaryComponentHelper.java:152)
at
org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.readManifest(J2EEProjectUtilities.java:317)
at
org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualArchiveComponent.getManifestClasspath(J2EEModuleVirtualArchiveComponent.java:43)
at
org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyVirtualComponent.getManifestClasspath(ClasspathDependencyVirtualComponent.java:75)
at
org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getManifestClasspath(J2EEModuleVirtualComponent.java:156)
at
org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getManifestReferences(J2EEModuleVirtualComponent.java:275)
at
org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getManifestReferences(J2EEModuleVirtualComponent.java:270)
at
org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualArchiveComponent.getReferences(J2EEModuleVirtualArchiveComponent.java:34)
at
org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyVirtualComponent.getReferences(ClasspathDependencyVirtualComponent.java:68)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.update(J2EEComponentClasspathContainer.java:176)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.install(J2EEComponentClasspathContainer.java:308)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathInitializer.initialize(J2EEComponentClasspathInitializer.java:29)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2371)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1684)
at
org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2554)
at
org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2469)
at
org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath(ClasspathEntry.java:1290)
at
org.eclipse.jdt.internal.core.SetClasspathOperation.verify(SetClasspathOperation.java:87)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:764)
at
org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2815)
at
org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2846)
at
org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.addMavenClasspathContainer(JavaProjectConfigurator.java:583)
at
org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.configure(JavaProjectConfigurator.java:90)
at
org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:230)
at
org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:213)
at
org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace(UpdateSourcesAction.java:72)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Deleting the eclipse files and hitting Update Project Configuration
does not solve the problem. I am using Eclipse 3.4.0, WST 3.0.0 and
m2eclipse 0.9.6. Does anyone has a clue?
Cheers
Jan
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
begin:vcard
fn:Jan Schoppenhorst
n:Schoppenhorst;Jan
org:GDVmbH
adr;dom:;;Binger Str. 49-51;Ingelheim;;55218
email;internet:[EMAIL PROTECTED]
url:http://www.gdv.com
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email