[JBossWS] - Endpoint Operation metadata error
by Duffcase
Hi.
I'm gettng this when trying to consume a webservice. Anyone know what it is?
| 10:06:10,810 ERROR [SOAPFaultExceptionHelper] SOAP request exception
| javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://typo.no/trim/ws/}MainControllerInterfacePort does not contain operation meta data for: {http://typo.no/trim/ws/types}checkUserAccessLogin
| at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
| at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
| at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971873#3971873
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971873
19 years, 7 months
[JBoss Seam] - Re: Step-by-step localization guide
by nhpvti
"nhpvti" wrote :
| I've tried custom navigation handler for adding language suffix at the end of an action, for example: register_en, register_de
|
My custom view handler works seamless with JSF navigation and Seam pageflow and forces templates names in the form of name_loc.xhtml, for example register_en.xhtml, register_de.xhtml Etc.
Hope that this won't cause any complications in future versions of Faces or Seam.
Here the details:
1) In faces-config.xml (for example):
<application>
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| <view-handler>com.mycompany.util.LocaleViewHandler</view-handler>
| <message-bundle>messages</message-bundle>
| <locale-config>
| <default-locale>en</default-locale>
| <supported-locale>en</supported-locale>
| <supported-locale>de</supported-locale>
| <supported-locale>ru</supported-locale>
| </locale-config>
| </application>
2) Implement LocaleViewHandler class (some additional methods have to be implemented, but they should simply wrap the base class functionality)
import javax.faces.application.ViewHandler;
| ...
| public class LocaleViewHandler extends ViewHandler
| {
| private ViewHandler base;
| private static final String separator = "_";
| private static final String actionExtension = ".seam";
|
| public LocaleViewHandler(ViewHandler base)
| {
| super();
| this.base = base;
| }
|
| public String getActionURL(FacesContext context, String viewId)
| {
| StringBuilder newActionURL = null;
| String actionURL = this.base.getActionURL(context, viewId);
| StringBuilder localeSuffix = new StringBuilder(separator);
| localeSuffix.append(LocaleSelector.instance().getLocaleString());
| StringBuilder localizedEnd = new StringBuilder(localeSuffix);
| localizedEnd.append(actionExtension);
| int pointPosition = actionURL.indexOf(actionExtension);
| if (pointPosition != -1 && actionURL.indexOf(localizedEnd.toString()) == -1)
| {
| newActionURL = new StringBuilder(actionURL.substring(0, pointPosition));
| newActionURL.append(localizedEnd);
| return newActionURL.toString();
| } else
| {
| return actionURL;
| }
| }
| ...
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971869#3971869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971869
19 years, 7 months