james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r835021 - in /james/hupa/trunk: .classpath README.txt client/war/WEB-INF/web.xml war/
Date Wed, 11 Nov 2009 19:22:07 GMT
Author: norman
Date: Wed Nov 11 19:22:06 2009
New Revision: 835021

URL: http://svn.apache.org/viewvc?rev=835021&view=rev
Log:
Remove the war directory which is not needed when running hosted mode with -war argument

Added:
    james/hupa/trunk/client/war/WEB-INF/web.xml
Removed:
    james/hupa/trunk/war/
Modified:
    james/hupa/trunk/.classpath
    james/hupa/trunk/README.txt

Modified: james/hupa/trunk/.classpath
URL: http://svn.apache.org/viewvc/james/hupa/trunk/.classpath?rev=835021&r1=835020&r2=835021&view=diff
==============================================================================
--- james/hupa/trunk/.classpath (original)
+++ james/hupa/trunk/.classpath Wed Nov 11 19:22:06 2009
@@ -10,5 +10,5 @@
 	<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="output" path="war/WEB-INF/classes"/>
+	<classpathentry kind="output" path="client/war/WEB-INF/classes"/>
 </classpath>

Modified: james/hupa/trunk/README.txt
URL: http://svn.apache.org/viewvc/james/hupa/trunk/README.txt?rev=835021&r1=835020&r2=835021&view=diff
==============================================================================
--- james/hupa/trunk/README.txt (original)
+++ james/hupa/trunk/README.txt Wed Nov 11 19:22:06 2009
@@ -18,35 +18,38 @@
 ###### Using hupa in demo mode #################
 
 In demo mode there is not necessary any imap or smtp server.
-A bunch of example messages and folders are shown to the useri to be manipulated.
+A bunch of example messages and folders are shown to the user to be manipulated.
 Almost every hupa feature work in demo mode.
 
-To enable demo mode for incomming messages set 'IMAPServerAddress=demo-mode' and
+To enable demo mode for incoming messages set 'IMAPServerAddress=demo-mode' and
 'SMTPServerAddress=demo-mode' for outgoing messages.
 
 To login into the system in thi mode use the user 'demo' with password 'demo'  
 
 ###### Eclipse GWT Plugin notes ################
 
-- If you want to run hupa in hosted mode be sure to add the following line as "vm argument"
in the Run configuration:
-  -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
+- If you want to run hupa in hosted mode:
+  * be sure to add the following line as "vm argument" in the Run configuration:
+    -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties

+  * be sure to add the following line as "program argument" in the Run configuration:   
+    -war ${project_loc}/client/war
 
 - If you receive this kind of errors in eclipse:
   >> 'Access restriction: The constructor Data[...] is not accessible due to restriction
on required library [...]/jre/lib/rt.jar'
 
-  Change the order of the libraries puting 'JRE System Library' at the bottom.
+  Change the order of the libraries putting 'JRE System Library' at the bottom.
 
 - To avoid these gwt-pugin's messages
-  >> 'The output directory for the project should be set to /hupa/war/WEB-INF/classes'
+  >> 'The output directory for the project should be set to /hupa/client/war/WEB-INF/classes'
   >> 'The web.xml file does not exist'
 
   In unix-like environments make these symbolic links: 
        $ ln -s client/war war
-       $ ln -s ../../src/main/webapp/WEB-INF/web.xml war/WEB-INF/web.xml
+       $ ln -s ../../src/main/webapp/WEB-INF/web.xml client/war/WEB-INF/web.xml
   In windows 
        copy recursively 'client/war' to 'war'
-       copy 'client/src/main/webapp/WEB-INF/web.xml' to 'war/WEB-INF'
-  Then, set project's output directory to: /hupa/war/WEB-INF/classes
+       copy 'client/src/main/webapp/WEB-INF/web.xml' to 'client/war/WEB-INF'
+  Then, set project's output directory to: /hupa/client/war/WEB-INF/classes
        properties -> Java Build Path -> Source -> Default output folder
 
 - If you compile hupa with google's eclipse plugin and you get the message:

Added: james/hupa/trunk/client/war/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/war/WEB-INF/web.xml?rev=835021&view=auto
==============================================================================
--- james/hupa/trunk/client/war/WEB-INF/web.xml (added)
+++ james/hupa/trunk/client/war/WEB-INF/web.xml Wed Nov 11 19:22:06 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+	<!-- Default page to serve -->
+	<welcome-file-list>
+		<welcome-file>Hupa.html</welcome-file>
+	</welcome-file-list>
+
+	<context-param>
+		<!-- max size of the upload request (10MB) -->
+		<param-name>maxSize</param-name>
+		<param-value>10485760</param-value>
+	</context-param>
+	<context-param>
+		<!--
+			useful in development mode to see the upload progress bar in fast
+			networks
+		-->
+		<param-name>slowUploads</param-name>
+		<param-value>true</param-value>
+	</context-param>
+	
+	<!-- servlet for incubator gwt stuff -->
+	<servlet>
+  		<servlet-name>remoteLoggingService</servlet-name>
+  		<servlet-class>com.google.gwt.gen2.logging.server.RemoteLoggingService</servlet-class>
+	</servlet>
+	
+	<servlet-mapping>
+ 		<servlet-name>remoteLoggingService</servlet-name>
+  		<url-pattern>/hupa/logging</url-pattern>
+	</servlet-mapping>
+
+	<filter>
+		<filter-name>guiceFilter</filter-name>
+		<filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
+	</filter>
+
+	<filter-mapping>
+		<filter-name>guiceFilter</filter-name>
+		<url-pattern>/*</url-pattern>
+	</filter-mapping>
+
+	<listener>
+		<listener-class>org.apache.hupa.server.guice.MyGuiceServletConfig</listener-class>
+	</listener>
+</web-app>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message