And I go even further with my claims!

 

where is it stated that JAXWS examples only run with JDK1.7.0 installed?

where is it stated that Axis2-1.6.1 is built and is tested by using some
clever maven endorsements to JDK1.7.0 routines?

where is it said that any JAXWS annotation such as @Requestwrapper or
@Responswrapper will lead to run time errors if Axis2-1.6.1 runs on
JDK-1.6.0 (see install requirements)

 

That is to say, you can use Axis2-1.6.1 on JDK 1.5 or JDK 1.6 

but if you have any form of JAXWS annotations such as @Requestwrapper or
@Responswrapper or @Addressing

code is triggered in Axis2 which demands JDK 1.7.0 ... the axis2 system
is just unable to deploy such services.

   private void
attachRequestWrapperAnnotation(MethodDescriptionComposite mdc, Method

            method) {

        RequestWrapper requestWrapper =
(RequestWrapper)ConverterUtils.getAnnotation(

                RequestWrapper.class, method);

        if (requestWrapper != null) {

            RequestWrapperAnnot rwAnnot =
RequestWrapperAnnot.createRequestWrapperAnnotImpl();

            rwAnnot.setClassName(requestWrapper.className());

            rwAnnot.setLocalName(requestWrapper.localName());

 
rwAnnot.setTargetNamespace(requestWrapper.targetNamespace());

            rwAnnot.setPartName(requestWrapper.partName());

            mdc.setRequestWrapperAnnot(rwAnnot);

        }

 

Under this circumstances ---- Axis2.1.6.1 needs really JDK 1.7.0 to run
--- as a dependency --- but where is that said in the release notes?

 

Clearly speaking, look at 

http://axis.apache.org/axis2/java/core/docs/installationguide.html#requi
rements

and then tell me why we say it runs on JDK 1.5 but as soon as I touch
some JAXWS samples in the same kit 

I will only have troubles because the same axis2-1.6.1 will only run
without Run Time errors on a JDK 1.7.0 machine. (reasons above)

 

Not very JAXWS beginner friendly!!!

 

Unless JDK 1.7.0 becomes available on OpenVMS (which is an HP issue) I
can give up using any form of annotations.

 

Josef

 

111852 [Timer-4] INFO  org.apache.axis2.jaxws.framework.JAXWSDeployer  -
Deploying artifact : C:\Program Files\Apache Software Foundation\Apache
Tomcat
6.0.26\webapps\axis2\WEB-INF\servicejars\jaxws-calculator-1.6.1.jar

111883 [Timer-4] INFO  org.apache.axis2.jaxws.framework.JAXWSDeployer  -
Exception creating Axis Service : null

java.lang.NoSuchMethodError:
javax.xml.ws.RequestWrapper.partName()Ljava/lang/String;

            at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.attachRequestWrapperAnnotation(JavaMethodsToMDCConverter.java:203
)

            at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.convertMethods(JavaMethodsToMDCConverter.java:85)

            at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.introspectClass(JavaClassToDBCConverter.java:193)

            at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.buildDBC(JavaClassToDBCConverter.java:141)

            at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.produceDBC(JavaClassToDBCConverter.java:120)

            at
org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createSer
viceDescription(DescriptionFactoryImpl.java:215)

            at
org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(
DescriptionFactory.java:564)

            at
org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDe
ployer.java:257)

            at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeploy
er.java:208)

            at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deploy(JAXWSDeployer.java
:162)

            at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
ploymentFileData.java:136)

            at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:813)

            at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
.java:144)

            at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
.java:370)

            at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:254)

            at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL
istener.java:364)

            at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sche
dulerTask.java:73)

            at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja
va:94)

            at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S
cheduler.java:93)

            at java.util.TimerThread.mainLoop(Timer.java:512)

            at java.util.TimerThread.run(Timer.java:462)

112024 [Timer-4] ERROR org.apache.axis2.jaxws.framework.JAXWSDeployer  -
Error:

No @WebService annotated service implementations found in the jar:
file:/C:/Program Files/Apache Software Foundation/Apache Tomcat
6.0.26/webapps/axis2/WEB-INF/servicejars/jaxws-calculator-1.6.1.jar.
Service deployment failed.

 

 

Von: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Gesendet: Freitag, 20. April 2012 10:18
An: java-user@axis.apache.org
Betreff: Re: [axis2] and
http://integ2:8080/axis2/axis2-admin/listService

 

 

