Re: [JBoss-dev] CVS update: newsite/business changelog_2_2_1.html

2001-04-22 Thread Jim Archer

This looks great! Another change from 2.2 to 2.2.1 was that the startup 
scripts for the Tomcat/jBoss and Jetty/jBoss distributions now are 
run_with_tomcat.* and run_with_jetty.*, as opposed to the simple run.* 
scripts from before.

Should this be included in the change log?

Jim

--On Sunday, April 22, 2001 7:34 AM -0700 
[EMAIL PROTECTED] wrote:

>   User: juhalindfors
>   Date: 01/04/22 07:34:22
>
>   Added:   business changelog_2_2_1.html
>   Log:
>   changelog for the website
>
>   Revision  ChangesPath
>   1.1  newsite/business/changelog_2_2_1.html
>
>   Index: changelog_2_2_1.html
>   ===
>   
>jboss.org
>content="text/html;charset=iso-8859-1">type="text/css" href="main.css" >
>   
>
>  topmargin="0"> d
>   
>src="../pictures/head1.gif" width="180" height="165"> bgcolor="#2c922f">height="165"> background="../pictures/headback2.jpg">src="../pictures/head3.gif" width="380" height="165"> width="100%" background="../pictures/headfill.gif">src="../pictures/t.gif" width="6" height="1"> 
>
>   
>
>  height="20"> src="../pictures/t.gif" width="195" height="1"> align="left" valign="center" nowrap> src="../pictures/cog1.gif" width="44" height="13" align="absmiddle">
>
>
>
>RELEASE NOTES AND CHANGE LOG
>align="absmiddle"> 
>height="20"> 
>height="540"> background="../pictures/mainfill.gif">width="80" height="340"> valign="top">
>
>
>
>
>JBOSS 2.2.1 RELEASE
>   
>   
> JBoss 2.2.1 (stable) Release. This is a bug fix release.
>   
>
>   417433  LoginModule bug fixes
>
>   Bug fix #415511 - JaasServerLoginModule is broken
>
>   
>   The 2.2 release of the JaasServerLoginModule is assigning all
>   the union of all roles to each user. This was not seen in
>   testing because the JBossSX unit-tests are not convering this
>   login module.
>   
>
>   Bug fix #415818 - Shared principal name is not
>   consistent
>
>   
>   The javax.security.auth.login.name value for the shared
>   principal is not consistent with regard to type. Some modules
>   are using a Principal, others the String name. At this level
>   there is no reason not to consistently use the name of the
>   principal as a String
>   
>
>   417401  Added bundle build to contrib/tomcat
>
>   
>   Support for building bundled JBoss/Tomcat distributions was
>   added to the contrib/tomcat cvs module. See the bundle target
>   in the src/build/build.xml Ant buildfile.
>   
>
>   416575  Fixed race in TxCapsule
>   
>   Bug fix #416377
>
>   
>   It is possible under load for a TxCapsule to be released for
>   reuse and for it to be picked for reuse before a 'commit'
>   operation is actually complete. This _should_ only cause a
>   problem if the transaction should have thrown a Hueristic
>   exception of some sort, but it also causes lock contention,
>   slowing one of the requests down a bit.
>   
>
>   416920  Don't use CLASSPATH in run.bat/run.sh
>   
>   
>   Removed the use of the system CLASSPATH variable as
>   this results in too many conflicts in general. Changed
>   CLASSPATH to JBOSS_CLASSPATH to make it clear that the
>   CLASSPATH variable is not used. If you are relying on
>   the system CLASSPATH to include required jars you
>   either need to edit run.bat/run.sh to include
>   CLASSPATH or setup a JBOSS_CLASSPATH variable with the
>   required jars.
>   
>
>   416438  Threading in HelloEJB
>
>   Bug fix #416376
>
>   
>   The HelloEJB servlet (for tomcat integration test) was
>   not threadsafe. 
>   
>
>   415366  MetricsInterceptor improvement
>
>   
>   JMS Messages were never deliverd due to too small time to
>   live value.
>   
>
>   416812  Removed res-jndi-name java: prefix need
>
>   Bug fix #414854
>
>   
>   The requirement that the res-jndi-name be prefixed with
>   java: has been removed from the ApplicationMetaData class.
>   
>
>   417126  Updated InstantDB to 3.26
>
>   
>   Updated the InstantDB idb.jar to version 3.26 to fix a
>   deadlock issue.
>   
>
>   417239  Fixed JDBCDataSourceLoader
>
>   
>   JDBCDataSourceLoader now works. It can be used to
>   obtain a non-transactional JDBC connection pool.
>   
>   
>   
>height="1">  
>width="65" height="340"> 
>height="1"> height="15"> align="right">heigh

[JBoss-dev] CVS update: jnp/src/main/org/jnp/interfaces NamingContext.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:43:18

  Modified:src/main/org/jnp/interfaces NamingContext.java
  Log:
  Handle a name that consists only of the scheme
  
  Revision  ChangesPath
  1.8   +2 -2  jnp/src/main/org/jnp/interfaces/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/interfaces/NamingContext.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NamingContext.java2001/04/23 06:08:06 1.7
  +++ NamingContext.java2001/04/23 06:43:17 1.8
  @@ -33,7 +33,7 @@
*   @see 
*   @author oberg
*   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.7 $
  + *   @version $Revision: 1.8 $
