maven - Error when running GWT in intellij -



maven - Error when running GWT in intellij -

i trying run gwt on tomcat server build framework maven. maintain getting next error

java: unable find requestfactory built-in type. requestfactory-[client|server].jar on classpath?

any thought why happening?

thanks

reading error, seems lib missing. check if request-factory-server in pom.xml , if config okay.

i working maven , gwt-requestfactory. here sample of working maven config:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <parent> <!-- --> </parent> <artifactid>docentryeditor</artifactid> <packaging>war</packaging> <name>doc-entry-editor</name> <properties> <!-- convenience property set gwt version --> <gwtversion>2.5.1</gwtversion> <webappdirectory>${project.build.directory}/${project.build.finalname}</webappdirectory> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <project.reporting.outputencoding>utf-8</project.reporting.outputencoding> </properties> <url>http://maven.apache.org</url> <repositories> <repository> <id>gwt-maven</id> <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url> </repository> </repositories> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-servlet</artifactid> <version>${gwtversion}</version> </dependency> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-dev</artifactid> <version>${gwtversion}</version> <scope>provided</scope> </dependency> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-user</artifactid> <version>${gwtversion}</version> <scope>provided</scope> <exclusions> <exclusion> <groupid>javax.validation</groupid> <artifactid>validation-api</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.google.web.bindery</groupid> <artifactid>requestfactory-server</artifactid> <version>${gwtversion}</version> </dependency> <dependency> <groupid>com.google.web.bindery</groupid> <artifactid>requestfactory-apt</artifactid> <version>${gwtversion}</version> </dependency> <dependency> <groupid>aopalliance</groupid> <artifactid>aopalliance</artifactid> <version>1.0</version> </dependency> <dependency> <groupid>com.google.gwt.inject</groupid> <artifactid>gin</artifactid> <version>1.5.0</version> </dependency> <dependency> <groupid>com.google.inject</groupid> <artifactid>guice</artifactid> <version>3.0</version> </dependency> <dependency> <groupid>com.google.inject.extensions</groupid> <artifactid>guice-servlet</artifactid> <version>3.0</version> </dependency> <dependency> <groupid>com.google.inject.extensions</groupid> <artifactid>guice-assistedinject</artifactid> <version>3.0</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-validator</artifactid> <version>4.1.0.final</version> </dependency> <dependency> <groupid>javax.validation</groupid> <artifactid>validation-api</artifactid> <version>1.0.0.ga</version> </dependency> <dependency> <groupid>javax.validation</groupid> <artifactid>validation-api</artifactid> <version>1.0.0.ga</version> <classifier>sources</classifier> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> <version>1.7.7</version> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>1.7.7</version> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.17</version> </dependency> </dependencies> <build> <finalname>docentryeditor</finalname> <outputdirectory>${webappdirectory}/web-inf/classes</outputdirectory> <!-- generate compiled stuff in folder used developing mode --> <!--<outputdirectory>${webappdirectory}/web-inf/classes</outputdirectory>--> <plugins> <!-- gwt maven plugin--> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>gwt-maven-plugin</artifactid> <version>${gwtversion}</version> <dependencies> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-user</artifactid> <version>${gwtversion}</version> </dependency> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-dev</artifactid> <version>${gwtversion}</version> </dependency> <dependency> <groupid>com.google.gwt</groupid> <artifactid>gwt-servlet</artifactid> <version>${gwtversion}</version> </dependency> </dependencies> <!-- js needed in bundle phase, speeds testing --> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> <!-- plugin configuration. there many available options, see gwt-maven-plugin documentation @ codehaus.org --> <configuration> <!-- url should automatically opened in gwt shell (gwt:run). --> <runtarget>xds-metadataeditor.html</runtarget> <!-- inquire gwt create story of compile (soyc) (gwt:compile) --> <compilereport>true</compilereport> <module>edu.tn.xds.metadata.editor</module> <hostedwebapp>${webappdirectory}</hostedwebapp><!--makes file download work in dev mode--> <loglevel>info</loglevel> <style>${gwtversion}</style> <copywebapp>true</copywebapp> </configuration> </plugin> <!-- maven war plugin --> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.4</version> <configuration> <!-- configured same gwt plugin --> <webappdirectory>${webappdirectory}</webappdirectory> </configuration> <executions> <execution> <phase>compile</phase> <goals> <!-- create exploded version of war in webappdirectory. ideal development --> <goal>exploded</goal> </goals> </execution> </executions> </plugin> <!-- re-create static web files before executing gwt:run --> <plugin> <artifactid>maven-resources-plugin</artifactid> <version>2.4.2</version> <executions> <execution> <phase>compile</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputdirectory>${webappdirectory}/web-inf/</outputdirectory> <resources> <resource> <directory>src/main/webapp</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <!-- requestfactory validation jar --> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>2.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> <annotationprocessors> <annotationprocessor>com.google.web.bindery.requestfactory.apt.rfvalidator</annotationprocessor> </annotationprocessors> </configuration> <dependencies> <dependency> <groupid>com.google.web.bindery</groupid> <artifactid>requestfactory-apt</artifactid> <version>${gwtversion}</version> </dependency> </dependencies> </plugin> </plugins> <!--this plugin's configuration used store eclipse m2e settings only. has no influence on maven build itself. --> <pluginmanagement> <plugins> <plugin> <groupid>org.eclipse.m2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1.0.0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <pluginexecution> <pluginexecutionfilter> <groupid>org.codehaus.mojo</groupid> <artifactid> gwt-maven-plugin </artifactid> <versionrange> [2.5.1,) </versionrange> <goals> <goal>i18n</goal> </goals> </pluginexecutionfilter> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement> </build> </project>

if have question or if there don't understand don't hesitate. otherwise, if don't manage it, give me maven config , have @ , seek tell wrong.

please note config doesn't have tomcat config don't need it, don't think can problem.

maven tomcat gwt intellij-idea

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -