1 Reply Latest reply on Jun 27, 2002 4:56 PM by Wallace Zou

    My experience on SerialContextProvider

    Wallace Zou Newbie

      I met the most popular problem: Can't find SerialContextProvider.

      After 4 hours struggle with it, I find a way to solve this problem:

      My System:

      OS: Win2000
      JDKSE1.4
      JDKEE1.3.1
      JBOSS 3.0.0

      My way(maybe not work with you):
      1. remove Sun's j2ee.jar from classpath;
      2. add some libs from jboss. they are:
      %JBOSS_DIST%\server\default\lib\jboss-j2ee.jar
      %JBOSS_DIST%\server\default\lib\jnpserver.jar
      %JBOSS_DIST%\server\default\lib\jboss.jar
      %JBOSS_DIST%\server\default\lib\log4j.jar
      %JBOSS_DIST%\client\jboss-common-client.jar

      Hope this is helpful!

        • 1. Re: My experience on SerialContextProvider
          Wallace Zou Newbie

          I think when you run the client program, you should not use the libs located in server folder. I write a script file to start client:

          ///////// start /////////

          echo off

          set PREFIX=%JBOSS_DIST%\

          set CP=.\;%PREFIX%\client\jboss-client.jar
          set CP=%CP%;%PREFIX%\client\jboss-common-client.jar
          set CP=%CP%;%PREFIX%\client\jboss-j2ee.jar
          set CP=%CP%;%PREFIX%\client\log4j.jar
          set CP=%CP%;%PREFIX%\client\jnp-client.jar
          set CP=%CP%;%PREFIX%\client\jbosssx-client.jar

          set PT=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=jnp://localhost:1099 -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

          echo on

          java -classpath %CP% %PT% org.jboss.docs.interest.InterestClient

          ///////// end /////////