Link to home
Start Free TrialLog in
Avatar of dtivmk
dtivmk

asked on

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)
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dtivmk
dtivmk

ASKER

hi,
I had actually followed that link while developing this application.
So, I already have these jar files in a library called "jms".
Before going through this link, the program did not execute directly from the jar file.
Now, it does run, but gives the exception (as I've mentioned above).

Am I missing any other JAR file ?

Do we have to manually do something, or Netbeans automatically puts these jar files when it builds the application (since it is executing, i presume that netbeans does this by itself )?