Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Removing obsolete files from the server
Removing obsolete files from the server [message #218740] Mon, 04 August 2008 12:37 Go to next message
Craig Raymond is currently offline Craig Raymond
Messages: 4
Registered: July 2009
Junior Member
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 13:41 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
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 15:13 Go to previous messageGo to next message
Craig Raymond is currently offline Craig Raymond
Messages: 4
Registered: July 2009
Junior Member
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 16:17 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
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 16:24 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
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 17:06 Go to previous messageGo to next message
Craig Raymond is currently offline Craig Raymond
Messages: 4
Registered: July 2009
Junior Member
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 11:17 Go to previous message
Ben Martin-Peddey is currently offline Ben Martin-Peddey
Messages: 1
Registered: February 2013
Junior Member
I had this problem today. Resolved by deleting a folder called tmp4 in C:\src\trunk\.metadata\.plugins\org.eclipse.wst.server.core
Previous Topic:I need XML validation support
Next Topic:MOZILLA_FIVE_HOME, downloading java server faces 2.1
Goto Forum:
  


Current Time: Sun Oct 26 01:56:49 GMT 2014

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

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