Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Removing obsolete files from the server
Removing obsolete files from the server [message #218740] Mon, 04 August 2008 08:37 Go to next message
Eclipse UserFriend
Using the latest versions (downloaded just a couple weeks ago), and using
two servers that I had running on Friday, I get 'Problem occured -
Removing obsolete files from server... Could not clean server of obsolete
files: null java.lana.nulPointerException' when trying to start either
server.

Both servers are Tomcat 5.5.20, one server uses Java 1.5.0_06 and the
other used Java 1.6.0_06.

I can't see anything obvious (to me anyway). Any ideas on what to look at?

Thanks in advance, Craig.
Re: Removing obsolete files from the server [message #218748 is a reply to message #218740] Mon, 04 August 2008 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Craig Raymond wrote:
> Using the latest versions (downloaded just a couple weeks ago), and
> using two servers that I had running on Friday, I get 'Problem occured -
> Removing obsolete files from server... Could not clean server of
> obsolete files: null java.lana.nulPointerException' when trying to start
> either server.
> Both servers are Tomcat 5.5.20, one server uses Java 1.5.0_06 and the
> other used Java 1.6.0_06.
>
> I can't see anything obvious (to me anyway). Any ideas on what to look at?
>
> Thanks in advance, Craig.
>

Is there a stack trace available for the NPE, perhaps in the Error Log view?

Cheers,
Larry
Re: Removing obsolete files from the server [message #218781 is a reply to message #218748] Mon, 04 August 2008 11:13 Go to previous messageGo to next message
Eclipse UserFriend
java.lang.NullPointerException
at
org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.getCatalinaServerInstance(TomcatVersionHelper.java:201)
at
org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.cleanupCatalinaServer(TomcatVersionHelper.java:278)
at
org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.cleanupServer(Tomcat55Configuration.java:701)
at
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:231)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:862)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:707)
at
org.eclipse.wst.server.core.internal.Server.publishImpl(Serv er.java:2406)
at
org.eclipse.wst.server.core.internal.Server$StartJob.run(Ser ver.java:305)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Makes it seem as if something is wrong with the Tomcat installation. It
does start from the command line, however.
Re: Removing obsolete files from the server [message #218788 is a reply to message #218781] Mon, 04 August 2008 12:17 Go to previous messageGo to next message
Eclipse UserFriend
Craig Raymond wrote:
> java.lang.NullPointerException
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.getCatalinaServerInstance(TomcatVersionHelper.java:201)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.cleanupCatalinaServer(TomcatVersionHelper.java:278)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.cleanupServer(Tomcat55Configuration.java:701)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:231)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:862)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:707)
>
> at
> org.eclipse.wst.server.core.internal.Server.publishImpl(Serv er.java:2406)
> at
> org.eclipse.wst.server.core.internal.Server$StartJob.run(Ser ver.java:305)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Makes it seem as if something is wrong with the Tomcat installation. It
> does start from the command line, however.
>

This NPE implies that the WTP Tomcat Plug-in is trying to determine the
appropriate path for a context.xml file relative to
"${catalina.base}/conf" (typically "Catalina/localhost" for Tomcat
5.5.x). However, as the plug-in scans the server.xml to find the
appropriate Service, Engine, and Host to come up with this "<engine
name>/<host name>" path, it's coming up empty for one of Service,
Engine, or Host. In theory, you would not have been able create a
server from an installation whose server.xml had this problem. Have you
made any recent changes to the server.xml under the Servers project
involving the Service, Engine, or Host elements?

There is error information created by the methods involved that
eventually return the null that causes the NPE. It is a bug that the
info isn't reported and the plug-in just NPEs. Please open a Bugzilla
report and include the stack trace. I'll see about fixing the error
handling.

Cheers,
Larry
Re: Removing obsolete files from the server [message #218801 is a reply to message #218788] Mon, 04 August 2008 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Larry Isaacs wrote:
> Craig Raymond wrote:
>> java.lang.NullPointerException
>> at
>> org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.getCatalinaServerInstance(TomcatVersionHelper.java:201)
>>
>> at
>> org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.cleanupCatalinaServer(TomcatVersionHelper.java:278)
>>
>> at
>> org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.cleanupServer(Tomcat55Configuration.java:701)
>>
>> at
>> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:231)
>>
>> at
>> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:862)
>>
>> at
>> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:707)
>>
>> at
>> org.eclipse.wst.server.core.internal.Server.publishImpl(Serv er.java:2406)
>> at
>> org.eclipse.wst.server.core.internal.Server$StartJob.run(Ser ver.java:305)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>
>> Makes it seem as if something is wrong with the Tomcat installation.
>> It does start from the command line, however.
>>
>
> This NPE implies that the WTP Tomcat Plug-in is trying to determine the
> appropriate path for a context.xml file relative to
> "${catalina.base}/conf" (typically "Catalina/localhost" for Tomcat
> 5.5.x). However, as the plug-in scans the server.xml to find the
> appropriate Service, Engine, and Host to come up with this "<engine
> name>/<host name>" path, it's coming up empty for one of Service,
> Engine, or Host. In theory, you would not have been able create a
> server from an installation whose server.xml had this problem. Have you
> made any recent changes to the server.xml under the Servers project
> involving the Service, Engine, or Host elements?
>
> There is error information created by the methods involved that
> eventually return the null that causes the NPE. It is a bug that the
> info isn't reported and the plug-in just NPEs. Please open a Bugzilla
> report and include the stack trace. I'll see about fixing the error
> handling.
>
> Cheers,
> Larry

I should have mentioned which component to file the Bugzilla report.
Use the jst.server component under the Web Tools product.

Thanks,
Larry
Re: Removing obsolete files from the server [message #218809 is a reply to message #218801] Mon, 04 August 2008 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Thanks very much Larry, I was able to get past it.

I have filed a bug report, though as I say in that report, I failed to
determine what actually triggered the failure. I apologize for that, I
should know better.

Thanks again, Craig.
Re: Removing obsolete files from the server [message #1008188 is a reply to message #218809] Mon, 11 February 2013 06:17 Go to previous messageGo to next message
Eclipse UserFriend
I had this problem today. Resolved by deleting a folder called tmp4 in C:\src\trunk\.metadata\.plugins\org.eclipse.wst.server.core
icon14.gif  Re: Removing obsolete files from the server [message #1744813 is a reply to message #1008188] Fri, 30 September 2016 08:29 Go to previous message
Eclipse UserFriend
Thanks man!!!

It works for me on Ubuntu system.

Folder location in Ubuntu is:

<workspace>/.metadata/.plugins/org.eclipse.wst.server.core

I just simply deleted the folder and started tomcat and it worked Smile
Previous Topic:Problem with WAR File Export (lastmodified)
Next Topic:migrating an eclipse plugin on Eclipse 3.4 to 3.6.
Goto Forum:
  


Current Time: Mon Mar 10 20:57:00 EDT 2025

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

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

Back to the top