Solved

com.sun.appserv.naming.S1ASCtxFactory

Posted on 2008-10-01
2
1,631 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
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Conflicting setter definitions for property Exception 5 57
NotAlone Challenge 20 72
scoreUp challenge 14 48
nestparen challenge 4 57
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now