Solved

cannot find com.sybase.jms.InitialContextFactory exception, which jar?

Posted on 2009-05-07
8
314 Views
Last Modified: 2012-05-06
Hi i am running a standalone java swing app, and on starting up, it's giving the following error. Can you guys tell me which jar file has the com.sybase.jms.InitialContextFactory  or is there some other problem with it?  Thanks.

2009-05-07 18:16:21,166 [Thread-2] ERROR  - com.mypackage.MessengerEjbAdapter - javax.naming.NoInitialContextException: Cannot instantiate class: com.sybase.jms.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.sybase.jms.InitialContextFactory]
javax.naming.NoInitialContextException: Cannot instantiate class: com.sybase.jms.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.sybase.jms.InitialContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.<init>(InitialContext.java:195)
0
Comment
Question by:gagaliya
  • 3
  • 3
  • 2
8 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 200 total points
ID: 24331429
Have you got something like Sybase JMS classes?
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 200 total points
ID: 24331436
0
 
LVL 92

Assisted Solution

by:objects
objects earned 300 total points
ID: 24331809


try easclient.jar
0
 
LVL 1

Author Comment

by:gagaliya
ID: 24332259
CEHJ, nope that's the problem. I checked all the included libraries jar for this project, there is nothing that starts with com.sybase.jms

The confusing part is the guy who handed me this application said i dont need any other jar but what's included to run it.  I have no idea how he managed to run the app without this class.

objects, do you know where i can actually download easclient.jar  i googled but could find any download links for this jar.

thanks guys
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 92

Assisted Solution

by:objects
objects earned 300 total points
ID: 24332281
you would need to get it from sybase.

Perhaps its actually a configuration issue

0
 
LVL 1

Author Comment

by:gagaliya
ID: 24337430
guys i really ran into a wall here.  does anyone know where i can get the jar that contains com.sybase.jms.InitialContextFactory  

cant find it anywhere and this app requries this class to run.
0
 
LVL 92

Assisted Solution

by:objects
objects earned 300 total points
ID: 24342026
from sybase :)  you should have got it with whatever sybase product you are using

why are you using jms?
0
 
LVL 1

Author Closing Comment

by:gagaliya
ID: 31579253
ok
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groovy example issue 10 90
AWS and Java and Rest - newbie question (Is this an authentication issue) 4 68
eclipse java  build path 6 45
split string containing \r\n in Java 46 38
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

863 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

26 Experts available now in Live!

Get 1:1 Help Now