<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>code-complete - Flex</title>
    <link>http://www.code-complete.com/code/</link>
    <description>est.1998 :: v. 8.0 </description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 23 Jan 2008 19:02:05 GMT</pubDate>

    <image>
        <url>http://www.code-complete.com/code/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: code-complete - Flex - est.1998 :: v. 8.0 </title>
        <link>http://www.code-complete.com/code/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Flex 2 https socket requests to a server with a self-signed certificate</title>
    <link>http://www.code-complete.com/code/index.php?/archives/35-Flex-2-https-socket-requests-to-a-server-with-a-self-signed-certificate.html</link>
            <category>Flex</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/35-Flex-2-https-socket-requests-to-a-server-with-a-self-signed-certificate.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=35</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=35</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    We are building a flex application that makes REST webservice requests to a Jetty webserver.  The server requires basic authentication and we are able to pass the credentials through in the headers and can successfully access the webservices.  The problem is that we will need to make these requests over SSL.  When we change the protocol in the Flex application to use https, the suthentication and service requests fail.&lt;br /&gt;
&lt;br /&gt;
I&#039;m pretty convinced that this is due to the fact that the webserver is using a self-signed certificate, and the default https behavior is to deny the connection request over https unless the certificate has been issued from a trusted authority.  I have looked at the raw packet traffic, and this seems to be what&#039;s happening.&lt;br /&gt;
&lt;br /&gt;
When using a command line utility like curl to access https on a server with a self signed cert, it denies the connection, but provides this super helpful message:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:&lt;br /&gt;
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed&lt;br /&gt;
More details here: http://curl.haxx.se/docs/sslcerts.html&lt;br /&gt;
&lt;br /&gt;
curl performs SSL certificate verification by default, using a &quot;bundle&quot;&lt;br /&gt;
 of Certificate Authority (CA) public keys (CA certs). The default&lt;br /&gt;
 bundle is named curl-ca-bundle.crt; you can specify an alternate file&lt;br /&gt;
 using the --cacert option.&lt;br /&gt;
If this HTTPS server uses a certificate signed by a CA represented in&lt;br /&gt;
 the bundle, the certificate verification probably failed due to a&lt;br /&gt;
 problem with the certificate (it might be expired, or the name might&lt;br /&gt;
 not match the domain name in the URL).&lt;br /&gt;
If you&#039;d like to turn off curl&#039;s verification of the certificate, use&lt;br /&gt;
 the -k (or --insecure) option.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
My question is does Flex provide the -k switch to just accept the damn certificate and move on?&lt;br /&gt;
&lt;br /&gt;
I have a ticket opened with adobe on this and will post the info on the resolution to this issue.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 23 Jan 2008 10:26:41 -0700</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/35-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>OO Programming Opportunities in Denver</title>
    <link>http://www.code-complete.com/code/index.php?/archives/27-OO-Programming-Opportunities-in-Denver.html</link>
            <category>.NET</category>
            <category>Apollo</category>
            <category>Coldfusion Programming</category>
            <category>Flex</category>
            <category>Java</category>
            <category>Silverlight</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/27-OO-Programming-Opportunities-in-Denver.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=27</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    &lt;a href=&quot;http://www.spiremedia.com&quot;  title=&quot;spire&quot;&gt;SpireMedia&lt;/a&gt;, ranked by DBJ as one of Denver&#039;s Best Places to Work and Denver&#039;s Top Web Development Firm, seeks multiple Web developers with advanced Web application programming abilities.  We are developing Rich Internet applications on the leading edge of technology and are seeking like-minded developers who are able to leverage their existing skillset as well as learn new methodologies.  You must be results-oriented and able to work in a team-based development environment.&lt;br /&gt;
