[JBoss-dev] Proposed changed to jbosscmp-jdbc.xml
I need to make some changes to the jbosscmp-jdbc.xml file to enable better dtd validation. The first involves simply renaming the type-mapping element used in the defaults and the entity to datasource-mapping. In the current system type mapping is used in both to identify the type mapping to be used by default or by a specific entity and is used in the declaration of type mappings. The problem is that the xml validating parsers can't check to see if an element contains PCDATA or an xml structure. The new datasource mapping will be as follows: java:/PostgresDS PostgreSQL The next change involves the declaration of relation mappings. Current the relation mapping is as follows: Customer-User customer.getUserLocal() userId USER_ID user.getCustomer() The problem is that there is a co-relation between the outer foreign-key-mapping and the inner foreign-key-field section. This co-relation is impossible to declare in a dtd because the ejb-relationship-role element is also used for the table-key-mapping element. To fix this, I propose moving the two ejb-relationship-role elements outside the mapping element, and changing the foreign-key-field and table-key-field element to a generic key-field element. The with the key-field element you always are declaring the mapping of the primary key of the current entity type. If you are using a foreign key mapping the key field will be added to the related table and if you are using a table key mapping the key field will be added to the relation table. The new mappings are as follows: Customer-User customer.getUserLocal() user.getCustomer() userId USER_ID Customer-Addresses CUSTOMER_ADDRESS true true customer.getAddresses() id CUSTOMER address.getCustomer() id ADDRESS I think this change will make the relation mapping easier to read and write. Although I will add some more elements, I think these are the last changes I will have to make until 3.1. Unless someone has a better idea or an objection I will start on these changes soon. -dain ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 257 Successful tests: 106 Errors:127 Failures: 24 [time of test: 30 January 2002 4:9 GMT] [java.version: 1.3.1] [java.vendor: Sun Microsystems Inc.] [java.vm.version: 1.3.1-b24] [java.vm.name: Java HotSpot(TM) Server VM] [java.vm.info: mixed mode] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 257 Successful tests: 106 Errors:127 Failures: 24 [time of test: 30 January 2002 3:40 GMT] [java.version: 1.3.1] [java.vendor: Blackdown Java-Linux Team] [java.vm.version: Blackdown-1.3.1-FCS] [java.vm.name: Classic VM] [java.vm.info: green threads, nojit] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql Parser.java
User: dsundstrom Date: 02/01/29 19:23:03 Modified:src/main/org/jboss/ejb/plugins/cmp/ejbql Parser.java Log: Changed ejb-ql parser to throw an exception if it is unable to fully parse the ejb-ql. Revision ChangesPath 1.5 +2 -5 jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/Parser.java Index: Parser.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/Parser.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Parser.java 2001/09/01 22:03:15 1.4 +++ Parser.java 2002/01/30 03:23:03 1.5 @@ -57,11 +57,8 @@ } } - if(completeMatches.size()==0) { - return best(set); - } - if(completeMatches.size() > 1) { - throw new IllegalStateException("Multiple assemblies matched: "+set.size()); + if(completeMatches.size() != 1) { + return null; } return (Assembly)completeMatches.iterator().next(); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc JDBCEJBQLQuery.java
User: dsundstrom Date: 02/01/29 19:23:03 Modified:src/main/org/jboss/ejb/plugins/cmp/jdbc JDBCEJBQLQuery.java Log: Changed ejb-ql parser to throw an exception if it is unable to fully parse the ejb-ql. Revision ChangesPath 1.4 +5 -1 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCEJBQLQuery.java Index: JDBCEJBQLQuery.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCEJBQLQuery.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- JDBCEJBQLQuery.java 2002/01/15 22:19:32 1.3 +++ JDBCEJBQLQuery.java 2002/01/30 03:23:03 1.4 @@ -21,7 +21,7 @@ * This class generates a query from EJB-QL. * * @author mailto:[EMAIL PROTECTED]";>Dain Sundstrom - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public class JDBCEJBQLQuery extends JDBCAbstractQueryCommand { @@ -47,6 +47,10 @@ // match the query a = ejbql.soleMatch(a); + if(a == null) { + throw new DeploymentException("Unable to parse EJB-QL: " + + metadata.getEjbQl()); + } // get the final target SQLTarget target = (SQLTarget)a.getTarget(); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 257 Successful tests: 106 Errors:127 Failures: 24 [time of test: 30 January 2002 3:8 GMT] [java.version: 1.3.1] [java.vendor: Blackdown Java-Linux Team] [java.vm.version: Blackdown-1.3.1-FCS] [java.vm.name: Java HotSpot(TM) Client VM] [java.vm.info: mixed mode] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jmx/src/main/javax/management/loading MLet.java
User: juhalindfors Date: 02/01/29 19:06:18 Modified:src/main/javax/management/loading MLet.java Log: MLet text file parsing Revision ChangesPath 1.2 +277 -40 jmx/src/main/javax/management/loading/MLet.java Index: MLet.java === RCS file: /cvsroot/jboss/jmx/src/main/javax/management/loading/MLet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MLet.java 2001/12/03 02:08:48 1.1 +++ MLet.java 2002/01/30 03:06:17 1.2 @@ -1,5 +1,8 @@ /* - * LGPL + * JBoss, the OpenSource J2EE webOS + * + * Distributable under LGPL license. + * See terms of license at gnu.org. */ package javax.management.loading; @@ -14,87 +17,321 @@ import java.net.MalformedURLException; import java.io.InputStream; - -public class MLet extends URLClassLoader implements MLetMBean, MBeanRegistration { - - public MLet() { - super(null); - } - - - public MLet(URL[] urls) { - super(urls); +import java.io.InputStreamReader; +import java.io.BufferedReader; +import java.io.IOException; + +import java.util.StringTokenizer; +import java.util.Set; +import java.util.HashSet; +import java.util.Iterator; +import java.util.NoSuchElementException; + +/** + * + * @author mailto:[EMAIL PROTECTED]";>Juha Lindfors. + * @version $Revision: 1.2 $ + */ +public class MLet + extends URLClassLoader + implements MLetMBean, MBeanRegistration +{ + + // Attributes + private MBeanServer server= null; + private ObjectName objectName = null; + + // Constructors -- + public MLet() + { + super(new URL[0], Thread.currentThread().getContextClassLoader()); + } + + public MLet(URL[] urls) + { + super(urls, Thread.currentThread().getContextClassLoader()); } - public MLet(URL[] urls, ClassLoader parent) { + public MLet(URL[] urls, ClassLoader parent) + { super(urls, parent); } - public MLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) { + public MLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) + { super(urls, parent, factory); } - - public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception { - + // MBeanRegistration implementation -- + public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception + { if (name == null) - return new ObjectName(":type=MLet"); + name = new ObjectName(":type=MLet"); + this.objectName = name; + this.server = server; + return name; } - public void postRegister(java.lang.Boolean registrationDone) {} + public void postRegister(Boolean registrationDone) + {} - public void preDeregister() throws java.lang.Exception {} + public void preDeregister() throws Exception + {} - public void postDeregister() {} + public void postDeregister() + {} - public java.util.Set getMBeansFromURL(String url) throws ServiceNotFoundException { - return null; + // Public + public Set getMBeansFromURL(String url) throws ServiceNotFoundException + { + try + { + return getMBeansFromURL(new URL(url)); + } + catch (MalformedURLException e) + { + throw new ServiceNotFoundException("Malformed URL:" + url); + } } - public java.util.Set getMBeansFromURL(URL url) throws ServiceNotFoundException { - return null; + public Set getMBeansFromURL(URL url) throws ServiceNotFoundException + { + if (server == null) + throw new ServiceNotFoundException("MLet must be registered to the server before loading the MBeans."); + + HashSet mlets = new HashSet(); + HashSet mbeans= new HashSet(); + MLetEntry entry = null; + try + { + BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); + int c = -1; + + while((c = reader.read()) != -1) + { +if (c == '<') +{ + StringBuffer buf = new StringBuffer(1000); + boolean readMore = true; + + while(readMore) + { + c = reader.read(); + + if (c == -1) + throw new IOException("Unexpected end of file. Tag was not closed: " + buf.toString()); +
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 257 Successful tests: 105 Errors:127 Failures: 25 [time of test: 30 January 2002 2:47 GMT] [java.version: 1.3.0] [java.vendor: IBM Corporation] [java.vm.version: 1.3.0] [java.vm.name: Classic VM] [java.vm.info: J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)] [os.name: Linux] [os.arch: x86] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Deployer mods
simple modifications to it today: added a first pass to the directory deploy so that you can see the nice "SErver Started" at the end of it all. marcf _ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=7571 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment MainDeployer.java
User: mnf999 Date: 02/01/29 18:32:29 Modified:src/main/org/jboss/deployment MainDeployer.java Log: Fixed the ordering of deployment so we get the nice little message at the end (first pass at deployment on the dependencies) Revision ChangesPath 1.3 +42 -50jboss/src/main/org/jboss/deployment/MainDeployer.java Index: MainDeployer.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/MainDeployer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MainDeployer.java 2002/01/30 02:13:03 1.2 +++ MainDeployer.java 2002/01/30 02:32:29 1.3 @@ -42,7 +42,7 @@ * Takes a series of URL to watch, detects changes and calls the appropriate Deployers * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * * */ @@ -144,22 +144,6 @@ if (log.isDebugEnabled()) log.debug("Removed directory scan "+url); } - /* - public String[] getDirectories() - { - - String[] urls= new String[directories.size()]; - - int i = 0; - Iterator dirs = directories.iterator(); - while (dirs.hasNext()) - urls[i++]= ((URL) dirs.next()).getFile(); - - return urls; - } - */ - - public String[] getDeployed() { String[] urls = new String[deployments.size()]; @@ -216,10 +200,13 @@ // watch the deploy directory, it is a set so multiple adds (start/stop) only one entry is present addDirectory("deploy"); + // Do a first pass + scan(); + // Start auto deploy thread running = true; - // Kick off the thread, since we wait at the end it makes a first run + // Kick off the thread new Thread(this, "MainDeployer").start(); } @@ -248,43 +235,48 @@ catch (Exception ignoredAgain) {log.info("interrupted exception");} - try - { -// Scan diretories for new deployments -Iterator newDeployments = scanNew().iterator(); - -while (newDeployments.hasNext()) -{ - deploy((URL) newDeployments.next()); -} - -// Undeploy and redeployto the modified ones -Iterator modified = scanModified().iterator(); - -while (modified.hasNext()) -{ - DeploymentInfo di = (DeploymentInfo) modified.next(); - - // if the url is a file that doesn't exist, it was removed -> undeploy - // TODO: check connection on http protocol and see if it is removed. - if (di.url.getProtocol().startsWith("file") && !new File(di.url.getFile()).exists()) - { - undeploy(di); - } - // it is a deployment - else - { - undeploy(di); deploy(di); - } -} - } - catch (Exception ignored) {log.info ("exception ", ignored);} + scan(); } while (running); } + public void scan() + { + try + { + // Scan diretories for new deployments + Iterator newDeployments = scanNew().iterator(); + + while (newDeployments.hasNext()) + { +deploy((URL) newDeployments.next()); + } + + // Undeploy and redeployto the modified ones + Iterator modified = scanModified().iterator(); + + while (modified.hasNext()) + { +DeploymentInfo di = (DeploymentInfo) modified.next(); + +// if the url is a file that doesn't exist, it was removed -> undeploy +// TODO: check connection on http protocol and see if it is removed. +if (di.url.getProtocol().startsWith("file") && !new File(di.url.getFile()).exists()) +{ + undeploy(di); +} +// it is a deployment +else +{ + undeploy(di); deploy(di); +} + } + } + catch (Exception ignored) {log.info ("exception ", ignored);} + } + public void undeploy(String url) { @@ -509,7 +501,7 @@ if ( ! theFile.exists()) modified.add(deployment); lastModified = theFile.lastModified(); - } +} // Use URL connection to get lastModified on http else lastModified = dep
[JBoss-dev] CVS update: jboss/src/main/org/jboss/system Server.java
User: mnf999 Date: 02/01/29 18:32:29 Modified:src/main/org/jboss/system Server.java Log: Fixed the ordering of deployment so we get the nice little message at the end (first pass at deployment on the dependencies) Revision ChangesPath 1.5 +3 -16 jboss/src/main/org/jboss/system/Server.java Index: Server.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/Server.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Server.java 2002/01/30 01:50:56 1.4 +++ Server.java 2002/01/30 02:32:29 1.5 @@ -32,7 +32,7 @@ * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>Jason Dillon -* @version $Revision: 1.4 $ +* @version $Revision: 1.5 $ */ public class Server implements ServerMBean @@ -156,20 +156,6 @@ // Start the main deployer thread server.invoke(mainDeployer, "start", new Object[]{}, new String[] {}); - /* - // Ok, now deploy jboss-service.xml - URL serviceURL = new URL(config.getConfigURL(), "jboss-service.xml"); - log.info("Deploying basic components from: " + serviceURL); - server.invoke(deployerName, - "deploy", - new Object[] { serviceURL.toString() }, - new String[] { "java.lang.String" }); - */ - - - - - // Calculate how long it took long lapsedTime = System.currentTimeMillis() - started.getTime(); long minutes = lapsedTime / 6; @@ -177,7 +163,8 @@ long milliseconds = (lapsedTime -6 * minutes - 1000 * seconds); // Tell the world how fast it was =) - log.info("Started in " + minutes + "m:" + + log.info("JBoss (MX MicroKernel) " + + version + " [" + version.getName() + "]"+ " Started in " + minutes + "m:" + seconds + "s:" + milliseconds +"ms"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment MainDeployer.java
User: mnf999 Date: 02/01/29 18:13:03 Modified:src/main/org/jboss/deployment MainDeployer.java Log: Fix for the removal of files Revision ChangesPath 1.2 +6 -6 jboss/src/main/org/jboss/deployment/MainDeployer.java Index: MainDeployer.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/MainDeployer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MainDeployer.java 2002/01/20 03:41:15 1.1 +++ MainDeployer.java 2002/01/30 02:13:03 1.2 @@ -42,7 +42,7 @@ * Takes a series of URL to watch, detects changes and calls the appropriate Deployers * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * * */ @@ -505,11 +505,11 @@ // Get lastModified of file from file system if (deployment.watch.getProtocol().startsWith("file")) { - lastModified = new File(deployment.watch.getFile()).lastModified(); - // File watched = new File(deployment.watch.getFile()); - //Only scan individual files - // if (!watched.isDirectory()) lastModified = watched.lastModified(); -} + File theFile = new File(deployment.watch.getFile()); + if ( ! theFile.exists()) modified.add(deployment); + + lastModified = theFile.lastModified(); + } // Use URL connection to get lastModified on http else lastModified = deployment.watch.openConnection().getLastModified(); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/system Server.java
User: mnf999 Date: 02/01/29 17:50:56 Modified:src/main/org/jboss/system Server.java Log: Making sure that the MainDeployer is registered under the proper name Revision ChangesPath 1.4 +2 -2 jboss/src/main/org/jboss/system/Server.java Index: Server.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/Server.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Server.java 2002/01/20 15:18:16 1.3 +++ Server.java 2002/01/30 01:50:56 1.4 @@ -32,7 +32,7 @@ * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>Jason Dillon -* @version $Revision: 1.3 $ +* @version $Revision: 1.4 $ */ public class Server implements ServerMBean @@ -138,7 +138,7 @@ // Deployer ObjectName mainDeployer = server.createMBean("org.jboss.deployment.MainDeployer", - null, + new ObjectName(org.jboss.deployment.MainDeployerMBean.OBJECT_NAME), loaderName).getObjectName(); // SAR Deployer ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment SARDeployer.java
User: mnf999 Date: 02/01/29 17:50:16 Modified:src/main/org/jboss/deployment SARDeployer.java Log: Patch from David is ok, functionality lost is the capacity to deploy a flat jar with just the classes and referencing the codebase (rare case) Revision ChangesPath 1.3 +1 -19 jboss/src/main/org/jboss/deployment/SARDeployer.java Index: SARDeployer.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/SARDeployer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SARDeployer.java 2002/01/30 00:36:53 1.2 +++ SARDeployer.java 2002/01/30 01:50:16 1.3 @@ -58,7 +58,7 @@ * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>David Maplesden * @author mailto:[EMAIL PROTECTED]";>David Jencks -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * * 20010830 marc fleury: * initial import @@ -348,24 +348,6 @@ // We have an archive whatever the codebase go ahead and load the libraries else if (!archives.equals("")) { - -// We have a real codebase specified in xml -// We add it to the classpath so we load files from it (http/file will work) -if (!codebase.equals("")) -{ - try - { - //XTEMP EXPERIMENT david j - // Add the codebase to the classpath - //classpath.add( new URL(codebase)); - } - catch (Exception e2) - { - log.error("Couldn't create URL for codebase "+codebase, e2); - throw new DeploymentException(e2.getMessage()); - - } -} // Still no codebase? safeguard if (codebase.equals("")) codebase = System.getProperty("jboss.system.libraryDirectory"); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment SARDeployer.java
User: d_jencks Date: 02/01/29 16:36:53 Modified:src/main/org/jboss/deployment SARDeployer.java Log: hack to get copy-activated deployments working without removing the deploy dir Revision ChangesPath 1.2 +3 -2 jboss/src/main/org/jboss/deployment/SARDeployer.java Index: SARDeployer.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/SARDeployer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SARDeployer.java 2002/01/20 03:38:23 1.1 +++ SARDeployer.java 2002/01/30 00:36:53 1.2 @@ -58,7 +58,7 @@ * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>David Maplesden * @author mailto:[EMAIL PROTECTED]";>David Jencks -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * * 20010830 marc fleury: * initial import @@ -355,8 +355,9 @@ { try { + //XTEMP EXPERIMENT david j // Add the codebase to the classpath - classpath.add( new URL(codebase)); + //classpath.add( new URL(codebase)); } catch (Exception e2) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Jetty3.1.5, Axis & Basic Authentication Problem
Jung , Dr. Christoph wrote: > > > Experimenting with an unauthenticatedPrincipal "nobody" in the > loginmodule instead of a NONE-role also did not work, because Jetty then > refuses > Hi, I'm not an expert on this web stuff (or anything for that matter :), but I take it the "NONE" role means "don't let anyone access this". Is that correct? Is this a jetty specific thing 'cos I wasn't aware of its existence? I've only seen "NONE" used as an option for the "transport-guarantee" tag. If you want to let authenticated users with any role (as understood by the axis webapp) access the service (and perform access control later), then maybe you could try * which *should* do this... Or am I way off the mark? I would say that I haven't been able to get some security stuff working with JBoss/Jetty that has worked fine with Tomcat. I understand the security in Jetty is a relatively recent addition and there've been one or two hiccups, so it could be a problem with Jetty. Can you deploy the same stuff in another container, or is it tied to JBoss 3? Luke. -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523Chttp://www.mkeym.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Patches-510422 ] Add allowChunking to Catalina
Patches item #510422, was opened at 2002-01-29 15:43 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=510422&group_id=22866 Category: None Group: v2.4 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Steve Short (steve42) Assigned to: Nobody/Anonymous (nobody) Summary: Add allowChunking to Catalina Initial Comment: I added a new attribute, allowChunking with appropriate accessor methods to the EmbeddedCatalinaServiceSX Mbean. This flag is passed directly to the HttpConnector when this is instantiated. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=510422&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] JAAS with MDB
MDBs need a different SecurityInterceptor that does not attempt to authenticate the caller as there is none defined. An extension would allow the caller to be obtained from JMS message properties. The properties could be specified in the jboss.xml descriptor in the message-driven bean section. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Dave Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 2:08 PM Subject: [JBoss-dev] JAAS with MDB > I am trying to get a MDB working with JAAS. Currently when message > delivery is attempted it throws an error Authentication exception, > principal=null. Now in the jms-service.xml I have added > > > UserName=jboss > Password=jboss1 > > > but this does not do anything. I can not find any refences to this in > either the free or purchased docs. Can some one point me in the right > direction. > > time passes ... > > > After further investigation it looks like it is not implemented. In the > JMSContainerInvoker it creates the method invocation with principal and > credential = null. Then when the SecurityInterceptor gets a hold of it > barfs. The snip, line 976 of JMSContainerInvoker.java > > invoker.invoke(id, > // Object id - where used? > ON_MESSAGE, > // Method to invoke > new Object[]{message}, > // argument > tm.getTransaction(), > // Transaction > null, > // Principal > null); > // Cred > > How should I go about getting this to work? > > > > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-510397 ] PrimaryKey Classes and Marshalling
Bugs item #510397, was opened at 2002-01-29 14:36 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510397&group_id=22866 Category: JBossServer Group: v2.4 (stable) Status: Open Resolution: None Priority: 5 Submitted By: William A. Kaufman (wkaufman) Assigned to: Nobody/Anonymous (nobody) Summary: PrimaryKey Classes and Marshalling Initial Comment: The hashCode and equals methods implemented by PrimaryKey classes are not used by JBoss (at least by default - see the CacheKey class). Instead, the hashCode and equals of the MarshalledObject constructed from the PK is used. This is fine if the serialization is done correctly (ie readObject() has been implemented right). Unfortunately, the BigInteger implementation in jdk1.3.1 has a number of fields that either should have been declared transient, or ... (your solution here). The upshot is if you use BigInteger (or BigDecimal - it has a BigInteger inside it) as your PK class or as part of your PK class, you are not guaranteed that the MarshalledObject hashcode will be unique. This is bad news for the entity caching in JBoss 2.4.4 (haven't looked at 3.0, but I assume it's the same). Attached is a simple test to illustrate the problem. This problem bit us pretty hard. A bug report's been filed with Sun. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510397&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] HEAD IS OK
There were some object name problems that made the tests break. I've fixed them and simplified the test framework to use the unified deployer. Looks good. david jencks On 2002.01.28 18:48:02 -0500 [EMAIL PROTECTED] wrote: > Silly oversights on Sunday made it not compile (adrian figured it out) > and then I just put a dummy implementation on the clustering stuff. > > So HEAD compiles afact, and runs. Minus Jetty that complians because one > of it's files is not correctly setup? (complains that there is an > that > is not where it should be) > > OK I will try to finish debugging in order to put out the DR1 release > during this week. > > Cruising, cruising... the rabbits are coming > > marcf > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] HEAD is still dead
ok I will climb out of my state and drag my ass to the keyboard. The answer is no I didn't test the testsuite marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill |Burke |Sent: Tuesday, January 29, 2002 1:46 PM |To: Jboss-Dev |Subject: [JBoss-dev] HEAD is still dead | | |HEAD is just totally fucked up. I can't run the testsuite. When |I deploy a |ejb bean manually, it totally craps out and even DESTROYS the deploy |directory! Marc can you fix this shit? Did you even try to run the |testsuite? This is 10 days of a dead head dude. | |To verify these problems: | |1. Try to run a test in the testsuite. I tried "testbean" | |2. Try deploy testbean.jar manually. Bang! it craps out and destroys the |deploy directory. | |Please fix this. I can't do any work. | |Bill | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/naming/test ENCUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:05 Modified:src/main/org/jboss/test/naming/test ENCUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/naming/test/ENCUnitTestCase.java Index: ENCUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/naming/test/ENCUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ENCUnitTestCase.java 2001/09/18 22:00:44 1.3 +++ ENCUnitTestCase.java 2002/01/29 22:00:05 1.4 @@ -77,7 +77,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(ENCUnitTestCase.class, "naming.jar"); + return getDeploySetup(ENCUnitTestCase.class, "naming.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] JAAS with MDB
I am trying to get a MDB working with JAAS. Currently when message delivery is attempted it throws an error Authentication exception, principal=null. Now in the jms-service.xml I have added UserName=jboss Password=jboss1 but this does not do anything. I can not find any refences to this in either the free or purchased docs. Can some one point me in the right direction. time passes ... After further investigation it looks like it is not implemented. In the JMSContainerInvoker it creates the method invocation with principal and credential = null. Then when the SecurityInterceptor gets a hold of it barfs. The snip, line 976 of JMSContainerInvoker.java invoker.invoke(id, // Object id - where used? ON_MESSAGE, // Method to invoke new Object[]{message}, // argument tm.getTransaction(), // Transaction null, // Principal null); // Cred How should I go about getting this to work? ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Change Notes-510379 ] Simplified test deploy commands
Change Notes item #510379, was opened at 2002-01-29 14:07 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=510379&group_id=22866 Category: JBossTest Group: v3.0 (Rabbit Hole) Status: Open Priority: 5 Submitted By: David Jencks (d_jencks) Assigned to: Nobody/Anonymous (nobody) Summary: Simplified test deploy commands Initial Comment: I've simplified the deploy/setup commands in the jboss test frameword to work with the new deployers. There are now only deploy(package) and undeploy(package) commands, and getDeploySetup(...) replaces getJ2eeSetup. The tests have been altered to use the new commands. Also I fixed the object name problems that were causing all the tests to fail. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=510379&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToOneUnidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/manyToOneUnidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToOneUnidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToOneUnidirectional/ABTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ABTest.java 2002/01/16 00:02:23 1.3 +++ ABTest.java 2002/01/29 22:00:00 1.4 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyUnidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/manyToManyUnidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyUnidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyUnidirectional/ABTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ABTest.java 2002/01/16 00:02:23 1.3 +++ ABTest.java 2002/01/29 22:00:00 1.4 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/idgen/test IdGenUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:03 Modified:src/main/org/jboss/test/idgen/test IdGenUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.5 +2 -2 jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java Index: IdGenUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- IdGenUnitTestCase.java2001/09/18 22:00:43 1.4 +++ IdGenUnitTestCase.java2002/01/29 22:00:03 1.5 @@ -26,7 +26,7 @@ /** * @see * @authorAuthor: d_jencks only added JBossTestCase and logging - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class IdGenUnitTestCase extends JBossTestCase @@ -96,7 +96,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(IdGenUnitTestCase.class, "idgen.jar"); + return getDeploySetup(IdGenUnitTestCase.class, "idgen.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/util/test SchedulerUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:07 Modified:src/main/org/jboss/test/util/test SchedulerUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.2 +3 -3 jbosstest/src/main/org/jboss/test/util/test/SchedulerUnitTestCase.java Index: SchedulerUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/util/test/SchedulerUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SchedulerUnitTestCase.java2001/12/14 21:01:11 1.1 +++ SchedulerUnitTestCase.java2002/01/29 22:00:07 1.2 @@ -43,7 +43,7 @@ * * * -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ **/ public class SchedulerUnitTestCase extends JBossTestCase @@ -98,7 +98,7 @@ assertTrue( "resource test-default-scheduler-service.xml not found", lUrl != null ); boolean lOk = false; try { -deployService( lUrl + "" ); +deploy( lUrl + "" ); lOk = true; } catch( Exception e ) { @@ -107,7 +107,7 @@ if( lOk ) { try { // Remove again when successfull - undeployService( lUrl + "" ); + undeploy( lUrl + "" ); } catch( Exception e ) { getLog().error( "Failed to undeploy if default test Scheduler", e ); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/testbeancluster/test BeanUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:06 Modified:src/main/org/jboss/test/testbeancluster/test BeanUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.2 +4 -4 jbosstest/src/main/org/jboss/test/testbeancluster/test/BeanUnitTestCase.java Index: BeanUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/testbeancluster/test/BeanUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BeanUnitTestCase.java 2002/01/09 23:25:27 1.1 +++ BeanUnitTestCase.java 2002/01/29 22:00:06 1.2 @@ -62,7 +62,7 @@ * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>Hugo Pinto -* @version $Id: BeanUnitTestCase.java,v 1.1 2002/01/09 23:25:27 patriot1burke Exp $ +* @version $Id: BeanUnitTestCase.java,v 1.2 2002/01/29 22:00:06 d_jencks Exp $ */ public class BeanUnitTestCase extends org.jboss.test.testbean.test.BeanUnitTestCase @@ -73,9 +73,9 @@ public static Test suite() throws Exception { - Test t1 = getJ2eeSetup(BeanUnitTestCase.class, "bmp.jar"); - Test t2 = getJ2eeSetup(t1, "testbeancluster.jar"); - Test t3 = getJ2eeSetup(t2, "testbean2.jar"); + Test t1 = getDeploySetup(BeanUnitTestCase.class, "bmp.jar"); + Test t2 = getDeploySetup(t1, "testbeancluster.jar"); + Test t3 = getDeploySetup(t2, "testbean2.jar"); return t3; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/readonly ReadonlyUnitTestCase.java
User: d_jencks Date: 02/01/29 13:59:59 Modified:src/main/org/jboss/test/cmp2/readonly ReadonlyUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.2 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/readonly/ReadonlyUnitTestCase.java Index: ReadonlyUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/readonly/ReadonlyUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ReadonlyUnitTestCase.java 2001/12/12 20:06:38 1.1 +++ ReadonlyUnitTestCase.java 2002/01/29 21:59:59 1.2 @@ -15,7 +15,7 @@ public class ReadonlyUnitTestCase extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup( + return JBossTestCase.getDeploySetup( ReadonlyUnitTestCase.class, "cmp2-readonly.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/xa/test XAUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:08 Modified:src/main/org/jboss/test/xa/test XAUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/xa/test/XAUnitTestCase.java Index: XAUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/xa/test/XAUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- XAUnitTestCase.java 2001/09/18 22:00:45 1.3 +++ XAUnitTestCase.java 2002/01/29 22:00:07 1.4 @@ -133,7 +133,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(XAUnitTestCase.class, "xatest.jar"); + return getDeploySetup(XAUnitTestCase.class, "xatest.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship RelationshipUnitTestCase.java
User: d_jencks Date: 02/01/29 13:59:59 Modified:src/main/org/jboss/test/cmp2/relationship RelationshipUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.3 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/RelationshipUnitTestCase.java Index: RelationshipUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/RelationshipUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RelationshipUnitTestCase.java 2001/12/12 20:09:08 1.2 +++ RelationshipUnitTestCase.java 2002/01/29 21:59:59 1.3 @@ -19,7 +19,7 @@ testSuite.addTestSuite(org.jboss.test.cmp2.relationship.manyToOneUnidirectional.ABTest.class); testSuite.addTestSuite(org.jboss.test.cmp2.relationship.manyToManyBidirectional.ABTest.class); testSuite.addTestSuite(org.jboss.test.cmp2.relationship.manyToManyUnidirectional.ABTest.class); - return getJ2eeSetup(testSuite, "cmp2-relationship.jar"); + return getDeploySetup(testSuite, "cmp2-relationship.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/mdb/test MDBUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:05 Modified:src/main/org/jboss/test/mdb/test MDBUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.7 +2 -2 jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java Index: MDBUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- MDBUnitTestCase.java 2001/10/20 22:25:58 1.6 +++ MDBUnitTestCase.java 2002/01/29 22:00:05 1.7 @@ -51,7 +51,7 @@ * @author mailto:[EMAIL PROTECTED]";>Peter Antman * @author mailto:[EMAIL PROTECTED]";>Jason Dillon * @author mailto:[EMAIL PROTECTED]";>David Jencks - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ */ public class MDBUnitTestCase extends JBossTestCase @@ -200,7 +200,7 @@ suite.addTest(new MDBUnitTestCase("testWaitForCompleation","")); suite.addTest(new MDBUnitTestCase("testQueue","queue/B")); - return getJ2eeSetup(suite, "mdb.jar"); + return getDeploySetup(suite, "mdb.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmsra/test RaQueueUnitTestCase.java RaSyncRecUnitTestCase.java RaTopicUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:04 Modified:src/main/org/jboss/test/jmsra/test RaQueueUnitTestCase.java RaSyncRecUnitTestCase.java RaTopicUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.3 +2 -2 jbosstest/src/main/org/jboss/test/jmsra/test/RaQueueUnitTestCase.java Index: RaQueueUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/test/RaQueueUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RaQueueUnitTestCase.java 2001/09/18 22:00:44 1.2 +++ RaQueueUnitTestCase.java 2002/01/29 22:00:03 1.3 @@ -24,7 +24,7 @@ * * @authormailto:[EMAIL PROTECTED]";>Peter Antman * @authormailto:[EMAIL PROTECTED]";>Jason Dillon - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class RaQueueUnitTestCase extends RaTest @@ -66,7 +66,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(RaQueueUnitTestCase.class, "jmsra.jar"); + return getDeploySetup(RaQueueUnitTestCase.class, "jmsra.jar"); } 1.2 +2 -2 jbosstest/src/main/org/jboss/test/jmsra/test/RaSyncRecUnitTestCase.java Index: RaSyncRecUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/test/RaSyncRecUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- RaSyncRecUnitTestCase.java2001/09/22 14:05:22 1.1 +++ RaSyncRecUnitTestCase.java2002/01/29 22:00:03 1.2 @@ -33,7 +33,7 @@ * Created: Sat Sep 22 13:31:54 2001. * * @author mailto:[EMAIL PROTECTED]";>Peter Antman - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class RaSyncRecUnitTestCase extends JBossTestCase { @@ -156,7 +156,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(RaSyncRecUnitTestCase.class, "jmsra.jar"); + return getDeploySetup(RaSyncRecUnitTestCase.class, "jmsra.jar"); } } // RaSyncRecUnitTestCase 1.3 +2 -2 jbosstest/src/main/org/jboss/test/jmsra/test/RaTopicUnitTestCase.java Index: RaTopicUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/test/RaTopicUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RaTopicUnitTestCase.java 2001/09/18 22:00:44 1.2 +++ RaTopicUnitTestCase.java 2002/01/29 22:00:03 1.3 @@ -24,7 +24,7 @@ * * @authormailto:[EMAIL PROTECTED]";>Peter Antman * @authormailto:[EMAIL PROTECTED]";>Jason Dillon - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class RaTopicUnitTestCase extends RaTest @@ -66,7 +66,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(RaTopicUnitTestCase.class, "jmsra.jar"); + return getDeploySetup(RaTopicUnitTestCase.class, "jmsra.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/web/test WebIntegrationUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:07 Modified:src/main/org/jboss/test/web/test WebIntegrationUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.12 +3 -3 jbosstest/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java Index: WebIntegrationUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- WebIntegrationUnitTestCase.java 2001/12/22 18:48:16 1.11 +++ WebIntegrationUnitTestCase.java 2002/01/29 22:00:07 1.12 @@ -34,7 +34,7 @@ with a role of 'AuthorizedUser' in the servlet container. @author [EMAIL PROTECTED] - @version $Revision: 1.11 $ + @version $Revision: 1.12 $ */ public class WebIntegrationUnitTestCase extends JBossTestCase { @@ -181,12 +181,12 @@ protected void setUp() throws Exception { super.setUp(); -deployJ2ee("jbosstest-web.ear"); +deploy("jbosstest-web.ear"); flushAuthCache(); } protected void tearDown() throws Exception { -undeployJ2ee("jbosstest-web.ear"); +undeploy("jbosstest-web.ear"); super.tearDown(); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/security/test EJBSpecUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:06 Modified:src/main/org/jboss/test/security/test EJBSpecUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.8 +3 -3 jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java Index: EJBSpecUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- EJBSpecUnitTestCase.java 2001/10/10 21:58:14 1.7 +++ EJBSpecUnitTestCase.java 2002/01/29 22:00:06 1.8 @@ -43,7 +43,7 @@ deployment unit. These test the basic role based access model. @author [EMAIL PROTECTED] - @version $Revision: 1.7 $ + @version $Revision: 1.8 $ */ public class EJBSpecUnitTestCase extends JBossTestCase @@ -374,12 +374,12 @@ protected void setUp() throws Exception { super.setUp(); -deployJ2ee("security-spec.jar"); +deploy("security-spec.jar"); flushAuthCache(); } protected void tearDown() throws Exception { -undeployJ2ee("security-spec.jar"); +undeploy("security-spec.jar"); super.tearDown(); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/readahead/test ReadAheadUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:05 Modified:src/main/org/jboss/test/readahead/test ReadAheadUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +2 -2 jbosstest/src/main/org/jboss/test/readahead/test/ReadAheadUnitTestCase.java Index: ReadAheadUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/readahead/test/ReadAheadUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ReadAheadUnitTestCase.java2001/09/18 22:00:45 1.3 +++ ReadAheadUnitTestCase.java2002/01/29 22:00:05 1.4 @@ -23,7 +23,7 @@ * TestCase driver for the readahead finder tests * * @author mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson - * @version $Id: ReadAheadUnitTestCase.java,v 1.3 2001/09/18 22:00:45 d_jencks Exp $ + * @version $Id: ReadAheadUnitTestCase.java,v 1.4 2002/01/29 22:00:05 d_jencks Exp $ * * Revision: */ @@ -70,7 +70,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(ReadAheadUnitTestCase.class, "readahead.jar"); + return getDeploySetup(ReadAheadUnitTestCase.class, "readahead.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test Setup.java
User: d_jencks Date: 02/01/29 14:00:05 Modified:src/main/org/jboss/test/perf/test Setup.java Log: simplified deployment calls Revision ChangesPath 1.9 +3 -3 jbosstest/src/main/org/jboss/test/perf/test/Setup.java Index: Setup.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/Setup.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- Setup.java2001/10/08 16:53:00 1.8 +++ Setup.java2002/01/29 22:00:05 1.9 @@ -34,7 +34,7 @@ /** Setup utility class. @author [EMAIL PROTECTED] - @version $Revision: 1.8 $ + @version $Revision: 1.9 $ */ public class Setup extends JBossTestSetup { @@ -57,7 +57,7 @@ { login(); } - deployJ2ee(filename); + deploy(filename); createEntityBeans(getBeanCount()); createEntity2Beans(getBeanCount()); } @@ -66,7 +66,7 @@ getLog().debug("+++ Performing the TestSuite tear down"); removeEntityBeans(getBeanCount()); removeEntity2Beans(getBeanCount()); - undeployJ2ee(filename); + undeploy(filename); if( isSecure ) { logout(); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/hello/test HelloTimingStressTestCase.java
User: d_jencks Date: 02/01/29 14:00:03 Modified:src/main/org/jboss/test/hello/test HelloTimingStressTestCase.java Log: simplified deployment calls Revision ChangesPath 1.6 +2 -2 jbosstest/src/main/org/jboss/test/hello/test/HelloTimingStressTestCase.java Index: HelloTimingStressTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/hello/test/HelloTimingStressTestCase.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- HelloTimingStressTestCase.java2001/09/19 19:16:54 1.5 +++ HelloTimingStressTestCase.java2002/01/29 22:00:02 1.6 @@ -26,7 +26,7 @@ * * @see * @author Author: schaefera - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public class HelloTimingStressTestCase extends JBossTestCase @@ -190,7 +190,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(HelloTimingStressTestCase.class, "hello.jar"); + return getDeploySetup(HelloTimingStressTestCase.class, "hello.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/test ConnectionFactoryLoaderUnitTestCase.java DeployServiceUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:04 Modified:src/main/org/jboss/test/jmx/test ConnectionFactoryLoaderUnitTestCase.java DeployServiceUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.10 +3 -3 jbosstest/src/main/org/jboss/test/jmx/test/ConnectionFactoryLoaderUnitTestCase.java Index: ConnectionFactoryLoaderUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/test/ConnectionFactoryLoaderUnitTestCase.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- ConnectionFactoryLoaderUnitTestCase.java 2002/01/03 15:46:14 1.9 +++ ConnectionFactoryLoaderUnitTestCase.java 2002/01/29 22:00:04 1.10 @@ -33,7 +33,7 @@ /** * @see * @authormailto:[EMAIL PROTECTED]";>David Jencks - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ */ public class ConnectionFactoryLoaderUnitTestCase extends JBossTestCase @@ -119,7 +119,7 @@ assertTrue("State is not started", "Started".equals(getServer().getAttribute(connectionFactoryLoaderName, "StateString"))); //deploy test session bean to look up datasource - deployJ2ee("jmxtest.jar"); + deploy("jmxtest.jar"); //see if the ConnectionFactory was loaded and works InitialContext ctx = getInitialContext(); @@ -128,7 +128,7 @@ tds.testDataSource("java:ConnectionFactoryLoaderTestDS"); //undeploy the test ejb - undeployJ2ee("jmxtest.jar"); + undeploy("jmxtest.jar"); //undeploy test connection factory loader. invoke(serviceControllerName, 1.11 +52 -52 jbosstest/src/main/org/jboss/test/jmx/test/DeployServiceUnitTestCase.java Index: DeployServiceUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/test/DeployServiceUnitTestCase.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- DeployServiceUnitTestCase.java2002/01/03 04:01:01 1.10 +++ DeployServiceUnitTestCase.java2002/01/29 22:00:04 1.11 @@ -31,7 +31,7 @@ /** * @see * @authormailto:[EMAIL PROTECTED]";>David Jencks - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ */ public class DeployServiceUnitTestCase extends JBossTestCase @@ -103,20 +103,20 @@ assertTrue("test mbean already registered before deploy", !getServer().isRegistered(testObjectName)); //deploy the test xml doc. - deployService(testUrl); + deploy(testUrl); //check deployment registered expected mbeans assertTrue("test mbean not registered after deploy", getServer().isRegistered(testObjectName)); //deploy the test xml doc again, should undeploy and redeploy. - undeployService(testUrl); - deployService(testUrl); + undeploy(testUrl); + deploy(testUrl); //check deployment registered expected mbeans assertTrue("test mbean not registered after redeploy", getServer().isRegistered(testObjectName)); //undeploy test xml doc. - undeployService(testUrl); + undeploy(testUrl); //check they aren't there any more assertTrue("test mbean still registered after undeploy", !getServer().isRegistered(testObjectName)); @@ -146,7 +146,7 @@ assertTrue("test mbean already registered before deploy", !getServer().isRegistered(testObjectName)); //deploy the test xml doc. - deployService(testUrl); + deploy(testUrl); //check deployment registered expected mbeans assertTrue("test mbean not registered after deploy", getServer().isRegistered(testObjectName)); @@ -170,14 +170,14 @@ fail("could not remove mbean after class loaded in jsr" + e); } //deploy the test xml doc again, should undeploy and redeploy. - undeployService(testUrl); - deployService(testUrl); + undeploy(testUrl); + deploy(testUrl); //check deployment registered expected mbeans assertTrue("test mbean not registered after redeploy", getServer().isRegistered(testObjectName)); //undeploy test xml doc. - undeployService(testUrl); + undeploy(testUrl); //check they aren't there any more assertTrue("test mbean still registered after undeploy", !getServer().isRegistered(testObjectName)); @@ -198,13 +198,13 @@ } //deploy the test xml doc a second time. - deployService(testUrl); + deploy(testUrl); //check deployment registered expected mbeans assertTrue("test mbean
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java SpinUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:05 Modified:src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java SpinUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java Index: EnterpriseEntityStressTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- EnterpriseEntityStressTestCase.java 2001/09/18 22:00:44 1.3 +++ EnterpriseEntityStressTestCase.java 2002/01/29 22:00:04 1.4 @@ -51,7 +51,7 @@ suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class)); - return getJ2eeSetup(suite, "locktest.jar"); + return getDeploySetup(suite, "locktest.jar"); } /** 1.4 +2 -2 jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java Index: SpinUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SpinUnitTestCase.java 2001/09/18 22:00:44 1.3 +++ SpinUnitTestCase.java 2002/01/29 22:00:04 1.4 @@ -28,7 +28,7 @@ * Test of EJB call invocation overhead. * * @author[EMAIL PROTECTED] - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public class SpinUnitTestCase extends JBossTestCase { @@ -168,7 +168,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(SpinUnitTestCase.class, "locktest.jar"); + return getDeploySetup(SpinUnitTestCase.class, "locktest.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/testbean/test BeanUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:06 Modified:src/main/org/jboss/test/testbean/test BeanUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.8 +4 -4 jbosstest/src/main/org/jboss/test/testbean/test/BeanUnitTestCase.java Index: BeanUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/testbean/test/BeanUnitTestCase.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- BeanUnitTestCase.java 2001/12/20 17:57:42 1.7 +++ BeanUnitTestCase.java 2002/01/29 22:00:06 1.8 @@ -62,7 +62,7 @@ * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @author mailto:[EMAIL PROTECTED]";>Hugo Pinto -* @version $Id: BeanUnitTestCase.java,v 1.7 2001/12/20 17:57:42 d_jencks Exp $ +* @version $Id: BeanUnitTestCase.java,v 1.8 2002/01/29 22:00:06 d_jencks Exp $ */ public class BeanUnitTestCase extends JBossTestCase @@ -995,9 +995,9 @@ public static Test suite() throws Exception { - Test t1 = getJ2eeSetup(BeanUnitTestCase.class, "bmp.jar"); - Test t2 = getJ2eeSetup(t1, "testbean.jar"); - Test t3 = getJ2eeSetup(t2, "testbean2.jar"); + Test t1 = getDeploySetup(BeanUnitTestCase.class, "bmp.jar"); + Test t2 = getDeploySetup(t1, "testbean.jar"); + Test t3 = getDeploySetup(t2, "testbean2.jar"); return t3; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/dbtest/test DbTypesUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:01 Modified:src/main/org/jboss/test/dbtest/test DbTypesUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/dbtest/test/DbTypesUnitTestCase.java Index: DbTypesUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/dbtest/test/DbTypesUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DbTypesUnitTestCase.java 2001/09/18 22:00:43 1.3 +++ DbTypesUnitTestCase.java 2002/01/29 22:00:01 1.4 @@ -401,7 +401,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(DbTypesUnitTestCase.class, "dbtest.jar"); + return getDeploySetup(DbTypesUnitTestCase.class, "dbtest.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cts/test BmpUnitTestCase.java StatefulSessionUnitTestCase.java StatelessSessionStressTestCase.java StatelessSessionUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:01 Modified:src/main/org/jboss/test/cts/test BmpUnitTestCase.java StatefulSessionUnitTestCase.java StatelessSessionStressTestCase.java StatelessSessionUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.3 +2 -2 jbosstest/src/main/org/jboss/test/cts/test/BmpUnitTestCase.java Index: BmpUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/BmpUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- BmpUnitTestCase.java 2001/09/18 22:00:43 1.2 +++ BmpUnitTestCase.java 2002/01/29 22:00:01 1.3 @@ -40,7 +40,7 @@ * Class BmpTest * * @author Author: kimptoc - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ @@ -724,7 +724,7 @@ //deploy the cts.jar once for the suite. public static Test suite() throws Exception { - return getJ2eeSetup(BmpUnitTestCase.class, "cts.jar"); + return getDeploySetup(BmpUnitTestCase.class, "cts.jar"); } 1.3 +2 -2 jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionUnitTestCase.java Index: StatefulSessionUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- StatefulSessionUnitTestCase.java 2001/09/18 22:00:43 1.2 +++ StatefulSessionUnitTestCase.java 2002/01/29 22:00:01 1.3 @@ -36,7 +36,7 @@ * @see * @author Author: kimptoc * @author Author: d_jencks converted to JBossTestCase, added logging. - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class StatefulSessionUnitTestCase @@ -608,7 +608,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(StatefulSessionUnitTestCase.class, "cts.jar"); + return getDeploySetup(StatefulSessionUnitTestCase.class, "cts.jar"); } } 1.5 +2 -2 jbosstest/src/main/org/jboss/test/cts/test/StatelessSessionStressTestCase.java Index: StatelessSessionStressTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/StatelessSessionStressTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- StatelessSessionStressTestCase.java 2001/09/19 19:16:54 1.4 +++ StatelessSessionStressTestCase.java 2002/01/29 22:00:01 1.5 @@ -27,7 +27,7 @@ * @see * @author Author: kimptoc * @author Author: d_jencks converted to JBossTestCase and logging. - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class StatelessSessionStressTestCase @@ -114,7 +114,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(StatelessSessionStressTestCase.class, "cts.jar"); + return getDeploySetup(StatelessSessionStressTestCase.class, "cts.jar"); } 1.3 +2 -2 jbosstest/src/main/org/jboss/test/cts/test/StatelessSessionUnitTestCase.java Index: StatelessSessionUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/StatelessSessionUnitTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- StatelessSessionUnitTestCase.java 2001/09/18 22:00:43 1.2 +++ StatelessSessionUnitTestCase.java 2002/01/29 22:00:01 1.3 @@ -27,7 +27,7 @@ * * @author Author: kimptoc * @author Author: d_jencks converted to JBossTestCase and logging. - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class StatelessSessionUnitTestCase @@ -79,7 +79,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(StatelessSessionUnitTestCase.class, "cts.jar"); + return getDeploySetup(StatelessSessionUnitTestCase.class, "cts.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jrmp/test CustomSocketsUnitTestCase.java DynLoadingUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:04 Modified:src/main/org/jboss/test/jrmp/test CustomSocketsUnitTestCase.java DynLoadingUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +2 -2 jbosstest/src/main/org/jboss/test/jrmp/test/CustomSocketsUnitTestCase.java Index: CustomSocketsUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jrmp/test/CustomSocketsUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- CustomSocketsUnitTestCase.java2001/09/18 22:00:44 1.3 +++ CustomSocketsUnitTestCase.java2002/01/29 22:00:04 1.4 @@ -27,7 +27,7 @@ * * @author[EMAIL PROTECTED] * @authordavid jencks [EMAIL PROTECTED] - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public class CustomSocketsUnitTestCase extends JBossTestCase { @@ -85,7 +85,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(CustomSocketsUnitTestCase.class, "jrmp-comp.jar"); + return getDeploySetup(CustomSocketsUnitTestCase.class, "jrmp-comp.jar"); } } 1.5 +3 -3 jbosstest/src/main/org/jboss/test/jrmp/test/DynLoadingUnitTestCase.java Index: DynLoadingUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jrmp/test/DynLoadingUnitTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- DynLoadingUnitTestCase.java 2001/10/10 21:22:17 1.4 +++ DynLoadingUnitTestCase.java 2002/01/29 22:00:04 1.5 @@ -29,7 +29,7 @@ * * @author[EMAIL PROTECTED] * @authorAuthor: david jencks [EMAIL PROTECTED] - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class DynLoadingUnitTestCase extends JBossTestCase @@ -86,7 +86,7 @@ File implFile = new File(istringImpl.getFile()); getLog().debug("Removed: " + implFile.delete()); } - deployJ2ee("jrmp-dl.jar"); + deploy("jrmp-dl.jar"); } /** @@ -96,7 +96,7 @@ */ protected void tearDown() throws Exception { - undeployJ2ee("jrmp-dl.jar"); + undeploy("jrmp-dl.jar"); super.tearDown(); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneUnidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:01 Modified:src/main/org/jboss/test/cmp2/relationship/oneToOneUnidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.3 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneUnidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneUnidirectional/ABTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ABTest.java 2002/01/16 00:02:24 1.2 +++ ABTest.java 2002/01/29 22:00:00 1.3 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/deadlock/test BeanStressTestCase.java
User: d_jencks Date: 02/01/29 14:00:01 Modified:src/main/org/jboss/test/deadlock/test BeanStressTestCase.java Log: simplified deployment calls Revision ChangesPath 1.2 +2 -3 jbosstest/src/main/org/jboss/test/deadlock/test/BeanStressTestCase.java Index: BeanStressTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/deadlock/test/BeanStressTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BeanStressTestCase.java 2002/01/12 20:29:21 1.1 +++ BeanStressTestCase.java 2002/01/29 22:00:01 1.2 @@ -39,7 +39,7 @@ * Sample client for the jboss container. * * @author mailto:[EMAIL PROTECTED]";>Bill Burke -* @version $Id: BeanStressTestCase.java,v 1.1 2002/01/12 20:29:21 patriot1burke Exp $ +* @version $Id: BeanStressTestCase.java,v 1.2 2002/01/29 22:00:01 d_jencks Exp $ */ public class BeanStressTestCase extends JBossTestCase @@ -160,8 +160,7 @@ public static Test suite() throws Exception { - Test t1 = getJ2eeSetup(BeanStressTestCase.class, "deadlock.jar"); - return t1; + return getDeploySetup(BeanStressTestCase.class, "deadlock.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneBidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/oneToOneBidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.3 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneBidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToOneBidirectional/ABTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ABTest.java 2002/01/16 00:02:24 1.2 +++ ABTest.java 2002/01/29 22:00:00 1.3 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/ejbselect EJBSelectUnitTestCase.java
User: d_jencks Date: 02/01/29 13:59:59 Modified:src/main/org/jboss/test/cmp2/ejbselect EJBSelectUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/ejbselect/EJBSelectUnitTestCase.java Index: EJBSelectUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/ejbselect/EJBSelectUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- EJBSelectUnitTestCase.java2002/01/28 21:47:10 1.3 +++ EJBSelectUnitTestCase.java2002/01/29 21:59:59 1.4 @@ -10,7 +10,7 @@ public class EJBSelectUnitTestCase extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup( + return JBossTestCase.getDeploySetup( EJBSelectUnitTestCase.class, "cmp2-ejbselect.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test JBossTestCase.java JBossTestServices.java JBossTestSetup.java
User: d_jencks Date: 02/01/29 13:59:58 Modified:src/main/org/jboss/test JBossTestCase.java JBossTestServices.java JBossTestSetup.java Log: simplified deployment calls Revision ChangesPath 1.10 +16 -53jbosstest/src/main/org/jboss/test/JBossTestCase.java Index: JBossTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestCase.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- JBossTestCase.java2001/12/12 20:08:24 1.9 +++ JBossTestCase.java2002/01/29 21:59:58 1.10 @@ -42,7 +42,7 @@ * ../lib). * * @authormailto:[EMAIL PROTECTED]";>David Jencks - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ */ public class JBossTestCase extends TestCase @@ -142,28 +142,17 @@ } /** -* Gets the ServiceDeployerName attribute of the JBossTestCase object +* Gets the DeployerName attribute of the JBossTestCase object * -* @return The ServiceDeployerName value +* @return The DeployerName value * @exception MalformedObjectNameException Description of Exception */ - protected ObjectName getServiceDeployerName() throws MalformedObjectNameException + protected ObjectName getDeployerName() throws MalformedObjectNameException { - return delegate.getServiceDeployerName(); + return delegate.getDeployerName(); } - /** -* Gets the J2eeDeployerName attribute of the JBossTestCase object -* -* @return The J2eeDeployerName value -* @exception MalformedObjectNameException Description of Exception -*/ - protected ObjectName getJ2eeDeployerName() throws MalformedObjectNameException - { - return delegate.getJ2eeDeployerName(); - } - /** * Returns the deployment directory to use. This does it's best to figure out * where you are looking. If you supply a complete url, it returns it. @@ -210,56 +199,30 @@ } /** -* Deploy a j2ee package with the J2E deployer. The supplied name is +* Deploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib. * * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ - protected void deployJ2ee(String name) throws Exception + protected void deploy(String name) throws Exception { - delegate.deployJ2ee(name); + delegate.deploy(name); } /** -* Undeploy a j2ee package with the J2E deployer. The supplied name is +* Undeploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib. * * @param name filename/url of package to undeploy. * @exception Exception Description of Exception -*/ - protected void undeployJ2ee(String name) throws Exception - { - delegate.undeployJ2ee(name); - } - - /** -* Deploy a jboss service package with the service deployer. The supplied -* name is interpreted as a url, or as a filename in jbosstest.deploy.lib or -* ../lib. -* -* @param name filename/url of package to deploy. -* @exception Exception Description of Exception -*/ - protected void deployService(String name) throws Exception - { - delegate.deployService(name); - } - - /** -* Undeploy a jboss service package with the service deployer. The supplied -* name is interpreted as a url, or as a filename in jbosstest.deploy.lib or -* ../lib. -* -* @param name filename/url of package to undeploy. -* @exception Exception Description of Exception */ - protected void undeployService(String name) throws Exception + protected void undeploy(String name) throws Exception { - delegate.undeployService(name); + delegate.undeploy(name); } - public static Test getJ2eeSetup(final Test test, final String jarName) throws Exception + public static Test getDeploySetup(final Test test, final String jarName) throws Exception { JBossTestSetup wrapper = new JBossTestSetup(test) { @@ -268,7 +231,7 @@ { deploymentException = null; try { - this.deployJ2ee(jarName); + this.deploy(jarName); this.getLog().debug("deployed package: " + jarName); } catch (Exception ex) { // Throw
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyBidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/oneToManyBidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyBidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyBidirectional/ABTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ABTest.java 2002/01/16 00:02:24 1.3 +++ ABTest.java 2002/01/29 22:00:00 1.4 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/bmp/test BmpUnitTestCase.java
User: d_jencks Date: 02/01/29 13:59:59 Modified:src/main/org/jboss/test/bmp/test BmpUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/bmp/test/BmpUnitTestCase.java Index: BmpUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/bmp/test/BmpUnitTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- BmpUnitTestCase.java 2001/09/18 22:00:43 1.3 +++ BmpUnitTestCase.java 2002/01/29 21:59:59 1.4 @@ -125,7 +125,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(BmpUnitTestCase.class, "bmp.jar"); + return getDeploySetup(BmpUnitTestCase.class, "bmp.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/entityexc/test EntityExcUnitTestCase.java
User: d_jencks Date: 02/01/29 14:00:02 Modified:src/main/org/jboss/test/entityexc/test EntityExcUnitTestCase.java Log: simplified deployment calls Revision ChangesPath 1.2 +4 -4 jbosstest/src/main/org/jboss/test/entityexc/test/EntityExcUnitTestCase.java Index: EntityExcUnitTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/entityexc/test/EntityExcUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- EntityExcUnitTestCase.java2001/10/06 21:47:39 1.1 +++ EntityExcUnitTestCase.java2002/01/29 22:00:01 1.2 @@ -37,7 +37,7 @@ * in entity beans. * * @author mailto:[EMAIL PROTECTED]";>Ole Husgaard - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class EntityExcUnitTestCase extends JBossTestCase @@ -57,8 +57,8 @@ throws Exception { getLog().debug(" Resetting..."); - undeployJ2ee("entityexc.jar"); - deployJ2ee("entityexc.jar"); + undeploy("entityexc.jar"); + deploy("entityexc.jar"); getHome().resetDatabase(); getLog().debug(" ...reset done OK"); } @@ -145,6 +145,6 @@ public static Test suite() throws Exception { - return getJ2eeSetup(EntityExcUnitTestCase.class, "entityexc.jar"); + return getDeploySetup(EntityExcUnitTestCase.class, "entityexc.jar"); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/bank/test BankStressTestCase.java
User: d_jencks Date: 02/01/29 13:59:59 Modified:src/main/org/jboss/test/bank/test BankStressTestCase.java Log: simplified deployment calls Revision ChangesPath 1.5 +2 -2 jbosstest/src/main/org/jboss/test/bank/test/BankStressTestCase.java Index: BankStressTestCase.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/test/BankStressTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- BankStressTestCase.java 2001/09/19 19:16:54 1.4 +++ BankStressTestCase.java 2002/01/29 21:59:59 1.5 @@ -23,7 +23,7 @@ * * @see * @author Author: d_jencks among many others - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class BankStressTestCase extends JBossTestCase @@ -468,7 +468,7 @@ public static Test suite() throws Exception { - return getJ2eeSetup(BankStressTestCase.class, "bank.jar"); + return getDeploySetup(BankStressTestCase.class, "bank.jar"); } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyUnidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/oneToManyUnidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyUnidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/oneToManyUnidirectional/ABTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ABTest.java 2002/01/16 00:02:24 1.3 +++ ABTest.java 2002/01/29 22:00:00 1.4 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyBidirectional ABTest.java
User: d_jencks Date: 02/01/29 14:00:00 Modified:src/main/org/jboss/test/cmp2/relationship/manyToManyBidirectional ABTest.java Log: simplified deployment calls Revision ChangesPath 1.4 +1 -1 jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyBidirectional/ABTest.java Index: ABTest.java === RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp2/relationship/manyToManyBidirectional/ABTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ABTest.java 2002/01/16 00:02:23 1.3 +++ ABTest.java 2002/01/29 22:00:00 1.4 @@ -11,7 +11,7 @@ public class ABTest extends EJBTestCase { public static Test suite() throws Exception { - return JBossTestCase.getJ2eeSetup(ABTest.class, "cmp2-relationship.jar"); + return JBossTestCase.getDeploySetup(ABTest.class, "cmp2-relationship.jar"); } public ABTest(String name) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] HEAD is still dead
HEAD is just totally fucked up. I can't run the testsuite. When I deploy a ejb bean manually, it totally craps out and even DESTROYS the deploy directory! Marc can you fix this shit? Did you even try to run the testsuite? This is 10 days of a dead head dude. To verify these problems: 1. Try to run a test in the testsuite. I tried "testbean" 2. Try deploy testbean.jar manually. Bang! it craps out and destroys the deploy directory. Please fix this. I can't do any work. Bill ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosscx/src/main/org/jboss/resource RARDeployer.java RARDeployerMBean.java
User: d_jencks Date: 02/01/29 13:12:22 Modified:src/main/org/jboss/resource RARDeployer.java RARDeployerMBean.java Log: cleaned up hardcoded object name problems from new deployer work Revision ChangesPath 1.18 +2 -2 jbosscx/src/main/org/jboss/resource/RARDeployer.java Index: RARDeployer.java === RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployer.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- RARDeployer.java 2002/01/20 15:06:06 1.17 +++ RARDeployer.java 2002/01/29 21:12:22 1.18 @@ -48,7 +48,7 @@ * * @author Toby Allsopp ([EMAIL PROTECTED]) * @author mailto:[EMAIL PROTECTED]";>David Jencks -* @version$Revision: 1.17 $ +* @version$Revision: 1.18 $ * @seeorg.jboss.resource.ConnectionFactoryLoader * * Revisions: @@ -169,7 +169,7 @@ RARMetaData metaData = (RARMetaData) rdi.metaData; //set up the RARDeployment mbean for dependency management. - ObjectName deploymentName = new ObjectName("JCA:service=RARDeployment,name=" + metaData.getDisplayName()); + ObjectName deploymentName = new ObjectName("jboss.jca:service=RARDeployment,name=" + metaData.getDisplayName()); server.createMBean("org.jboss.resource.RARDeployment", deploymentName, new Object[] {metaData}, 1.7 +2 -2 jbosscx/src/main/org/jboss/resource/RARDeployerMBean.java Index: RARDeployerMBean.java === RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployerMBean.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- RARDeployerMBean.java 2001/11/10 21:38:03 1.6 +++ RARDeployerMBean.java 2002/01/29 21:12:22 1.7 @@ -12,14 +12,14 @@ * Exposed management interface for the RARDeployer service. * * @author Toby Allsopp ([EMAIL PROTECTED]) - * @version$Revision: 1.6 $ + * @version$Revision: 1.7 $ */ public interface RARDeployerMBean extends DeployerMBean { // Constants - - String OBJECT_NAME = ":service=RARDeployer"; + String OBJECT_NAME = "jboss.jca:service=RARDeployer"; // Public ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment MainDeployerMBean.java SARDeployerMBean.java
User: d_jencks Date: 02/01/29 13:12:23 Modified:src/main/org/jboss/deployment MainDeployerMBean.java SARDeployerMBean.java Log: cleaned up hardcoded object name problems from new deployer work Revision ChangesPath 1.2 +2 -2 jboss/src/main/org/jboss/deployment/MainDeployerMBean.java Index: MainDeployerMBean.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/MainDeployerMBean.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MainDeployerMBean.java2002/01/20 03:37:44 1.1 +++ MainDeployerMBean.java2002/01/29 21:12:23 1.2 @@ -19,7 +19,7 @@ * @author mailto:[EMAIL PROTECTED]";>Rickard Öberg * @author mailto:[EMAIL PROTECTED]";>Toby Allsopp * @author mailto:[EMAIL PROTECTED]";>Marc Fleury -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * 20011223 marc fleury: * * add/RemoveURL, added the capacity to dynamically add a URL to watch @@ -32,7 +32,7 @@ extends ServiceMBean { /** The default object name. */ - String OBJECT_NAME = "JBOSS-SYSTEM:service=MainDeployer"; + String OBJECT_NAME = "jboss.system:service=MainDeployer"; /** individual URLs for dynamically deploying **/ 1.2 +2 -2 jboss/src/main/org/jboss/deployment/SARDeployerMBean.java Index: SARDeployerMBean.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/SARDeployerMBean.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SARDeployerMBean.java 2002/01/20 03:38:48 1.1 +++ SARDeployerMBean.java 2002/01/29 21:12:23 1.2 @@ -15,7 +15,7 @@ * @author mailto:[EMAIL PROTECTED]";>Marc Fleury * @see org.jboss.system.Service * -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * * 20010830 marc fleury: * @@ -29,6 +29,6 @@ // Public /** The default object name. */ - public static final String OBJECT_NAME = "JBOSS-SYSTEM:service=ServiceDeployer"; + public static final String OBJECT_NAME = "jboss.system:service=ServiceDeployer"; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/etc/conf/default jboss-service.xml
User: d_jencks Date: 02/01/29 13:12:23 Modified:src/etc/conf/default jboss-service.xml Log: cleaned up hardcoded object name problems from new deployer work Revision ChangesPath 1.25 +4 -3 jboss/src/etc/conf/default/jboss-service.xml Index: jboss-service.xml === RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/jboss-service.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- jboss-service.xml 2002/01/20 15:15:16 1.24 +++ jboss-service.xml 2002/01/29 21:12:23 1.25 @@ -1,6 +1,6 @@ - + @@ -17,6 +17,7 @@ | then there is no need to list the files and it should commented --> + @@ -102,7 +103,7 @@ - + true false false @@ -111,7 +112,7 @@ - + ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb EJBDeployer.java EJBDeployerMBean.java
User: d_jencks Date: 02/01/29 13:12:23 Modified:src/main/org/jboss/ejb EJBDeployer.java EJBDeployerMBean.java Log: cleaned up hardcoded object name problems from new deployer work Revision ChangesPath 1.2 +2 -2 jboss/src/main/org/jboss/ejb/EJBDeployer.java Index: EJBDeployer.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/EJBDeployer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- EJBDeployer.java 2002/01/20 03:43:45 1.1 +++ EJBDeployer.java 2002/01/29 21:12:23 1.2 @@ -74,14 +74,14 @@ * @author mailto:[EMAIL PROTECTED]";>Peter Antman. * @author mailto:[EMAIL PROTECTED]";>Scott Stark * @author mailto:[EMAIL PROTECTED]";>Sacha Labourey -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ */ public class EJBDeployer extends ServiceMBeanSupport implements EJBDeployerMBean { // Constants - - private static final String SERVICE_CONTROLLER_NAME = "JBOSS-SYSTEM:spine=ServiceController"; + private static final String SERVICE_CONTROLLER_NAME = "jboss.system:spine=ServiceController"; public static String DEFAULT_STATELESS_CONFIGURATION = "Default Stateless SessionBean"; public static String DEFAULT_STATEFUL_CONFIGURATION = "Default Stateful SessionBean"; 1.2 +2 -2 jboss/src/main/org/jboss/ejb/EJBDeployerMBean.java Index: EJBDeployerMBean.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/EJBDeployerMBean.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- EJBDeployerMBean.java 2002/01/20 03:43:45 1.1 +++ EJBDeployerMBean.java 2002/01/29 21:12:23 1.2 @@ -22,7 +22,7 @@ * @author mailto:[EMAIL PROTECTED]";>Rickard Öberg * @author mailto:[EMAIL PROTECTED]";>Juha Lindfors * @author mailto:[EMAIL PROTECTED]";>Marc Fleury -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * 20011227 marc fleury: * * Deployer and ClassLoader unification extends DeployerMBean @@ -32,7 +32,7 @@ extends DeployerMBean { /** The default object name. */ - String OBJECT_NAME = "EJB:service=EJBDeployer"; + String OBJECT_NAME = "jboss.ejb:service=EJBDeployer"; /** * Returns the applications deployed by the container factory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosscx/src/main/org/jboss/resource ConnectionFactoryLoader.java
User: d_jencks Date: 02/01/29 13:08:04 Modified:src/main/org/jboss/resource ConnectionFactoryLoader.java Log: improved error messages from deploying Revision ChangesPath 1.19 +24 -15jbosscx/src/main/org/jboss/resource/ConnectionFactoryLoader.java Index: ConnectionFactoryLoader.java === RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/ConnectionFactoryLoader.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- ConnectionFactoryLoader.java 2002/01/02 17:06:53 1.18 +++ ConnectionFactoryLoader.java 2002/01/29 21:08:03 1.19 @@ -50,6 +50,7 @@ import org.jboss.system.ServiceMBeanSupport; import org.jboss.management.j2ee.JDBCDataSource; +import org.jboss.deployment.DeploymentException; /** * Service that configures an instance of a deployed resource adapter and binds @@ -65,7 +66,7 @@ * @author mailto:[EMAIL PROTECTED]";>David Jencks * @author mailto:[EMAIL PROTECTED]";>Andreas Schaefer * @seeRARDeployer - * @version$Revision: 1.18 $ + * @version$Revision: 1.19 $ * * Revisions: * @@ -487,8 +488,12 @@ * Does the actual work of configuring a connection factory. * This could now throw exceptions since it is no longer called from a notification. */ - private void loadConnectionFactory() + private void loadConnectionFactory() throws DeploymentException { + if (jndiName == null || "".equals(jndiName)) + { + throw new DeploymentException("Null or blank jndi name, cannot bind"); + } // This context is used in a few places. There is no point // continuing if JNDI isn't working. @@ -500,7 +505,7 @@ catch (NamingException ne) { log.error("Unable to obtain initial context", ne); - return; + throw new DeploymentException("Can't get initialContext!" + ne); } RARMetaData metaData = null; try @@ -510,9 +515,12 @@ catch (Exception e) { log.error("Unable to obtain RARMetaData", e); - return; + throw new DeploymentException("Could not get metadata for rar! " + e); } // end of try-catch - + if (metaData == null) + { + throw new DeploymentException("MetaData for resource adapter was null!"); + } // This is the class loader through which we should be able to // load the resource adapter's classes @@ -533,7 +541,7 @@ { log.error("Unable to load managed connection factory class '" + mcfClassName + "'", cnfe); - return; + throw new DeploymentException("Failed to load ManagedConnectionFactory class!" + cnfe); } try { @@ -543,7 +551,7 @@ { log.error("Unable to instantiate manageed connection factory class '" + mcfClass + "'", e); - return; + throw new DeploymentException("Could not create ManagedConnectionFactory instance! " + e); } // Set the properties on it @@ -676,7 +684,7 @@ { log.error("Unable to instantiate principal mapping class '" + princMapClass + "'", e); - return; + throw new DeploymentException("Could not create PrincipalMapping instance" + e); } principalMapping.setName(jndiName); @@ -693,7 +701,7 @@ } catch (Exception e) { log.error("Unable to find connection manager factory at from loader " + cmfLoaderName); - return; + throw new DeploymentException("Could not get ConnectionManagerFactory!! - invalid config!!" + e); } // end of try-catch @@ -704,9 +712,9 @@ cmConfig.rsf = new JBossResourceSubjectFactory(principalMapping); cmConfig.isReauthenticationSupported = metaData.getReauthenticationSupport(); - JBossConnectionListenerImpl listener = -new JBossConnectionListenerImpl(mcf, jndiName); - cmConfig.listener = listener; + //JBossConnectionListenerImpl listener = + //new JBossConnectionListenerImpl(mcf, jndiName); + //cmConfig.listener = listener; Properties cmProperties = new Properties(); try @@ -728,10 +736,10 @@ catch (ResourceException re) { log.error("Error initialising connection manager", re); - return; + throw new DeploymentException("Could not set up ConnectionManager! " + re); } - listener.setConnectionManager(cm); + //listener.setConnectionManager(cm); // Create us a connection factory @@ -744,7 +752,7 @@ catch (Resource
Re: [JBoss-dev] Jetty3.1.5, Axis & Basic Authentication Problem
Christoph, I'm forwarding you to Jetty-Discuss, where the serious Jetty experts lurk. I will try to put some time aside for this over the next couple of days, meanwhile they may be able to help you. Sorry I can't jump on this right now, but I'm very busy, Jules "Jung , Dr. Christoph" <[EMAIL PROTECTED]> wrote: Hello (Jules!), For the jboss.net SOAP-integration project, I just figured out the principle how to combine Jetty&Axis security at least in the basic authentication case (the others will then follow quite easily, I think). In general, axis is deployed as a web-application into the web-container, in our case we use Jetty3.1.5. For what I now try to reach, I desperately need your help. As a default, I want to "secure" all exposed (EJB-based) web-services under the context /axis/services (and hence hitting the main AxisServlet) such that they are potentially open to everyone, even to those without authentication (in which case they will have a null security association). If the incoming XML/HTTP-calls use authentication, however, they should be logged in with their corresponding principal in a pre-configurable security domain/realm such that subsequently deserialized EJB calls will occur in the right security context. My axis-web.xml currently contains: Secured Authenticate every call /services/* HEAD GET POST PUT DELETE NONE BASIC Axis basic authentication the corresponding jboss-web.xml looks like this: java:/jaas/other Unfortunately, the Jetty3.1.5 Security Handler (line 291) either does check authentication or it ommits authentication completely ... So in above case, all users, even those that come with authentication data will not be logged in. // Does it fail a role check? if (sc.isAuthenticated() && !sc.hasRole(SecurityConstraint.NONE) && !authenticatedInRole(pathInContext,pathParams,request,response,sc.roles())) // return as an auth challenge will have been set return; Experimenting with an unauthenticatedPrincipal "nobody" in the loginmodule instead of a NONE-role also did not work, because Jetty then refuses any not-authenticated call having no credential information in the request (SecurityHandler.java): private boolean basicAuthenticated(HttpRequest request, HttpResponse response) throws IOException { String credentials = request.getField(HttpFields.__Authorization); if (credentials!=null ) { ... } Code.debug("Unauthorized in "+_realmName); response.setField(HttpFields.__WwwAuthenticate, "basic realm=\""+_realmName+'"'); response.sendError(HttpResponse.__401_Unauthorized); return false; } Is there another way to do it? Is my goal against the spec at all? Does Jetty 4 do it exactly like this? Or do you think there is a small potential to persuade Jetty to insert a reasonable null-credential against login-module case? Thanks much, CGJ ("Dr. Schorsch") Currently spinnin´ all-time soul classic: Omar, "Who chooses the seasons" Do You Yahoo!? Get personalised at My Yahoo!.
Re: [JBoss-dev] HEAD IS OK
Marc, This is probably because it is looking for some of the Clustered HttpSession support. I'm not at home tonight, so can't sort it. If you mail me the stacktrace I shall think about it tomorrow and try to get it in tomorrow night. Jules [EMAIL PROTECTED] wrote: Silly oversights on Sunday made it not compile (adrian figured it out) and then I just put a dummy implementation on the clustering stuff. So HEAD compiles afact, and runs. Minus Jetty that complians because one of it's files is not correctly setup? (complains that there is an > that is not where it should be)OK I will try to finish debugging in order to put out the DR1 release during this week.Cruising, cruising... the rabbits are comingmarcf___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-developmentDo You Yahoo!? Get personalised at My Yahoo!.
[JBoss-dev] Configuring Tomcat within JBoss
Hi, I'd like to set the "allowChunking" flag to false but can't figure out where to do it in the combined JBoss/Catalina. For standalone Catalina, I can simply add the attribute 'allowChunking="false"' to the Connector element in server.xml but I'm not able to find anything similar in the jboss/conf/catalina/* files. Any help is appreciated. Thanks. __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] JBossOne
+1! I am down with the Sandal Brigade... :) Scott Sanders > -Original Message- > From: marc fleury [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 28, 2002 9:52 PM > To: Jboss-Development@Lists. Sourceforge. Net; > Jboss-User@Lists. Sourceforge. Net > Subject: [JBoss-dev] JBossOne > > > From the website > > JBossOne : THE REAL TECHNOLOGY CONFERENCE > > Uncut and un-censored. JBoss Group will hold parrallel > alternative sessions at a yet to be specified location during > the week of JavaONE. This is not your manager's technology > conference. We could spend a lot of money on a crappy booth > and fancy brochures, but we will be throwing a kick-ass party > instead. Watch this space for more details in the weeks to come. > > > So our talks were too technical or too controversial for the > mainstream conference, but nothing will prevent us from > getting the word out on our most recent work. We will not be > silenced. So there you have it, we will be having a JBossOne > conference with many talks over 2-3 days on the fringes of > JavaOne, in San Francisco, piggy backing on our legitimate > and boring counterpart. > > Also we will be throwing a party. That's right a party. We > only live once and we will be getting a real DJ not just me > spinning records :). It is that or glossy marketing stuff, > we chose for you. > > Stay tuned and be ready to "Be hip with the Sandal Brigade." > > marcf > > > > ___ > Jboss-development mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-498902 ] Wrong SQL for finder-method w/ IN clause
Bugs item #498902, was opened at 2002-01-03 02:35 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=498902&group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Jochen Cordes (jcordes) Assigned to: Dain Sundstrom (dsundstrom) Summary: Wrong SQL for finder-method w/ IN clause Initial Comment: System Configuration Windows 98 MySQL 3.23.40 JDK 1.3.1 Problem Description --- Im running into problems when trying to invoke a finder-method on a unidirectional one-many- relationship (Customer-Address). I defined a table- mapping and addresses get inserted accordingly. The query looks like this SELECT OBJECT(a) FROM Customer c, IN (c.addresses) AS a WHERE c.id = ?1 AND a.type='shipping' where the generated SQL is SELECT t2_a.id FROM Customer t1_c, Address t2_a, Customer_Address t3_t1_c_to_addresses WHERE (t1_c.id = ? AND t2_a.type = 'shipping') AND t1_c.id=t4_t1_c_to_addresses.customer_id AND t2_a.id=t4_t 1_c_to_addresses.address_id Known Issue --- t4 should be t3. -- >Comment By: Dain Sundstrom (dsundstrom) Date: 2002-01-29 09:58 Message: Logged In: YES user_id=251431 TEST EJB-QL: SELECT OBJECT(a) FROM Customer c, IN (c.addresses) AS a WHERE c.id = ?1 AND a.state='CA' BEFORE FIX: --- SELECT t2_a.id, t2_a.street, t2_a.city, t2_a.state, t2_a.zip, t2_a.zipPlus4 FROM CustomerEJB t1_c, AddressEJB t2_a, CUSTOMER_ADDRESS t3_t1_c_to_addresses WHERE (t1_c.id = ? AND t2_a.state = 'CA') AND t1_c.id=t4_t1_c_to_addresses.CUSTOMER AND t2_a.id=t4_t1_c_to_addresses.CUSTOMER AFTER FIX: -- SELECT t2_a.id, t2_a.street, t2_a.city, t2_a.state, t2_a.zip, t2_a.zipPlus4 FROM CustomerEJB t1_c, AddressEJB t2_a, CUSTOMER_ADDRESS t3_CUSTOMER_ADDRESS WHERE (t1_c.id = ? AND t2_a.state = 'CA') AND t1_c.id=t3_CUSTOMER_ADDRESS.CUSTOMER AND t2_a.id=t3_CUSTOMER_ADDRESS.ADDRESS -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=498902&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-510130 ] missing class in binary distribution
Bugs item #510130, was opened at 2002-01-29 05:29 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510130&group_id=22866 Category: JBossSX Group: v2.4 (stable) Status: Open >Resolution: Accepted Priority: 5 Submitted By: Wolfgang Kaltz (jwkaltz) >Assigned to: Scott M Stark (starksm) Summary: missing class in binary distribution Initial Comment: see also http://main.jboss.org/thread.jsp?forum=49&thread=7404 The binary distribution 2.4.4 seems to be missing the class org/jboss/security/Base64Encoder and therefore using hashed passwords doesn't work due to a NoClassDefFoundError When compiling this class by hand (from the 2.4.4 source code distribution) and adding it to jboss-jaas.jar, I was able to successfully use the new password hashing feature (I'm using SHA) -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510130&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/ejbql IdentifierManager.java SQLGenerator.java
User: dsundstrom Date: 02/01/29 09:56:15 Modified:src/main/org/jboss/ejb/plugins/cmp/jdbc/ejbql IdentifierManager.java SQLGenerator.java Log: Fixed bug where the alias for relation tables was not incorrectly stored in hashmap, so each time it was requested a new one was generated. Fixed bug that incorrectly generated the join for a relation table mapped relationship. Revision ChangesPath 1.3 +99 -27 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/ejbql/IdentifierManager.java Index: IdentifierManager.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/ejbql/IdentifierManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- IdentifierManager.java2001/09/01 22:03:17 1.2 +++ IdentifierManager.java2002/01/29 17:56:15 1.3 @@ -8,6 +8,9 @@ import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCTypeMappingMetaData; public class IdentifierManager { + /** +* PathElement objects by dotted path string. +*/ private final Map pathElements = new Hashtable(); private final Map identifiersByPathElement = new Hashtable(); private final Map tableAliases = new Hashtable(); @@ -35,6 +38,11 @@ aliasMaxLength = target.aliasMaxLength; } + /** +* Gets the abstract schema that has been assigned the specified identifier. +* @param identifier the identifier that is used to search for the schema +* @return the abstract schema if found; null otherwise +*/ public AbstractSchema getAbstractSchema(String identifier) { PathElement pathElement = getPathElement(identifier); if(pathElement instanceof AbstractSchema) { @@ -43,17 +51,32 @@ return null; } + /** +* Gets the existing abstract schema that has been assigned the +* specified identifier. If the schema is not found this method will throw +* an IllegalArgumentException. +* @param identifier the identifier that is used to search for the schema +* @return the abstract schema +* @throws IllegalArgumentException if the schema is not found +*/ public AbstractSchema getExistingAbstractSchema(String identifier) { PathElement pathElement = getExistingPathElement(identifier); if(pathElement instanceof AbstractSchema) { return (AbstractSchema)pathElement; } else { - throw new IllegalArgumentException("Path element with identifier is not an instance of AbstractSchema: " + -" identifier=" + identifier + -", pathElement=" + pathElement); + throw new IllegalArgumentException("Path element with identifier " + + "is not an instance of AbstractSchema: " + + "identifier=" + identifier + + ", pathElement=" + pathElement); } } + /** +* Gets the cmr field identified by the specified path. If the path does +* not identify a cmr field, this function will return null. +* @param path the path that is used to search for the cmr field +* @return the cmr field if found; null otherwise +*/ public CMRField getCMRField(String path) { PathElement pathElement = getPathElement(path); if(pathElement instanceof CMRField) { @@ -67,12 +90,19 @@ if(pathElement instanceof CMRField) { return (CMRField)pathElement; } else { - throw new IllegalArgumentException("Path element at path is not an instance of CMRField: " + -" path=" + path + -", pathElement=" + pathElement); + throw new IllegalArgumentException("Path element at path is not " + + "an instance of CMRField: " + + "path=" + path + + ", pathElement=" + pathElement); } } + /** +* Gets the entity identified by the specified path. If the path does +* not identify an entity, this function will return null. +* @param path the path that is used to search for the entity +* @return the entity if found; null otherwise +*/ public EntityPathElement getEntityPathElement(String path) { PathElement pathElement = getPathElement(path); if(pathElement instanceof EntityPathElement) { @@ -86,12 +116,19 @@ if(pathElement instanceof EntityPathElement) { return (EntityPathElement)pathElement; } else { - throw new IllegalArgumentException("Path element at path is not an instance of EntityPathElement: " + -" path=" + path + -", pathElement=" + pathElement); + throw new IllegalArgumentException("Path element at path is not " + + "an instance of EntityPathElement: " + +
[JBoss-dev] [ jboss-Bugs-510130 ] missing class in binary distribution
Bugs item #510130, was opened at 2002-01-29 05:29 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510130&group_id=22866 Category: JBossSX Group: v2.4 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Wolfgang Kaltz (jwkaltz) Assigned to: Nobody/Anonymous (nobody) Summary: missing class in binary distribution Initial Comment: see also http://main.jboss.org/thread.jsp?forum=49&thread=7404 The binary distribution 2.4.4 seems to be missing the class org/jboss/security/Base64Encoder and therefore using hashed passwords doesn't work due to a NoClassDefFoundError When compiling this class by hand (from the 2.4.4 source code distribution) and adding it to jboss-jaas.jar, I was able to successfully use the new password hashing feature (I'm using SHA) -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=510130&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Jetty3.1.5, Axis & Basic Authentication Problem
Title: Jetty3.1.5, Axis & Basic Authentication Problem Hello (Jules!), For the jboss.net SOAP-integration project, I just figured out the principle how to combine Jetty&Axis security at least in the basic authentication case (the others will then follow quite easily, I think). In general, axis is deployed as a web-application into the web-container, in our case we use Jetty3.1.5. For what I now try to reach, I desperately need your help. As a default, I want to "secure" all exposed (EJB-based) web-services under the context /axis/services (and hence hitting the main AxisServlet) such that they are potentially open to everyone, even to those without authentication (in which case they will have a null security association). If the incoming XML/HTTP-calls use authentication, however, they should be logged in with their corresponding principal in a pre-configurable security domain/realm such that subsequently deserialized EJB calls will occur in the right security context. My axis-web.xml currently contains: Secured Authenticate every call /services/* HEAD GET POST PUT DELETE NONE BASIC Axis basic authentication the corresponding jboss-web.xml looks like this: java:/jaas/other Unfortunately, the Jetty3.1.5 Security Handler (line 291) either does check authentication or it ommits authentication completely ... So in above case, all users, even those that come with authentication data will not be logged in. // Does it fail a role check? if (sc.isAuthenticated() && !sc.hasRole(SecurityConstraint.NONE) && !authenticatedInRole(pathInContext,pathParams,request,response,sc.roles())) // return as an auth challenge will have been set return; Experimenting with an unauthenticatedPrincipal "nobody" in the loginmodule instead of a NONE-role also did not work, because Jetty then refuses any not-authenticated call having no credential information in the request (SecurityHandler.java): private boolean basicAuthenticated(HttpRequest request, HttpResponse response) throws IOException { String credentials = request.getField(HttpFields.__Authorization); if (credentials!=null ) { ... } Code.debug("Unauthorized in "+_realmName); response.setField(HttpFields.__WwwAuthenticate, "basic realm=\""+_realmName+'"'); response.sendError(HttpResponse.__401_Unauthorized); return false; } Is there another way to do it? Is my goal against the spec at all? Does Jetty 4 do it exactly like this? Or do you think there is a small potential to persuade Jetty to insert a reasonable null-credential against login-module case? Thanks much, CGJ ("Dr. Schorsch") Currently spinnin´ all-time soul classic: Omar, "Who chooses the seasons"