Friday, June 25, 2010

com.sun.appserv.naming.S1ASCtxFactory

Hi, 
Im running a JMS application using a Glassfish application server.
It runs fine when I run it through netbeans.

But when I run it by clicking directly on the jar file, I get an error : 
cannot instantiate class com.sun.appserv.naming.S1ASCtxFactory (class not found: com.sun.appserv.naming.S1ASCtxFactory)

Ans : 
You need to make sure that appropriate jars are there, check this out

http://weblogs.java.net/blog/kalali/archive/2006/05/step_by_step_to_2.html

1 comment:

Blogger said...

BlueHost is the best hosting provider with plans for any hosting requirements.

Blog Archive