Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Sometimes web project fails to compile - missing tomcat runtime libraries(It looks like eclipse fails to load some libraries or extensions at startup, which leads to workspace recompilation with errors)
Sometimes web project fails to compile - missing tomcat runtime libraries [message #492248] Mon, 19 October 2009 15:10 Go to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
Hi!

I am having this problem for years. Since 3.4 at least.

It looks like eclipse fails to load some libraries or extensions at startup, which leads to workspace recompilation with errors (can't find tomcat runtime libraries and corresponding classes such as HttpServlet).

The following lines appear in .log (not sure if they are connected to my problem though):

!ENTRY org.eclipse.wst.server.core 4 0 2009-10-19 17:43:40.137
!MESSAGE Missing or failed server extension: RuntimeClasspathProviderWrapper[org.eclipse.jst.server.tomca t.runtimeTarget]. Enable tracing for more information

When I close eclipse and start it again everithing works fine. The problem comes back from time to time (not very often but annoying).

During last years I switched both computer hardware and eclipse version but the problem still persists. Can't believe I'm the only one who experiences this. Although couldn't google anything similar.
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #492271 is a reply to message #492248] Mon, 19 October 2009 17:14 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
Yaroslav wrote:
> Hi!
>
> I am having this problem for years. Since 3.4 at least.
>
> It looks like eclipse fails to load some libraries or extensions at
> startup, which leads to workspace recompilation with errors (can't find
> tomcat runtime libraries and corresponding classes such as HttpServlet).
>
> The following lines appear in .log (not sure if they are connected to my
> problem though):
>
> !ENTRY org.eclipse.wst.server.core 4 0 2009-10-19 17:43:40.137
> !MESSAGE Missing or failed server extension:
> RuntimeClasspathProviderWrapper[org.eclipse.jst.server.tomca
> t.runtimeTarget]. Enable tracing for more information
>
> When I close eclipse and start it again everithing works fine. The
> problem comes back from time to time (not very often but annoying).
>
> During last years I switched both computer hardware and eclipse version
> but the problem still persists. Can't believe I'm the only one who
> experiences this. Although couldn't google anything similar.

The message is likely to be related to the compilation problem. To see
the exception that is giving rise to this message, you will need to
enable "tracing".

First add "-debug" to the Eclipse startup arguments. You can do this by
adding a line containing "-debug" to the eclipse.ini file found in the
"eclipse" directory where you installed Eclipse. It should be added
somewhere above the "-vmargs" line. If you are not using the "eclipsec"
executable to start your Eclipse, you should also add "-consolelog" on a
separate line, also above the -vmargs line, so a separate console window
will appear.

Next, under the "plugins" directory where you have WTP installed, find
the org.eclipse.wst.server.core plug-in jar. Open the jar in an archive
program like WinZip and extract the ".options" file into the "eclipse"
directory where you find the eclipse.ini file. It has the
"org.eclipse.wst.server.core/debug" property set to "true", which will
turn tracing on. The alternative is to create a ".options" file that
contains "org.eclipse.wst.server.core/debug=true".

Finally, restart your Eclipse using the "eclipsec" executable or with
the "-consolelog" argument and you should see
ore.eclipse.wst.server.core trace output appearing in the console
window. The next time you get the message above, you should also get
additional output in the console window that includes a stacktrace
showing the source of the problem. Post back when this happens and we
can try to figure out what is causing that exception. It's not something
I recall ever encountering.

Cheers,
Larry
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #492276 is a reply to message #492271] Mon, 19 October 2009 18:20 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
Larry,

Thanks for quick reply. I am attaching to this post two files:

- trace with errors (I restarted eclipse 4 times and finally got it)
- screenshot showing that there are no library files under tomcat folder in build path

In the next post I will attach two more files, which are equivalents to the above during normal healthy startup (there are also some exceptions in the trace in fact but otherwise it is ok).

(sorry, can't figure out how to attach files here)

Here is the link to download all 4 attachments in a single zip file:
http://web-tec.info/dl/eclipse_wst_logs.zip

[Updated on: Mon, 19 October 2009 18:34]

Report message to a moderator

Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #492277 is a reply to message #492248] Mon, 19 October 2009 18:23 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
No Message Body

[Updated on: Mon, 19 October 2009 18:33]

Report message to a moderator

Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #499176 is a reply to message #492248] Fri, 20 November 2009 09:58 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
Same issue happens again and again. Here is the trace log, which seems to be related to this problem:

!ENTRY org.eclipse.wst.server.core 4 0 2009-11-20 12:32:48.023
!MESSAGE Missing or failed server extension: RuntimeClasspathProviderWrapper[org.eclipse.jst.server.tomca t.runtimeTarget
]. Enable tracing for more information
org.eclipse.wst.server.core SEVERE 20/11/09 12:32.48.026 Missing or failed server extension: RuntimeClasspathProvider
Wrapper[org.eclipse.jst.server.tomcat.runtimeTarget]. Enable tracing for more information
org.eclipse.wst.server.core SEVERE 20/11/09 12:32.48.026 Missing or failed server extension: RuntimeClasspathProvider
Wrapper[org.eclipse.jst.server.tomcat.runtimeTarget]. Enable tracing for more information
org.eclipse.wst.server.core WARNING 20/11/09 12:32.48.026 Exception in server delegate
java.lang.NullPointerExceptionorg.eclipse.wst.server.core WARNING 20/11/09 12:32.48.027 Exception in server delegate

at org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate .resolveClasspathContainerImpl(RuntimeClasspathPr
oviderDelegate.java:153)
at org.eclipse.jst.server.core.internal.RuntimeClasspathProvide rWrapper.resolveClasspathContainerImpl(RuntimeCla
sspathProviderWrapper.java:146)
at org.eclipse.jst.server.core.internal.RuntimeClasspathContain er.getClasspathEntries(RuntimeClasspathContainer.
java:73)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2584)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav aProject.java:424)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl ement.java:193)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment Roots(JavaProject.java:1761)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etSourceContainers(J2EEProjectUtilities.java:858)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etOutputContainers(J2EEProjectUtilities.java:895)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etAllOutputContainers(J2EEProjectUtilities.java:9
31)
at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen cyValidator$ClasspathDependencyValidatorData. <ini
t>(ClasspathDependencyValidator.java:222)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:266)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:247)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getJavaClasspathReferences(J2EEModuleVirtualCom
ponent.java:199)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getNonManifestReferences(J2EEModuleVirtualCompo
nent.java:133)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:1
00)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:9
6)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer.computeClasspathEntries(FlexibleProjec
tContainer.java:181)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer. <init>(FlexibleProjectContainer.java:1
22)
at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainer. <init>(WebAppLibrariesContainer.java:48)