&lt;br /&gt;
If you are an experienced OO developer with a CFMX , Java,  C#.NET, or Ruby background familiar with programming within MVC frameworks and are interested in growing your skillset to include Flex, AJAX, Silverlight, and AIR RIA development, we’re interested in &lt;a href=&quot;http://www.spiremedia.com/spiremedia2k5/?cid=5,146&quot;  title=&quot;careers&quot;&gt;talking&lt;/a&gt; to you.&lt;br /&gt;
&lt;br /&gt;
Must have demonstrated experience programming .NET Assemblies in C# or developing custom java classes, packaging and deploying WAR/EAR applications under tomcat. Database experience with SQL Server 200-2005 and/or Oracle/PostgreSQL is a requirement.   Any RIA development including AJAX and/or Flex is highly desirable, but we can train the right candidate on using Flex Remoting/Actionscript 3 and AJAX to build RIAs.   You will be leveraging WebORB and LiveCycle server components and code generators. The applications we build work on the Web and within the Enterprise, so your knowledge of scalability will help. You also need to be able to multi-task across multiple projects and manage your time well.&lt;br /&gt;
&lt;br /&gt;
Secondary Skills Include:&lt;br /&gt;
&lt;br /&gt;
DOM 2, CSS, XHTML&lt;br /&gt;
XML, XSLT&lt;br /&gt;
CFMX - component object model development&lt;br /&gt;
Cairngorm Microarchitecture&lt;br /&gt;
Spring Framework&lt;br /&gt;
iBATIS Data Mapper framework&lt;br /&gt;
Hibernate/NHibernate&lt;br /&gt;
XAML&lt;br /&gt;
Quality Assurance 
    </content:encoded>

    <pubDate>Tue, 25 Sep 2007 12:50:11 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/27-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Adobe Livecycle Dataservices Deployed under Tomcat with Sun 64-bit JVM on Fedora 7</title>
    <link>http://www.code-complete.com/code/index.php?/archives/25-Adobe-Livecycle-Dataservices-Deployed-under-Tomcat-with-Sun-64-bit-JVM-on-Fedora-7.html</link>
            <category>Flex</category>
            <category>Livecycle</category>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/25-Adobe-Livecycle-Dataservices-Deployed-under-Tomcat-with-Sun-64-bit-JVM-on-Fedora-7.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=25</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    As a follow up to my &lt;a href=&quot;http://www.code-complete.com/code/index.php?/archives/20-FC7-+-CFMX-8-+-Tomcat-+-64-bit-jvm-1.6-Sweetness.html&quot;&gt;earlier post&lt;/a&gt; about getting Coldfusion 8 to run natively in a 64-bit enviro, this post will describe the steps to deploy Adobe Livecycle data services in a 64-bit environment natively.&lt;br /&gt;
&lt;br /&gt;
First, the set up:  64-bit Fedora 7 + 64-bit Sun Java SE Runtime build 1.6.0_02-b05 + Tomcat 5.5.23 Release 9jpp.2.fc7&lt;br /&gt;
&lt;br /&gt;
Initially, I just ran the installer for LiveCycle selecting to deploy as a war.  It created the war files flex.war, flex-admin.war, and samples.war. I dropped those into the webapps directory and all the applications deployed automatically.  I pointed my browser at http://server.com:8080/flex/samples, which popped right up.  Then, when I clicked on the SQLAdmin sample app, kablooeee!&lt;br /&gt;
&lt;br /&gt;
The error that gets thrown is:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/06 14:17:03 ERROR java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfiguration&lt;br /&gt;
Exception: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
I realized that this had something to do w/ the Xalan/Xerces java component, but I had installed both components from RPMs.  So I was conviced it was a classpath issue.  I knew the stuff i needed was on my machine, but the application wasn&#039;t finding it.  The following jars are what&#039;s needed for this to work:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
xalan-j2-serializer.jar&lt;br /&gt;
xalan.jar&lt;br /&gt;
xercesImpl.jar&lt;br /&gt;
xml-apis.jar&lt;br /&gt;
xsltc.jar&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So I ran the locate command for each of these jars and found many som in /usr/share/java/ and some under a xalan-j2-servlet/WEB-INF/lib directory.&lt;br /&gt;
&lt;br /&gt;
I dropped copies of all the jars into my tomcat5/share/lib/ directory and restarted tomcat and viola!&lt;br /&gt;
&lt;br /&gt;
Well, almost - now I was getting a different error:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/07 11:48:53 ERROR java.lang.InternalError: An error occurred because there is no graphics environment available.  Please set the headless-server setting in the Flex configuration file to true.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
But hey, that at least gave some direction on what needed to be changed, so I went ahead and changed the flex-config.xml files for all the applications to true and restarted tomcat.  No love.  Same error.  Upon further log inspection, I found that there was another related error thrown just as the FlexAssembler service was spinning up:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/07 11:45:54 Information [main] - Starting FlexAssembler...&lt;br /&gt;
Xlib: connection to &quot;:1.0&quot; refused by server&lt;br /&gt;
Xlib: No protocol specified&lt;br /&gt;
&lt;br /&gt;
Exception in thread &quot;Thread-23&quot; java.lang.InternalError: Can&#039;t connect to X11 window server using &#039;:1.0&#039; as the value of the DISPLAY variable.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Okay, so because I was VNCed into the machine when starting up tomcat, the system appears to be disregarding the headless-server setting!  So, I logged out of vnc, sshed into the machine stopped and started tomcat while tailing the catalina.out log file.  Well, No errors on startup and when I went to the SQLAdmin sample app I saw this:&lt;br /&gt;
&lt;!-- s9ymdb:13 --&gt;&lt;img width=&#039;400&#039; height=&#039;171&#039; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/FlexSQLAdmin.gif&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Adobe Livecycle successfully running.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 07 Sep 2007 13:33:51 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/25-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>