*/
   public class NamingContext
  implements Context, java.io.Serializable
  @@ -182,7 +182,7 @@
   {
   // Scheme was "url:/..."
   n.remove(0);
  -if( n.get(0).equals("") && n.size() > 1 )
  +if( n.size() > 1 && n.get(0).equals("") )
   {
   // Scheme was "url://hostname:port/..."
   // Get hostname:port value for the naming server
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/naming NamingService.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:31:12

  Modified:src/main/org/jboss/naming NamingService.java
  Log:
  Logging needs to move to log4j
  
  Revision  ChangesPath
  1.9   +2 -3  jboss/src/main/org/jboss/naming/NamingService.java
  
  Index: NamingService.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/naming/NamingService.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- NamingService.java2001/04/09 20:43:08 1.8
  +++ NamingService.java2001/04/23 06:31:11 1.9
  @@ -20,7 +20,7 @@
*   @see 
*   @author Rickard Öberg ([EMAIL PROTECTED])
*   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.8 $
  + *   @version $Revision: 1.9 $
*/
   public class NamingService
  extends ServiceMBeanSupport
  @@ -62,12 +62,11 @@
  
  public void setLogging(boolean l)
  {
  -  naming.setLogging(l);
  }
  
  public boolean getLogging()
  {
  -  return naming.getLogging();
  +   return false;
  }
  
  public ObjectName getObjectName(MBeanServer server, ObjectName name)
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/lib jnpserver.jar

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:21:39

  Modified:src/lib  jnpserver.jar
  Log:
  Update the jnp naming provider jars to include the latest changes
  
  Revision  ChangesPath
  1.7   +90 -65jboss/src/lib/jnpserver.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client jnp-client.jar

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:21:39

  Modified:src/client jnp-client.jar
  Log:
  Update the jnp naming provider jars to include the latest changes
  
  Revision  ChangesPath
  1.7   +58 -40jboss/src/client/jnp-client.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/src/etc server.mf

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:09:56

  Modified:src/etc  server.mf
  Log:
  Updated Class-Path and added log4j.properties file for the standalone
  naming service
  
  Revision  ChangesPath
  1.2   +1 -2  jnp/src/etc/server.mf
  
  Index: server.mf
  ===
  RCS file: /cvsroot/jboss/jnp/src/etc/server.mf,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- server.mf 2000/10/10 12:42:36 1.1
  +++ server.mf 2001/04/23 06:09:56 1.2
  @@ -1,3 +1,2 @@
   Main-Class: org.jnp.server.Main
  -Class-Path: . ../conf/ jndi.jar ../lib/ext/jndi.jar
  -
  +Class-Path: . ../conf/ ../lib/ext/jndi.jar ../lib/ext/log4j.jar
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/src/main/org/jnp/interfaces NamingContext.java NamingContextFactory.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:08:06

  Modified:src/main/org/jnp/interfaces NamingContext.java
NamingContextFactory.java
  Log:
  Add support for PROVIDER_URL values that refer to subcontexts
  
  Revision  ChangesPath
  1.7   +171 -169  jnp/src/main/org/jnp/interfaces/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/interfaces/NamingContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- NamingContext.java2001/04/09 20:50:27 1.6
  +++ NamingContext.java2001/04/23 06:08:06 1.7
  @@ -33,82 +33,85 @@
*   @see 
*   @author oberg
*   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.6 $
  + *   @version $Revision: 1.7 $
*/
   public class NamingContext
  implements Context, java.io.Serializable
   {
  -   // Constants -
  -
  -   // Attributes 
  -   Naming naming;
  -   Hashtable env;
  -   Name prefix;
  -   
  -   NameParser parser = new NamingParser();
  -   
  -   // Static 
  - 
  - // Cache of naming server stubs
  - // This is a critical optimization in the case where new InitialContext
  - // is performed often. The server stub will be shared between all those
  - // calls, which will improve performance.
  - // Weak references are used so if no contexts use a particular server
  - // it will be removed from the cache.
  - static HashMap cachedServers = new HashMap();
  +// Constants -
  +/** @since 1.7 */
  +static final long serialVersionUID = 8906455608484282128L;
  +static Naming localServer;
  +
  +// Attributes 
  +Naming naming;
  +Hashtable env;
  +Name prefix;
  +
  +NameParser parser = new NamingParser();
  +
  +// Static 

  - static void addServer(String name, Naming server)
  - {
  - // Add server to map
  - // Clone and synchronize to minimize delay for readers of the map
  - synchronized (NamingContext.class)
  - {
  - HashMap newServers = (HashMap)cachedServers.clone();
  - newServers.put(name, new WeakReference(server));
  - cachedServers = newServers;
  - }
  - }
  +// Cache of naming server stubs
  +// This is a critical optimization in the case where new InitialContext
  +// is performed often. The server stub will be shared between all those
  +// calls, which will improve performance.
  +// Weak references are used so if no contexts use a particular server
  +// it will be removed from the cache.
  +static HashMap cachedServers = new HashMap();
  +
  +static void addServer(String name, Naming server)
  +{
  +// Add server to map
  +// Clone and synchronize to minimize delay for readers of the map
  +synchronized (NamingContext.class)
  +{
  +HashMap newServers = (HashMap)cachedServers.clone();
  +newServers.put(name, new WeakReference(server));
  +cachedServers = newServers;
  +}
  +}
  
  static Naming getServer(String host, int port)
throws NamingException
  {
  - WeakReference ref = (WeakReference)cachedServers.get(host+":"+port);
  - 
  - Naming server;
  - if (ref != null)
  - {
  - server = (Naming)ref.get();
  - if (server != null)
  - {
  -//DEBUG  System.out.println("Using cached naming 
server");
  - return server;
  - }
  - }
  - 
  - // Server not found; add it to cache
  - try
  - {
  - Socket s;
  - 
  - try
  - {
  - s = new Socket(host,port);
  - } catch (IOException e2)
  - {
  -NamingException ex = new 
ServiceUnavailableException(e2.getMessage());
  -ex.setRootCause(e2);
  -throw ex;
  - }
  - 
  - // Get stub from naming server
  +WeakReference ref = (WeakReference)cachedServers.get(host+":"+port);
  +
  +Naming server;
  +if (ref != null)
  +{
  +server = (Naming)ref.get();
  +if (server != null)

[JBoss-dev] CVS update: jnp/src/lib log4j.jar

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:08:45

  Added:   src/lib  log4j.jar
  Log:
  Use log4j in the standalone naming server
  
  Revision  ChangesPath
  1.1  jnp/src/lib/log4j.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/src/main/org/jnp/server Main.java MainMBean.java NamingServer.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:08:06

  Modified:src/main/org/jnp/server Main.java MainMBean.java
NamingServer.java
  Log:
  Add support for PROVIDER_URL values that refer to subcontexts
  
  Revision  ChangesPath
  1.3   +162 -161  jnp/src/main/org/jnp/server/Main.java
  
  Index: Main.java
  ===
  RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/server/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java 2000/12/12 10:57:11 1.2
  +++ Main.java 2001/04/23 06:08:06 1.3
  @@ -7,10 +7,12 @@
*/
   package org.jnp.server;
   
  +import java.io.FileNotFoundException;
   import java.io.IOException;
   import java.io.ObjectOutputStream;
   import java.net.Socket;
   import java.net.ServerSocket;
  +import java.net.URL;
   import java.rmi.Remote;
   import java.rmi.RemoteException;
   import java.rmi.MarshalledObject;
  @@ -19,178 +21,177 @@
   
   import javax.naming.*;
   
  +import org.apache.log4j.Category;
  +import org.apache.log4j.PropertyConfigurator;
  +
   import org.jnp.interfaces.Naming;
   import org.jnp.interfaces.NamingContext;
   import org.jnp.interfaces.java.javaURLContextFactory;
  +
  +/** A main() entry point for running the jnp naming service implementation as
  +a standalone process.
   
  -/**
  - *
  - *  
  - *   @see 
  - *   @author $Author: oberg $
  - *   @version $Revision: 1.2 $
  - */
  +@author $Author: starksm $
  +@author [EMAIL PROTECTED]
  +@version $Revision: 1.3 $
  +*/
   public class Main
  implements Runnable, MainMBean
   {
  -   // Constants -
  -
  -   // Attributes 
  -   NamingServer theServer;
  -   MarshalledObject serverStub;
  -   ServerSocket serverSocket;
  -   
  -   int port = 1099;
  -   int rmiPort = 0; // Anonymous
  -   boolean logging = false;
  -   
  -   // Static 
  -   public static void main(String[] args)
  +// Constants -
  +
  +// Attributes 
  +NamingServer theServer;
  +MarshalledObject serverStub;
  +ServerSocket serverSocket;
  +
  +int port = 1099;
  +int rmiPort = 0; // Anonymous
  +Category log;
  +
  +// Static 
  +public static void main(String[] args)
 throws Exception
  -   {
  -  new Main().start();
  -   }
  -
  -   // Constructors --
  -   public Main()
  -   {
  -  // Load properties from properties file
  -  try
  -  {
  - 
System.getProperties().load(getClass().getClassLoader().getResourceAsStream("jnp.properties"));
  -  } catch (Exception e)
  -  {
  +{
  +new Main().start();
  +}
  +
  +// Constructors --
  +public Main()
  +{
  +// Load properties from properties file
  +try
  +{
  +
System.getProperties().load(getClass().getClassLoader().getResourceAsStream("jnp.properties"));
  +} catch (Exception e)
  +{
// Ignore
  -  }
  -  
  -  // Set configuration
  -  setPort(Integer.getInteger("jnp.port",getPort()).intValue());
  -  setLogging(Boolean.getBoolean("jnp.log"));
  -   }
  -
  -   // Public 
  -   public void setRmiPort(int p) { rmiPort = p; }
  -   public int getRmiPort() { return rmiPort; }
  -   
  -   public void setPort(int p) { port = p; }
  -   public int getPort() { return port; }
  +}
   
  -   public void setLogging(boolean l) { logging = l; }
  -   public boolean getLogging() { return logging; }
  +// Set configuration
  +setPort(Integer.getInteger("jnp.port",getPort()).intValue());
  +log = Category.getInstance("org.jnp.Naming");
  +}
   
  -   public void start()
  +// Public 
  +public void setRmiPort(int p) { rmiPort = p; }
  +public int getRmiPort() { return rmiPort; }
  +
  +public void setPort(int p) { port = p; }
  +public int getPort() { return port; }
  +
  +public void start()
 throws Exception
  -   {
  -  // Create remote object
  -  theServer = new NamingServer();
  -   
  -  // Set local server reference
  -  NamingContext.setLocal(theServer);
  - 
  -  // Export server
  -  serverStub = new MarshalledObject(UnicastRemoteObject.exportObject(theServer, 
rmiPort));
  -  
  -  // Start listener
  -  try
  -  {
  - serverSocket = null;
  - serverSocket = new ServerSocket(getPort());

[JBoss-dev] CVS update: jnp/src/main/org/jnp/client Main.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:06:23

  Modified:src/main/org/jnp/client Main.java
  Log:
  Update tests of the jnp: url usage
  
  Revision  ChangesPath
  1.3   +44 -17jnp/src/main/org/jnp/client/Main.java
  
  Index: Main.java
  ===
  RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/client/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java 2000/11/02 15:14:06 1.2
  +++ Main.java 2001/04/23 06:06:23 1.3
  @@ -31,8 +31,9 @@
*   The JNDI configuration is provided in the jndi.properties file.
*  
*   @see NamingContext
  - *   @author $Author: oberg $
  - *   @version $Revision: 1.2 $
  + *   @author $Author: starksm $
  + *   @author [EMAIL PROTECTED]
  + *   @version $Revision: 1.3 $
*/
   public class Main
  implements Runnable
  @@ -64,10 +65,9 @@
  {
 Context ctx = (Context)new InitialContext().lookup("");
 Name n = ctx.getNameParser("").parse(name);
  -  
  +  System.out.println("'"+name+"'.size = "+n.size());
 for (int i = 0; i < n.size(); i++)
  - System.out.print("#"+n.get(i));
  -  System.out.println("#");
  + System.out.println("  ["+i+"]"+n.get(i));
  }
  
  /**
  @@ -95,12 +95,15 @@
 try
 {
printName("jnp://localhost/");
  + printName("jnp://localhost:1099/");
  + printName("jnp://localhost:1099/root");
printName("jnp://localhost");
printName("jnp:/localhost/");
printName("jnp:localhost/");

// Locate naming service (environment/setup is provided through the 
jndi.properties file)
  - Context ctx = (Context)new InitialContext();
  + InitialContext iniCtx = new InitialContext(); 
  + Context ctx = iniCtx;
  
// Create subcontext
Context test = ctx.createSubcontext("test");
  @@ -123,13 +126,15 @@
// Lookup object
Object server = ctx.lookup("test/server2");
System.out.println("test/server2 lookup:"+server);
  + server = ctx.lookup("jnp://localhost/test/server2");
  + System.out.println("jnp://localhost/test/server2 lookup:"+server);

// Lookup object
test = (Context)ctx.lookup("test");
Object server2 = test.lookup("server");

// Rebind object
  - new InitialContext().rebind("test/server2", hello2);
  + iniCtx.rebind("test/server2", hello2);
System.out.println("test/server2 rebound");
   
showTree(ctx);
  @@ -154,20 +159,20 @@
showTree(ctx);

// Try URL context factory
  - ctx = (Context)new InitialContext().lookup("jnp://localhost/");
  + ctx = (Context) iniCtx.lookup("jnp://localhost/");
System.out.println("Looked up URL context");

showTree(ctx);
  - 
  +
// Try complete URL
  - System.out.println("Looked up using URL: " +new 
InitialContext().lookup("jnp://localhost:1099/test/server3"));
  + System.out.println("Looked up using URL: " 
+iniCtx.lookup("jnp://localhost:1099/test/server3"));
   
// Bind using complete URL
  - new InitialContext().bind("jnp://localhost/helloserver",hello2);
  + iniCtx.bind("jnp://localhost/helloserver",hello2);
System.out.println("Bound helloserver");

// Rename using URL
  - new 
InitialContext().rename("helloserver","jnp://localhost/test/helloserver");
  + iniCtx.rename("helloserver","jnp://localhost/test/helloserver");
System.out.println("Renamed helloserver to test/helloserver");

// Bind to root using absolute and relative names
  @@ -190,7 +195,7 @@
// Show root context using listBindings
System.out.println();
System.out.println("Show root bindings");
  - ctx = new InitialContext();
  + ctx = iniCtx;
NamingEnumeration enum = ctx.listBindings("");
while (enum.hasMoreElements())
{
  @@ -199,10 +204,32 @@
}

showTree(ctx);
  - 
  - ctx.close();
  - 
  -  } catch (Exception e)
  + iniCtx.close();
  +
  + // Create an initial context that is rooted at /test
  + Properties env = new Properties();
  + env.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  + env.setProperty(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
  + env.setProperty(Context.PROVIDER_URL, "jnp://localhost/test");
  + System.out.println("+++ Test jnp URL passed as PROVIDER_URL");
  + ctx = new InitialContext(env);
  + server = ctx.lookup("server");
  

[JBoss-dev] CVS update: jnp/src/etc/conf log4j.properties

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:09:56

  Added:   src/etc/conf log4j.properties
  Log:
  Updated Class-Path and added log4j.properties file for the standalone
  naming service
  
  Revision  ChangesPath
  1.1  jnp/src/etc/conf/log4j.properties
  
  Index: log4j.properties
  ===
  # The log4j properties used by the standalone jnp server
  log4j.rootCategory=DEBUG, Console
  
  ### The console appender
  log4j.appender.Console=org.apache.log4j.FileAppender
  log4j.appender.Console.File=System.out
  log4j.appender.Console.Threshold=INFO
  log4j.appender.Console.layout=org.apache.log4j.PatternLayout
  log4j.appender.Console.layout.ConversionPattern=[%p] %m%n
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/src/build build.bat build.sh build.xml

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:05:44

  Modified:src/build build.bat build.sh build.xml
  Log:
  Update to Ant 1.3 and remove unnecessary jars
  
  Revision  ChangesPath
  1.2   +2 -3  jnp/src/build/build.bat
  
  Index: build.bat
  ===
  RCS file: /cvsroot/jboss/jnp/src/build/build.bat,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.bat 2000/10/10 12:42:35 1.1
  +++ build.bat 2001/04/23 06:05:44 1.2
  @@ -2,9 +2,8 @@
   REM convenience bat file to build with
   
   set CLASSPATH=..\..\lib\ant.jar
  -set CLASSPATH=%CLASSPATH%;..\..\lib\xml.jar
  -set CLASSPATH=%CLASSPATH%;..\..\lib\xmlbeans.jar
  -set CLASSPATH=%CLASSPATH%;..\..\build\classes
  +set CLASSPATH=%CLASSPATH%;..\..\lib\crimson.jar
  +set CLASSPATH=%CLASSPATH%;..\..\lib\jaxp.jar
   set CLASSPATH=%CLASSPATH%;..\..\lib\javac.jar
   
   java -classpath "%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
  
  
  
  1.2   +6 -8  jnp/src/build/build.sh
  
  Index: build.sh
  ===
  RCS file: /cvsroot/jboss/jnp/src/build/build.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.sh  2000/10/10 12:42:35 1.1
  +++ build.sh  2001/04/23 06:05:44 1.2
  @@ -1,11 +1,9 @@
   #! /bin/sh
  +# $Id: build.sh,v 1.2 2001/04/23 06:05:44 starksm Exp $
   
  -# $Id: build.sh,v 1.1 2000/10/10 12:42:35 oberg Exp $
  +CLASSPATH=../../lib/ant.jar
  +CLASSPATH=$CLASSPATH:../../lib/crimson.jar
  +CLASSPATH=$CLASSPATH:../../lib/jaxp.jar
  +CLASSPATH=$CLASSPATH:../../lib/javac.jar
   
  -TARGET_CLASSPATH=../../lib/ant.jar:\
  -../../lib/xml.jar:\
  -../../lib/xmlbeans.jar:\
  -../../build/classes:\
  -../../lib/javac.jar
  -
  -java -classpath $TARGET_CLASSPATH org.apache.tools.ant.Main $*
  +java -classpath $CLASSPATH org.apache.tools.ant.Main $*
  
  
  
  1.4   +58 -45jnp/src/build/build.xml
  
  Index: build.xml
  ===
  RCS file: /cvsroot/jboss/jnp/src/build/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml 2000/12/12 10:57:08 1.3
  +++ build.xml 2001/04/23 06:05:44 1.4
  @@ -1,47 +1,46 @@
   
   
   
  -
  +
   
  +
   
  -
  -  
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +  
  +
  +  
  +
  +
  +
  +  
   
  -
  -
  -  
  +  
  +  
   
 
 
 
  -  
  +  
   
 
  -  
  +
 
 
 
  @@ -58,14 +57,16 @@
 
  +  classpath="${classpath}"/>  
 
   
 
 
 
 
  -
  +
  +  
  +

   
   

   
  - 
  - 
  - 
  - 
  - 
  + 
  +   
  + 
  + 
  +   
  +   
  + 
  + 
  +   
  +   
  + 
 
   
 
  @@ -127,11 +134,17 @@
 


  - 
  - 
  - 
  + 
  +   
  + 
  + 
  +   
  + 
  +

  - 
  + 
  +   
  + 
 
   
 
  @@ -152,7 +165,7 @@
 
 
 
  -  
  +  
   
   
 
  @@ -165,4 +178,4 @@
   
   
 
  -
  \ No newline at end of file
  +
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/src/main/org/jnp/interfaces/jnp jnpURLContextFactory.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:08:06

  Modified:src/main/org/jnp/interfaces/jnp jnpURLContextFactory.java
  Log:
  Add support for PROVIDER_URL values that refer to subcontexts
  
  Revision  ChangesPath
  1.3   +2 -2  jnp/src/main/org/jnp/interfaces/jnp/jnpURLContextFactory.java
  
  Index: jnpURLContextFactory.java
  ===
  RCS file: 
/cvsroot/jboss/jnp/src/main/org/jnp/interfaces/jnp/jnpURLContextFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- jnpURLContextFactory.java 2000/12/12 10:57:11 1.2
  +++ jnpURLContextFactory.java 2001/04/23 06:08:06 1.3
  @@ -17,8 +17,8 @@
*
*  
*   @see 
  - *   @author $Author: oberg $
  - *   @version $Revision: 1.2 $
  + *   @author $Author: starksm $
  + *   @version $Revision: 1.3 $
*/
   public class jnpURLContextFactory
  implements ObjectFactory
  @@ -73,4 +73,4 @@
  // Private ---
   
  // Inner classes -
  -}
  \ No newline at end of file
  +}
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jnp/lib crimson.jar jaxp.jar ant.jar xml.jar

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 23:03:10

  Modified:lib  ant.jar
  Added:   lib  crimson.jar jaxp.jar
  Removed: lib  xml.jar
  Log:
  Update to Ant 1.3 and JAXP
  
  Revision  ChangesPath
  1.2   +1183 -383 jnp/lib/ant.jar
  
<>
  
  
  1.1  jnp/lib/crimson.jar
  
<>
  
  
  1.1  jnp/lib/jaxp.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] How do i get the source code for jBoss

2001-04-22 Thread Harishankar Nair

Hi ,
I want to get the source code for jBoss server. To do this I downloaded and
installed winCVS - but then what is this tcl and how do I further get to the
source coede??
Cud someone please help??
Thanks and regards harish


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: manual/src/docs howtoj2eedeployer.xml

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 22:39:09

  Modified:src/docs howtoj2eedeployer.xml
  Log:
  Add the footnotes back in
  
  Revision  ChangesPath
  1.5   +10 -2 manual/src/docs/howtoj2eedeployer.xml
  
  Index: howtoj2eedeployer.xml
  ===
  RCS file: /cvsroot/jboss/manual/src/docs/howtoj2eedeployer.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- howtoj2eedeployer.xml 2001/04/21 23:52:01 1.4
  +++ howtoj2eedeployer.xml 2001/04/23 05:39:09 1.5
  @@ -143,7 +143,7 @@
In JBoss we achieve this issue with the following classloader 
architecture: 

On deployment one common classloader is created. This 
classloader will get all archives in its 
  - classpath that are referenced in MANIFEST.MF/Class-Path 
entries of the each individual module
  + classpath that are referenced in 
MANIFEST.MF/Class-Path entries of the each 
individual module
contained in enclosing application.  shows such an entry

When afterwards all modules become deployed in their containers, 
the 
  @@ -164,7 +164,7 @@

To make sure that this package is now loaded by the common 
classloader, we 
reference it from within the web package by adding a 
Class-Path entry to the web 
  - packages MANIFEST.MF file.
  + packages MANIFEST.MF file.
 

 Example Manifest file of web module 
  @@ -208,5 +208,13 @@
Some useful references are http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html";>Manifest 
tutorial 
and http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html";>Jar specification

  + 
  +
  + 
  + Notes
  + 
  + The MANIFEST.MF 
referred to is the one inside the ejb or war archive and NOT the one directly in the 
ear archive.
  +  There is a "feature" 
of the jdk jarfile reader that means that you need to have a carriage return after the 
Class-Path entry in the manifest file - otherwise it is not found.
  + 

   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] A simple question

2001-04-22 Thread Varun Chopra



dear friends,
   i am new to jboss.
Pls tell me how can take a connection from 
connection pool in my session bean?
i mean what is the method to be 
called?
 
waiting..
varun


Re: [JBoss-dev] Help With Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation

2001-04-22 Thread Thomas Hii

Hi,

There are quite a number of examples related to JMS usage that comes with 
the JBoss source. Take a look at it. What you need should be in there.

Thomas Hii


>From: "thomas" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [JBoss-dev] Help With Exception: 
>java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
>Date: Fri, 20 Apr 2001 17:43:38 +0800
>
>Hello EveryBody:
> Does somebody Know how to use jndi to lookup JMS Service ??
>I am getting in trouble in doing this ...(Can't find the name)Because there
>is do documentation for us to
>resolve this problem ..As follows is my test code to find
>java:/DefaultJMSProvider service.
>Please Help me...Thanks A Lot.
>
>
>import java.util.Properties;
>import javax.jms.*;
>import javax.naming.*;
>import java.util.*;
>
>public class TestServer {
> Context jndi;
> Hashtable env=new Hashtable();
>   public TestServer() throws
>javax.jms.JMSException,javax.naming.NamingException{
>
>env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFac
>tory");
> env.put(Context.PROVIDER_URL,"localhost");
>// env.put("java.naming.rmi.security.manager","yes");
>// env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming");
>
> jndi=new InitialContext(env);
> Object _ref = jndi.lookup("JmsTopicConnectionFactory");
> //JMSProviderAdapter _ref =(JMSProviderAdapeter)
>jndi.lookup("java:/DefaultJMSProvider");
> System.out.println(_ref.toString());
>   }
>   public static void main(String[] args)throws 
>NamingException,JMSException
>{
> TestServer testServer1 = new TestServer();
>   }
>}
>
>
>
>
>
>
>___
>Jboss-development mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-development

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] jboss daily test results

2001-04-22 Thread chris


=
==THIS IS AN AUTOMATED EMAIL - SEE http://www.lubega.com FOR DETAILS=
=




JBoss daily test results

SUMMARY

Number of tests run:   56



Successful tests:  49

Errors:3

Failures:  4



DETAILS OF ERRORS


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testRemoveSessionObject
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: [EJB 1.1, p42] Expected 'RemoveException', 
detail:java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:   javax.transaction.TransactionRolledbackException: Could not activate; 
nested exception is:   java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory); nested exception is:   java.rmi.NoSuchObjectException: 
Could not activate; nested exception is:   java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory)
Stack Trace:
junit.framework.AssertionFailedError: [EJB 1.1, p42] Expected 'RemoveException', 
detail:java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is: 
javax.transaction.TransactionRolledbackException: Could not activate; nested 
exception is: 
java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory); nested exception is: 
java.rmi.NoSuchObjectException: Could not activate; nested exception is: 
java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory)
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testRemoveSessionObject(StatefulSessionTest.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testProbeBeanContext
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: Caught an unknown exception in testProbeBeanContex
Stack Trace:
junit.framework.AssertionFailedError: Caught an unknown exception in 
testProbeBeanContex
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testProbeBeanContext(StatefulSessionTest.java:466)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testUserTrx
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: Naming excepiton failure
Stack Trace:
junit.framework.AssertionFailedError: Naming excepiton failure
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testUserTrx(StatefulSessionTest.java:566)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-

[JBoss-dev] [ jboss-Feature Requests-418072 ] suppress unnecessary exception logging

2001-04-22 Thread noreply

Feature Requests item #418072, was updated on 2001-04-22 13:11
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=418072&group_id=22866

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Xandy Johnson (xandyj)
Assigned to: Nobody/Anonymous (nobody)
Summary: suppress unnecessary exception logging

Initial Comment:
Currently (JBoss 2.2), exception stack traces are
logged to the console when
SessionContext.setRollbackOnly() is called and an
exception is thrown.  Exceptions can be a normal part
of business logic and shouldn't generate stack traces
on the server console.  I believe the (transactional)
behavior is correct, but seeing the stack trace on the
server is disconcerting and pollutes the logs, making
it hard to separate the real problems from the expected
behavior.

--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=418072&group_id=22866

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] NamingAlias: won't compile

2001-04-22 Thread Scott M Stark

Try it now.

- Original Message - 
From: "Juha-P Lindfors" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 22, 2001 12:41 PM
Subject: [JBoss-dev] NamingAlias: won't compile


> 
> Scott,
> 
> the current CVS checkout won't compile because ServiceMBean interface is
> missing STARTING and STARTED variables which are required by the
> NamingAlias class.
> 
> -- Juha
> 
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
> 


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/util ServiceMBean.java ServiceMBeanSupport.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 13:02:35

  Modified:src/main/org/jboss/util ServiceMBean.java
ServiceMBeanSupport.java
  Log:
  Move the ServiceMBeanSupport constants to ServiceMBean.
  
  Revision  ChangesPath
  1.4   +12 -9 jboss/src/main/org/jboss/util/ServiceMBean.java
  
  Index: ServiceMBean.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/ServiceMBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ServiceMBean.java 2000/12/07 15:45:20 1.3
  +++ ServiceMBean.java 2001/04/22 20:02:35 1.4
  @@ -6,24 +6,27 @@
*/
   package org.jboss.util;
   
  -/**
  - *
  - *  
  - *   @see 
  +/** An interface describing a JBoss service MBean.
  +
  +@see org.jboss.util.Service
  +@see org.jboss.util.ServiceMBeanSupport
  +
*   @author Rickard Öberg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.3 $
  + *   @author [EMAIL PROTECTED]
  + *   @version $Revision: 1.4 $
*/
   public interface ServiceMBean
extends Service
   {
  // Constants -
  -
  -   // Static 
  +   public static final String[] states = 
{"Stopped","Stopping","Starting","Started"};
  +   public static final int STOPPED  = 0;
  +   public static final int STOPPING = 1;
  +   public static final int STARTING = 2;
  +   public static final int STARTED  = 3;
   
  // Public 
  public String getName();
  -
  public int getState();
  -   
  public String getStateString();
   }
  
  
  
  1.11  +15 -16jboss/src/main/org/jboss/util/ServiceMBeanSupport.java
  
  Index: ServiceMBeanSupport.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/ServiceMBeanSupport.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ServiceMBeanSupport.java  2001/04/20 22:42:07 1.10
  +++ ServiceMBeanSupport.java  2001/04/22 20:02:35 1.11
  @@ -16,30 +16,29 @@
  
   import org.jboss.logging.Log;
   
  -/** An abstract base class JBoss services can subclass
  - *  
  - *   @see 
  - *   @author Rickard Öberg ([EMAIL PROTECTED])
  - *   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.10 $
  - */
  +/** An abstract base class JBoss services can subclass to implement a
  +service that conforms to the ServiceMBean interface. Subclasses must
  +override {@link #getName() getName} method and should override 
  +{@link #initService() initService}, {@link #startService() startService},
  +{@link #stopService() stopService}, {@link #destroyService() destroyService}
  +as approriate.
  +
  +@see org.jboss.util.ServiceMBean
  +
  +@author Rickard Öberg ([EMAIL PROTECTED])
  +@author [EMAIL PROTECTED]
  +@version $Revision: 1.11 $
  +*/
   public abstract class ServiceMBeanSupport
  extends NotificationBroadcasterSupport
  -   implements ServiceMBean, MBeanRegistration, Service
  +   implements ServiceMBean, MBeanRegistration
   {
  // Attributes 
  private int state;
  private MBeanServer server;
  -   public static String[] states = {"Stopped","Stopping","Starting","Started"};
  -   public static int STOPPED  = 0;
  -   public static int STOPPING = 1;
  -   public static int STARTING = 2;
  -   public static int STARTED  = 3;
  -   
  private int id = 0;
  -   
  protected Log log;
  -
  +
  // Static 
   
  // Public 
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: manual/src/docs jboss.xsl

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 13:01:01

  Modified:src/docs jboss.xsl
  Log:
  Override the docbook html/footnote.xsl footnote element as this was just wrong
  
  Revision  ChangesPath
  1.6   +12 -0 manual/src/docs/jboss.xsl
  
  Index: jboss.xsl
  ===
  RCS file: /cvsroot/jboss/manual/src/docs/jboss.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- jboss.xsl 2001/03/21 20:39:26 1.5
  +++ jboss.xsl 2001/04/22 20:01:01 1.6
  @@ -22,6 +22,18 @@


   
  + 
  + 
  + 
  + 
  + 
  + 
  + 
  + 
  + 
  + 
  + 
  +



  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] NamingAlias: won't compile

2001-04-22 Thread Juha-P Lindfors


Scott,

the current CVS checkout won't compile because ServiceMBean interface is
missing STARTING and STARTED variables which are required by the
NamingAlias class.

-- Juha



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] [ jboss-Change Notes-418054 ] JBossAdmin: Monitoring client

2001-04-22 Thread noreply

Change Notes item #418054, was updated on 2001-04-22 11:38
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=381174&aid=418054&group_id=22866

Category: None
Group: v2.4
Status: Open
Priority: 5
Submitted By: Juha Lindfors (juhalindfors)
Assigned to: Nobody/Anonymous (nobody)
Summary: JBossAdmin: Monitoring client

Initial Comment:
Monitor client added from the admin module to JBoss distro.
Provides basic monitoring of invocation times and cache usage.

--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=381174&aid=418054&group_id=22866

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/etc monitor.bat

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:30:44

  Added:   src/etc  monitor.bat
  Log:
  you can use this to start the mon
  
  Revision  ChangesPath
  1.1  jboss/src/etc/monitor.bat
  
  Index: monitor.bat
  ===
  java -jar client/monitor.jar
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/build build.xml

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:24:52

  Modified:src/build build.xml
  Log:
  Adding JBossAdmin monitor client to the distro.
  
  Revision  ChangesPath
  1.67  +21 -1 jboss/src/build/build.xml
  
  Index: build.xml
  ===
  RCS file: /cvsroot/jboss/jboss/src/build/build.xml,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- build.xml 2001/04/20 22:43:36 1.66
  +++ build.xml 2001/04/22 18:24:52 1.67
  @@ -42,6 +42,10 @@
   
   
   
  +
  +
  +
  +
   
   
   
  @@ -262,6 +266,8 @@



  + 
  + 
   


  @@ -301,7 +307,21 @@
   


  -
  +
  + 
  + 
  + 
  +   
  + 
  + 
  +   
  +   
  +


   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client/admin - New directory

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:21:19

  jboss/src/client/admin - New directory

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client/admin jndi.properties monitor.jar

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:24:52

  Added:   src/client/admin jndi.properties monitor.jar
  Log:
  Adding JBossAdmin monitor client to the distro.
  
  Revision  ChangesPath
  1.1  jboss/src/client/admin/jndi.properties
  
  Index: jndi.properties
  ===
  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  java.naming.provider.url=localhost:1099
  java.naming.factory.url.pkgs=org.jboss.naming
  
  
  
  1.1  jboss/src/client/admin/monitor.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client/admin/lib jboss-util.jar jpl-util-0_6b.jar

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:24:52

  Added:   src/client/admin/lib jboss-util.jar jpl-util-0_6b.jar
  Log:
  Adding JBossAdmin monitor client to the distro.
  
  Revision  ChangesPath
  1.1  jboss/src/client/admin/lib/jboss-util.jar
  
