RE: [flexcoders] Re: RemoteObject connections over HTTPS fails..
During server startup, the MessageBrokerServlet should be initialized and you could enabled Debug level logging in your services-config.xml to verify. Once the web app is running, before making any requests for a *.mxml file, try making a request to one of your endpoints directly; start with a channel endpoint URL from your services-config.xml file, replace any tokens (i.e. {server.name}) with actual values, and request it directly in a browser. You should get back an empty 200 OK. Once you have that working, then proceed with further debugging of the FlexMxmlServlet. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sk_acura Sent: Thursday, May 22, 2008 6:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RemoteObject connections over HTTPS fails.. Hi Seth, Till now we have used Flex SDK2.0.1. And we are now trying to migrate to Flex SDK3.0.0. ( As we were having issues in enabling access to our app on https and also we would like to use new features in Flex 3 like ADG). We have tried the Flex3 SDK Version (3.0.0.447) with BlazeDS 3.0.0.544) and here is the web.xml we have got.. [CODE] web-app display-nameDPA UI/display-name descriptionDPA UI Web Application/description listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class /listener context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/classes/propfileConfig.xml /WEB-INF/classes/dpaApplicationContext.xml /WEB-INF/classes/dpaCommonBeansContext.xml classpath:/applicationConfig.xml /param-value /context-param context-param param-nameflex.class.path/param-name param-value /WEB-INF/flex/hotfixes,/WEB-INF/flex/jars /param-value /context-param listener listener-classflex.messaging.HttpFlexSession/listener-class /listener servlet servlet-nameMessageBrokerServlet/servlet-name display-nameMessageBrokerServlet/display-name servlet-class flex.messaging.MessageBrokerServlet /servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet servlet servlet-namePDFResourceServlet/servlet-name display-name Helper for retrieving dynamically generated PDF documents. /display-name servlet-class flex.samples.pdfgen.PDFResourceServlet /servlet-class /servlet servlet servlet-nameFlexMxmlServlet/servlet-name display-nameMXML Processor/display-name descriptionServlet wrapper for the Mxml Compiler/description servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-value flex.webtier.server.j2ee.MxmlServlet /param-value /init-param init-param param-namewebtier.configuration.file/param-name param-value /WEB-INF/flex/flex-webtier-config.xml /param-value /init-param load-on-startup1/load-on-startup /servlet servlet servlet-nameFlexSwfServlet/servlet-name display-nameSWF Retriever/display-name servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-value flex.webtier.server.j2ee.SwfServlet /param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-nameFlexForbiddenServlet/servlet-name display-namePrevents access to *.as/*.swc files/display-name servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-value flex.webtier.server.j2ee.ForbiddenServlet /param-value /init-param /servlet servlet servlet-nameFlexInternalServlet/servlet-name servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-value flex.webtier.server.j2ee.filemanager.FileManagerServlet /param-value /init-param load-on-startup10/load-on-startup /servlet servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping servlet-mapping servlet-namePDFResourceServlet/servlet-name url-pattern/dynamic-pdf/*/url-pattern /servlet-mapping servlet-mapping servlet-nameFlexMxmlServlet/servlet-name url-pattern*.mxml/url-pattern /servlet-mapping servlet-mapping servlet-nameFlexSwfServlet/servlet-name url-pattern*.swf/url-pattern /servlet-mapping servlet-mapping servlet-nameFlexForbiddenServlet/servlet-name url-pattern*.as/url-pattern /servlet-mapping servlet-mapping servlet-nameFlexForbiddenServlet/servlet-name url-pattern*.swc/url-pattern /servlet-mapping servlet-mapping servlet-nameFlexInternalServlet/servlet-name url-pattern/flex-internal/*/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app [/CODE] i have downloaded the Flex_j2EE module from the Link http://flexorg.wip3.adobe.com/modules/FlexModule_j2ee.zip and copied the JARS to /WEB-INF/lib When i checked the web.xml that is in the
RE: [flexcoders] Re: RemoteObject connections over HTTPS fails..
What version of the product are you using? Based on that stack trace, it looks like your FlexMxmlServlet is attempting to load and init a MessageBrokerServlet. That seems odd. How do you have these servlets configured in web.xml? Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sk_acura Sent: Wednesday, May 21, 2008 3:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RemoteObject connections over HTTPS fails.. Hi, First of all thanks so much for your response.. I tried chaning my secure channel defintion as you suggested and now i am getting the following Error in the log.. [ERROR] flex.messaging.config.ConfigurationException: Invalid channel endpoint class 'flex.messaging.endpoints.AMFEndpoint' specified for 'channel-secure-amf'. INFO: FlexMxmlServlet: Adobe Flex Web Tier Compiler Build: 155539 May 21, 2008 6:16:59 PM org.apache.catalina.core.ApplicationContext log SEVERE: StandardWrapper.Throwable flex.messaging.config.ConfigurationException: Invalid channel endpoint class 'flex.messaging.endpoints.AMFEndpoint' specified for 'channel-secure-amf'. at flex.messaging.config.MessagingConfiguration.createEndpoints(MessagingConfiguration.java:141) at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java:82) at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:619) May 21, 2008 6:16:59 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet MessageBrokerServlet flex.messaging.config.ConfigurationException: Invalid channel endpoint class 'flex.messaging.endpoints.AMFEndpoint' specified for 'channel-secure-amf'. at flex.messaging.config.MessagingConfiguration.createEndpoints(MessagingConfiguration.java:141) at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java:82) at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:619) [/ERROR] Here is the channel Def.. [CODE] channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/amf; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition [/CODE] I tried even copying the Flex3 SDK Jars and the Jars from BalzeDS (3.0.544) build with no luck.. Thanks Mars --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: If you have a proxy between the client and server that rewrites HTTPS requests to HTTP requests before forwarding to the app server you need you channel-definition to specify a secure client-side channel class and URL, and an insecure server side endpoint class. So, something like: channel-definition id=secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/amf; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition Note that the endpoint class is AMFEndpoint, not SecureAMFEndpoint. Regarding the error you get when you hit the secure endpoint directly in the browser