[
https://issues.apache.org/jira/browse/AXIS2-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil Thaker closed AXIS2-4884.
--------------------------------
> @PostConstruct on nonpublic methods not working
> -----------------------------------------------
>
> Key: AXIS2-4884
> URL: https://issues.apache.org/jira/browse/AXIS2-4884
> Project: Axis2
> Issue Type: Bug
> Components: jaxws
> Reporter: Nikhil Thaker
> Assignee: Nikhil Thaker
> Attachments: patch.txt
>
>
> As per the JSR 250 specification the @PostConstruct annotation can be used on
> methods encapsulated with private, public, default or protected. Currently in
> JAX-WS code we are only able to invoke methods with @PostConstruct
> annotations that are public, the invocation on method with any other
> encapsulation fails with following exception:
> Caused by: javax.xml.ws.WebServiceException:
> org.apache.axis2.jaxws.lifecycle.LifecycleException:
> java.lang.IllegalAccessException: Class
> org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager$1 can not access a
> member of class jcdi.server2.InjCheck with modifiers ""
> at
> org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
> at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
> at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
> at
> org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:312)
> at
> org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:103)
> at
> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161)
> I am providing a fix for this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]