Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to download fscontext.jar

843830Oct 3 2007 — edited Oct 6 2007
hi,

can someone tell me how to download fscontext.jar and

providerutil.jar. the links i found online don't seem to have them.

i just bought wrox's professionalJMS programming book, i was shock to

see that it was written in 2000, and hasn't had any new updates

despite all the new jdk and sdk updates. when i do this:

C:\wrox\pro_jms\Chapter02>java JMSLookup
Exception in thread "main" javax.naming.NoInitialContextException:

Cannot instan
tiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root

exception is java.
lang.ClassNotFoundException:

com.sun.jndi.fscontext.RefFSContextFactory]
at

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
57)
at

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at

javax.naming.InitialContext.<init>(InitialContext.java:197)
at JMSLookup.main(JMSLookup.java:37)
Caused by: java.lang.ClassNotFoundException:

com.sun.jndi.fscontext.RefFSContext
Factory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at

sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at

com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:46)
at

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
54)
... 4 more

i get a whole bunch of errors because my jdk/jre's library lack

fscontext.jar and providerutil.jar, but i can't find these two jar

files even in sun's website. further more, sun's own JMS tutorial is

written back in 2002, and has been updated since. so is JMS really

being used lately, or is it so well designed that there hasn't been

any need for updates?

also, the config.bat file that the wrox downloaded code is as

follows:

@echo off

if "%JMQ_HOME%\lib\jmq.jar" == "\lib\jmq.jar" goto nojmqhome

REM Create and add the queue
call "%JMQ_HOME%\bin\jmqobjmgr" add -t q -l "myQueue" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM Create and add the topic
call "%JMQ_HOME%\bin\jmqobjmgr" add -t t -l "myTopic" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM Create and add the queue connection factory
call "%JMQ_HOME%\bin\jmqobjmgr" add -t qf -l "QCFactory" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM Create and add the topic connection factory
call "%JMQ_HOME%\bin\jmqobjmgr" add -t tf -l "TCFactory" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

goto end

:nojmqhome
echo Please set the JMQ_HOME environment variable.
goto end
:end

i couldn't find jmqojmgr or jmq.jar, but i did see imqojmgr and

imq.jar in sun's message queue lib folder, is anything that starts

with 'i', like imq.jar just the latest version of anything that

starts with 'j'?

thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2007
Added on Oct 3 2007
1 comment
8,584 views