Solved

com.sun.appserv.naming.S1ASCtxFactory

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHPStorm debugging issues 1 75
null output 3 43
difference between sorce folder and folder in eclipise 3 46
Java class and jar 3 43
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

696 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