Vaadin integration: "Connection problems"

Hi!

I fortunately got the task to integrate vaadin into an existing web application :slight_smile:
But I stuck at the red “Connection problems” error, it occurs right after page loading. I must have missed something during the integration.

That’s what I did:

  1. Adding vaadin-6.0.1.jar to the lib directory and classpath
  2. Servlet and servlet mapping
  3. A hello-world-class extending com.vaadin.Application

Shouldn’t that be enough? Or do you think it may be a problem with some dirty and obfuscating project/tomcat settings? I don’t know these and cannot ask the one who does, as he’s on holiday.

Michel :slight_smile:

Are you getting “communication errors” every time, so your application even does not start ?
Obfuscation , I think, may cause some problems… Have you tried to look at app server log files and to stderr logs - there could be the stacktraces present, which provide more information on what could be wrong

The connection Problem I’m talking about looks like this http://screencast.com/t/2HGSZs2Nt5w
When i “click here” or manually reload, it suddenly appears again.

I just added ?debug and that’s what i got:

Vaadin application servlet version: 6.0.1
Widget set is built on version: 6.0.1
Application version: NONVERSIONED
inserting load indicator
Making UIDL Request with params: init
Server visit took 43ms
Communication error: com.google.gwt.core.client.JavaScriptException: (SyntaxError): syntax error fileName: http://localhost:8080/gms2/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/735127F5A96DFC6E554FCC69B8211878.cache.html lineNumber: 454 stack: Csb()@:0 eval("(ad>
HTTP Status 404 - /gms2/vaadin/UIDL/

type Status report

message /gms2/vaadin/UIDL/

description The requested resource (/gms2/vaadin/UIDL/) is not available.
Apache Tomcat/6.0.14
HTTP Status 404 - /gms2/vaadin/UIDL/

type Status report

message /gms2/vaadin/UIDL/

description The requested resource (/gms2/vaadin/UIDL/) is not available.
Apache Tomcat/6.0.14
ad>
HTTP Status 404 - /gms2/vaadin/UIDL/

type Status report

message /gms2/vaadin/UIDL/

description The requested resource (/gms2/vaadin/UIDL/) is not available.
Apache Tomcat/6.0.14

I see the com.google.gwt.core.client.JavaScriptException, but have no idea how to continue… i think the “/gms/vaadin/UIDL/ is not available” subsequent error.

gms2 is your webapp context ? e.g. http://localhost/gms2 ?
If so, please check your web.xml, that you maps all nested requests to your application servlet:

<servlet-mapping>
        <servlet-name>MyVaadinApplicationServlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

well… how is it called? Not seeing the forest for the trees? :stuck_out_tongue:

I just had to put the asteriks in my mapping…

    <servlet-mapping>
        <servlet-name>vaadin</servlet-name>
        <url-pattern>/vaadin/*</url-pattern>
    </servlet-mapping>

I should have got that because of the /gms2/vaadin/UILD 404… but I just didn’t think of the web.xml :*)

Thanks! :girl: