Solved

com.sun.appserv.naming.S1ASCtxFactory

Posted on 2008-10-01
2
1,667 Views
Last Modified: 2013-12-14
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)
0
Comment
Question by:dtivmk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 250 total points
ID: 22614176
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
0
 
LVL 1

Author Comment

by:dtivmk
ID: 22632254
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 )?
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question