|
From: <ian...@us...> - 2007-09-20 18:51:21
|
Revision: 431
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=431&view=rev
Author: iansmith
Date: 2007-09-20 11:51:24 -0700 (Thu, 20 Sep 2007)
Log Message:
-----------
Assumptions about bulding/testing this new version:
1) Get an instance of tomcat 6 running.
2) Add the "server.xml config" section below to the "<GlobalNamingResources>" section of server.xml in the conf directory of tomcat 6. Edit the values below to match your settings.xml.
3) Cargo has been dropped in favor of using the tomcat manager application. Make sure you have configured the manager application properly. This implies that you have set a manager account with the proper roles. See below with the tomcat-users.xml section and the webapps/manager/META-INF/context.xml.
You probably have it configured if this returns a sensible web page (not any kind of failure):
http://127.0.0.1:8080/manager/roles
4) Add this to your settings.xml (needs to match up with your tomcat-users.xml):
<server>
<id>localMachine</id>
<username>iansmith</username>
<password>javaesque</password>
</server>
This assumes that you have a "<servers>" section in your settings.xml already. It's a top level element
if you need to add it.
5) The .war file of the ogoglio server gets deployed now during the build of ogoglio-server.
6) Once you have everything configured, just leave a copy of tomcat6 running somewhere. This will get new wars deployed to it when ogoglio-server is built (#5) and now the integration tests just assume that this server is running.
----webapps/manager/META-INF/context.xml (note hooked by name to the server.xml below) -----
<Context antiResourceLocking="false" privileged="true">
<ResourceLink name="users"
global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
</Context>
----tomcat-users.xml conifg ------------
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="iansmith" password="mysecret" roles="manager,admin"/>
</tomcat-users>
---server.xml config ----
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<!--
OGOGLIO SPECIFIC GLOBAL RESOURCES
-->
<Resource name="ogoglioDB" scope="Shareable"
type="javax.sql.DataSource" auth='Container'
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
url="jdbc:mysql://127.0.0.1/og"
driverClassName="com.mysql.jdbc.Driver"
username="oguser"
password="sssh"
dialect="org.hibernate.dialect.MySQLDialect"
show_sql="false"
maxIdle="5"
maxActive="50" />
<Environment name="mediaURL" value="file:///home/iansmith/tmp/working/media" type="java.lang.String"/>
<Environment name="baseURL" value="http://127.0.0.1:8080/og/" type="java.lang.String"/>
<Environment name="oktoZapDB" value="true" type="java.lang.String"/>
<Environment name="okToMigrateDB" value="true" type="java.lang.String"/>
<Environment name="simsAllowRemoteAccess" value="true" type="java.lang.String" />
<Environment name="mediaDirectory" value="/home/iansmith/tmp/working/media" type="java.lang.String"/>
Modified Paths:
--------------
maven/trunk/ogoglio/pom.xml
Modified: maven/trunk/ogoglio/pom.xml
===================================================================
--- maven/trunk/ogoglio/pom.xml 2007-09-20 18:34:07 UTC (rev 430)
+++ maven/trunk/ogoglio/pom.xml 2007-09-20 18:51:24 UTC (rev 431)
@@ -19,43 +19,6 @@
<module>../dev-plugins</module>
</modules>
- <profiles>
- <profile>
- <id>boot-server</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <version>0.3-SNAPSHOT</version>
- <!-- CARGO INTERACTIONS WITH TOMCAT FOR BOOTING SERVER ONLY -->
- <configuration>
-
-<wait>${ogoglio.interactive_boot}</wait>
- <!-- tomcat 5.5 running on the same machine...-->
- <container>
- <containerId>tomcat5x</containerId>
- <home>${cargo.tomcat5x.home}</home>
- <log>${basedir}/tomcat5x.log</log>
- <output>${basedir}/tomcat5x.out</output>
- </container>
- <!-- tomcat configuration -->
- <configuration>
- <type>standalone</type>
- <home>${ogoglio.tmp.tomcat5x}</home>
- <properties>
- <cargo.servlet.port>
- 8080
- </cargo.servlet.port>
- </properties>
- </configuration>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
<ciManagement>
<system>continuum</system>
<notifiers>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|