the other option, which is very similar to mike's suggestion of a common class directory is to deploy axis to the entire app server - aka put the axis jars into the common area, allowing each web context the ability to also deploy services. (not that i've verified that this will work... i'm guessing you'd need to figure out where exactly the server-config.wsdd would need to go, and all that...)
i think the best answer is to deploy axis as part of your context, and then if you need to implement newer axis changes you can w/o causing disruption to any other context. plus then you can deploy it as a single WAR or EAR. -----Original Message----- From: Adam.Leggett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 9:07 AM To: '[EMAIL PROTECTED]' Subject: RE: why have to copy .class files of existing webapp into Axisweb -inf folder?? Mike, >You can also create a directory on your Tomcat server that holds the >webapp component classes containing the methods you want to call, then >modify your classpath for both webapps to point to the "shared" >components directory. True, but that would make your webapp container specific. Its not an option for me as i need to distribute/deploy my apps as WAR's. Adam -----Original Message----- From: Adam Leggett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 4:24 AM To: [EMAIL PROTECTED] Subject: Re: why have to copy .class files of existing webapp into Axisweb-inf folder?? Alex, Simply put the axis runtime in your own webapp, i.e the required jars, config etc. Axis can happily co-exist as a subcomponent within your application. Adam On Wed, 2002-11-27 at 08:41, Alex Bates wrote: > Hi, > > I have an existing webapp running on Tomcat. I want to expose some > methods in this webapp as Axis web services. Axis is a separate > webapp > - the examples I've seen so far have had to copy .class or .jar files > into the Axis WEB-INF\classes directory. > > But this approach doesn't seem reasonable, it would lead to versioning > issues (i.e. how often to copy from > "tomcat\webapps\MyWebApp\WEB-INF\classes" to > "tomcat\webapps\axis\WEB-INF\classes" to keep the two versions in sync > ). > > What I'm looking for is something similar to the ability to expose > existing COM components as web services with Microsoft's WSTK; but > instead of COM components they're Java components running in a webapp. > > I tried simply creating a WSDD for my existing app and not copying the > .class and .jar files into the axis\WEB-INF directory, and got the > following exeption: > > > Fault - org.apache.axis.ConfigurationException: Could not find class > for the service named: com.mycompany.myservice > Hint: you may need to copy your class files/tree into the right > location (which depends on the servlet system you are using). > AxisFault > faultCode: {http://xml.apache.org/axis/}Server.generalException > faultString: Could not find class for the service named: > com.mycompany.myservice > Hint: you may need to copy your class files/tree into the right location > (which depends on the servlet system you are using). > faultActor: null > faultDetail: > > > > Thanks in advance - > > Alex > (please cc: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> ) > -- ==================================== Adam Leggett ([EMAIL PROTECTED]) Applications Solution Provider UPCO http://www.upco.co.uk Office : +44 113 201 0600 Direct Line: +44 113 201 0631 Fax : +44 113 201 0666 Marshall Mill, Marshall Street, Leeds LS11 9YJ ==================================== The contents of this e-mail are intended for the named addressees and may contain confidential and/or priviledged material. If received in error, please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated.
