User: tobias
Date: 01/01/03 20:10:08
Modified: src/main/org/jboss Main.java
Log:
At startup JBoss now displays a warning if jndi.properties is FOUND.
Presence of this file could mean j2ee.jar is present in the CLASSPATH
which will lead to a lot of exceptions while startup. Please report
if this is disturbing to some users.
Revision Changes Path
1.24 +8 -1 jboss/src/main/org/jboss/Main.java
Index: Main.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/Main.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- Main.java 2000/12/07 15:44:04 1.23
+++ Main.java 2001/01/04 04:10:08 1.24
@@ -32,7 +32,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel O'Connor</a>.
- * @version $Revision: 1.23 $
+ * @version $Revision: 1.24 $
*/
public class Main
{
@@ -102,6 +102,13 @@
final PrintStream err = System.err;
com.sun.management.jmx.Trace.parseTraceProperties();
+
+ // Give feedback about from where jndi.properties is read
+ URL jndiLocation = this.getClass().getResource("/jndi.properties");
+ if (jndiLocation instanceof URL) {
+ System.out.println("Please make sure the following is intended (check
your CLASSPATH):");
+ System.out.println(" jndi.properties is read from "+jndiLocation);
+ }
// Create MBeanServer
final MBeanServer server = MBeanServerFactory.createMBeanServer();