at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainerInitializer.initialize(WebAppLibrariesCon
tainerInitializer.java:34)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:2608)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo delManager.java:2514)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll Containers(JavaModelManager.java:2554)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1773)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:2652)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2578)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav aProject.java:424)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl ement.java:193)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment Roots(JavaProject.java:1761)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etSourceContainers(J2EEProjectUtilities.java:858)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etOutputContainers(J2EEProjectUtilities.java:895)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etAllOutputContainers(J2EEProjectUtilities.java:9
31)
at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen cyValidator$ClasspathDependencyValidatorData. <ini
t>(ClasspathDependencyValidator.java:222)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:266)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:247)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getJavaClasspathReferences(J2EEModuleVirtualCom
ponent.java:199)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getNonManifestReferences(J2EEModuleVirtualCompo
nent.java:133)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:1
00)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:9
6)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer.computeClasspathEntries(FlexibleProjec
tContainer.java:181)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer. <init>(FlexibleProjectContainer.java:1
22)
at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainer. <init>(WebAppLibrariesContainer.java:48)

at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainerInitializer.initialize(WebAppLibrariesCon
tainerInitializer.java:34)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:2608)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo delManager.java:2514)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll Containers(JavaModelManager.java:2554)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1773)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.j ava:3410)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.r un(InitializeAfterLoadJob.java:35)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
java.lang.NullPointerException
at org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate .resolveClasspathContainerImpl(RuntimeClasspathPr
oviderDelegate.java:153)
at org.eclipse.jst.server.core.internal.RuntimeClasspathProvide rWrapper.resolveClasspathContainerImpl(RuntimeCla
sspathProviderWrapper.java:146)
at org.eclipse.jst.server.core.internal.RuntimeClasspathContain er.getClasspathEntries(RuntimeClasspathContainer.
java:73)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2584)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav aProject.java:424)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl ement.java:193)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment Roots(JavaProject.java:1761)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etSourceContainers(J2EEProjectUtilities.java:858)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etOutputContainers(J2EEProjectUtilities.java:895)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etAllOutputContainers(J2EEProjectUtilities.java:9
31)
at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen cyValidator$ClasspathDependencyValidatorData. <ini
t>(ClasspathDependencyValidator.java:222)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:266)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:247)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getJavaClasspathReferences(J2EEModuleVirtualCom
ponent.java:199)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getNonManifestReferences(J2EEModuleVirtualCompo
nent.java:133)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:1
00)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:9
6)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer.computeClasspathEntries(FlexibleProjec
tContainer.java:181)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer. <init>(FlexibleProjectContainer.java:1
22)
at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainer. <init>(WebAppLibrariesContainer.java:48)

