Home » Language IDEs » ServerTools (WTP) » Re: Tomcat fails to start
Re: Tomcat fails to start [message #209080] |
Mon, 25 February 2008 13:25  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Rich,
I suspect that probably it's better to ask on the WTP newsgroup, which
I've added to the "to" list of the reply. It might help to look at the
Error Log view which will show you a stack trace...
Rich Heller wrote:
> I'm trying to figure out how the different Tomcat settings in Eclipse
> work together. I have an existing Tomcat deployment that I want to run
> under the debugger in Eclipse.
>
> I go under the Servers view and do New->Server.
> I select the runtime that I created for my Tomcat deployment, making
> sure the version chosen under the Apache folder in the server type box
> is correct.
> It gives me no available projects, so I just click Finish there.
> In the Servers view, I try to run the server and I get:
>
> Could not publish server configuration: null
> java.lang.NullPointerException
>
> If I open the server info from the Servers view, the Server Locations
> is set to "use workspace metadata". Is that correct? Should I change
> it to point to the Tomcat directory? Once I try to run the server and
> it fails, it won't let me change that option anymore.
>
> Where is the NPE coming from? What do I need to do to get this to work?
>
> Thanks,
> Rich
>
>
|
|
|
Re: Tomcat fails to start [message #209096 is a reply to message #209080] |
Mon, 25 February 2008 14:07   |
Eclipse User |
|
|
|
Ed Merks wrote:
> Rich,
>
> I suspect that probably it's better to ask on the WTP newsgroup, which
> I've added to the "to" list of the reply. It might help to look at the
> Error Log view which will show you a stack trace...
>
>
> Rich Heller wrote:
>> I'm trying to figure out how the different Tomcat settings in Eclipse
>> work together. I have an existing Tomcat deployment that I want to run
>> under the debugger in Eclipse.
>>
>> I go under the Servers view and do New->Server.
>> I select the runtime that I created for my Tomcat deployment, making
>> sure the version chosen under the Apache folder in the server type box
>> is correct.
>> It gives me no available projects, so I just click Finish there.
>> In the Servers view, I try to run the server and I get:
>>
>> Could not publish server configuration: null
>> java.lang.NullPointerException
>>
>> If I open the server info from the Servers view, the Server Locations
>> is set to "use workspace metadata". Is that correct? Should I change
>> it to point to the Tomcat directory? Once I try to run the server and
>> it fails, it won't let me change that option anymore.
>>
>> Where is the NPE coming from? What do I need to do to get this to work?
>>
>> Thanks,
>> Rich
>>
>>
See if this item[1] in the Tomcat FAQ helps. If not, a full stack trace
and more info about your OS and version of Eclipse and WTP would help.
Cheers,
Larry
[1]
http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
|
|
|
Re: Tomcat fails to start [message #209104 is a reply to message #209096] |
Mon, 25 February 2008 14:48   |
Eclipse User |
|
|
|
Originally posted by: tswdtx.hotmail.com
I found the Error Log view (didn't know about that one before) and here's
the stack trace:
java.lang.NullPointerException
at
org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.localizeConfiguration(TomcatVersionHelper.java:703)
at
org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.localizeConfiguration(Tomcat55Configuration.java:672)
at
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:230)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
at
org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
This error only happens the first time I try to start Tomcat. On
subsequent attempts, I get the following:
Could not clean server of obsolete files: null
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:665)
at
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:221)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
at
org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I'm running Windows XP, service pack 2. Eclipse info is
Version: 3.3.1.1
Build id: M20071023-1652
The WTP version appears to be 1.1.X. I seem to have 6 WTP plugins, with
final version numbers ranging from 100 to 102.
Thanks,
Rich
Larry Isaacs wrote:
> Ed Merks wrote:
>> Rich,
>>
>> I suspect that probably it's better to ask on the WTP newsgroup, which
>> I've added to the "to" list of the reply. It might help to look at the
>> Error Log view which will show you a stack trace...
>>
>>
>> Rich Heller wrote:
>>> I'm trying to figure out how the different Tomcat settings in Eclipse
>>> work together. I have an existing Tomcat deployment that I want to run
>>> under the debugger in Eclipse.
>>>
>>> I go under the Servers view and do New->Server.
>>> I select the runtime that I created for my Tomcat deployment, making
>>> sure the version chosen under the Apache folder in the server type box
>>> is correct.
>>> It gives me no available projects, so I just click Finish there.
>>> In the Servers view, I try to run the server and I get:
>>>
>>> Could not publish server configuration: null
>>> java.lang.NullPointerException
>>>
>>> If I open the server info from the Servers view, the Server Locations
>>> is set to "use workspace metadata". Is that correct? Should I change
>>> it to point to the Tomcat directory? Once I try to run the server and
>>> it fails, it won't let me change that option anymore.
>>>
>>> Where is the NPE coming from? What do I need to do to get this to work?
>>>
>>> Thanks,
>>> Rich
>>>
>>>
> See if this item[1] in the Tomcat FAQ helps. If not, a full stack trace
> and more info about your OS and version of Eclipse and WTP would help.
> Cheers,
> Larry
> [1]
>
http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
|
|
|
Re: Tomcat fails to start [message #209114 is a reply to message #209104] |
Mon, 25 February 2008 15:19   |
Eclipse User |
|
|
|
These exceptions suggest that the Tomcat plug-in is having trouble
understanding customizations that may have been made to the server.xml
in your installation. This file is imported from your Tomcat
installation into a sub folder of the Servers folder in your workspace.
It appears that there is a problem identifying the <Service>,
<Engine>, or <Host> that should be used. If you can attach a copy of
the server.xml from the Servers project in your workspace, I'll take a
look and see if I can spot anything.
Cheers,
Larry
Rich Heller wrote:
> I found the Error Log view (didn't know about that one before) and
> here's the stack trace:
>
> java.lang.NullPointerException
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.localizeConfiguration(TomcatVersionHelper.java:703)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.localizeConfiguration(Tomcat55Configuration.java:672)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:230)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
>
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
> at
> org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> This error only happens the first time I try to start Tomcat. On
> subsequent attempts, I get the following:
>
> Could not clean server of obsolete files: null
> 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:665)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:221)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
>
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
> at
> org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I'm running Windows XP, service pack 2. Eclipse info is
> Version: 3.3.1.1
> Build id: M20071023-1652
> The WTP version appears to be 1.1.X. I seem to have 6 WTP plugins, with
> final version numbers ranging from 100 to 102.
>
> Thanks,
> Rich
>
> Larry Isaacs wrote:
>
>> Ed Merks wrote:
>>> Rich,
>>>
>>> I suspect that probably it's better to ask on the WTP newsgroup,
>>> which I've added to the "to" list of the reply. It might help to
>>> look at the Error Log view which will show you a stack trace...
>>>
>>>
>>> Rich Heller wrote:
>>>> I'm trying to figure out how the different Tomcat settings in
>>>> Eclipse work together. I have an existing Tomcat deployment that I
>>>> want to run under the debugger in Eclipse.
>>>>
>>>> I go under the Servers view and do New->Server.
>>>> I select the runtime that I created for my Tomcat deployment, making
>>>> sure the version chosen under the Apache folder in the server type
>>>> box is correct.
>>>> It gives me no available projects, so I just click Finish there.
>>>> In the Servers view, I try to run the server and I get:
>>>>
>>>> Could not publish server configuration: null
>>>> java.lang.NullPointerException
>>>>
>>>> If I open the server info from the Servers view, the Server
>>>> Locations is set to "use workspace metadata". Is that correct?
>>>> Should I change it to point to the Tomcat directory? Once I try to
>>>> run the server and it fails, it won't let me change that option
>>>> anymore.
>>>>
>>>> Where is the NPE coming from? What do I need to do to get this to work?
>>>>
>>>> Thanks,
>>>> Rich
>>>>
>>>>
>
>> See if this item[1] in the Tomcat FAQ helps. If not, a full stack
>> trace and more info about your OS and version of Eclipse and WTP would
>> help.
>
>> Cheers,
>> Larry
>
>> [1]
> http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
>
>
>
|
|
|
Re: Tomcat fails to start [message #209122 is a reply to message #209114] |
Mon, 25 February 2008 15:41  |
Eclipse User |
|
|
|
Originally posted by: tswdtx.hotmail.com
That got it! The defaultHost field of the Engine tag was set to a
non-existent host. We've been using IntelliJ and apparently it ignores
that field. I changed it to "localhost" (which is correct b/c I'm only
using it for testing) and it started up.
Thanks,
Rich
Larry Isaacs wrote:
> These exceptions suggest that the Tomcat plug-in is having trouble
> understanding customizations that may have been made to the server.xml
> in your installation. This file is imported from your Tomcat
> installation into a sub folder of the Servers folder in your workspace.
> It appears that there is a problem identifying the <Service>,
> <Engine>, or <Host> that should be used. If you can attach a copy of
> the server.xml from the Servers project in your workspace, I'll take a
> look and see if I can spot anything.
> Cheers,
> Larry
> Rich Heller wrote:
>> I found the Error Log view (didn't know about that one before) and
>> here's the stack trace:
>>
>> java.lang.NullPointerException
>> at
>>
org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHel per.localizeConfiguration(TomcatVersionHelper.java:703)
>>
>> at
>>
org.eclipse.jst.server.tomcat.core.internal.Tomcat55Configur ation.localizeConfiguration(Tomcat55Configuration.java:672)
>>
>> at
>>
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:230)
>>
>> at
>>
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
>>
>> at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
>> at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
>> at
>>
org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>> This error only happens the first time I try to start Tomcat. On
>> subsequent attempts, I get the following:
>>
>> Could not clean server of obsolete files: null
>> 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:665)
>>
>> at
>>
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBeha viour.publishServer(TomcatServerBehaviour.java:221)
>>
>> at
>>
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:657)
>>
>> at org.eclipse.wst.server.core.internal.Server.doPublish(Server .java:887)
>> at org.eclipse.wst.server.core.internal.Server.publish(Server.j ava:874)
>> at
>>
org.eclipse.wst.server.core.internal.PublishServerJob.run(Pu blishServerJob.java:72)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>
>> I'm running Windows XP, service pack 2. Eclipse info is
>> Version: 3.3.1.1
>> Build id: M20071023-1652
>> The WTP version appears to be 1.1.X. I seem to have 6 WTP plugins, with
>> final version numbers ranging from 100 to 102.
>>
>> Thanks,
>> Rich
>>
>> Larry Isaacs wrote:
>>
>>> Ed Merks wrote:
>>>> Rich,
>>>>
>>>> I suspect that probably it's better to ask on the WTP newsgroup,
>>>> which I've added to the "to" list of the reply. It might help to
>>>> look at the Error Log view which will show you a stack trace...
>>>>
>>>>
>>>> Rich Heller wrote:
>>>>> I'm trying to figure out how the different Tomcat settings in
>>>>> Eclipse work together. I have an existing Tomcat deployment that I
>>>>> want to run under the debugger in Eclipse.
>>>>>
>>>>> I go under the Servers view and do New->Server.
>>>>> I select the runtime that I created for my Tomcat deployment, making
>>>>> sure the version chosen under the Apache folder in the server type
>>>>> box is correct.
>>>>> It gives me no available projects, so I just click Finish there.
>>>>> In the Servers view, I try to run the server and I get:
>>>>>
>>>>> Could not publish server configuration: null
>>>>> java.lang.NullPointerException
>>>>>
>>>>> If I open the server info from the Servers view, the Server
>>>>> Locations is set to "use workspace metadata". Is that correct?
>>>>> Should I change it to point to the Tomcat directory? Once I try to
>>>>> run the server and it fails, it won't let me change that option
>>>>> anymore.
>>>>>
>>>>> Where is the NPE coming from? What do I need to do to get this to work?
>>>>>
>>>>> Thanks,
>>>>> Rich
>>>>>
>>>>>
>>
>>> See if this item[1] in the Tomcat FAQ helps. If not, a full stack
>>> trace and more info about your OS and version of Eclipse and WTP would
>>> help.
>>
>>> Cheers,
>>> Larry
>>
>>> [1]
>>
http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
>>
>>
>>
|
|
|
Goto Forum:
Current Time: Fri May 16 12:41:27 EDT 2025
Powered by FUDForum. Page generated in 0.03238 seconds
|