i load the new jboss3.0 version today, however the problem did not go away.
i am not sure what to suggest.

-----Original Message-----
From: Damon Hamacha 
Sent: Tuesday, July 23, 2002 4:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jndi / jboss question


i am confused,
i downloaded jboss 3.0 yesterday [Monday], maybe the version is corrupted.
i will try a new version today and see what i get.


as you mentioned you run jboss with start "run -c minimal" did you get the lo4j.jar 
exception.
i fixed the problem by adding log4j.jar to %jboss_installation%\lib.
the bellow is the exception i was getting. 


oss3.0/jboss-3.0.0/lib/log4j.jar could not be opened, does it exist?
        at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:172)
        at org.jboss.deployment.SARDeployer.parseXMLClasspath(SARDeployer.java:4
64)
        at org.jboss.deployment.SARDeployer.init(SARDeployer.java:155)
        at org.jboss.deployment.MainDeployer.init(MainDeployer.java:556)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:501)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
        at org.jboss.Main.boot(Main.java:142)
        at org.jboss.Main$1.run(Main.java:375)
        at java.lang.Thread.run(Unknown Source)
15:56:22,533 INFO  [MainDeployer] Starting deployment of package: file:/C:/appSe

-----Original Message-----
From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jndi / jboss question


Damon,

I just took HEAD from yesterday (3.1RC), start "run -c minimal" and
successfully ran the following adaptation of your program:


import java.io.*;
import java.util.*;
import javax.naming.*;
import org.jnp.interfaces.NamingContextFactory;

/*
* This program is used to bind a connection factory and a destination
* to a JNDI implementation as specified by the file name passed in as
args[0]
*/

public class JNDIBinder
{
  private Properties env = new Properties();

  public JNDIBinder(String propertiesFile) throws Exception
  {

    System.out.println("Reading properties from " + propertiesFile);
    env.load( ClassLoader.getSystemResourceAsStream(propertiesFile));

    InitialContext ic = new InitialContext(env);
    System.out.println("Successfully Created Initial Context");

    ic.rebind ("bla", "bli");
    String result = (String)ic.lookup ("bla");
    System.out.println ("Result: " + result);



    ic.close();
  }

  public static void main(String[] args)
  {
    try
    {
      System.out.println("Started Binding");
      JNDIBinder spiritJNDIbinder = new JNDIBinder("startup.properties");
      System.out.println("Finished Binding");
      System.exit(0);
    }
    catch (Exception e)
    {
      System.out.println("Error Binding" + e);
      e.printStackTrace();
      System.exit(0);
    }
  }
}



RESULT:
=======

Started Binding
Reading properties from startup.properties
Successfully Created Initial Context
Result: bli
Finished Binding


So everything seems to be ok.

Cheers,


                                Sacha



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

________________________________________________________________________

This email has been scanned for all viruses by MessageLabs
________________________________________________________________________

This message contains confidential information and is intended only for the named 
individual and may not be disseminated without prior permission.  If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this message in error and 
delete this e-message from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, destroyed, 
delayed in transmission, incomplete, or may contain viruses. The sender therefore does 
not accept liability for any errors or omissions in the contents of this Message which 
arise as a result of e-mail transmission.  If verification is required please request 
a hard-copy version. This message is provided for informational purposes and should 
not be construed as a solicitation or offer to buy or sell any software or services.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com
________________________________________________________________________


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This message contains confidential information and is intended only for the named 
individual and may not be disseminated without prior permission.  If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this message in error and 
delete this e-message from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, destroyed, 
delayed in transmission, incomplete, or may contain viruses. The sender therefore does 
not accept liability for any errors or omissions in the contents of this Message which 
arise as a result of e-mail transmission.  If verification is required please request 
a hard-copy version. This message is provided for informational purposes and should 
not be construed as a solicitation or offer to buy or sell any software or services.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com
________________________________________________________________________


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to