at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainerInitializer.initialize(WebAppLibrariesCon
tainerInitializer.java:34)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:2608)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo delManager.java:2514)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll Containers(JavaModelManager.java:2552)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1773)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:2652)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2578)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav aProject.java:424)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl ement.java:193)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment Roots(JavaProject.java:1761)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etSourceContainers(J2EEProjectUtilities.java:858)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etOutputContainers(J2EEProjectUtilities.java:895)

at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g etAllOutputContainers(J2EEProjectUtilities.java:9
31)
at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen cyValidator$ClasspathDependencyValidatorData. <ini
t>(ClasspathDependencyValidator.java:222)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:266)
at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge tComponentClasspathDependencies(ClasspathDependen
cyUtil.java:247)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getJavaClasspathReferences(J2EEModuleVirtualCom
ponent.java:199)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getNonManifestReferences(J2EEModuleVirtualCompo
nent.java:133)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:1
00)
at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen t.getReferences(J2EEModuleVirtualComponent.java:9
6)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer.computeClasspathEntries(FlexibleProjec
tContainer.java:181)
at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec tContainer. <init>(FlexibleProjectContainer.java:1
22)
at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainer. <init>(WebAppLibrariesContainer.java:48)

at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC ontainerInitializer.initialize(WebAppLibrariesCon
tainerInitializer.java:34)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:2608)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo delManager.java:2514)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll Containers(JavaModelManager.java:2552)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1773)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:2652)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2578)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.ExternalFoldersManager.refresh References(ExternalFoldersManager.java:268)
at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged (DeltaProcessor.java:1890)
at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceC hanged(DeltaProcessingState.java:470)
at org.eclipse.core.internal.events.NotificationManager$2.run(N otificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify( NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.handleE vent(NotificationManager.java:267)
at org.eclipse.core.internal.resources.Workspace.broadcastEvent (Workspace.java:307)
at org.eclipse.core.internal.resources.Resource.refreshLocal(Re source.java:1527)
at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace( RefreshJob.java:166)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501026 is a reply to message #499176] Mon, 30 November 2009 17:47 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
This seems to be related to having source attachments to one or more
jars in the Tomcat runtime, which may explain why others aren't seeing
this. It appears this can trigger a race condition during
initialization that cause problems for a runtime. If I'm correct, you
should have a file or files under
"<workspace>/.metadata/.plugins/org.eclipse.jst.server.core ". If you
were to rename or move it/them some place else, this issue should disappear.

You can at least report a bug against Web Tools -> (Product) WTP Server
Tools -> (Component)jst.server. If your source attachments to the
Tomcat runtime are really useful and would like to avoid this annoyance,
we can see if we can come up with a patch. You would need to have or
download WTP SDK source to your current version of WTP.

Larry

Yaroslav wrote:
> Same issue happens again and again. Here is the trace log, which seems
> to be related to this problem:
>
> !ENTRY org.eclipse.wst.server.core 4 0 2009-11-20 12:32:48.023
> !MESSAGE Missing or failed server extension:
> RuntimeClasspathProviderWrapper[org.eclipse.jst.server.tomca
> t.runtimeTarget
> ]. Enable tracing for more information
> org.eclipse.wst.server.core SEVERE 20/11/09 12:32.48.026 Missing or
> failed server extension: RuntimeClasspathProvider
> Wrapper[org.eclipse.jst.server.tomcat.runtimeTarget]. Enable tracing for
> more information
> org.eclipse.wst.server.core SEVERE 20/11/09 12:32.48.026 Missing or
> failed server extension: RuntimeClasspathProvider
> Wrapper[org.eclipse.jst.server.tomcat.runtimeTarget]. Enable tracing for
> more information
> org.eclipse.wst.server.core WARNING 20/11/09 12:32.48.026 Exception in
> server delegate
> java.lang.NullPointerExceptionorg.eclipse.wst.server.core WARNING
> 20/11/09 12:32.48.027 Exception in server delegate
>
> at org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate
> .resolveClasspathContainerImpl(RuntimeClasspathPr
> oviderDelegate.java:153)
> at org.eclipse.jst.server.core.internal.RuntimeClasspathProvide
> rWrapper.resolveClasspathContainerImpl(RuntimeCla
> sspathProviderWrapper.java:146)
> at org.eclipse.jst.server.core.internal.RuntimeClasspathContain
> er.getClasspathEntries(RuntimeClasspathContainer.
> java:73)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2584)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2679)
> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
> th(JavaProject.java:1866)
> at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav
> aProject.java:424)
> at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl
> e.java:258)
> at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav
> aElement.java:515)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:252)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:238)
> at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl
> ement.java:193)
> at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment
> Roots(JavaProject.java:1761)
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etSourceContainers(J2EEProjectUtilities.java:858)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etOutputContainers(J2EEProjectUtilities.java:895)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etAllOutputContainers(J2EEProjectUtilities.java:9
> 31)
> at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen
> cyValidator$ClasspathDependencyValidatorData. <ini
> t>(ClasspathDependencyValidator.java:222)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:266)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:247)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getJavaClasspathReferences(J2EEModuleVirtualCom
> ponent.java:199)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getNonManifestReferences(J2EEModuleVirtualCompo
> nent.java:133)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:1
> 00)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:9
> 6)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer.computeClasspathEntries(FlexibleProjec
> tContainer.java:181)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer. <init>(FlexibleProjectContainer.java:1
> 22)
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainer. <init>(WebAppLibrariesContainer.java:48)
>
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainerInitializer.initialize(WebAppLibrariesCon
> tainerInitializer.java:34)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon
> tainer(JavaModelManager.java:2608)
> at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo
> delManager.java:2514)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1800)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll
> Containers(JavaModelManager.java:2554)
> at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC
> ontainer(JavaModelManager.java:1773)
> at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore
> .java:2652)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2578)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2679)
> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
> th(JavaProject.java:1866)
> at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav
> aProject.java:424)
> at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl
> e.java:258)
> at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav
> aElement.java:515)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:252)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:238)
> at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl
> ement.java:193)
> at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment
> Roots(JavaProject.java:1761)
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etSourceContainers(J2EEProjectUtilities.java:858)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etOutputContainers(J2EEProjectUtilities.java:895)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etAllOutputContainers(J2EEProjectUtilities.java:9
> 31)
> at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen
> cyValidator$ClasspathDependencyValidatorData. <ini
> t>(ClasspathDependencyValidator.java:222)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:266)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:247)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getJavaClasspathReferences(J2EEModuleVirtualCom
> ponent.java:199)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getNonManifestReferences(J2EEModuleVirtualCompo
> nent.java:133)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:1
> 00)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:9
> 6)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer.computeClasspathEntries(FlexibleProjec
> tContainer.java:181)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer. <init>(FlexibleProjectContainer.java:1
> 22)
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainer. <init>(WebAppLibrariesContainer.java:48)
>
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainerInitializer.initialize(WebAppLibrariesCon
> tainerInitializer.java:34)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon
> tainer(JavaModelManager.java:2608)
> at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo
> delManager.java:2514)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1800)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll
> Containers(JavaModelManager.java:2554)
> at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC
> ontainer(JavaModelManager.java:1773)
> at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.j
> ava:3410)
> at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.r
> un(InitializeAfterLoadJob.java:35)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> java.lang.NullPointerException
> at org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate
> .resolveClasspathContainerImpl(RuntimeClasspathPr
> oviderDelegate.java:153)
> at org.eclipse.jst.server.core.internal.RuntimeClasspathProvide
> rWrapper.resolveClasspathContainerImpl(RuntimeCla
> sspathProviderWrapper.java:146)
> at org.eclipse.jst.server.core.internal.RuntimeClasspathContain
> er.getClasspathEntries(RuntimeClasspathContainer.
> java:73)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2584)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2679)
> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
> th(JavaProject.java:1866)
> at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav
> aProject.java:424)
> at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl
> e.java:258)
> at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav
> aElement.java:515)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:252)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:238)
> at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl
> ement.java:193)
> at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment
> Roots(JavaProject.java:1761)
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etSourceContainers(J2EEProjectUtilities.java:858)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etOutputContainers(J2EEProjectUtilities.java:895)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etAllOutputContainers(J2EEProjectUtilities.java:9
> 31)
> at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen
> cyValidator$ClasspathDependencyValidatorData. <ini
> t>(ClasspathDependencyValidator.java:222)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:266)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:247)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getJavaClasspathReferences(J2EEModuleVirtualCom
> ponent.java:199)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getNonManifestReferences(J2EEModuleVirtualCompo
> nent.java:133)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:1
> 00)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:9
> 6)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer.computeClasspathEntries(FlexibleProjec
> tContainer.java:181)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer. <init>(FlexibleProjectContainer.java:1
> 22)
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainer. <init>(WebAppLibrariesContainer.java:48)
>
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainerInitializer.initialize(WebAppLibrariesCon
> tainerInitializer.java:34)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon
> tainer(JavaModelManager.java:2608)
> at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo
> delManager.java:2514)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll
> Containers(JavaModelManager.java:2552)
> at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC
> ontainer(JavaModelManager.java:1773)
> at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore
> .java:2652)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2578)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2679)
> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
> th(JavaProject.java:1866)
> at org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav
> aProject.java:424)
> at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl
> e.java:258)
> at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav
> aElement.java:515)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:252)
> at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav
> aElement.java:238)
> at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl
> ement.java:193)
> at org.eclipse.jdt.internal.core.JavaProject.getPackageFragment
> Roots(JavaProject.java:1761)
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etSourceContainers(J2EEProjectUtilities.java:858)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etOutputContainers(J2EEProjectUtilities.java:895)
>
> at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.g
> etAllOutputContainers(J2EEProjectUtilities.java:9
> 31)
> at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependen
> cyValidator$ClasspathDependencyValidatorData. <ini
> t>(ClasspathDependencyValidator.java:222)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:266)
> at org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil.ge
> tComponentClasspathDependencies(ClasspathDependen
> cyUtil.java:247)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getJavaClasspathReferences(J2EEModuleVirtualCom
> ponent.java:199)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getNonManifestReferences(J2EEModuleVirtualCompo
> nent.java:133)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:1
> 00)
> at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponen
> t.getReferences(J2EEModuleVirtualComponent.java:9
> 6)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer.computeClasspathEntries(FlexibleProjec
> tContainer.java:181)
> at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjec
> tContainer. <init>(FlexibleProjectContainer.java:1
> 22)
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainer. <init>(WebAppLibrariesContainer.java:48)
>
> at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesC
> ontainerInitializer.initialize(WebAppLibrariesCon
> tainerInitializer.java:34)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon
> tainer(JavaModelManager.java:2608)
> at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaMo
> delManager.java:2514)
> at org.eclipse.jdt.internal.core.JavaModelManager.initializeAll
> Containers(JavaModelManager.java:2552)
> at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC
> ontainer(JavaModelManager.java:1773)
> at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore
> .java:2652)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2578)
> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
> avaProject.java:2679)
> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
> th(JavaProject.java:1866)
> at org.eclipse.jdt.internal.core.ExternalFoldersManager.refresh
> References(ExternalFoldersManager.java:268)
> at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged
> (DeltaProcessor.java:1890)
> at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceC
> hanged(DeltaProcessingState.java:470)
> at org.eclipse.core.internal.events.NotificationManager$2.run(N
> otificationManager.java:291)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.core.internal.events.NotificationManager.notify(
> NotificationManager.java:285)
> at org.eclipse.core.internal.events.NotificationManager.handleE
> vent(NotificationManager.java:267)
> at org.eclipse.core.internal.resources.Workspace.broadcastEvent
> (Workspace.java:307)
> at org.eclipse.core.internal.resources.Resource.refreshLocal(Re
> source.java:1527)
> at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(
> RefreshJob.java:166)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501035 is a reply to message #492248] Mon, 30 November 2009 18:22 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
Thanks for the reply, Larry!

