Kenneth,

Which version of Jetty do you use?
I am currently using Jetty-4.0.1RC0 (Jetty)with the
Beta 1 (Axis).

I did the following.

1) Modify jetty.xml to add 
<Call name="addWebApplication">
  <Arg>/</Arg> 
  <Arg>./webapps/axis</Arg> 
</Call> 

2) Follow the axis document to add
   the axis directory under the webapps directory

3) I also modify the web.xml (under
webapps/axis/Web-inf).  I add "/" in front of servlet
for both 
AxisServlet and AdminServlet because it complain
when I start the jetty command.

<servlet-mapping>
  <servlet-name>AxisServlet</servlet-name> 
  <url-pattern>/servlet/AxisServlet</url-pattern> 
</servlet-mapping>
<servlet-mapping>
  <servlet-name>AdminServlet</servlet-name> 
  <url-pattern>/servlet/AdminServlet</url-pattern> 
</servlet-mapping>

4) I start up the jetty and type in the 
java samples.stock.GetQuote ... and here are the
message.  (I am not quite sure what have I done
wrong.  Can you take a look and give me some
suggestion?  Is there any additional document
that I should read.)

(Step 6 from installing and deploying web application
using xml-axis)

c:\jdk1.3\bin\java samples.stock.GetQuote
lhttp://cuckoonest:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX

AxisFault
 faultCode: http://xml.apache.org/axis/:HTTP
 faultString: Not Found
 faultActor: null
 faultDetail:
        null: return code:  404

<HTML>
<HEAD>
<TITLE>Error 404 Not Found</TITLE>
<BODY>
<H2>HTTP ERROR: 404 Not Found</H2>
RequestURI=/axis/servlet/AxisServlet


</BODY>
</HTML>

6.  When I start the jetty batch command, here
are the info.)

D:\Download\Jetty\Jetty-4.0.1RC0\bin>jetty

JAVA_HOME=C:\jdk1.3
JETTY_HOME=D:\Download\Jetty\Jetty-4.0.1RC0
JETTY_DRIVE=D:
JETTY_LOG=D:\Download\Jetty\Jetty-4.0.1RC0\logs
JETTY_PORT=8080
OPTIONS=-Djetty.home="D:\Download\Jetty\Jetty-4.0.1RC0"
-Djetty.log="D:\Download
\Jetty\Jetty-4.0.1RC0\logs" -Djetty.port=8080
ARGS=etc\dave.xml
RUNME="C:\jdk1.3\bin\java" -cp
"D:\Download\Jetty\Jetty-4.0.1RC0\webapps\axis\WE
B-INF\lib\xerces.jar;D:\Download\Jetty\Jetty-4.0.1RC0\webapps\axis\WEB-INF\lib\a
xis.jar;D:\Download\Jetty\Jetty-4.0.1RC0\webapps\axis\WEB-INF\lib\commons-loggin
g.jar;D:\Download\Jetty\Jetty-4.0.1RC0\webapps\axis\WEB-INF\lib\log4j-core.jar;D
:\Download\Jetty\Jetty-4.0.1RC0\webapps\axis\WEB-INF\lib\tt-bytecode.jar;D:\Down
load\Jetty\Jetty-4.0.1RC0\webapps\axis\WEB-INF\lib\jaxrpc.jar;D:\Download\Jetty\
Jetty-4.0.1RC0\lib\javax.servlet.jar;D:\Download\Jetty\Jetty-4.0.1RC0\lib\javax.
servlet.jar;D:\Download\Jetty\Jetty-4.0.1RC0\lib\org.mortbay.jetty.jar;D:\Downlo
ad\Jetty\Jetty-4.0.1RC0\lib\javax.xml.jaxp.jar;D:\Download\Jetty\Jetty-4.0.1RC0\
lib\org.apache.crimson.jar;D:\Download\Jetty\Jetty-4.0.1RC0\lib\org.apache.jaspe
r.jar;D:\Download\Jetty\Jetty-4.0.1RC0\lib\com.sun.net.ssl.jar;C:\jdk1.3\lib\too
ls.jar"
-Djetty.home="D:\Download\Jetty\Jetty-4.0.1RC0"
-Djetty.log="D:\Download
\Jetty\Jetty-4.0.1RC0\logs" -Djetty.port=8080
org.mortbay.jetty.Server etc\dave.
xml