<>
  
  
  1.1  jboss/src/client/admin/lib/jpl-util-0_6b.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client/admin/lib - New directory

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:22:13

  jboss/src/client/admin/lib - New directory

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/resources/lang MonitorBundle.properties

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:14:05

  Modified:src/resources/lang MonitorBundle.properties
  Log:
  Modified build to jar separate admin clients and components.
  Fixed bug with one of the resource names.
  Added manifest for monitor client.
  
  Revision  ChangesPath
  1.4   +1 -1  admin/src/resources/lang/MonitorBundle.properties
  
  Index: MonitorBundle.properties
  ===
  RCS file: /cvsroot/jboss/admin/src/resources/lang/MonitorBundle.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MonitorBundle.properties  2001/04/16 21:57:05 1.3
  +++ MonitorBundle.properties  2001/04/22 18:14:05 1.4
  @@ -1,7 +1,7 @@
   #default locale
   
   #window amd dialogs
  -label.frame = JBoss Monitor  v0.3
  +label.frame = JBoss Monitor  v0.31
   label.dialog.about  = About JBoss Monitor
   
   #monitor main window menu bar
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/build build.xml

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:14:04

  Modified:buildbuild.xml
  Log:
  Modified build to jar separate admin clients and components.
  Fixed bug with one of the resource names.
  Added manifest for monitor client.
  
  Revision  ChangesPath
  1.6   +32 -16admin/build/build.xml
  
  Index: build.xml
  ===
  RCS file: /cvsroot/jboss/admin/build/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml 2001/04/16 21:52:36 1.5
  +++ build.xml 2001/04/22 18:14:04 1.6
  @@ -3,7 +3,7 @@
   Build scripts for org.jboss.admin package.
   
   Author:   Juha Lindfors
  -Revision: $Id: build.xml,v 1.5 2001/04/16 21:52:36 juhalindfors Exp $
  +Revision: $Id: build.xml,v 1.6 2001/04/22 18:14:04 juhalindfors Exp $
   Since:Ant 1.1
   
