404 Error solution for Flex development Project _flex

Source: Internet
Author: User
The last two days has been HttpStates404 this mistake to toss up the trouble, on the internet to check a lot of articles, basically is to say the same problem
1URL is wrong--(but I'm sure it should be right, because it works under the XP system and it doesn't work under Win7)
2web.xml configuration is not--(oneself to this inside thing is not very understand, so check some information on the Internet, a little knowledge of follow the steps of the Internet, the result is still not)

Finally there is no way, and back to 1 of the idea, because in the final analysis is not found the page, this is the oneself and re-examine the flex compiled the generated files. Finally at this moment suddenly enlightened

Before I flex compile generation is to generate SWF file and corresponding HTML file, but this project has not generated HTML files, the ultimate source found.

Solutions
Right key item--click enter attribute--flex compiler--html Wrapper-tick (if already ticked, cancel application first, then tick to generate HTML template)

The error contents are as follows:

Solution
The Serverplugins\webcontent\web-inf\flex\services-config.xml in Java Engineering
Copy Code code as follows:

<channel-definition id= "MY-AMF" class= "Mx.messaging.channels.AMFChannel" >
The original wording: <endpoint url= "Https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class= " Flex.messaging.endpoints.SecureAMFEndpoint "/>
To: <endpoint url= "Http://{server.name}:{server.port}/java end of the project name/MESSAGEBROKER/AMF" Class= " Flex.messaging.endpoints.AMFEndpoint "/>
</channel-definition>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.