Hi Yu

Sometimes what happens is that there is some control character at the end of
the file
and then i prevents it from getting parsed properly. My suggestion will be
to copy the text
that you attached in the mail and save it as a file.

Then validate it with some XML editor and then try to deploy it again.

Akhil

----- Original Message -----
From: "Yu Baofeng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 9:42 AM
Subject: examples stock doesn't work


> Hi, Everyone,
>
>      I download axis 1.1 and install axis and tomcat 5.0, I test axis
> using http://localhost:8080/axis, it's fine.
>      When I deploy example stock, it throw a exception:
>
>    set TOMCAT_HOME=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0
>    set TOMCAT_LIB=%TOMCAT_HOME%\common\lib
>    set AXIS_HOME=%TOMCAT_HOME%\webapps\axis
>    set AXIS_LIB=%AXIS_HOME%\WEB-INF\lib
>    set
> AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS
> _LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXI
> S_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
>     java -cp "%AXISCLASSPATH%" org.apache.axis.client.AdminClient
> deploy.wsdd
>     >>Processing file deploy.wsdd
>     >>Exception:: org.xml.sax.SAXParseException: Premature end of file.
>
>    deploy.wsdd file is as below:
>
> <!-- Use this file to deploy some handlers/chains and services      -->
> <!-- Two ways to do this:                                           -->
> <!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
> <!--      after the axis server is running                          -->
> <!-- or                                                             -->
> <!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
> <!--      from the same directory that the Axis engine runs         -->
>
> <deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/";
>     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>
>   <service name="urn:xmltoday-delayed-quotes" provider="java:RPC">
>     <parameter name="className"
> value="samples.stock.StockQuoteService"/>
>     <parameter name="allowedMethods" value="getQuote test"/>
>     <parameter name="allowedRoles" value="user1,user2"/>
>     <parameter name="wsdlServicePort" value="GetQuote"/>
>
>     <requestFlow name="checks">
>       <handler
> type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
>       <handler
> type="java:org.apache.axis.handlers.SimpleAuthorizationHandler"/>
>     </requestFlow>
>   </service>
>
>   <service name="urn:cominfo" provider="java:RPC">
>     <parameter name="className" value="samples.stock.ComInfoService" />
>     <parameter name="allowedMethods" value="getInfo" />
>     <parameter name="allowedRoles" value="user3"/>
>     <requestFlow type="checks"/>
>   </service>
>
> </deployment>
>
>
>     what 's wrong with the deploy? I expect your answer!
>
>     thanks
>
>
>    Yu Baofeng
>
>
>
>

Reply via email to