= -->
  @@ -26,6 +26,8 @@
   
   
   
  +
  +
   
   
   
  @@ -82,12 +84,6 @@

 
   
  -
  -
  -
  -
  -
  -  
   
   
 
  @@ -104,6 +100,33 @@
   
   
   
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +  
  + 
 
   
   
  @@ -165,15 +188,6 @@
  
  
   
  -
  -
  -
   
 
 
  @@ -195,6 +209,8 @@
   
 
   
  +
  +
   
 
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor MonitorResourceConstants.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:14:05

  Modified:src/org/jboss/admin/monitor MonitorResourceConstants.java
  Log:
  Modified build to jar separate admin clients and components.
  Fixed bug with one of the resource names.
  Added manifest for monitor client.
  
  Revision  ChangesPath
  1.4   +1 -1  admin/src/org/jboss/admin/monitor/MonitorResourceConstants.java
  
  Index: MonitorResourceConstants.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/MonitorResourceConstants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MonitorResourceConstants.java 2001/04/16 21:55:19 1.3
  +++ MonitorResourceConstants.java 2001/04/22 18:14:05 1.4
  @@ -9,7 +9,7 @@
   final static String HELP_PKG= "resources/lang/MonitorHelp";
   
   /** jBoss icon image path */
  -final static String JBOSS_ICON  = "/resources/images/JBossIcon.gif";
  +final static String JBOSS_ICON  = "/resources/images/jBossIcon.gif";
   /** Server 16x16 icon image path */
   final static String SERVER_ICON_16  = "/resources/images/Server16.gif";
   /** Ejb-jar 16x16 icon image path */
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/etc monitor.mf

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 11:14:05

  Added:   etc  monitor.mf
  Log:
  Modified build to jar separate admin clients and components.
  Fixed bug with one of the resource names.
  Added manifest for monitor client.
  
  Revision  ChangesPath
  1.1  admin/etc/monitor.mf
  
  Index: monitor.mf
  ===
  Main-Class: org.jboss.admin.monitor.Main
  Class-Path:  . lib/jms.jar lib/jta-spec1_0_1.jar lib/jnp-client.jar 
lib/jbossmq-client.jar lib/jpl-util-0_6b.jar lib/jboss-util.jar
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/naming NamingAlias.java NamingAliasMBean.java

2001-04-22 Thread starksm

  User: starksm 
  Date: 01/04/22 09:54:20

  Added:   src/main/org/jboss/naming NamingAlias.java
NamingAliasMBean.java
  Log:
  A naming alias utility mbean that creates a LinkRef at fromName that
  points to toName.
  
  Revision  ChangesPath
  1.1  jboss/src/main/org/jboss/naming/NamingAlias.java
  
  Index: NamingAlias.java
  ===
  /*
   * JBoss, the OpenSource EJB server
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.naming;
  
  import javax.naming.Context;
  import javax.naming.InitialContext;
  import javax.naming.LinkRef;
  import javax.naming.Name;
  import javax.naming.NamingException;
  import javax.naming.NameNotFoundException;
  
  import org.jboss.util.ServiceMBean;
  import org.jboss.util.ServiceMBeanSupport;
  
  /** A simple utility mbean that allows one to create an alias in
  the form of a LinkRef from one JNDI name to another.
  
  @author [EMAIL PROTECTED]
  @version $Revision: 1.1 $
  */
  public class NamingAlias extends ServiceMBeanSupport implements NamingAliasMBean
  {
  private String fromName;
  private String toName;
  
  /** Creates new NamingAlias */
  public NamingAlias()
  {
  }
  public NamingAlias(String fromName, String toName)
  {
  }
  
  // --- Begin NamingAliasMBean interface methods
  public String getFromName()
  {
  return fromName;
  }
  public void setFromName(String name) throws NamingException
  {
  removeLinkRef(fromName);
  this.fromName = name;
  createLinkRef();
  }
  public String getToName()
  {
  return toName;
  }
  public void setToName(String name) throws NamingException
  {
  this.toName = name;
  createLinkRef();
  }
  // --- End NamingAliasMBean interface methods
  
  // --- Begin ServiceMBeanSupport methods
  public String getName()
  {
  return "NamingAlias("+fromName+" -> "+toName+")";
  }
  public void startService() throws Exception
  {
  if( fromName == null )
  throw new IllegalStateException("fromName is null");
  if( toName == null )
  throw new IllegalStateException("toName is null");
  createLinkRef();
  }
  public void stopService()
  {
  try
  {
  removeLinkRef(fromName);
  }
  catch(Exception e)
  {
  }
  }
  // --- Begin ServiceMBeanSupport methods
  
  /**
  */
  private void createLinkRef() throws NamingException
  {
  if( super.getState() == ServiceMBean.STARTING || super.getState() == 
ServiceMBean.STARTED )
  {
  InitialContext ctx = new InitialContext();
  LinkRef link = new LinkRef(toName);
  Context fromCtx = ctx;
  Name name = ctx.getNameParser("").parse(fromName);
  String atom = name.get(name.size()-1);
  for(int n = 0; n < name.size()-1; n ++)
  {
  String comp = name.get(n);
  try
  {
  fromCtx = (Context) fromCtx.lookup(comp);
  }
  catch(NameNotFoundException e)
  {
  fromCtx = fromCtx.createSubcontext(comp);
  }
  }
  fromCtx.rebind(atom, link);
  }
  }
  /** Unbind the name value if we are in the STARTED state.
  */
  private void removeLinkRef(String name) throws NamingException
  {
  if( super.getState() == ServiceMBean.STARTED )
  {
  InitialContext ctx = new InitialContext();
  ctx.unbind(name);
  }
  }
  }
  
  
  
  1.1  jboss/src/main/org/jboss/naming/NamingAliasMBean.java
  
  Index: NamingAliasMBean.java
  ===
  /*
   * JBoss, the OpenSource EJB server
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.naming;
  
  import javax.naming.NamingException;
  
  /** A simple utility mbean that allows one to create an alias in
  the form of a LinkRef from one JNDI name to another.
  
  @author [EMAIL PROTECTED]
  @version $Revision: 1.1 $
  */
  public interface NamingAliasMBean extends org.jboss.util.ServiceMBean
  {
  /** Get the from name of the alias. This is the location where the
  LinkRef is bound under JNDI.
  @return the location of the LinkRef
  */
  public String getFromName();
  /** Set the from name of the alias. This is the location where the
  LinkRef is bound under JNDI.
  @param name, the location where the LinkRef will be bound
  */
  public void setFromName(String name) throws Naming

[JBoss-dev] CVS update: newsite/business binary.html

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 07:44:29

  Modified:business binary.html
  Log:
  link to changelog
  
  Revision  ChangesPath
  1.18  +1 -1  newsite/business/binary.html
  
  Index: binary.html
  ===
  RCS file: /cvsroot/jboss/newsite/business/binary.html,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- binary.html   2001/04/20 16:53:07 1.17
  +++ binary.html   2001/04/22 14:44:29 1.18
  @@ -40,7 +40,7 @@
This is our full suite of Products and it is likely to be all you will need 
to try out our technology.  Download it and find out why many people are 
switching to jboss every day! 
Download now:

  - http://prdownloads.sourceforge.net/jboss/JBoss-2.2.1.zip">JBoss-2.2.1(6402246)
 [APR-19-2001]
  + http://prdownloads.sourceforge.net/jboss/JBoss-2.2.1.zip">JBoss-2.2.1(6.40M) 
[APR-19-2001] [Change Log]
http://prdownloads.sourceforge.net/jboss/jboss-2.2.zip">JBoss-2.2(4.30M) 
[APR-08-2001]

If you need a servlet container, we package JBoss-2.2 and http://jakarta.apache.org/tomcat" target="_top">Tomcat
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Release notes summary for 2.2.1

2001-04-22 Thread Juha Lindfors


Hi Vladimir,

At 19:40 21.4.2001 -0400, you wrote:
>Juha & Scott,
>
>Here is the summary we talked about.  If somebody has ideas were to put
>these , how to format and itergrate them etc etc speak out.

Thanks for writing this. I've uploaded it to our current releases so its
possible to view it when downloading through sourceforge. Also uploaded for
the website, so it's in the CVS.

-- Juha



>
>417433  LoginModule bug fixes
>
> Bug fix #415511 - JaasServerLoginModule is broken
>
>The 2.2 release of the JaasServerLoginModule is 
> assigning all the union of all roles to each user. 
> This was not seen in testing because the JBossSX unit- 
> tests are not convering this login module. 
>
>Bug fix #415818 - Shared principal name is not consistent
>
>The javax.security.auth.login.name value for the 
> shared principal is not consistent with regard to 
> type. Some modules are using a Principal, others the 
> String name. At this level there is no reason not to 
> consistently use the name of the principal as a String
>
>
>417401  Added bundle build to contrib/tomcat
>   
>Support for building bundled JBoss/Tomcat 
>distributions was added to the contrib/tomcat cvs 
>module. See the bundle target in the 
> src/build/build.xml Ant buildfile. 
>
>
>416575  Fixed race in TxCapsule
>   
> Bug fix #416377
>
>It is possible under load for a TxCapsule to be 
> released for reuse and for it to be picked for reuse 
> before a 'commit' operation is actually complete. This 
> _should_ only cause a problem if the transaction should 
> have thrown a Hueristic exception of some sort, but it 
> also causes lock contention, slowing one of the 
> requests down a bit.
>
>
>416920  Don't use CLASSPATH in run.bat/run.sh
>   
> Removed the use of the system CLASSPATH variable as 
> this results in too many conflicts in general. Changed 
> CLASSPATH to JBOSS_CLASSPATH to make it clear that the 
> CLASSPATH variable is not used. If you are relying on 
> the system CLASSPATH to include required jars you 
> either need to edit run.bat/run.sh to include 
> CLASSPATH or setup a JBOSS_CLASSPATH variable with the 
> required jars. 
>
>
>416438  Threading in HelloEJB
>
>Bug fix #416376
>
> The HelloEJB servlet (for tomcat integration test) was 
> not threadsafe.   
>
>
>415366  MetricsInterceptor improvement
>
> JMS Messages were never deliverd due to too small time to live
>value. 
>
>
>416812  Removed res-jndi-name java: prefix need
>
>Bug fix #414854
> 
> The requirement that the res-jndi-name be prefixed 
> with java: has been removed from the 
> ApplicationMetaData class. 
>
>
>417126  Updated InstantDB to 3.26
>   
>Updated the InstantDB idb.jar to version 3.26 to fix a 
> deadlock issue. 
>
>
>417239  Fixed JDBCDataSourceLoader
>
>JDBCDataSourceLoader now works. It can be used to 
> obtain a non-transactional JDBC connection pool. 
>
>
>
>___
>Jboss-development mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-development
>

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: newsite/business changelog_2_2_1.html

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 07:34:22

  Added:   business changelog_2_2_1.html
  Log:
  changelog for the website
  
  Revision  ChangesPath
  1.1  newsite/business/changelog_2_2_1.html
  
  Index: changelog_2_2_1.html
  ===
  
jboss.org

  
  
  
  
  d 
  




  
  
  
  
  



  

  
RELEASE NOTES AND CHANGE LOG



  





  

JBOSS 2.2.1 RELEASE

  
JBoss 2.2.1 (stable) Release. This is a bug fix release.
  
  
  417433  LoginModule bug fixes
  
  Bug fix #415511 - JaasServerLoginModule is broken
  
  
  The 2.2 release of the JaasServerLoginModule is assigning all
  the union of all roles to each user. This was not seen in
  testing because the JBossSX unit-tests are not convering this
  login module.
  
  
  Bug fix #415818 - Shared principal name is not consistent
  
  
  The javax.security.auth.login.name value for the shared
  principal is not consistent with regard to type. Some modules
  are using a Principal, others the String name. At this level
  there is no reason not to consistently use the name of the
  principal as a String
  
  
  417401  Added bundle build to contrib/tomcat
  
 
  Support for building bundled JBoss/Tomcat distributions was
  added to the contrib/tomcat cvs module. See the bundle target
  in the src/build/build.xml Ant buildfile. 
  
  
  416575  Fixed race in TxCapsule

  Bug fix #416377
  
  
  It is possible under load for a TxCapsule to be released for
  reuse and for it to be picked for reuse before a 'commit'
  operation is actually complete. This _should_ only cause a
  problem if the transaction should have thrown a Hueristic
  exception of some sort, but it also causes lock contention,
  slowing one of the requests down a bit.
  
  
  416920  Don't use CLASSPATH in run.bat/run.sh

  
  Removed the use of the system CLASSPATH variable as 
  this results in too many conflicts in general. Changed 
  CLASSPATH to JBOSS_CLASSPATH to make it clear that the 
  CLASSPATH variable is not used. If you are relying on 
  the system CLASSPATH to include required jars you 
  either need to edit run.bat/run.sh to include 
  CLASSPATH or setup a JBOSS_CLASSPATH variable with the 
  required jars. 
  
  
  416438  Threading in HelloEJB
  
  Bug fix #416376
  
  
  The HelloEJB servlet (for tomcat integration test) was 
  not threadsafe.   
  
  
  415366  MetricsInterceptor improvement
  
  
  JMS Messages were never deliverd due to too small time to
  live value. 
  
  
  416812  Removed res-jndi-name java: prefix need
  
  Bug fix #414854
   
  
  The requirement that the res-jndi-name be prefixed with
  java: has been removed from the ApplicationMetaData class. 
  
  
  417126  Updated InstantDB to 3.26
  

  Updated the InstantDB idb.jar to version 3.26 to fix a 
  deadlock issue. 
  
  
  417239  Fixed JDBCDataSourceLoader
  
  
  JDBCDataSourceLoader now works. It can be used to 
  obtain a non-transactional JDBC connection pool.
  


 


  




  
  
  



  


Designed by
mailto:[EMAIL PROTECTED]">NeoLine


Copyright © 1999-2001, http://jboss.org">jboss.org.
All rights reserved.
  


  
  
  
  
  



  




DOWNLOAD

  
Source code
Binary
Documentation


  


  
  
  



  




PRODUCT SUITE

  
J2EE Overview
JBoss Projects 
JBoss 3rd Party
 
  

  


  
  
  



  




RESOURCES

  
Mailing Lists
Success Stories 
Contribute
FAQ
  

  


  
  
  



  




JBOSS GROUP
  

[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/event GraphModelEvent.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:15:20

  Modified:src/org/jboss/admin/monitor/event GraphModelEvent.java
  Log:
  Bug with bogus invocation counts should be fixed + some tweaks.
  
  Revision  ChangesPath
  1.3   +2 -0  admin/src/org/jboss/admin/monitor/event/GraphModelEvent.java
  
  Index: GraphModelEvent.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/event/GraphModelEvent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GraphModelEvent.java  2001/04/16 21:55:19 1.2
  +++ GraphModelEvent.java  2001/04/22 13:15:20 1.3
  @@ -37,3 +37,5 @@
   }
   
   }
  +
  +
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/dataholder BeanCacheEntry.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:15:20

  Modified:src/org/jboss/admin/dataholder BeanCacheEntry.java
  Log:
  Bug with bogus invocation counts should be fixed + some tweaks.
  
  Revision  ChangesPath
  1.3   +0 -3  admin/src/org/jboss/admin/dataholder/BeanCacheEntry.java
  
  Index: BeanCacheEntry.java
  ===
  RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/dataholder/BeanCacheEntry.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanCacheEntry.java   2001/04/16 21:55:19 1.2
  +++ BeanCacheEntry.java   2001/04/22 13:15:20 1.3
  @@ -142,9 +142,6 @@
   }
   
   public void setCapacity(int capacity) {
  -
  -System.out.println("entry cap: " + capacity);
  -
   this.capacity = capacity;
   }
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/graph DefaultGraphRenderer.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:15:20

  Modified:src/org/jboss/admin/monitor/graph DefaultGraphRenderer.java
  Log:
  Bug with bogus invocation counts should be fixed + some tweaks.
  
  Revision  ChangesPath
  1.5   +8 -2  
