@Eugene

Like I said, I installed a new eclipse (j2ee Version) with the newest (non-developer) m2eclipse and the newest WTP (3.0.1). Still I get the problem. Everytime I start eclipse I get the NullPointerException and only the Deployment Descriptor is visible. By the way, I tried on two computers. If I then disable Dependency Management, everything is fine. If I re-enable Dependency Management everything is still fine!!! If I restart eclipse -> NullPointerException and only Deployment Descriptor visible. Can anyone confirm this behaviour?

regards,
Jan



Eugene Kuleshov schrieb:
Jan,

The exception below is a WTP issue which supposed to be fixed in WTP 3.0.1. You should be able to update it from the Eclipse update site at http://download.eclipse.org/webtools/updates

 regards,
 Eugene


Jan Schoppenhorst wrote:
Update: I downloaded a new eclipse and installed all the newest (non developer versions) plugins and tried again. Once I get it working and restart eclipse I get the NullPointer again. Anyone?



!ENTRY org.eclipse.core.jobs 4 2 2008-09-22 16:54:45.734
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.isEJBArchive(JavaEEArchiveUtilities.java:687) at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.refineForJavaEE(JavaEEArchiveUtilities.java:497) at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openArchive(JavaEEArchiveUtilities.java:304) at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openArchive(JavaEEArchiveUtilities.java:143) 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:45) 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:36) 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$13.run(JavaModelManager.java:2301) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2317) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1679) at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3398) at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


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

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






--
****************************************************************
Jan Schoppenhorst
GDV
Gesellschaft für geografische Datenverarbeitung mbH
Binger Straße 49-51
55218 Ingelheim
Tel.:   06132/7148-19
Fax.:   06132/7148-28
www.gdv.com
www.gdv-mapbuilder.de

Sitz der Gesellschaft: Ingelheim
Amtsgericht Mainz HRB 23123
Gerichtsstand Mainz
Geschäftsführer: Thomas Riehl, Dirk Hübener ****************************************************************

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

Reply via email to