servlet has problem with Amazon web service

From: Quick Function (quickcur_at_yahoo.com)
Date: 03/30/04


Date: 30 Mar 2004 10:03:37 -0800

I am writing a servlet in which I call Amazon web service. Here is
what I did:

1. Used Amazon tools and compiled their classes to a jar file called
azwsdl.jar.
2. Used JBuilder to construct a servlet.
3. Added azwsdl.jar as a required library.
4. In my doGet method, put something like:

 com.amazon.soap.axis.AmazonSearchService service = new
com.amazon.soap.axis.AmazonSearchServiceLocator();

However, the servlet crushed at the the statement above.

Could anyone help?

Thanks,

Here is the print-out:
----------------------------------------------------------------
HttpConnector Opening server socket on all host IP addresses

Starting service Tomcat-Standalone

Apache Tomcat/4.0.3

WebappLoader[/BestPrice]: Deploying class repositories to work
directory D:\amazon\BestPrice\BestPrice\Tomcat\work\BestPrice

WebappLoader[/BestPrice]: Deploy JAR /WEB-INF/lib/azwdsl.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\azwdsl.jar

WebappLoader[/BestPrice]: Deploy JAR
/WEB-INF/lib/jaxrpc-1_1-fr-spec-api.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\jaxrpc-1_1-fr-spec-api.jar

WebappLoader[/BestPrice]: Deploy JAR /WEB-INF/lib/servlet.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\servlet.jar

StandardManager[/BestPrice]: Seeding random number generator class
java.security.SecureRandom

StandardManager[/BestPrice]: Seeding of random number generator has
been completed

ContextConfig[/BestPrice]: Added certificates -> request attribute
Valve

StandardWrapper[/BestPrice:default]: Loading container servlet default

StandardWrapper[/BestPrice:invoker]: Loading container servlet invoker

WebappLoader[]: Deploying class repositories to work directory
D:\amazon\BestPrice\BestPrice\Tomcat\work

WebappLoader[]: Deploy JAR /WEB-INF/lib/azwdsl.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\azwdsl.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jaxrpc-1_1-fr-spec-api.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\jaxrpc-1_1-fr-spec-api.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/servlet.jar to
D:\amazon\BestPrice\BestPrice\defaultroot\WEB-INF\lib\servlet.jar

StandardManager[]: Seeding random number generator class
java.security.SecureRandom

StandardManager[]: Seeding of random number generator has been
completed

ContextConfig[]: Added certificates -> request attribute Valve

StandardWrapper[:default]: Loading container servlet default

StandardWrapper[:invoker]: Loading container servlet invoker

HttpConnector[8080] Starting background thread

StandardWrapperValve[invoker]: Servlet.service() for servlet invoker
threw exception

javax.servlet.ServletException: Invoker service() exception

javax.servlet.ServletException: Invoker service() exception

 at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:504)

 at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)

 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

 at java.lang.Thread.run(Thread.java:536)



Relevant Pages

  • servlet has problem with amazon web service
    ... I am writing a servlet in which I call Amazon web service. ... javax.servlet.ServletException: Invoker service() exception ...
    (comp.lang.java.developer)
  • Accessing ejb from tomcat
    ... I am using AS 8.1 and trying to accessing ejb from tomcat. ... Redirect URL: http://www.cnn.com], ... for servlet session.Login threw exception ...
    (comp.lang.java.programmer)
  • Re: more 500 Servlet Exception
    ... vance wrote: ... > Sorry, I'm not really that familiar with this 500 Servlet Exception, ... the useful parts of the stack trace, ...
    (comp.lang.java.programmer)
  • Re: forwarding to servlet from java class
    ... The only part I can't do is forwarding onto a servlet from a java ... I'd define a new exception class for exceptions thrown from your ... the business logic class will throw a "BusinessException" (subclass ... of exception), or a subclass of BusinessException, if more fine-grained ...
    (comp.lang.java.help)
  • Re: DatagramSocket.send problem on Linux 2.6 with Jre 1.4.2
    ... The JVM normally knows where the libraries are located, ... } catch (Exception e) { ... Servlet version of the same: ... for servlet sockTest threw exception ...
    (comp.lang.java.programmer)