You were absolutely right, I do have source attachments to my tomcat installation. I am not sure if I really need them. I believe they give me some help popups for methods of tomcat classes.

By the way, I have some extension libraries in my tomcat shared lib folder (eg, commons-fileupload-1.2.jar). I keep those libraries together with tomcat as they are shared by all web apps. Many of those extension libraries do not have separate help files but contain javadoc within source, so I mainly need their sources attached in eclipse rather than tomcat's ones. What if I make these shared libraries separate user libraries, and attach source to those. Will this cause race condition too?

If I can help somebody else I can try downloading WTP sources and do what you ask. I never filed a bug here.

Thanks again,

Yaroslav
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501043 is a reply to message #501035] Mon, 30 November 2009 19:19 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
After further code inspection, I believe to make the problem go away you
will need to remove the
"org.eclipse.jst.server.tomcat.runtimeTarget.xml" file under the
".metadata/.plugins/org.eclipse.jst.server.core". I'll see about filing
a bug report after a little more study, but I'm not sure the fix will
make it into WTP 3.1.2. It may be WTP 3.2 before you would see this
issue addressed.

You would be primary beneficiary of making a patched jar for your
version. It would be applicable only to the specific version of WTP you
are using. You would have to repeat this for any newer version of
Eclipse you upgrade to that doesn't incorporate a fix. The process is a
fair number of clicks, but pretty straight forward. First, let me see
if find a simple fix in some space cycles this week.