11:22:37.979 EVENT  Checking Resource aliases
11:22:38.810 EVENT  Web Application
WebApplicationContext[/,./webapps/axis] adde
d
11:22:38.820 EVENT  Starting Jetty/4.0.1
11:22:38.830 EVENT  Started
org.mortbay.http.NCSARequestLog@5e3974
11:22:39.221 EVENT  Started SecurityHandler in
WebApplicationContext[/,Apache-Ax
is]
11:22:39.221 EVENT  Started WebInfProtect
11:22:39.221 EVENT  Started FilterHandler in
WebApplicationContext[/,Apache-Axis
]
11:22:39.221 EVENT  New random session seed
11:22:39.221 EVENT  Started ServletHandler in
WebApplicationContext[/,Apache-Axi
s]
11:22:39.231 EVENT  ResourceHandler started in
file:/D:/Download/Jetty/Jetty-4.0
.1RC0/webapps/axis/
11:22:39.231 EVENT  Started ResourceHandler in
WebApplicationContext[/,Apache-Ax
is]
11:22:39.231 EVENT  Started NotFoundHandler in
WebApplicationContext[/,Apache-Ax
is]
11:22:39.261 EVENT  Session scavenger period = 30s
11:22:39.471 EVENT  JSP: init
11:22:39.491 EVENT  Created temp dir
C:\TEMP\Jetty__8080___ for WebApplicationCo
ntext[/,Apache-Axis]
11:22:40.332 EVENT  AdminServlet: init
11:22:40.362 EVENT  Started SocketListener on
0.0.0.0:8080
11:22:40.362 EVENT  Started
org.mortbay.jetty.Server@2f0db

7) I have also include both dave.xml (which is
jetty.xml)
and web.xml.

Thanks so much for your help

David


--- Kenneth Bowen <[EMAIL PROTECTED]> wrote:
>     David> What web server and servlet application
> does Axis
>     David> support?
> 
>     David> Does it support Jetty?  
> 
> I alternate between Jetty and JBoss with integrated
> Tomcat. Both are working
> fine. I war up the axis webapp, place it in
> jetty_root/webapps/, and start
> jetty with jetty_root/etc/jetty.xml. Try to hit the
> service with a browser to
> see if you've deployed correctly.
> 
> Kenneth
> 
> -- 
> Kenneth Bowen    [EMAIL PROTECTED]
> Software Engineering/Technology Advancement Group


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
<?xml version="1.0"  encoding="ISO-8859-1"?> 
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd";>

<Configure class="org.mortbay.jetty.Server">

  <!-- =============================================================== -->
  <!-- Add and configure a listener to port 8080                       -->
  <!-- The default port can be changed using: java -Djetty.port=80     -->
  <!-- _______________________________________________________________ -->
  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketListener">
        <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
        <Set name="MinThreads">5</Set>
        <Set name="MaxThreads">255</Set>
        <Set name="MaxIdleTimeMs">30000</Set>
        <Set name="MaxReadTimeMs">10000</Set>
        <Set name="MaxStopTimeMs">5000</Set>
        <Set name="LowResourcePersistTimeMs">5000</Set>
      </New>
    </Arg>
  </Call>
  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg>./webapps/axis</Arg>
  </Call>
  
  <!-- =============================================================== -->
  <!-- Add a single web application                                    -->
  <!-- _______________________________________________________________ -->
  <!-- Remove this comment to activate this section
  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg>./webapps/root</Arg>
    <Set name="extractWAR">false</Set>
  </Call>
  -->

  <!-- =============================================================== -->
  <!-- Add a single web application using java properties and defaults -->
  <!-- The webapplication deployed can use defaults or be configured   -->
  <!-- with:  java -Djetty.context=/context -Djetty.webapp=mywebapp    -->
  <!-- _______________________________________________________________ -->
  <!-- Remove this comment to activate this section
  <Call name="addWebApplication">
    <Arg><SystemProperty name="jetty.context" default="/"/></Arg>
    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/<SystemProperty name="jetty.webapp" default="root"/></Arg>
    <Set name="extractWAR">false</Set>
  </Call>
  -->


  <!-- =============================================================== -->
  <!-- Add a all web application within the webapps directory          -->
  <!-- _______________________________________________________________ -->
  <!-- Remove this comment to activate this section
  <Call name="addWebApplications">
    <Arg></Arg>
    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/</Arg>
    <Arg type="boolean">true</Arg>
  </Call>
  -->

  <!-- =============================================================== -->
  <!-- Add an extended NCSA request log                                -->
  <!-- _______________________________________________________________ -->
  <Set name="RequestLog">
    <New class="org.mortbay.http.NCSARequestLog">
      <Arg><SystemProperty name="jetty.log" default="./logs"/>/yyyy_mm_dd.request.log</Arg>
    </New>
  </Set>

</Configure>









<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>

<web-app>
  <display-name>Apache-Axis</display-name>
  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>
        org.apache.axis.transport.http.AxisServlet
    </servlet-class>
  </servlet>

  <servlet>
    <servlet-name>AdminServlet</servlet-name>
    <display-name>Axis Admin Servlet</display-name>
    <servlet-class>
        org.apache.axis.transport.http.AdminServlet
    </servlet-class>
    <load-on-startup>100</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/servlet/AxisServlet</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>*.jws</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>AdminServlet</servlet-name>
    <url-pattern>/servlet/AdminServlet</url-pattern>
  </servlet-mapping>

  <welcome-file-list id="WelcomeFileList_1">
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>

</web-app>

Reply via email to