vaadin xs problem

Hi everyone I hope you all be ok, I need your help with Vaadin XS addon , Im not sure what Im doing wrong here, I create a simple application that show some reports on a diferent server of the application, so I use Vaadin XS, I made a test html and everything is working very good locally, but when I publish it, lots of errors began to show up, for example, when I enter on the sample html, the login form isnt showing on, instead a error page appear, and the firedebug send this error:

“NetworkError: 404 Component not found - http://www.ingenieriacreativa.com/samcrm/APP/1/login
(I add a screenshot)

when I try to enter directly to the application I takes a loooong time to show up and without the style (that I create with the chameleon), and have weird behavior.

also when I use a whitelist it dosnt take any of the urls I provide all says things like this:

“NetworkError: 403 Forbidden - http://173.45.237.116:18080/samcrm/VAADIN/widgetsets/com.samcrm.app.widgetset.SamcrmWidgetset/com.samcrm.app.widgetset.SamcrmWidgetset.nocache.js?1308347074822
com.sa…7074822
“NetworkError: 403 Forbidden - http://173.45.237.116:18080/samcrm/VAADIN/themes/samcrm-theme/styles.css

and on the log of the application says…

Jun 17, 2011 9:44:34 PM com.vaadin.addons.xs.server.XSApplicationServlet isTrustedReferrer
INFO: Request blocked: request contained no referrer url

this are the files I modify to make it work, If you found anything weird please tell me:

web.xml code:


<servlet>
		<servlet-name>SAMCRM Afiliados</servlet-name>
		<!-- <servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class> -->
		 <servlet-class>com.vaadin.addons.xs.server.XSApplicationServlet</servlet-class>
		<init-param>
			<description>
			Vaadin application class to start</description>
			<param-name>application</param-name>
			<param-value>com.samcrm.app.SamCrmApplication</param-value>
		</init-param>
		<init-param>
			<description>
			Application widgetset</description>
			<param-name>widgetset</param-name>
			<param-value>com.samcrm.app.widgetset.SamcrmWidgetset</param-value>
		</init-param>
		<!--<init-param>
        <description>Allow referrers (sites that can embed vaadin app).
                     Separated with spaces. If not set, allows connections from all
                     sites (not secure, use only for development/testing).</description>
        <param-name>allowedReferrers</param-name>
        <param-value>http://173.45.237.116:18080/samcrm/ 
                                   http://www.ingenieriacreativa.com/finanlife/</param-value>
    </init-param>-->
	</servlet>

the application is running on http://173.45.237.116:18080/samcrm/, and the crosssite file is on http://www.ingenieriacreativa.com/finanlife/

SamcrmWidgetset.gwt.xml:


<module>
	<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
    <inherits name="com.vaadin.addons.xs.gwt.XSWidgetSet" />
</module>

crossite index:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Finanlife</title>


<link href="main.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="wrapper">
  <div id="header">Header</div>
  <div id="footer">footer</div>
  	<div id="samcrm" >
  <script src="http://173.45.237.116:18080/samcrm/getEmbedJs"
          type="text/javascript"></script>
</div>
</div>

</body>
</html>

thanks for your response.
11744.png

Hi,

Have you tried to reduce the problem? You could first try with simple “hello world” style application to see if even the XS hosting works properly. The login form might be the problem if simple application works.

cheers,
matti