Cheers,
Larry


Yaroslav wrote:
> Thanks for the reply, Larry!
>
> You were absolutely right, I do have source attachments to my tomcat
> installation. I am not sure if I really need them. I believe they give
> me some help popups for methods of tomcat classes.
>
> By the way, I have some extension libraries in my tomcat shared lib
> folder (eg, commons-fileupload-1.2.jar). I keep those libraries together
> with tomcat as they are shared by all web apps. Many of those extension
> libraries do not have separate help files but contain javadoc within
> source, so I mainly need their sources attached in eclipse rather than
> tomcat's ones. What if I make these shared libraries separate user
> libraries, and attach source to those. Will this cause race condition too?
>
> If I can help somebody else I can try downloading WTP sources and do
> what you ask. I never filed a bug here.
>
> Thanks again,
>
> Yaroslav
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501056 is a reply to message #501043] Mon, 30 November 2009 20:16 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
Yaroslav,

I believe it would be useful if you could try out a patch that I believe
will fix the issue. What OS and version of Eclipse and WTP are you
using? If you installed Eclipse and WTP from an archive file(s) would
you please name the file(s).

Thanks,
Larry


Larry Isaacs wrote:
> After further code inspection, I believe to make the problem go away you
> will need to remove the
> "org.eclipse.jst.server.tomcat.runtimeTarget.xml" file under the
> ".metadata/.plugins/org.eclipse.jst.server.core". I'll see about filing
> a bug report after a little more study, but I'm not sure the fix will
> make it into WTP 3.1.2. It may be WTP 3.2 before you would see this
> issue addressed.
>
> You would be primary beneficiary of making a patched jar for your
> version. It would be applicable only to the specific version of WTP you
> are using. You would have to repeat this for any newer version of
> Eclipse you upgrade to that doesn't incorporate a fix. The process is a
> fair number of clicks, but pretty straight forward. First, let me see
> if find a simple fix in some space cycles this week.
>
> Cheers,
> Larry
>
>
> Yaroslav wrote:
>> Thanks for the reply, Larry!
>>
>> You were absolutely right, I do have source attachments to my tomcat
>> installation. I am not sure if I really need them. I believe they give
>> me some help popups for methods of tomcat classes.
>>
>> By the way, I have some extension libraries in my tomcat shared lib
>> folder (eg, commons-fileupload-1.2.jar). I keep those libraries
>> together with tomcat as they are shared by all web apps. Many of those
>> extension libraries do not have separate help files but contain
>> javadoc within source, so I mainly need their sources attached in
>> eclipse rather than tomcat's ones. What if I make these shared
>> libraries separate user libraries, and attach source to those. Will
>> this cause race condition too?
>>
>> If I can help somebody else I can try downloading WTP sources and do
>> what you ask. I never filed a bug here.
>>
>> Thanks again,
>>
>> Yaroslav
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501077 is a reply to message #492248] Mon, 30 November 2009 22:41 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
I'm running Vista 64-bit Enterprise.
Java: jdk1.6.0_16 32-bit
Eclipse from: eclipse-jee-ganymede-win32.zip

eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20090917-0800
eclipse.commands=-os win32 -ws win32 -arch x86

Eclipse Platform
Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
Build id: M20090917-0800

Not sure how to see WTP version but probably this will help:

Eclipse Java EE Developer Tools
Version: 3.1.1.v200908101600-7_7EGrfFQRwRZTMYz07YrGeRz0Tj
Build id: 20090917225226
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501210 is a reply to message #501077] Tue, 01 December 2009 14:33 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
Yaroslav wrote:
> I'm running Vista 64-bit Enterprise.
> Java: jdk1.6.0_16 32-bit
> Eclipse from: eclipse-jee-ganymede-win32.zip
>
> eclipse.application=org.eclipse.ui.ide.workbench
> eclipse.buildId=M20090917-0800
> eclipse.commands=-os win32 -ws win32 -arch x86
>
> Eclipse Platform
> Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
> Build id: M20090917-0800
>
> Not sure how to see WTP version but probably this will help:
>
> Eclipse Java EE Developer Tools
> Version: 3.1.1.v200908101600-7_7EGrfFQRwRZTMYz07YrGeRz0Tj
> Build id: 20090917225226
>

Eclipse 3.5.1/WTP 3.1.1 would correspond to galileo instead of ganymede.
I'll assume WTP 3.1.1 is what we need to target. Unfortunately, using
the update manager to add appropriate source plug-ins doesn't seem to
include the source for the server plug-in that needs patching. Since
this plug-in is a small one (60-70K), as opposed to those nearly a
megabyte or more in size, I'll build one and attach it to the bug I'll
report. Just to be sure, can you confirm that your "eclipse\plugins"
contains "org.eclipse.jst.server.core_1.2.0.v20090421.jar"? That way,
I'll be sure to build the patched replacement for your specific version.