admin/src/org/jboss/admin/monitor/graph/DefaultGraphRenderer.java
  
  Index: DefaultGraphRenderer.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/graph/DefaultGraphRenderer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultGraphRenderer.java 2001/04/16 21:55:20 1.4
  +++ DefaultGraphRenderer.java 2001/04/22 13:15:20 1.5
  @@ -8,6 +8,7 @@
   import java.awt.Point;
   import java.awt.Rectangle;
   import java.util.ArrayList;
  +import java.util.List;
   import java.util.Collections;
   import java.util.Comparator;
   import java.util.Iterator;
  @@ -52,7 +53,7 @@
*/
   private double max  = 1.0d;
   
  -private ArrayList points= new ArrayList();
  +private List points= new ArrayList();
   
   private boolean autoScale   = true;
  
  @@ -273,7 +274,12 @@
   g.setColor(plotColor);
   
   int x = width  - 1;
  -int y = height - 1;
  +   
  +Point point = (points.size() > 0) ? (Point)points.get(0)
  +  : new Point(0, 0);
  +  
  +int y = height - (int)(point.y * height / parent.getVerticalMax());
  +//int y = height - 1;
   
   Iterator it = points.iterator();
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/tree ApplicationTreeModel.java BeanCacheTreeNode.java MethodTreeNode.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:15:20

  Modified:src/org/jboss/admin/monitor/tree ApplicationTreeModel.java
