You need to remove the J2EE RI files from your CLASSPATH in order
to run jBoss. That will solve the exception you see below. The code
"new InitialContext()" will work if you have set the system properties
appropriately, or included the file "jndi.properties" in a directory on
your classpath. jBoss does that by default, but you may have to copy it
(from jboss/conf) for a standalone client.
Aaron
On Fri, 29 Sep 2000, Dubchak, John wrote:
> Hello Everyone,
>
> I am trying to get my stand alone client to work with my recently deployed
> simple bean that uses a DB2 database. The questions I have, below, are
> based on assumptions I am making after having worked with Sun's J2EE
> Reference Implementation:
>
> 1. When I deploy the jar file, is that the same jar file I am using for the
> client's classpath?
> 2. What is my "InitialContext" code supposed to look like? I have used the
> following but it produces the associated exception at run-time (in the
> Client not in JBoss):
>
> // Code ...
> Context ic = new InitialContext();
> Object objref = ic.lookup("beanExample");
>
> SimpleTestClient.main(SimpleTestClient:38)javax.naming.CommunicationExceptio
> n: Can't find SerialContextProvider
> at
> com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:60)
> at
> com.sun.enterprise.naming.SerialContext.<init>(SerialContext.java:79)
> at
> com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialI
> nitContextFactory.java:54)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
> at javax.naming.InitialContext.init(InitialContext.java:222)
> at javax.naming.InitialContext.<init>(InitialContext.java:178)
> at SimpleTestClient.main(SimpleTestClient.java:17)
>
> 3. Is there any documentation on using JMX? I have been unable to get it to
> work correctly and would appreciate a straight forward
> "initial-walk-through-document" that explains whats there and how to use it.
>
> Any help is very much appreciated. Thank you in advance.
> John
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]