Author: thomas.heute(a)jboss.com
Date: 2007-07-31 04:21:55 -0400 (Tue, 31 Jul 2007)
New Revision: 7846
Added:
demo/trunk/conf/jboss-service.xml.diff
demo/trunk/conf/jboss-web.xml.diff
demo/trunk/conf/log4j.xml
demo/trunk/conf/server.xml.diff
Removed:
demo/trunk/conf/jboss-web.xml
Modified:
demo/trunk/build.properties
demo/trunk/build.xml
demo/trunk/conf/default-object.xml
Log:
Move to JBoss AS 4.2.1
Missing Forums, removed flickr
Modified: demo/trunk/build.properties
===================================================================
--- demo/trunk/build.properties 2007-07-30 16:17:26 UTC (rev 7845)
+++ demo/trunk/build.properties 2007-07-31 08:21:55 UTC (rev 7846)
@@ -1,7 +1,7 @@
# Location of the JBoss Portal + 4.0.5 AS bundle
-portal.bundle.url=/home/theute/Portal/Demo/jboss-portal-2.6/build/output/jboss-portal-2.6-bundled.zip
+portal.bundle.url=/home/theute/Downloads/jboss-portal-2.6.1.GA-bundled.zip
# Name used as top directory in the bundle
-portal.name.dir=jboss-portal-2.6
+portal.name.dir=jboss-portal-2.6.1.GA
# Where to create the demo website and associated tgz file
destination.dir=/home/theute/Portal/demoWebsite
# Which WS to use. (keep this to use the one embedded here)
Modified: demo/trunk/build.xml
===================================================================
--- demo/trunk/build.xml 2007-07-30 16:17:26 UTC (rev 7845)
+++ demo/trunk/build.xml 2007-07-31 08:21:55 UTC (rev 7846)
@@ -1,103 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="main" name="JBoss Portal">
- <property file="build.properties"/>
-
- <target name="init">
- <mkdir dir="${destination.dir}"/>
- </target>
-
- <target name="unzip-bundle" depends="init">
- <unzip src="${portal.bundle.url}"
dest="${destination.dir}"/>
- </target>
-
- <target name="delete-jmxconsole">
- <delete
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jmx-console.war"/>
- </target>
+ <property file="build.properties"/>
- <target name="delete-docs">
- <delete dir="${destination.dir}/${portal.name.dir}/docs"/>
- </target>
+ <target name="init">
+ <mkdir dir="${destination.dir}"/>
+ </target>
- <target name="delete-objectsdescriptors">
- <delete>
- <fileset
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-portal.sar"
+ <target name="unzip-bundle" depends="init">
+ <unzip src="${portal.bundle.url}"
dest="${destination.dir}"/>
+ </target>
+
+ <target name="configure-jboss" depends="delete-jmxconsole">
+ <!-- Modify logging -->
+ <copy overwrite="true" file="conf/log4j.xml"
todir="${destination.dir}/${portal.name.dir}/server/default/conf"/>
+ <!-- Modify access-log for
portal.demo.jboss.com -->
+ <patch patchfile="conf/server.xml.diff"
originalfile="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-web.deployer/server.xml"/>
+ <!-- Add deploy directory -->
+ <patch patchfile="conf/jboss-service.xml.diff"
originalfile="${destination.dir}/${portal.name.dir}/server/default/conf/jboss-service.xml"/>
+ </target>
+
+ <target name="delete-jmxconsole">
+ <delete
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jmx-console.war"/>
+ </target>
+
+ <target name="delete-docs">
+ <delete dir="${destination.dir}/${portal.name.dir}/docs"/>
+ </target>
+
+ <target name="delete-objectsdescriptors">
+ <delete>
+ <fileset
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-portal.sar"
includes="**/*-object.xml"/>
- </delete>
- </target>
+ </delete>
+ </target>
- <target name="install-objectsdescriptor">
- <copy file="conf/default-object.xml"
+ <target name="install-objectsdescriptor">
+ <copy file="conf/default-object.xml"
todir="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-portal.sar/conf/data"/>
- </target>
+ </target>
- <target name="install-wsrpdescriptor">
- <copy file="conf/demo-wsrp.xml"
todir="${destination.dir}/${portal.name.dir}/server/default/deploy"/>
- </target>
+ <target name="install-wsrpdescriptor">
+ <copy file="conf/demo-wsrp.xml"
todir="${destination.dir}/${portal.name.dir}/server/default/deploy"/>
+ </target>
- <target name="delete-wsrpdescriptors">
- <!--
+ <target name="delete-wsrpdescriptors">
+ <!--
Would that delete default-wsrp.xml in jboss-portal.sar/portal-wspr.sar/? This
would be nice so that we can
override the self definition with the one that's in demo-wsrp.xml.
-->
- <delete
dir="${destination.dir}/${portal.name.dir}/server/default/deploy"
includes="**/*-wsrp.xml"/>
- </target>
+ <delete dir="${destination.dir}/${portal.name.dir}/server/default/deploy"
includes="**/*-wsrp.xml"/>
+ </target>
-
- <target name="clean">
- <delete dir="${destination.dir}/${portal.name.dir}"/>
- <delete dir="${tmp.dir}/flickrportlet"/>
- <delete dir="${tmp.dir}/jbossws"/>
- <delete file="${destination.dir}/${portal.name.dir}.tgz"/>
- </target>
-
- <target name="update-context">
- <delete
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war"/>
- <copy overwrite="true" file="conf/jboss-web.xml"
-
todir="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF"/>
- </target>
-
- <target name="install-flickrportlet">
- <unwar src="portlets/flickrportlet/flickrportlet.war"
dest="${tmp.dir}/flickrportlet"/>
- <delete file="${tmp.dir}/flickrportlet/WEB-INF/sun-web.xml"/>
- <delete
file="${tmp.dir}/flickrportlet/WEB-INF/lib/log4j-1.2.13.jar"/>
- <copy todir="${tmp.dir}/flickrportlet">
- <fileset dir="portlets/flickrportlet/resources"/>
- </copy>
- <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/flickrportlet.war">
- <fileset dir="${tmp.dir}/flickrportlet"/>
- </copy>
- </target>
- <target name="install-jbossforums">
- <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy">
- <fileset dir="portlets/jbossforums"/>
- </copy>
- </target>
+ <target name="clean">
+ <delete dir="${destination.dir}/${portal.name.dir}"/>
+ <delete dir="${tmp.dir}/flickrportlet"/>
+ <delete dir="${tmp.dir}/jbossws"/>
+ <delete file="${destination.dir}/${portal.name.dir}.tgz"/>
+ </target>
- <!-- Fix WS issues on JBoss 4.0.x -->
- <target name="update-ws">
- <unzip src="${jbossws.location}"
dest="${tmp.dir}/jbossws"/>
- <ant inheritAll="false" dir="${tmp.dir}/jbossws"
antfile="build.xml" target="deploy-jboss40-jdk14">
- <property name="jboss40.home"
value="${destination.dir}/${portal.name.dir}"/>
- <property name="jboss.server.instance" value="default"/>
- </ant>
- </target>
+ <target name="update-context">
+ <delete
dir="${destination.dir}/${portal.name.dir}/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war"/>
+ <patch patchfile="conf/jboss-web.xml.diff"
originalfile="${destination.dir}/${portal.name.dir}/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/jboss-web.xml"/>
+ </target>
- <target name="activate-workflow">
- <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/portal-cms.sar/META-INF">
- <fileset file="conf/core-cms/jboss-service.xml"/>
- </copy>
- </target>
-
- <target name="main"
- depends="unzip-bundle, delete-docs, delete-jmxconsole,
delete-objectsdescriptors, delete-wsrpdescriptors,
- update-context, update-ws, install-objectsdescriptor, install-wsrpdescriptor,
install-jbossforums, activate-workflow,
- install-flickrportlet">
- <tar destfile="${destination.dir}/${portal.name.dir}.tar"
basedir="${destination.dir}/${portal.name.dir}"
+ <target name="install-flickrportlet">
+ <unwar src="portlets/flickrportlet/flickrportlet.war"
dest="${tmp.dir}/flickrportlet"/>
+ <delete file="${tmp.dir}/flickrportlet/WEB-INF/sun-web.xml"/>
+ <delete file="${tmp.dir}/flickrportlet/WEB-INF/lib/log4j-1.2.13.jar"/>
+ <copy todir="${tmp.dir}/flickrportlet">
+ <fileset dir="portlets/flickrportlet/resources"/>
+ </copy>
+ <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/flickrportlet.war">
+ <fileset dir="${tmp.dir}/flickrportlet"/>
+ </copy>
+ </target>
+
+ <target name="install-jbossforums">
+ <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy">
+ <fileset dir="portlets/jbossforums"/>
+ </copy>
+ </target>
+
+ <!-- Fix WS issues on JBoss 4.0.x -->
+ <!--target name="update-ws">
+ <unzip src="${jbossws.location}" dest="${tmp.dir}/jbossws"/>
+ <ant inheritAll="false" dir="${tmp.dir}/jbossws"
antfile="build.xml" target="deploy-jboss40-jdk14">
+ <property name="jboss40.home"
value="${destination.dir}/${portal.name.dir}"/>
+ <property name="jboss.server.instance" value="default"/>
+ </ant>
+ </target-->
+
+ <target name="activate-workflow">
+ <copy
todir="${destination.dir}/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/portal-cms.sar/META-INF">
+ <fileset file="conf/core-cms/jboss-service.xml"/>
+ </copy>
+ </target>
+
+ <target name="main"
+ depends="unzip-bundle, delete-docs, configure-jboss,
delete-objectsdescriptors, delete-wsrpdescriptors,
+ update-context,install-objectsdescriptor, install-wsrpdescriptor,
install-jbossforums, activate-workflow">
+ <tar destfile="${destination.dir}/${portal.name.dir}.tar"
basedir="${destination.dir}/${portal.name.dir}"
longfile="gnu"/>
- <gzip zipfile="${destination.dir}/${portal.name.dir}.tgz"
src="${destination.dir}/${portal.name.dir}.tar"/>
- <delete file="${destination.dir}/${portal.name.dir}.tar"/>
- </target>
-
+ <gzip zipfile="${destination.dir}/${portal.name.dir}.tgz"
src="${destination.dir}/${portal.name.dir}.tar"/>
+ <delete file="${destination.dir}/${portal.name.dir}.tar"/>
+ </target>
+
</project>
\ No newline at end of file
Modified: demo/trunk/conf/default-object.xml
===================================================================
--- demo/trunk/conf/default-object.xml 2007-07-30 16:17:26 UTC (rev 7845)
+++ demo/trunk/conf/default-object.xml 2007-07-31 08:21:55 UTC (rev 7846)
@@ -392,6 +392,15 @@
<height>0</height>
</window>
</page>
+ <page>
+ <page-name>WSRP</page-name>
+ <window>
+
<window-name>WSRPConsumersConfigurationPortletWindow</window-name>
+
<instance-ref>WSRPConsumersConfigurationPortletInstance</instance-ref>
+ <region>center</region>
+ <height>0</height>
+ </window>
+ </page>
</portal>
</deployment>
</deployments>
Added: demo/trunk/conf/jboss-service.xml.diff
===================================================================
--- demo/trunk/conf/jboss-service.xml.diff (rev 0)
+++ demo/trunk/conf/jboss-service.xml.diff 2007-07-31 08:21:55 UTC (rev 7846)
@@ -0,0 +1,11 @@
+--- jboss-service.xml 2007-07-09 09:54:01.000000000 +0200
++++ jboss-service.xml 2007-07-13 16:08:12.000000000 +0200
+@@ -511,7 +678,7 @@
+ scans the specified WebDAV location
+ -->
+ <attribute name="URLs">
++ deploy/, ../../../deploy
+- deploy/
+ </attribute>
+
+ <!-- Indicates if the scanner should recursively scan directories that
Deleted: demo/trunk/conf/jboss-web.xml
===================================================================
--- demo/trunk/conf/jboss-web.xml 2007-07-30 16:17:26 UTC (rev 7845)
+++ demo/trunk/conf/jboss-web.xml 2007-07-31 08:21:55 UTC (rev 7846)
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ JBoss, a division of Red Hat ~
- ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
- ~ contributors as indicated by the @authors tag. See the ~
- ~ copyright.txt in the distribution for a full listing of ~
- ~ individual contributors. ~
- ~ ~
- ~ This is free software; you can redistribute it and/or modify it ~
- ~ under the terms of the GNU Lesser General Public License as ~
- ~ published by the Free Software Foundation; either version 2.1 of ~
- ~ the License, or (at your option) any later version. ~
- ~ ~
- ~ This software is distributed in the hope that it will be useful, ~
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
- ~ Lesser General Public License for more details. ~
- ~ ~
- ~ You should have received a copy of the GNU Lesser General Public ~
- ~ License along with this software; if not, write to the Free ~
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
- ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-
-<jboss-web>
- <security-domain>java:jaas/portal</security-domain>
- <context-root>/</context-root>
- <replication-config>
- <replication-trigger>SET</replication-trigger>
- </replication-config>
- <resource-ref>
- <res-ref-name>jdbc/PortalDS</res-ref-name>
- <jndi-name>java:PortalDS</jndi-name>
- </resource-ref>
-</jboss-web>
Added: demo/trunk/conf/jboss-web.xml.diff
===================================================================
--- demo/trunk/conf/jboss-web.xml.diff (rev 0)
+++ demo/trunk/conf/jboss-web.xml.diff 2007-07-31 08:21:55 UTC (rev 7846)
@@ -0,0 +1,11 @@
+--- jboss-web.xml 2007-07-08 16:57:03.000000000 +0200
++++ jboss-web.xml 2007-07-06 13:39:20.000000000 +0200
+@@ -24,7 +24,7 @@
+
+ <jboss-web>
+ <security-domain>java:jaas/portal</security-domain>
++ <context-root>/</context-root>
+- <context-root>/portal</context-root>
+ <replication-config>
+ <replication-trigger>SET</replication-trigger>
+ </replication-config>
Added: demo/trunk/conf/log4j.xml
===================================================================
--- demo/trunk/conf/log4j.xml (rev 0)
+++ demo/trunk/conf/log4j.xml 2007-07-31 08:21:55 UTC (rev 7846)
@@ -0,0 +1,314 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml 56612 2006-09-07 15:12:39Z thomas.diesler(a)jboss.com $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite:
http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
+ <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File"
value="${jboss.server.log.dir}/server.log"/>
+ <param name="Append" value="false"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern"
value="'.'yyyy-MM-dd"/>
+
+ <!-- Rollover at the top of each hour
+ <param name="DatePattern"
value="'.'yyyy-MM-dd-HH"/>
+ -->
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
+
+ <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+ <param name="ConversionPattern" value="%d %-5r %-5p [%c]
(%t:%x) %m%n"/>
+ -->
+ </layout>
+ </appender>
+
+ <!-- A size based file rolling appender
+ <appender name="FILE"
class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File"
value="${jboss.server.log.dir}/server.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE"
class="org.apache.log4j.ConsoleAppender">
+ <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="INFO"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p
[%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ====================== -->
+ <!-- More Appender examples -->
+ <!-- ====================== -->
+
+ <!-- Buffer events and log them asynchronously
+ <appender name="ASYNC"
class="org.apache.log4j.AsyncAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <appender-ref ref="FILE"/>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="SMTP"/>
+ </appender>
+ -->
+
+ <!-- EMail events to an administrator
+ <appender name="SMTP"
class="org.apache.log4j.net.SMTPAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Threshold" value="ERROR"/>
+ <param name="To" value="admin(a)myhost.domain.com"/>
+ <param name="From" value="nobody(a)myhost.domain.com"/>
+ <param name="Subject" value="JBoss Sever Errors"/>
+ <param name="SMTPHost" value="localhost"/>
+ <param name="BufferSize" value="10"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Syslog events
+ <appender name="SYSLOG"
class="org.apache.log4j.net.SyslogAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Facility" value="LOCAL7"/>
+ <param name="FacilityPrinting" value="true"/>
+ <param name="SyslogHost" value="localhost"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Log events to JMS (requires a topic to be created)
+ <appender name="JMS"
class="org.apache.log4j.net.JMSAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Threshold" value="ERROR"/>
+ <param name="TopicConnectionFactoryBindingName"
value="java:/ConnectionFactory"/>
+ <param name="TopicBindingName"
value="topic/MyErrorsTopic"/>
+ </appender>
+ -->
+
+ <!-- Log events through SNMP
+ <appender name="TRAP_LOG"
class="org.apache.log4j.ext.SNMPTrapAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="ImplementationClassName"
value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
+ <param name="ManagementHost" value="127.0.0.1"/>
+ <param name="ManagementHostTrapListenPort" value="162"/>
+ <param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
+ <param name="LocalIPAddress" value="127.0.0.1"/>
+ <param name="LocalTrapSendPort" value="161"/>
+ <param name="GenericTrapType" value="6"/>
+ <param name="SpecificTrapType" value="12345678"/>
+ <param name="CommunityString" value="public"/>
+ <param name="ForwardStackTraceWithTrap" value="true"/>
+ <param name="Threshold" value="DEBUG"/>
+ <param name="ApplicationTrapOID"
value="1.3.6.1.4.1.24.12.10.22.64"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
value="%d,%p,[%t],[%c],%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Emit events as JMX notifications
+ <appender name="JMX"
class="org.jboss.monitor.services.JMXNotificationAppender">
+ <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+
+ <param name="Threshold" value="WARN"/>
+ <param name="ObjectName"
value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
+ <category name="org.apache">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is
verbose -->
+ <category name="org.jboss.serial">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
+ <category name="org.jgroups">
+ <priority value="WARN"/>
+ </category>
+
+ <!-- Limit the jacorb category to WARN as its INFO is verbose -->
+ <category name="jacorb">
+ <priority value="WARN"/>
+ </category>
+
+ <!-- Limit other crap categories -->
+ <category name="org.jtb">
+ <priority value="INFO"/>
+ </category>
+ <category name="httpclient">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit Hibernate categories -->
+ <category name="org.hibernate">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit JBoss categories -->
+ <category name="org.jboss">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit ehcache categories -->
+ <category name="net.sf.ehcache">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit JBPM categories -->
+ <category name="org.jbpm">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the JSR77 categories -->
+ <category name="org.jboss.management">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Enable JBossWS message tracing
+ <category name="jbossws.SOAPMessage">
+ <priority value="TRACE" class="org.jboss.logging.XLevel"/>
+ </category>
+ -->
+
+ <!-- Decrease the priority threshold for the org.jboss.varia category
+ <category name="org.jboss.varia">
+ <priority value="DEBUG"/>
+ </category>
+ -->
+
+ <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
+ <category
name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
+ <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
+ </category>
+ -->
+
+ <!--
+ | An example of enabling the custom TRACE level priority that is used
+ | by the JBoss internals to diagnose low level details. This example
+ | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
+ | subpackages. This will produce A LOT of logging output.
+ <category name="org.jboss.system">
+ <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
+ </category>
+ <category name="org.jboss.ejb.plugins">
+ <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
+ </category>
+ -->
+
+ <!--
+ | Logs these events to SNMP:
+ - server starts/stops
+ - cluster evolution (node death/startup)
+ - When an EJB archive is deployed (and associated verified messages)
+ - When an EAR archive is deployed
+
+ <category name="org.jboss.system.server.Server">
+ <priority value="INFO" />
+ <appender-ref ref="TRAP_LOG"/>
+ </category>
+
+ <category
name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
+ <priority value="INFO" />
+ <appender-ref ref="TRAP_LOG"/>
+ </category>
+
+ <category name="org.jboss.deployment.MainDeployer">
+ <priority value="ERROR" />
+ <appender-ref ref="TRAP_LOG"/>
+ </category>
+
+ <category name="org.jboss.ejb.EJBDeployer">
+ <priority value="INFO" />
+ <appender-ref ref="TRAP_LOG"/>
+ </category>
+
+ <category name="org.jboss.deployment.EARDeployer">
+ <priority value="INFO" />
+ <appender-ref ref="TRAP_LOG"/>
+ </category>
+
+ -->
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+ <!-- Clustering logging -->
+ <!-- Uncomment the following to redirect the org.jgroups and
+ org.jboss.ha categories to a cluster.log file.
+
+ <appender name="CLUSTER"
class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File"
value="${jboss.server.log.dir}/cluster.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
+ </layout>
+ </appender>
+ <category name="org.jgroups">
+ <priority value="DEBUG" />
+ <appender-ref ref="CLUSTER"/>
+ </category>
+ <category name="org.jboss.ha">
+ <priority value="DEBUG" />
+ <appender-ref ref="CLUSTER"/>
+ </category>
+ -->
+
+</log4j:configuration>
Added: demo/trunk/conf/server.xml.diff
===================================================================
--- demo/trunk/conf/server.xml.diff (rev 0)
+++ demo/trunk/conf/server.xml.diff 2007-07-31 08:21:55 UTC (rev 7846)
@@ -0,0 +1,19 @@
+---
/home/theute/Portal/jboss-4.2.1.GA/server/default/deploy/jboss-web.deployer/server.xml 2007-07-13
16:08:14.000000000 +0200
++++ server.xml 2007-07-09 09:54:01.000000000 +0200
+@@ -90,12 +85,10 @@
+ -->
+
+ <!-- Access logger -->
+- <!--
+- <Valve className="org.apache.catalina.valves.AccessLogValve"
+- prefix="localhost_access_log." suffix=".log"
+- pattern="common"
directory="${jboss.server.home.dir}/log"
++ <Valve
className="org.apache.catalina.valves.FastCommonAccessLogValve"
++ prefix="portal.demo.jboss.com_access_log."
suffix=".log"
++ pattern="common"
directory="${jboss.server.home.dir}/../../../log"
+ resolveHosts="false" />
+- -->
+
+ <!-- Uncomment to enable single sign-on across web apps
+ deployed to this host. Does not provide SSO across a cluster.
+