BeanCacheTreeNode.java MethodTreeNode.java
  Log:
  Bug with bogus invocation counts should be fixed + some tweaks.
  
  Revision  ChangesPath
  1.4   +1 -1  admin/src/org/jboss/admin/monitor/tree/ApplicationTreeModel.java
  
  Index: ApplicationTreeModel.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/ApplicationTreeModel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApplicationTreeModel.java 2001/04/16 21:55:20 1.3
  +++ ApplicationTreeModel.java 2001/04/22 13:15:20 1.4
  @@ -80,7 +80,7 @@
   InvocationTimeGraphModel graphModel = methodNode.getGraphModel();
   graphModel.appendInvocationEntry(entry);
   }
  -
  +
   public void addEntry(BeanCacheEntry entry) {
   
   String applicationName = entry.getApplication();
  
  
  
  1.3   +1 -0  admin/src/org/jboss/admin/monitor/tree/BeanCacheTreeNode.java
  
  Index: BeanCacheTreeNode.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/BeanCacheTreeNode.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanCacheTreeNode.java2001/04/16 21:55:20 1.2
  +++ BeanCacheTreeNode.java2001/04/22 13:15:20 1.3
  @@ -50,6 +50,7 @@
   // initialize the graph model and stats view for this node
   graphModel = new BeanCacheGraphModel();
   statsView  = new BeanCacheStatsView();
  +graphModel.setVerticalMax(50);
   
   // have the stats view listen to the model
   graphModel.addGraphModelListener((GraphModelListener)statsView);
  
  
  
  1.4   +1 -0  admin/src/org/jboss/admin/monitor/tree/MethodTreeNode.java
  
  Index: MethodTreeNode.java
  ===
  RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/MethodTreeNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MethodTreeNode.java   2001/04/18 14:55:29 1.3
  +++ MethodTreeNode.java   2001/04/22 13:15:20 1.4
  @@ -52,6 +52,7 @@
   // initialize the graph model and stats view for this node
   graphModel = new InvocationTimeGraphModel();
   statsView  = new InvocationTimeStatsView();
  +graphModel.setVerticalMax(100);
   
   // have the stats view listen to the model
   graphModel.addGraphModelListener((GraphModelListener)statsView);
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor InvocationTimeStatsView.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:13:09

  Modified:src/org/jboss/admin/monitor InvocationTimeStatsView.java
  Log:
  Deal with the aggregated invocation events.
  
  Revision  ChangesPath
  1.2   +18 -6 admin/src/org/jboss/admin/monitor/InvocationTimeStatsView.java
  
  Index: InvocationTimeStatsView.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/InvocationTimeStatsView.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InvocationTimeStatsView.java  2001/04/18 15:03:16 1.1
  +++ InvocationTimeStatsView.java  2001/04/22 13:13:09 1.2
  @@ -15,6 +15,7 @@
   // non-standard class dependencies
   import org.jboss.admin.monitor.event.GraphModelListener;
   import org.jboss.admin.monitor.event.GraphModelEvent;
  +import org.jboss.admin.monitor.event.AggregatedInvocationEvent;
   
   import org.hs.jfc.FormPanel;
   import org.gjt.lindfors.util.LocalizationSupport;
  @@ -71,19 +72,30 @@
*
*
*/
  - 
  +
   public void valueAppended(GraphModelEvent evt) {
   
  -int value = (int)evt.getValue();
  -
  +double value = evt.getValue();
  +
   // Ignore zero additions; there will be lots of these if the
   // continuous graph update is being used, no need to count them
  -if (value <= 0)
  +if (value <= 0.0)
   return;
  +
  +// invocation graph model may send aggregated invocation event
  +// in case of heavy load, they require slightly different handling
  +if (evt instanceof AggregatedInvocationEvent) {
  +AggregatedInvocationEvent event = (AggregatedInvocationEvent)evt;
   
  -++totalInvocations;
  -totalInvocationTime += value;
  +totalInvocations += event.getInvocationCount();
  +totalInvocationTime += (int)event.getSumValue();
  +}
  +else {
  +++totalInvocations;
  +totalInvocationTime += (int)value;
  +}
   
  +// [TODO] format
   averageTime.setText(String.valueOf(totalInvocationTime / totalInvocations));
   averageTime.repaint();
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor MonitorPane.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:09:27

  Modified:src/org/jboss/admin/monitor MonitorPane.java
  Log:
  Listeners were added in the wrong place, and swing's event listener list
  allowed the same component to register multiple times which caused
  erroneous statistics.
  
  Revision  ChangesPath
  1.4   +2 -2  admin/src/org/jboss/admin/monitor/MonitorPane.java
  
  Index: MonitorPane.java
  ===
  RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/MonitorPane.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MonitorPane.java  2001/04/18 15:03:16 1.3
  +++ MonitorPane.java  2001/04/22 13:09:27 1.4
  @@ -69,12 +69,12 @@
   JComponent comp = (JComponent)listener;
   
   remove((JComponent)stats);
  -graph.getModel().removeGraphModelListener(stats);
  +//graph.getModel().removeGraphModelListener(stats);
   
   decorateStats(comp);
   stats = listener;
   
  -graph.getModel().addGraphModelListener(listener);
  +//graph.getModel().addGraphModelListener(listener);
   add(comp);
   }
   /*
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/graph DefaultGraphModel.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 06:01:28

  Modified:src/org/jboss/admin/monitor/graph DefaultGraphModel.java
  Log:
  Using BoundBuffer instead of ArrayList.
  append() should now be thread safe.
  
  Revision  ChangesPath
  1.4   +23 -15admin/src/org/jboss/admin/monitor/graph/DefaultGraphModel.java
  
  Index: DefaultGraphModel.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/graph/DefaultGraphModel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultGraphModel.java2001/04/16 21:55:20 1.3
  +++ DefaultGraphModel.java2001/04/22 13:01:28 1.4
  @@ -3,18 +3,20 @@
   // standard imports
   import java.awt.Point;
   import java.util.ArrayList;
  +import java.util.Arrays;
   import java.util.List;
   import java.util.Collection;
   import java.util.Collections;
   
  +import javax.swing.SwingUtilities;
   import javax.swing.event.EventListenerList;
   
   // non-standard class dependencies
   import org.jboss.admin.monitor.event.GraphModelListener;
   import org.jboss.admin.monitor.event.GraphModelEvent;
  +import org.gjt.lindfors.util.BoundBuffer;
   
   
  -
   /**
*
*
  @@ -22,16 +24,12 @@
*/
   public class DefaultGraphModel implements GraphModel {
   
  -
  -protected Collection xAxis = Collections.synchronizedList(new ArrayList());
  -
  +protected Collection xAxis = Collections.synchronizedCollection(new 
BoundBuffer(1000));
   protected EventListenerList listenerList = new EventListenerList();
   
   protected double max = 1.0;
   protected double min = 0.0;
   
  -/* lazy create */
  -// hmm?protected GraphModelEvent graphModelEvent = null;
   
   /*
*
  @@ -89,22 +87,36 @@
*/

   /*
  - * append is synchronized
  + * append is thread safe
* will automatically set max
*/
   public void append(Number number) {
  +
   xAxis.add(number);
  -double value = number.doubleValue();
  +final double value = number.doubleValue();
  +
  +if (!SwingUtilities.isEventDispatchThread()) {
  +SwingUtilities.invokeLater(new Runnable() {
  +public void run() {
  +append(value);
  +}
  +});
  +}
  +else
  +append(value);
  +}
   
  +private void append(double value) {
   if (value  > getVerticalMax())
   setVerticalMax(value);
   
   fireValueAppended(value);
   }
   
  +/*
  + */
   public Collection getPlotPoints() {
   Object[] points = xAxis.toArray();
  -
   ArrayList plots = new ArrayList();
   
   for (int i = 0; i < points.length; ++i)
  @@ -131,9 +143,7 @@

   /*
* Notify all listeners that have registered interest for
  - * notification on this event type.  The event instance 
  - * is lazily created using the parameters passed into 
  - * the fire method.
  + * notification on this event type.
*/
   protected void fireValueAppended(double value) {
   // Guaranteed to return a non-null array
  @@ -154,9 +164,7 @@
   
   /*
* Notify all listeners that have registered interest for
  - * notification on this event type.  The event instance 
  - * is lazily created using the parameters passed into 
  - * the fire method.
  + * notification on this event type.
*/
   protected void fireLimitChanged(double value, int target) {
   // Guaranteed to return a non-null array
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/graph InvocationTimeGraphModel.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 05:56:27

  Modified:src/org/jboss/admin/monitor/graph
InvocationTimeGraphModel.java
  Log:
  txMap will no longer grow indefinately.
  Handle clock granularity problem with WinNT (<10ms)
  Handle aggregated invocations correctly (fixes a bug with total invocation
  count displaying wrong values).
  
  Revision  ChangesPath
  1.4   +115 -16   
admin/src/org/jboss/admin/monitor/graph/InvocationTimeGraphModel.java
  
  Index: InvocationTimeGraphModel.java
  ===
  RCS file: 
/cvsroot/jboss/admin/src/org/jboss/admin/monitor/graph/InvocationTimeGraphModel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InvocationTimeGraphModel.java 2001/04/16 21:55:20 1.3
  +++ InvocationTimeGraphModel.java 2001/04/22 12:56:27 1.4
  @@ -7,9 +7,13 @@
   import java.util.Collection;
   import java.util.HashMap;
   import java.util.ArrayList;
  +import javax.swing.SwingUtilities;
   
   // non-standard class dependencies
   import org.jboss.admin.dataholder.InvocationEntry;
  +import org.jboss.admin.monitor.event.GraphModelListener;
  +import org.jboss.admin.monitor.event.GraphModelEvent;
  +import org.jboss.admin.monitor.event.AggregatedInvocationEvent;
   import org.gjt.lindfors.util.BoundBuffer;
   
   
  @@ -18,8 +22,8 @@
*
* @author mailto:[EMAIL PROTECTED]";>Juha Lindfors
*/
  -public class InvocationTimeGraphModel extends DefaultGraphModel
  -  implements  Runnable {
  +public class InvocationTimeGraphModel extends DefaultGraphModel
  +implements  Runnable {
 
   
   public final static int CONTINUOUS_UPDATE   = 0x1;
  @@ -33,13 +37,16 @@
   private Map  txMap  = Collections.synchronizedMap(new HashMap());
   private List resultList = Collections.synchronizedList(new ArrayList());
   
  -protected Collection xAxis = new BoundBuffer(1000);
  -
   private int mode = CONTINUOUS_UPDATE;
   
   private Thread updateThread = null;
   private boolean running = true;
   
  +private int aggregateCount = 0;
  +private double aggregateSum   = 0;
  +
  +private Object lock = new Object();
  +
   /*
*
*
  @@ -99,7 +106,7 @@
   }
   
   else {
  -Object value = txMap.get(txID);
  +Object value = txMap.remove(txID);
   
   if (value == null) {
   System.out.println("Hmm... this end point didnt have a pair: " + 
txID);
  @@ -108,13 +115,18 @@
   
   long start = ((Long)value).longValue();
   Long diff  = new Long(time-start);
  -
  -if (mode == PER_INVOCATION_UPDATE) 
  -append(diff);
  -else if (mode == CONTINUOUS_UPDATE)
  +
  +// deal with clock granularity problem, esp. winnt can't deal
  +// correctly with anything that runs <10ms.
  +if (diff.longValue() == 0)
  +diff = new Long(1);
  +   
  +//if (mode == PER_INVOCATION_UPDATE) 
  +//append(diff);
  +//else if (mode == CONTINUOUS_UPDATE)
   resultList.add(diff);
  -else
  -throw new InternalError("Unknown mode: " + mode);
  +//else
  +//throw new InternalError("Unknown mode: " + mode);
   }
   }
   
  @@ -145,8 +157,67 @@
   public void stopContinuousUpdate() {   
   running = false;
   updateThread.interrupt();
  +}
  +
  +/*
  + *
  + *
  + *  METHOD OVERRIDES
  + *
  + *
  + */ 
  +
  +/*
  + * Override the append to call our version of the fireValueAppended()
  + * [TODO] this version is not thread safe
  + */
  +public void append(Number number) {
  +xAxis.add(number);
  +
  +double avgValue = number.doubleValue();
  +
  +if (avgValue  > getVerticalMax())
  +setVerticalMax(avgValue);
  +
  +int count  = 0;
  +double sum = 0.0;
  +
  +// store the aggregate values set by the update thread
  +// and release the thread from the wait status
  +synchronized(lock) {
  +count = aggregateCount;
  +sum   = aggregateSum;
  +
  +aggregateCount = 0;
  +aggregateSum   = 0.0;
  +
  +lock.notify();
  +}
  +
  +fireValueAppended(avgValue, sum, count);
  +}
  +
  +/*
  + * 
  +   

[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/event AggregatedInvocationEvent.java

2001-04-22 Thread juhalindfors

  User: juhalindfors
  Date: 01/04/22 05:42:53

  Added:   src/org/jboss/admin/monitor/event
AggregatedInvocationEvent.java
  Log:
  Aggregated graph model event used by the invocation model when large
  amount of messages needs to be processed.
  
  Revision  ChangesPath
  1.1  
admin/src/org/jboss/admin/monitor/event/AggregatedInvocationEvent.java
  
  Index: AggregatedInvocationEvent.java
  ===
  package org.jboss.admin.monitor.event;
  
  /**
   * ...
   *
   * @author mailto:[EMAIL PROTECTED]";>Juha Lindfors
   */
  public class AggregatedInvocationEvent extends GraphModelEvent {
  
  private int count   = 0;
  private double sum  = 0.0;
  
  public AggregatedInvocationEvent(Object source, double avgValue, double sum, int 
count) {
  super(source, avgValue);
  
  if (count <= 0)
  throw new IllegalArgumentException("count <= 0");
  
  this.sum   = sum;
  this.count = count;
  }
  
  public int getInvocationCount() {
  return count;
  }
  
  public double getSumValue() {
  return sum;
  }
  
  }
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] jboss daily test results

2001-04-22 Thread chris


=
==THIS IS AN AUTOMATED EMAIL - SEE http://www.lubega.com FOR DETAILS=
=




JBoss daily test results

SUMMARY

Number of tests run:   56



Successful tests:  49

Errors:3

Failures:  4



DETAILS OF ERRORS


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testRemoveSessionObject
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: [EJB 1.1, p42] Expected 'RemoveException', 
detail:java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:   javax.transaction.TransactionRolledbackException: Could not activate; 
nested exception is:   java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory); nested exception is:   java.rmi.NoSuchObjectException: 
Could not activate; nested exception is:   java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory)
Stack Trace:
junit.framework.AssertionFailedError: [EJB 1.1, p42] Expected 'RemoveException', 
detail:java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is: 
javax.transaction.TransactionRolledbackException: Could not activate; nested 
exception is: 
java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory); nested exception is: 
java.rmi.NoSuchObjectException: Could not activate; nested exception is: 
java.io.FileNotFoundException: 
[EMAIL PROTECTED]
 (No such file or directory)
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testRemoveSessionObject(StatefulSessionTest.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testProbeBeanContext
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: Caught an unknown exception in testProbeBeanContex
Stack Trace:
junit.framework.AssertionFailedError: Caught an unknown exception in 
testProbeBeanContex
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testProbeBeanContext(StatefulSessionTest.java:466)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-


Suite:   org.jboss.test.cts.test.AllJUnitTests
Test:testUserTrx
Type:failure
Exception:   junit.framework.AssertionFailedError
Message: Naming excepiton failure
Stack Trace:
junit.framework.AssertionFailedError: Naming excepiton failure
at junit.framework.Assert.fail(Assert.java:143)
at 
org.jboss.test.cts.test.StatefulSessionTest.testUserTrx(StatefulSessionTest.java:566)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:155)
at junit.framework.TestCase.runBare(TestCase.java:129)
at junit.framework.TestResult$1.protect(TestResult.java:100)
at junit.framework.TestResult.runProtected(TestResult.java:117)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.run(TestSuite.java:144)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:202)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:326)

-

[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb AutoDeployer.java

2001-04-22 Thread tobyallsopp

  User: tobyallsopp
  Date: 01/04/21 22:28:25

  Modified:src/main/org/jboss/ejb AutoDeployer.java
  Log:
  Changed the default deployer for AutoDeployer to a valid object name.  Now
  having an invalid object name in the list of deployers will not cause the
  rest of the list to be discarded.
  
  Revision  ChangesPath
  1.15  +12 -3 jboss/src/main/org/jboss/ejb/AutoDeployer.java
  
  Index: AutoDeployer.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/AutoDeployer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AutoDeployer.java 2001/04/16 06:03:50 1.14
  +++ AutoDeployer.java 2001/04/22 05:28:25 1.15
  @@ -44,7 +44,7 @@
*   @see org.jboss.deployment.J2eeDeployer
*   @author Rickard Öberg ([EMAIL PROTECTED])
*   @author Toby Allsopp ([EMAIL PROTECTED])
  - *   @version $Revision: 1.14 $
  + *   @version $Revision: 1.15 $
*/
   public class AutoDeployer
extends ServiceMBeanSupport
  @@ -92,7 +92,7 @@
  
  public AutoDeployer(String urlList)
  {
  -this ("Default", urlList);
  +this ("J2EE:service=J2eeDeployer", urlList);
  }

   
  @@ -256,7 +256,16 @@
 for (int i=0; ihttp://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb AutoDeployer.java

2001-04-22 Thread tobyallsopp

  User: tobyallsopp
  Date: 01/04/21 23:02:08

  Modified:src/main/org/jboss/ejb AutoDeployer.java
  Log:
  And now I'm using TABs for indenting.  Will the horror never end?
  
  Revision  ChangesPath
  1.17  +20 -21jboss/src/main/org/jboss/ejb/AutoDeployer.java
  
  Index: AutoDeployer.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/AutoDeployer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- AutoDeployer.java 2001/04/22 05:50:00 1.16
  +++ AutoDeployer.java 2001/04/22 06:02:08 1.17
  @@ -46,7 +46,7 @@
*   @see org.jboss.deployment.J2eeDeployer
*   @author Rickard Öberg ([EMAIL PROTECTED])
*   @author Toby Allsopp ([EMAIL PROTECTED])
  - *   @version $Revision: 1.16 $
  + *   @version $Revision: 1.17 $
*/
   public class AutoDeployer
extends ServiceMBeanSupport
  @@ -91,34 +91,33 @@
  {
 this("");
  }
  -   
  +
  public AutoDeployer(String urlList)
  {
  -this ("J2EE:service=J2eeDeployer", urlList);
  +  this ("J2EE:service=J2eeDeployer", urlList);
  }
  - 
   
  public AutoDeployer(String _namedDeployer, String urlList)
  {
  -setDeployers(_namedDeployer);
  -setURLs(urlList);
  +  setDeployers(_namedDeployer);
  +  setURLs(urlList);
  }
   
  - public void setURLs(String urlList)
  - {
  +   public void setURLs(String urlList)
  +   {
 this.urlList = urlList;
  }
  -   
  +
  public String getURLs()
  {
 return urlList;
  }
  -   
  +
  public void setDeployers(String deployers)
  {
 this.deployerList = deployers;
  }
  -   
  +
  public String getDeployers()
  {
 return deployerList;
  @@ -258,16 +257,16 @@
 for (int i=0; ihttp://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb AutoDeployer.java

2001-04-22 Thread tobyallsopp

  User: tobyallsopp
  Date: 01/04/21 22:50:00

  Modified:src/main/org/jboss/ejb AutoDeployer.java
  Log:
  I must be going crazy.  That last commit didn't even compile, let alone run.
  
  Revision  ChangesPath
  1.16  +11 -9 jboss/src/main/org/jboss/ejb/AutoDeployer.java
  
  Index: AutoDeployer.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/AutoDeployer.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AutoDeployer.java 2001/04/22 05:28:25 1.15
  +++ AutoDeployer.java 2001/04/22 05:50:00 1.16
  @@ -6,22 +6,24 @@
*/
   package org.jboss.ejb;
   
  -import java.net.URL;
  -import java.net.URLClassLoader;
  -import java.net.MalformedURLException;
   import java.io.File;
   import java.io.FilenameFilter;
   import java.io.IOException;
  +import java.net.MalformedURLException;
  +import java.net.URL;
  +import java.net.URLClassLoader;
  +import java.util.ArrayList;
  +import java.util.HashMap;
   import java.util.Iterator;
   import java.util.StringTokenizer;
  -import java.util.HashMap;
  -import java.util.ArrayList;
  -import javax.management.MBeanServer;
  +
   import javax.management.MBeanException;
  +import javax.management.MBeanServer;
  +import javax.management.MalformedObjectNameException;
  +import javax.management.ObjectName;
   import javax.management.ReflectionException;
   import javax.management.RuntimeErrorException;
   import javax.management.RuntimeMBeanException;
  -import javax.management.ObjectName;
   
   import org.jboss.logging.Log;
   import org.jboss.util.ServiceMBeanSupport;
  @@ -44,7 +46,7 @@
*   @see org.jboss.deployment.J2eeDeployer
*   @author Rickard Öberg ([EMAIL PROTECTED])
*   @author Toby Allsopp ([EMAIL PROTECTED])
  - *   @version $Revision: 1.15 $
  + *   @version $Revision: 1.16 $
*/
   public class AutoDeployer
extends ServiceMBeanSupport
  @@ -243,7 +245,7 @@
 throws javax.management.MalformedObjectNameException
  {
 this.server = server;
  -  return new ObjectName(OBJECT_NAME+deployerList);
  +  return name==null ? new ObjectName(OBJECT_NAME) : name;
  }
   
  protected void startService()
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] ZOAP - in daily builds or not?

2001-04-22 Thread Chris Kimpton

Hi - I guess this is mainly for the ZOAP people.

I am setting up a daily build of various jboss modules - ie do a "build
clean" and then "build" to make sure nothing has broken.

I was looking at adding the ZOAP module to this - but to do that, I need to
make a few changes/additions - mainly because the "dist" directory is in CVS
and the libraries used by ZOAP are actually in this directory - thus when I
do a build clean, these are lost - making a build fail.

So, I propose to put these libraries - along with the ant ones in the
zoap/lib/ext directory.

I am not sure of how the CVS dist area is built and thus I am hesitating
from just checking these changes in.

I also plan to use ant-1.3 and the crimson parser.

Thus the following would be added to the lib/ext directory

? ant.jar
? crimson.jar
? ejb.jar
? inforUtil.jar
? jaxp.jar
? jboss.jar
? jmxri.jar
? jta-spec1_0_1.jar
? junit.jar
? parser.jar

Also the zoap.xml and make scripts would be modified to include a javadocs
target and use ant1-3 features to have wildcards in the classpath.

What do you think?

I will for now - remove ZOAP from my build script.

If the above is wanted, let me know.

Chris


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development