axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From valerie.bau...@bull.net
Subject Réf. : Axis/Tomcat Servlet Problem.
Date Fri, 19 Dec 2003 10:08:42 GMT

I had this problem and I solved it looking at the axis jar files : they
must be in a unique directory.
In your case, be sure they are in jakarta-tomcat-4.1.29/common/lib and
nowhere else under jakarta-tomcat-4.1.29/......

Valerie





"Jens Mittag" <Mittag@fzi.de> sur 18/12/2003 14:51:00

Veuillez répondre à axis-user@ws.apache.org

Pour : <axis-user@ws.apache.org>
cc :
Objet :     Axis/Tomcat Servlet Problem.


Hi!

I have a problem running Axis 1.1 on Tomcat 4.1.29. The axis webapp
directory is deployed correctly and the validation of the installation
says,
everything should be working, but when I try to access the list of deployed
services (http://localhost:8042/XML2/servlet/AxisServlet) I get a 404 from
the Iexplorer (not a 404 from Tomcat, which says there's no such service).

Simultanously, I get a Java error on my console:

- Unable to locate a valid EngineConfigurationFactory
- Exception: java.lang.NullPointerException
 at
org.apache.axis.transport.http.AxisServletBase.getEngineEnvironmen
(AxisServletBase.java:285)
  at
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.jav

a:208)
  at
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.jav

a:187)
  at
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:

339)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:256)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:191)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:171)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172

)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:174)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java

:221)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne

ction(Http11Protocol.java:549)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav

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

In my server.xml, I defined an extra ContextPath via

 <Context path="/XML2" docBase="./ROOT/axis" debug="1"
reloadable="true"></Context>

All my Axis libraries are located in jakarta-tomcat-4.1.29/common/lib
(jaxrpc.jar and saaj.jar in common/endorsed). I already tried it with the
dirs in the axis/WEB-INF/lib directory, but with no effect.

Maybe, this has something to do with Tomcat, so here is an extract of the
Tomcat server.xml:

 <Service name="Tomcat-Standalone">
 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8042" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="1" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

 <Engine name="Standalone" defaultHost="localhost" debug="1">
  <Valve
className="org.apache.catalina.valves.RequestDumperValve"/>

       <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="catalina_log." suffix=".txt"
               timestamp="true"/>

            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                  debug="0" resourceName="UserDatabase"/>
  <Host name="localhost" debug="1" appBase="webroot"
         unpackWARs="true" autoDeploy="true">

   <Valve
className="org.apache.catalina.valves.AccessLogValve"
                   directory="logs"
prefix="localhost_access_log." suffix=".txt"
                   pattern="common" resolveHosts="false"/>
                  <Logger className="org.apache.catalina.logger.FileLogger"
                   directory="logs"  prefix="localhost_log."
suffix=".txt"
              timestamp="true"/>

   <Context path="/XML" docBase="./ROOT/soap" debug="1"
reloadable="true">
   </Context>
   <Context path="/XML2" docBase="./ROOT/axis"
debug="1" reloadable="true">
   </Context>
  </Host>
 </Engine>
 </Service>

The axis/WEB-INF/web.xml file is like the standard file from the axis
package, didn't change anything.
Maybe, someone can help me or point me into the right direction.

Thanks in advance.

Jens Mittag









Mime
View raw message