Thanks Isuru. When I specify packaging=jar in maven, it produces an empty jar with no lib directory and no dependencies. How to produce a loadable jar, with lib folder and the required dependencies much as AAR produces?
Also my sources have @WebService annotations. Is that sufficient to have an "annotated jar"? Does "annotated" refer to the sources or to the jar? If the jar, how to produce an "annotated" one? On Fri, May 6, 2011 at 10:39 AM, Isuru Suriarachchi <[email protected]> wrote: > Hi Brad, > > If you want to deploy a JAX-WS service in WSAS, you just have to write your > annotated java classes and compile it and package it as a .jar file. Then > upload it using the JAX-WS service upload option provided in the WSAS UI. > You can't use .aar archives for JAX-WS services. > > Using the WSDL2Java tool in CXF to generate your JAX-WS annotated classes > is not a problem to deploy them in WSAS. Those are standard JAX-WS > annotations. > > If you are using a previously released version of WSAS, you have to copy > jaxws-rt and jaxws-tools jars into > CARBON_HOME/repository/components/extensions directory. Read the "Help" in > JAX-WS page for more details on that. If you have external libraries on > which your services depend on, include those in a "lib" folder inside your > .jar archive. > > For more information, refer [1]. > > Thanks, > ~Isuru > > [1] > http://wso2.org/library/articles/jax-ws-service-development-wso2-wsas-part1 > > On Fri, May 6, 2011 at 7:40 PM, Brad Cox <[email protected]> wrote: > >> We're trying to switch from using Axis2 wsdl2java to ApacheCXF and having >> problems I hope you can help with. >> >> First, should I continue to build Axis AAR files and load them via WSAS >> console? It seems to build the right structure (libraries in lib) but loads >> fail with unable to find org/apache/geronimo/osgi/locator/ProviderLocator. >> Adding geronimo-jaxws_2.2_spec and geronimo-osgi-locator to the AAR builder >> pom doesn't help. >> >> Is AAR still the right approach? I tried the JAX-WS option but that >> insists on an "annotated jar". I've not found a way to produce such an AAR >> with maven. The closest I've found expands all the jars into the jar root >> rather than putting them into a lib folder, and the loader complains its >> unable to find any annotations. >> >> Is AAR still viable? I saw words to the effect that AAR format is not >> supported for JAX-WS files but it didn't describe what is supported. >> >> Also the web console refuses to delete failed attempts. That is, you can >> select a failed AAR in faulty_services.jsp and click delete but its still >> there when the screen refreshes. For all I know, >> the bad AAR is what's blocking new ones; there's no way to tell. >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > Isuru Suriarachchi > Technical Lead & Product Manager, WSO2 Application Server > WSO2 Inc. http://wso2.com > email : [email protected] > blog : http://isurues.wordpress.com/ > > lean . enterprise . middleware > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Cell: 703-594-1883 Blog: http://bradjcox.blogspot.com Web: http://virtualschool.edu Manassas VA 20111
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
