Removing obsolete files from the server [message #218740] |
Mon, 04 August 2008 08:37  |
Eclipse User |
|
|
|
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 #218788 is a reply to message #218781] |
Mon, 04 August 2008 12:17   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04446 seconds