Can't run vaadin 7 project with ivy/eclipse

Hi,

Vaadin 6 projects works fine, but vaadin 7 doesn’t. I’m getting this kind of error:

"
Some projects fail to be resolved
Impossible to resolve dependencies of com.example#v7proj;working@fc1688
unresolved dependency: javax.servlet#javax.servlet-api;3.0.1: several problems occurred while resolving dependency: javax.servlet#javax.servlet-api;3.0.1 {nodeploy=[default]
}:
several problems occurred while resolving dependency: net.java#jvnet-parent;1 {}:
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
Impossible to resolve dependencies of com.example#v7proj;working@fc1688
unresolved dependency: org.apache.commons#commons-jexl;2.1.1: several problems occurred while resolving dependency: org.apache.commons#commons-jexl;2.1.1 {compile=[compile(), master()]
, runtime=[runtime()]
}:
several problems occurred while resolving dependency: org.apache.commons#commons-parent;22 {}:
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: com.vaadin#vaadin-client-compiled;7.1.2: several problems occurred while resolving dependency: com.vaadin#vaadin-client-compiled;7.1.2 {default=[default]
}:
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: com.vaadin#vaadin-push;7.1.2: several problems occurred while resolving dependency: com.vaadin#vaadin-push;7.1.2 {default=[default]
}:
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: com.vaadin#vaadin-themes;7.1.2: several problems occurred while resolving dependency: com.vaadin#vaadin-themes;7.1.2 {default=[default]
}:
java.util.NoSuchElementException
java.util.NoSuchElementException
Impossible to resolve dependencies of com.example#v7proj;working@fc1688
unresolved dependency: org.apache.commons#commons-jexl;2.1.1: several problems occurred while resolving dependency: org.apache.commons#commons-jexl;2.1.1 {compile=[compile(
), master()]
, runtime=[runtime(
)]
}:
several problems occurred while resolving dependency: org.apache.commons#commons-parent;22 {}:
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: commons-logging#commons-logging;1.1.1: several problems occurred while resolving dependency: commons-logging#commons-logging;1.1.1 {compile=[compile(), master()]
, runtime=[runtime()]
}:
several problems occurred while resolving dependency: org.apache.commons#commons-parent;5 {}:
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: ant#ant-launcher;1.6.5: several problems occurred while resolving dependency: ant#ant-launcher;1.6.5 {compile=[compile(
), master()]
, runtime=[runtime(
)]
}:
java.util.NoSuchElementException
java.util.NoSuchElementException
unresolved dependency: ant#ant;1.6.5: several problems occurred while resolving dependency: ant#ant;1.6.5 {compile=[compile(), master()]
, runtime=[runtime(*)]
}:
java.util.NoSuchElementException
java.util.NoSuchElementException
"

Is my ivy.xml file correct? Eclipse shows a error symble on ixy.xml and a warning symble on ixysetting.xml file…

I’ve cleaned ivy cache, tried to resolve several times but it always fails…

I’ve checked and the firewall is not blocking the connection…

Regards,
Rodrigo
13129.xml (1.78 KB)
13130.xml (1.22 KB)

Try replacing your servlet-api dependency with either <dependency org="javax.servlet" name="javax.servlet-api" rev="3.0.1"/> or <dependency org="javax.servlet" name="javax.servlet-api" rev="3.1.0"/> which can be found
here
. If you need the tomcat one you can find it
here
.

Thank’s! After fixing the servlet, other dependency errors show up, so i downloaded the files and installed manually, but now there is a new error when i’m trying to run:

INFO: Requested resource 
[/VAADIN/themes/reindeer/reindeer.scss] not found from filesystem or through class loader. 
Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
Ago 13, 2013 9:24:43 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
INFO: Requested resource [/VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.
DefaultWidgetSet.nocache.js] not found from filesystem or through class loader. 
Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

I’ve compiled the theme and widgetset…
I read some posts about a web.xml file, but my project doesn’t have it (servlet 3.0?)


This
should give you an idea how you can map your widgetset, servlet,… using the WebServlet annotation or the web.xml.

Thank you!!!

I tried to create new Vaadin 7 Project via eclipse luna. But i am getting following error:
Some projects fail to be resolved
Impossible to resolve dependencies of com.example#v7proj;working@127.0.0.1
unresolved dependency: com.vaadin#vaadin-client-compiled;7.0.0: not found
unresolved dependency: com.vaadin#vaadin-server;7.0.0: not found
unresolved dependency: com.vaadin#vaadin-themes;7.0.0: not found
Impossible to resolve dependencies of com.example#v7proj;working@127.0.0.1
unresolved dependency: com.vaadin#vaadin-client-compiler;7.0.0: not found
unresolved dependency: com.vaadin#vaadin-client;7.0.0: not found
Impossible to resolve dependencies of com.example#v7proj;working@127.0.0.1
unresolved dependency: javax.servlet#javax.servlet-api;3.0.1: not found