[SourceJammer-users] Re: using weblogic
Brought to you by:
robertmacgrogan
From: Robert M. <rob...@ya...> - 2002-02-21 20:03:46
|
Hi, Noah. You might have better luck checking the lists at xml.apache.org. This error is not familiar to me. I'm wondering if you ran the deploy script successfully before getting this error? Can you tell if the "mastercontrolprogram" is deployed on your server? Also, it's possible that there is a version conflict with SOAP and your JSP server. Perhaps it requires a particular version of Apache SOAP? Also, make sure that all the class paths are set on your server. Can it see xerces.jar, for example? As you can see, I'm grasping at straws. If you discover something on xml.apache.org, please let me know. Good luck. --Rob --- Noah Couture <nco...@fe...> wrote: > Hey Robert, > > Thanks for getting back to me. I did manage to > figure out how to get weblogic to preload that > servet. What i'm running into now seems to be > more of an issue with the org.apache.soap > stuff. Do you know much about that subject? Its > happening when I try to connect to the > server. > > Just for grins, here's the exception: > > java.lang.NullPointerException > at > weblogic.servlet.internal.ChunkOutput.clearBuffer(ChunkOutput.java:231) > at > weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:251) > at > weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:152) > at > weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:119) > at > org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:462) > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:347) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039) > at > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) > at > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > <Feb 21, 2002 12:19:34 PM PST> <Error> <HTTP> > <[WebAppServletContext(3606923,sourcejammer,/sourcejammer)] > Servlet failed with ServletException > javax.servlet.ServletException: Error building > response envelope: > java.lang.NullPointerException > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:353) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039) > at > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) > at > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > > If you stare at that awhile, the pertinent lines > are: > > > javax.servlet.ServletException: Error building > response envelope: > java.lang.NullPointerException > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:353) > > which is just the throw() call, whereas the actual > exception is at: > > java.lang.NullPointerException > ..... > at > org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:462) > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:347) > > Appropriate chunks of those files: > > RPCROuterServlet.java: > > 345 > res.setContentLength(sres.getContentLength()); > 346 OutputStream outStream = > res.getOutputStream(); > 347 sres.writeTo(outStream); > 348 } > > TransportMessage.java: > > 457 /** > 458 * Write content. > 459 */ > 460 public void writeTo(OutputStream > outStream) throws IOException { > 461 outStream.write(bytes, offset, > bytes.length - offset); > 462 outStream.flush(); > 463 } > > Anyway, so it seems pretty clear that the servlet is > failing to get a copy of the Response's > output stream. > > But i'm not sure how/why thats happening.. > > thanks for your time.. > noah > > Robert MacGrogan wrote: > > > Hi, Noah. > > > > It looks like you are actually pretty close. If > you > > look in the web.xml file that came with SJ, you'll > see > > that the servlet > > org.sourcejammer.web.servlet.AppConfigInitServlet > is > > supposed to load on startup. You will need to pass > > this servlet a param, though. The param, > > "baseConfigPath" should be the absolute path to > the > > conf directory that holds conf.xml and > serverconf.xml > > and all that other good stuff. > > > > Let us know how it goes. > > > > --Rob > > > > --- Noah Couture <nco...@fe...> > wrote: > > > Hi Robert, > > > > > > I'm trying to get SourceJammer to work under > > > weblogic 6.1. Mostly, > > > because thats the platform i'm familiar with. I > > > haven't really tinkered > > > with tomcat before, and I know weblogic pretty > well. > > > So, I thought the > > > first thing i'd do is see if I could get the > webapp > > > going under > > > weblogic. If I copy the app over to the > > > applications directory on my > > > server, it deploys fine. But I get a runtime > error > > > when I try to call > > > up the default page in a browser: > > > > > > <Feb 19, 2002 4:56:45 PM PST> <Error> <HTTP> > > > > > > <[WebAppServletContext(6467369,sourcejammer,/sourcejammer)] > > > Servlet f > > > ailed with Exception > > > org.sourcejammer.util.ConfigurationException: > > > ServerConfig has not been > > > intialized. > > > at > > > > > > org.sourcejammer.server.ServerConfig.getInstance(ServerConfig.java:119) > > > at > > > jsp_servlet.__error._jspService(__error.java:92) > > > at > > > > > > weblogic.servlet.jsp.JspBase.service(JspBase.java:27) > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) > > > > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304) > > > > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) > > > > > > at > > > > > > weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215) > > > > > > at > > > > > > weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112) > > > at > > > > > > weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:257) > > > > > > at > > > > jsp_servlet.__index._jspService(__index.java:113) > > > at > > > > > > weblogic.servlet.jsp.JspBase.service(JspBase.java:27) > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) > > > > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304) > > > > > > at > > > > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) > > > > > > at > > > > > > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456) > > > > > > at > > > > > > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039) > > > > > > at > > > > > > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) > > > > > > at > > > > > > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > > > > > > > > > I'm wondering if tomcat has some sort of startup > > > procedure that launches > > > a thread or something? I haven't dug into the > > > source code yet (i'm > > > really just investigating cvs alternatives > here), > > > but this seems pretty > > > cool so i'd like to see if I can get it to work. > > > > > > thanks for your time, > > > noah > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Sports - Coverage of the 2002 Olympic Games > > http://sports.yahoo.com > __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com |