Integration tests with tiny_mce fail

2 messages Options
Embed this post
Permalink
Martin Homik

Integration tests with tiny_mce fail

Reply Threaded More More options
Print post
Permalink
I have integrated tinyMce with appfuse. That's fine as textareas are replaced by a nice editor. The inclusion into my jsp pages is not invasive. You have only to add the following to your <head>:
       
        <script language="javascript" type="text/javascript" src="../scripts/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
                tinyMCE.init({
                        mode : "textareas"});
        </script>

The rest of the jsp stays as it was before.


Everything runs fine. However, when I run integration-test, I get the following error message. Has anyone experienced a similar problem? Can anyone hint me, how to solve it?


EditBlogEntry:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
d:\ws\appfuse\seepo\src\test\resources\web-tests.xml:344: HTTP error 400
400 No Host matches server name localhost for http://localhost:8081/scripts/tiny_mce/tiny_mce.js

Cheers,
Martin
measwel

Re: Integration tests with tiny_mce fail

Reply Threaded More More options
Print post
Permalink
Martin,

I have the same problem, albeit without tinyMce. 400 No Host matches server name localhost when I try to run standard web integration tests. Did you manage to fix the problem?

By the way, what does tinyMce do?

Thank you,
MPK

Martin Homik wrote:
I have integrated tinyMce with appfuse. That's fine as textareas are replaced by a nice editor. The inclusion into my jsp pages is not invasive. You have only to add the following to your <head>:
       
        <script language="javascript" type="text/javascript" src="../scripts/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
                tinyMCE.init({
                        mode : "textareas"});
        </script>

The rest of the jsp stays as it was before.


Everything runs fine. However, when I run integration-test, I get the following error message. Has anyone experienced a similar problem? Can anyone hint me, how to solve it?


EditBlogEntry:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
d:\ws\appfuse\seepo\src\test\resources\web-tests.xml:344: HTTP error 400
400 No Host matches server name localhost for http://localhost:8081/scripts/tiny_mce/tiny_mce.js

Cheers,
Martin