geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r356040 - in /geronimo/branches/1.0: assemblies/j2ee-installer/src/var/log/ assemblies/j2ee-jetty-server/src/var/log/ assemblies/j2ee-tomcat-server/src/var/log/ modules/security/src/java/org/apache/geronimo/security/realm/providers/
Date Sun, 11 Dec 2005 21:56:37 GMT
Author: ammulder
Date: Sun Dec 11 13:56:28 2005
New Revision: 356040

URL: http://svn.apache.org/viewcvs?rev=356040&view=rev
Log:
Merge my latest changes from HEAD (SQL realm, ActiveMQ logging)

Modified:
    geronimo/branches/1.0/assemblies/j2ee-installer/src/var/log/server-log4j.properties
    geronimo/branches/1.0/assemblies/j2ee-jetty-server/src/var/log/server-log4j.properties
    geronimo/branches/1.0/assemblies/j2ee-tomcat-server/src/var/log/server-log4j.properties
    geronimo/branches/1.0/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java

Modified: geronimo/branches/1.0/assemblies/j2ee-installer/src/var/log/server-log4j.properties
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/assemblies/j2ee-installer/src/var/log/server-log4j.properties?rev=356040&r1=356039&r2=356040&view=diff
==============================================================================
--- geronimo/branches/1.0/assemblies/j2ee-installer/src/var/log/server-log4j.properties (original)
+++ geronimo/branches/1.0/assemblies/j2ee-installer/src/var/log/server-log4j.properties Sun
Dec 11 13:56:28 2005
@@ -57,11 +57,13 @@
 log4j.category.org.apache.jasper.compiler.SmapUtil=WARN
 
 # ActiveMQ
+log4j.category.org.activemq.ActiveMQConnection=WARN
 log4j.category.org.activemq.store.jdbc.adapter.DefaultJDBCAdapter=WARN
 log4j.category.org.activemq.store.jdbc.JDBCPersistenceAdapter=WARN
 log4j.category.org.activemq.store.journal.JournalPersistenceAdapter=WARN
 log4j.category.org.activemq.broker.impl.BrokerContainerImpl=WARN
 log4j.category.org.activemq.broker.impl.BrokerConnectorImpl=WARN
+log4j.category.org.activemq.transport.tcp.TcpTransportChannel=ERROR
 log4j.category.org.activemq.transport.tcp.TcpTransportServerChannel=WARN
 log4j.category.org.activemq.transport.vm.VmTransportServerChannel=WARN
 
@@ -73,10 +75,12 @@
 # Various Jetty startup/shutdown output
 log4j.category.org.mortbay.http.HttpServer=WARN
 log4j.category.org.mortbay.http.SocketListener=WARN
+log4j.category.org.mortbay.http.ajp.AJP13Listener=WARN
 log4j.category.org.mortbay.util.Container=WARN
 log4j.category.org.mortbay.util.Credential=WARN
 log4j.category.org.mortbay.util.ThreadedServer=WARN
 log4j.category.org.mortbay.jetty.servlet.WebApplicationContext=WARN
+log4j.category.org.mortbay.jetty.context=WARN
 
 # Various Tomcat startup output
 log4j.category.org.apache.catalina.realm.JAASRealm=WARN

Modified: geronimo/branches/1.0/assemblies/j2ee-jetty-server/src/var/log/server-log4j.properties
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/assemblies/j2ee-jetty-server/src/var/log/server-log4j.properties?rev=356040&r1=356039&r2=356040&view=diff
==============================================================================
--- geronimo/branches/1.0/assemblies/j2ee-jetty-server/src/var/log/server-log4j.properties
(original)
+++ geronimo/branches/1.0/assemblies/j2ee-jetty-server/src/var/log/server-log4j.properties
Sun Dec 11 13:56:28 2005
@@ -63,6 +63,7 @@
 log4j.category.org.activemq.store.journal.JournalPersistenceAdapter=WARN
 log4j.category.org.activemq.broker.impl.BrokerContainerImpl=WARN
 log4j.category.org.activemq.broker.impl.BrokerConnectorImpl=WARN
+log4j.category.org.activemq.transport.tcp.TcpTransportChannel=ERROR
 log4j.category.org.activemq.transport.tcp.TcpTransportServerChannel=WARN
 log4j.category.org.activemq.transport.vm.VmTransportServerChannel=WARN
 

Modified: geronimo/branches/1.0/assemblies/j2ee-tomcat-server/src/var/log/server-log4j.properties
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/assemblies/j2ee-tomcat-server/src/var/log/server-log4j.properties?rev=356040&r1=356039&r2=356040&view=diff
==============================================================================
--- geronimo/branches/1.0/assemblies/j2ee-tomcat-server/src/var/log/server-log4j.properties
(original)
+++ geronimo/branches/1.0/assemblies/j2ee-tomcat-server/src/var/log/server-log4j.properties
Sun Dec 11 13:56:28 2005
@@ -63,6 +63,7 @@
 log4j.category.org.activemq.store.journal.JournalPersistenceAdapter=WARN
 log4j.category.org.activemq.broker.impl.BrokerContainerImpl=WARN
 log4j.category.org.activemq.broker.impl.BrokerConnectorImpl=WARN
+log4j.category.org.activemq.transport.tcp.TcpTransportChannel=ERROR
 log4j.category.org.activemq.transport.tcp.TcpTransportServerChannel=WARN
 log4j.category.org.activemq.transport.vm.VmTransportServerChannel=WARN
 

Modified: geronimo/branches/1.0/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java?rev=356040&r1=356039&r2=356040&view=diff
==============================================================================
--- geronimo/branches/1.0/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
(original)
+++ geronimo/branches/1.0/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
Sun Dec 11 13:56:28 2005
@@ -171,7 +171,10 @@
             try {
                 PreparedStatement statement = conn.prepareStatement(userSelect);
                 try {
-                    statement.setObject(1, cbUsername);
+                    int count = countParameters(userSelect);
+                    for(int i=0; i<count; i++) {
+                        statement.setObject(i+1, cbUsername);
+                    }
                     ResultSet result = statement.executeQuery();
 
                     try {
@@ -198,7 +201,10 @@
 
                 statement = conn.prepareStatement(groupSelect);
                 try {
-                    statement.setObject(1, cbUsername);
+                    int count = countParameters(groupSelect);
+                    for(int i=0; i<count; i++) {
+                        statement.setObject(i+1, cbUsername);
+                    }
                     ResultSet result = statement.executeQuery();
 
                     try {
@@ -249,5 +255,14 @@
         cbPassword = null;
         //todo: should remove principals put in by commit
         return true;
+    }
+
+    private static int countParameters(String sql) {
+        int count = 0;
+        int pos = -1;
+        while((pos = sql.indexOf('?', pos+1)) != -1) {
+            ++count;
+        }
+        return count;
     }
 }



Mime
View raw message