|
|
|
Re: Removing obsolete files from the server [message #218788 is a reply to message #218781] |
Mon, 04 August 2008 16:17 |
Larry Isaacs Messages: 1354 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 |
Larry Isaacs Messages: 1354 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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05606 seconds