On Thu, Apr 19, 2012 at 8:23 PM, Stadelmann Josef
<josef.stadelm...@axa-winterthur.ch> wrote:

Thank you very much Sagara

 

my fault, if I would have checked the tomcat output log more carefull I
would have found the following

 

2012-04-19 17:45:35,390 INFO
org.apache.axis2.jaxws.framework.JAXWSDeployer - Deploying artifact :
/disk$oracle2/apache/jakarta/tomcat/webapps/axis2/WEB-INF/servicejars/ja
xws-calculator-1.6.1.jar

2012-04-19 17:45:35,650 INFO
org.apache.axis2.jaxws.framework.JAXWSDeployer - Exception creating Axis
Service : null java.lang.NoSuchMethodError:
javax.xml.ws.RequestWrapper.partName()Ljava/lang/String;

 

So the service is now deployed on a PC with JDK 7.0 installed and there
is shows up!

 

BUT - for me this is a pain now -

I short - this service is a no go for OpenVMS 8.4 on ITANIUM, with JDK
6.0 from HP, 

running TOMCAT from HP on JDK 6.0, running APACHE AXIS2 built on a JDK
6.0 Machine using Maven 3.0 on that TOMCAT Application Server.

 

It is a no go because    javax.xml.ws.RequestWrapper.partName()    is a
method not available with JDK 6.0 but only with JDK 7.0 which is not
available from HP


  Here you have to use java endorsed mechanism which I mentioned in one
of my previous mail to get rid of those version incompatibility issues. 

  Thanks ! 

         

        Thanks again.

        Josef

         

         

         

         

         

         

         

         

        Von: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
        Gesendet: Donnerstag, 19. April 2012 15:40
        An: java-user@axis.apache.org
        Cc: axis-u...@ws.apache.org
        Betreff: Re: [axis2] and
http://integ2:8080/axis2/axis2-admin/listService

         

         

        On Thu, Apr 19, 2012 at 6:34 PM, Stadelmann Josef
<josef.stadelm...@axa-winterthur.ch> wrote:

        Since we got JAXWS, 

        web services based on annotations, are

        maven built into ./target/jaxws-calculator.jar then

        deployed into %AS%/webapps/axis2/WEB-INF/servicejars

        where as the AS (Tomcat) output shows that the web service has
been deployed

        i.e.

        Apr 19, 2012 2:25:22 PM
org.apache.catalina.core.ApplicationContext log

        INFO: HTMLManager: list: Listing contexts for virtual host
'localhost'

        1973775 [Timer-4] INFO
org.apache.axis2.jaxws.framework.JAXWSDeployer  - Undeploying Web
service: jaxws-calculator-1.6.1.jar

        1973775 [Timer-4] INFO
org.apache.axis2.jaxws.framework.JAXWSDeployer  - Deploying artifact :
C:\Program Files\Apache Software Foundation\Apache Tomcat
6.0.26\webapps\axis2\WEB-INF\servicejars\jaxws-calculator-1.6.1.jar

        1974929 [Timer-4] INFO
org.apache.axis2.jaxws.framework.JAXWSDeployer  - Deploying JAXWS
annotated class org.apache.axis2.jaxws.calculator.CalculatorService as a
service - CalculatorService

         

        I wonder why this servicejars services are not shown by the 

        http://localhost:8080/axis2/axis2-admin/listService
<http://localhost:8080/axis2/axis2-admin/listService>  

        web page.

        Is that by intention, is it a bug demanding a JIRA or is this
just a short comming on the product axis2, as such on my whish list?

        Instead of above reasons this is a issue within your setup.
Above page list out JAX-WS services properly to me I can use following
two URL to reach service listing. 
        
        1. http://localhost:8080/axis2/services/listServices
        2. http://localhost:8080/axis2/axis2-admin/listService
        
        Thanks ! 
          

                Regards

                Josef

        
        
        
        -- 
        Sagara Gunathunga
        
        Blog      - http://ssagara.blogspot.com
        Web      - http://people.apache.org/~sagara/
<http://people.apache.org/%7Esagara/> 
        LinkedIn - http://www.linkedin.com/in/ssagara




-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
<http://people.apache.org/%7Esagara/> 
LinkedIn - http://www.linkedin.com/in/ssagara

Reply via email to