You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Jeremiah Johnson (JIRA)" <be...@incubator.apache.org> on 2005/06/16 22:12:46 UTC
[jira] Closed: (BEEHIVE-808) wsm doesn't implement the JSR 181 handler configuration file XSD
[ http://issues.apache.org/jira/browse/BEEHIVE-808?page=all ]
Jeremiah Johnson closed BEEHIVE-808:
------------------------------------
Verified in dist build from SVN 190981.
If I use a good handler config, then my handlers work as expected. If I use a handler config that fails validation, then I can't build the Web service. This is as expected.
Here is the validation error I get in a test case that forgets to use the j2ee namespace in the handler class and parameters:
[apt] Note: processing service implementation bean: web.BadHandlerConfigWS [apt] /home/jjohnson/projects/beehive_projects/BEEHIVE-808/WEB-INF/src-bad-ws/web/BadHandlerConfigWS.java:26: Exception occurred checking type "web.BadHandlerConfigWS". Cause: org.apache.beehive.wsm.exception.IllegalHandlerConfigException: Error parsing @HandlerChain definition. /home/jjohnson/projects/beehive_projects/BEEHIVE-808/WEB-INF/src-bad-ws/web/config/BadProjectHandlers.xml:0: error: cvc-complex-type.2.4a: Expected element 'handler-name@http://java.sun.com/xml/ns/j2ee' instead of 'handler-name@http://www.bea.com/xml/ns/jws' here in element handler@http://www.bea.com/xml/ns/jws
Here is a copy of a good handler config I used:
<handler-config xmlns="http://www.bea.com/xml/ns/jws"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
<handler-chain>
<handler-chain-name>StandardHandlerChain</handler-chain-name>
<handler>
<j2ee:handler-name>handler.LogHandler</j2ee:handler-name>
<j2ee:handler-class>handler.LogHandler</j2ee:handler-class>
<j2ee:init-param>
<j2ee:param-name>logCategory</j2ee:param-name>
<j2ee:param-value>MyService</j2ee:param-value>
</j2ee:init-param>
</handler>
</handler-chain>
</handler-config>
> wsm doesn't implement the JSR 181 handler configuration file XSD
> ----------------------------------------------------------------
>
> Key: BEEHIVE-808
> URL: http://issues.apache.org/jira/browse/BEEHIVE-808
> Project: Beehive
> Type: Improvement
> Reporter: Eddie O'Neil
> Assignee: Eddie O'Neil
> Attachments: BEEHIVE-808.tar
>
> In section 5.6.3 and Appendix B of the JSR 181 spec, a JSR-specific XSD is described for configuring handler chains. This XSD is required by the spec, but it is currently unimplemented and unvalidated.
> Beehive WSM needs to implement this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira