You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Rajesh Ravindran <ra...@gmail.com> on 2004/09/02 19:10:58 UTC
Servlet Exceptions while trying to run petstore
Hi all,
For the last few days I ve been trying to get petstore working with
geronimo. When I try to access the main page which redirects to the
following URL
http://localhost:8080/estore/control/language?language=English
I get the HTTP ERROR:503 on the page due to Unavailable Exception. Can
anyone help me out here.
Thanks in advance,
Rajesh
Here is the complete stack trace.
[Fatal Error] :1:41: Invalid encoding name "Unicode".
20:08:54,751 WARN [ServletHolder] EXCEPTION
java.lang.NullPointerException
at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getTagValue(ScreenFlowXmlDAO.java:378)
at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getScreens(ScreenFlowXmlDAO.java:173)
at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadScreenDefinitions(ScreenFlowXmlDAO.java:110)
at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.init(ScreenFlowManager.java:65)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScreenFlowManager(MainServlet.java:145)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java:58)
at javax.servlet.GenericServlet.init(GenericServlet.java:168)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:298)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:335)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:512)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1442)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:490)
at org.apache.geronimo.jetty.JettyWebAppContext.handle(JettyWebAppContext.java:168)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1394)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:821)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:988)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:838)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:212)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:315)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:510)
20:08:54,755 WARN [ServletHandler] Exception for
/estore/control/language?language=English
javax.servlet.UnavailableException: java.lang.NullPointerException
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:319)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:335)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:512)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1442)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:490)
at org.apache.geronimo.jetty.JettyWebAppContext.handle(JettyWebAppContext.java:168)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1394)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:821)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:988)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:838)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:212)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:315)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:510)
Re: Servlet Exceptions while trying to run petstore
Posted by Rajesh Ravindran <ra...@gmail.com>.
Thanks Gianny,
Your solution helped me get over that problem. I am really sorry for
having to bug u with such small problems. But now I am having another
& it d be a big help if someone could provide a way out.
Now while trying to access the main page, I get an HTTP 500 Error with
the following exception & stack trace:
WARN [ServletHandler] Exception for /estore/control/language?language=English
javax.servlet.ServletException: MainServlet: unknown exception:
java.lang.ClassCastException
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:124)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:512)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1442)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:490)
at org.apache.geronimo.jetty.JettyWebAppContext.handle(JettyWebAppContext.java:168)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1394)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:821)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:988)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:838)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:212)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:315)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:510)
Thanks,
Rajesh
Re: Servlet Exceptions while trying to run petstore
Posted by Gianny Damour <gi...@optusnet.com.au>.
On 3/09/2004 3:10 AM, Rajesh Ravindran wrote:
>Hi all,
>
>For the last few days I ve been trying to get petstore working with
>geronimo. When I try to access the main page which redirects to the
>following URL
>
>http://localhost:8080/estore/control/language?language=English
>
>I get the HTTP ERROR:503 on the page due to Unavailable Exception. Can
>anyone help me out here.
>
>
>Thanks in advance,
>Rajesh
>
>Here is the complete stack trace.
>
>[Fatal Error] :1:41: Invalid encoding name "Unicode".
>20:08:54,751 WARN [ServletHolder] EXCEPTION
>java.lang.NullPointerException
> at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getTagValue(ScreenFlowXmlDAO.java:378)
> at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getScreens(ScreenFlowXmlDAO.java:173)
> at
>
Hi Rajesh ,
You need to get ride of the Japanish screen definitions defined by the
Pet Store Web application. More accurately, drop the element
<screen-definition url="/WEB-INF/xml/ja/screendefinitions.xml"
language="ja_JP"/>
defined by petstore.war!/WEB-INF\xml\requestmappings.xml.
Thanks,
Gianny