ok... If you use third party libs... I guess you have to deploy them as well... ;-)
sorry for bothering you all, Regards, Matthias > -----Original Message----- > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 7:01 PM > To: [EMAIL PROTECTED] > Subject: static constructor > > > hi all, > > I am playing with WebServices in Axis. > I have developed some plain old java clazzes and used them > successfully. however, now I have a problem. > > my class generates no WSDL, if I use a static constructor... > > here the class: > <clazz> > package de.w3l.webservice; > > import java.util.Vector; > > > /** > * @author Matthias We�endorf > */ > public class GlossarbegriffService { > > //is in package de.w3l.webservice > private static SuchBeanGlossar sb = null; > > static { > sb = new SuchBeanGlossar(); > } > > /*public GlossarbegriffService(){ > sb = new SuchBeanGlossar(); > }*/ > > public Vector sucheBegriffe(){ > Vector ve = new Vector(); > ve.add("html*"); > return sb.getSuchergebnis(ve); > } > > } > </class> > > > and here deploymentfile > <wsdd> > <deployment xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > <service name="GlossarbegriffService" provider="java:RPC"> > <parameter name="className" > value="de.w3l.webservice.GlossarbegriffService"/> > <parameter name="allowedMethods" value="sucheBegriffe"/> > </service> > </deployment> > </wsdd> > > If I use the *object constructor* all works fine... > Is it not posible to use static constructor inside of Axis? > Or do I have a silly error in it, which I didn't see right now...? > > > Thanks for any advice. > > Regards, > Matthias > -- > Matthias We�endorf > Aechterhoek 18 > DE-48282 Emsdetten > Germany > Email: matthias AT wessendorf DOT net > URL: http://www.wessendorf.net >
