The embedded Tomcat no longer works.

Description

The Build file is now correct, just not getting anything on the screen, maybe not reading the web.xml file?

The embedded tomcat - started by the 'ant test' target - no longer works. Most likely the jars just need to be updated in some way, or the build.xml file needs to copy some files over correctly. The current error is:

] StandardContext[]: Servlet threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet action threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
at org.vfny.geoserver.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:133)
at org.vfny.geoserver.EmbeddedTomcat.main(EmbeddedTomcat.java:285)


Root Cause ----- java.lang.NullPointerException
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
at org.vfny.geoserver.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:133)

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:48 PM

CodeHaus Comment From: cholmes - Time: Tue, 3 Feb 2004 18:13:10 -0600
---------------------
<p>Could you or someone over there take a shot at this? At the very least the .jsp's need to be copied over. One method that could be good for the future is to somehow just copy the war over to the ROOT webapp directory under server, so that this would depend on the WAR target and just copy it over, thus making it so we don't have to reduplicate the targets each time. If you can't get it under ROOT, like if it's just possible as geoserver, then that should be fine. This also might involve updating the catalina jars, tomcat 5 might be good, I think you can download the embedded. I've never upgraded before, ask Rob, he might remember how he did it originally.</p>

codehaus
April 10, 2015, 4:48 PM

CodeHaus Comment From: jgarnett - Time: Wed, 4 Feb 2004 16:42:27 -0600
---------------------
<p>Here David, this is a low priority from our M4 standpoint.

I am placing it under implement all changes from TOPP feedback (we have 16 h total here so I will hit you up for an estimate l8r)</p>

codehaus
April 10, 2015, 4:48 PM

CodeHaus Comment From: dzwiers - Time: Wed, 4 Feb 2004 20:00:53 -0600
---------------------
<p>Creating a new task to create an 'open and run' product. The embedded one should prob be updated, and appears to be used significantly for testing. </p>

codehaus
April 10, 2015, 4:48 PM

CodeHaus Comment From: cholmes - Time: Thu, 19 Feb 2004 19:54:52 -0600
---------------------
<p>I won't hit this before the beta. I'll put some good time in though. Not sure what is wrong with it now, I liked David's approach with the war file, but it doesn't seem to work for some reason. Every request just returns blank html pages. Not even servlet errors. So something's a bit funky. Would be good to take this opportunity to upgrade to the 5.0 tomcat. We could also consider jetty, as it's nice and small.</p>

codehaus
April 10, 2015, 4:48 PM

CodeHaus Comment From: cholmes - Time: Mon, 5 Apr 2004 10:06:23 -0500
---------------------
<p>Got rid of tomcat, ant test now works with embedded jetty.</p>

<p>yay!</p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Low