Monday, February 6, 2012

force eclipse to recognize war maven projects

run maven command
mvn -Dwtpversion=2.0 compile eclipse:eclipse

then refresh the project

loading additional spring context files from web.xml

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:xml1.xml classpath:xml2.xml classpath:xml3.xml /WEB-INF/classes/xml4.xml, /WEB-INF/classes/xml5.xml, /WEB-INF/classes/xml6.xml</param-value>
</context-param>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

Wednesday, September 14, 2011

download maven source and javadocs

dependency:sources
dependency:resolve -Dclassifier=javadoc

Friday, September 9, 2011

Could not find any host pages for GWT project

0. Make sure your webapps\*.html file registered the *.nocache.js and *.css
1. Disable your maven Dependency Management
2. Unchecked Google Web setting
3. Refresh you project
4. Now gain checked Google Web setting
5. Enable your maven Dependency Management again

Thursday, August 25, 2011

Adding GWT Maven Archetype

Add Archetype... and enter:
* Archetype Group Id: org.codehaus.mojo
* Archetype Artifact Id: gwt-maven-plugin
* Archetype Version: 2.1.0-1
* Repository URL: http://repo1.maven.org/maven2

Tuesday, January 4, 2011

Configure web.xml to load the servlet context from another location


 <servlet>
<servlet-name>tatts</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/tatts-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

Friday, August 22, 2008

linking pojo projects into a gwt project in eclipse

1. export the pojo project as a jar file. make sure the source code is included
2. import the jar file into the gwt project as an external jar