I'm trying to deploy an existing vaadin
project to GAE
. But I'm constantly getting an error: ClassNotFoundException: com.vaadin.server.GAEApplicationServlet
This is what I've done:
commented out the @WebServlet
annotation in my extends UI
class
projec properties, checked: use Google App Engine. Thereby some libraries were added to my WEB-INF/lib
folder: gwt-servlet, jsr107, some appendine-*
.
created the appengine-web.xml
created the web.xml
:
<servlet> <servlet-name>MyProject</servlet-name> <servlet-class>com.vaadin.server.GAEApplicationServlet</servlet-class> <init-param> <param-name>UI</param-name> <param-value>de.mypath.ApplicationUI</param-value> </init-param> </servlet>
<servlet-mapping>
<servlet-name>MyProject</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
I can run my project fine if I use com.vaadin.server.VaadinServlet
and run on a local tomcat. But running on a jetty GAE (or also deploying in the cloud) I get the ClassNotFountException
mentioned above.
What is wrong here?
It's been a while since I've used GAE, but when I was it seemed like I had to add some jars to WEB-INF/lib myself, despite everything working fine locally. Later I would get warnings about those same jars, but if I removed them I'ld get NoClassDefFoundException again.
将vaadin-server-7.5.10.jar复制到WEB-INF / lib并使用com.vaadin.server.GAEVaadinServlet
而不是com.vaadin.server.GAEApplicationServlet
已解决了该问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.