Thanks,
Larry
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501212 is a reply to message #501210] Tue, 01 December 2009 14:43 Go to previous messageGo to next message
Yaroslav  is currently offline Yaroslav
Messages: 9
Registered: July 2009
Junior Member
Sorry, the right zip is: eclipse-jee-galileo-win32.zip (I have them both in my download folder).

Yes, I do have org.eclipse.jst.server.core_1.2.0.v20090421.jar in eclipse\plugins.
Re: Sometimes web project fails to compile - missing tomcat runtime libraries [message #501236 is a reply to message #501212] Tue, 01 December 2009 15:49 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
Yaroslav wrote:
> Sorry, the right zip is: eclipse-jee-galileo-win32.zip (I have them both
> in my download folder).
>
> Yes, I do have org.eclipse.jst.server.core_1.2.0.v20090421.jar in
> eclipse\plugins.

I've created https://bugs.eclipse.org/bugs/show_bug.cgi?id=296576
Attached is a patched version of
org.eclipse.jst.server.core_1.2.0.v20090421.jar. Save the original and
put the patched one in its place and see if this issue goes away even
with attached sources. You may wish to add yourself as a CC on this bug
so you can be notified of status changes. It's simple to create a
bugzilla account if you don't have one. Let me know here or in the bug
if this doesn't fix the bug or new issues appear.

Thanks,
Larry
Previous Topic:deploy web app - I'm trying again
Next Topic:Bug with links containing "&amp;"?
Goto Forum:
  


Current Time: Mon Oct 20 11:35:44 GMT 2014

Powered by FUDForum. Page generated in 0.02238 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software