Hi

It(SAXParser exception) sounds like something wrong with the xml file.
am not sure anyway if you have some xml editor try to validate it. It
seems ok for me.

if get other services fine i belive you cn forget this one. If not get
Axis user guide and go through it.

I answer since no body ansers for some time. Hope this will help.
regards 

Srianth

 


On Mon, 2003-07-07 at 14:42, Yu Baofeng wrote:
> 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