You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Martin Smith <mf...@erols.com> on 2002/12/31 06:46:06 UTC
Deploy problem
I've written a trivial java class and it works OK with the jws
deployment method.
However, I can't get it successfully deployed via wsdd. I get no error
during deployment, but when I try to get the wsdl I get a nullpointer
exception. And when I try to access it with a simple client, I also get
a nullpointer. Neither stack trace is enlightening to me.
I see nothing wrong with the server-config.wsdd (below.) When I browse
to the installed service list, my service (WPService) shows up (however,
I can't get the wsdl, as I said); but the "Version" built-in service
does not show up until I undeploy my service!.
I'm using JDK 1.3.0, WinXP, and Tomcat 4.0.1 with the Axis Oct 7, 2002
v. 1.0 release.
Suggestions?
TIA,
Martin
PS--Is the wsdd class name defined relative to the app root (axis) or
the axix/WEB-INF/classes directory? All the examples seem to have
identical class files in both places, so it's hard to tell for sure . .
. I assume both class files are not actually required?
==== server-config.wsdd
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.Directory" value="C:\DadsOldDell\Program
Files\Apache Tomcat 4.0\webapps\axis\WEB-INF\attachments"/>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="attachments.implementation"
value="org.apache.axis.attachments.AttachmentsImpl"/>
<parameter name="sendXMLDeclaration" value="true"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="RPCDispatcher"
type="java:org.apache.axis.providers.java.RPCProvider"/>
<handler name="MsgDispatcher"
type="java:org.apache.axis.providers.java.MsgProvider"/>
<service name="AdminService" provider="java:MSG">
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="WPService" provider="java:RPC">
<parameter name="allowedMethods" value="searchName"/>
<parameter name="className" value="wpws1"/>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
</transport>
<transport name="local">
<responseFlow>
<handler type="java:org.apache.axis.transport.local.LocalResponder"/>
</responseFlow>
</transport>
</deployment>