Questions tagged [classnotfoundexception]

The Java exception thrown when an application tries to load a class by name but is not able to find the class.

The Java exception thrown when an application tries to load a class by name. Usually raised by one of:

  • the forName(String) method in class Class
  • the findSystemClass(String) method in class ClassLoader
  • the loadClass(String) method in class ClassLoader

when no definition for the class with the specified name could be found in the .

Don't confuse it with , it's a different kind of error, see the following links for more details:

2221 questions
4
votes
2 answers

JBoss 6 EAP JaxWsProxyFactoryBean NoClassDefFoundError

I'm migrating an application from JBoss 6.1.0 JBoss EAP 4.2.xa. I know I have changed many things, one of the most important is that JBoss now includes most of the framework / most used libraries (modules), which is great (war files smaller). Now, I…
jpadron
  • 111
  • 2
  • 7
4
votes
1 answer

JAR fails to load com.microsoft.sqlserver.jdbc.sqlserverdriver

There seems to be a number of similar questions related to this, but none have been able to provide me with any help. I'm running Microsoft's JDBC driver on SQL Server (I am using sqljdbc4.jar) and using integrated authentication to access my…
David G
  • 153
  • 1
  • 1
  • 5
4
votes
4 answers

Running Mahout Locally getting ClassNotFoundException for MahoutDriver

I am trying to run Mahout locally (without Hadoop) on a Windows 8 Machine. I realize this is not the optimal set up but that's what I've got to work with. When I try to run bin/mahout I get the following error: $ bin/mahout MAHOUT_LOCAL is set, so…
4
votes
2 answers

WebSphere ClassNotFoundException with deployed dynamic web project

Problem I am currently experiencing a ClassNotFoundException with a deployed EAR (with OpenFaces web project) on WebSphere 7.0 application server. The EAR deploys with no problems, but when I go to access a page from the web project (included in…
4
votes
2 answers

classNotFoundException GWTBridge

im working on a gwt webapp and while working on it im getting this exception while trying to get a XML file from a URL in a remove servlete. i dont know much about the underworkings of gwt, maybe someone can help me out this is the code to get the…
Pita
  • 1,444
  • 1
  • 19
  • 29
4
votes
2 answers

Error inflating layout with java.lang.ClassNotFoundException

OK now I know that this question has been asked before several times on SO but none of the answers have worked for me. I am attempting to create a custom preference for my project. More specifically it is a preference with a HorizontalListView…
4
votes
0 answers

Android ClassNotFoundException at Launching using ABS and SlidingMenu

I am starting an Android application using ActionBarSherlock and SlidingMenu librairies and the IDE IntelliJ IDEA. I had a lot of problems to include the 2 librairies, but finally, trying many differents Project structures, the project compiled…
4
votes
1 answer

Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/log4j/Logger

I am trying to get commons logging working for log4j configuration, but I keep getting an exception when starting the server. I also get a similar exception when trying to use StringUtils which is available via another commons…
4
votes
1 answer

shark/spark throws NPE when querying a table

The development part of shark/spark wiki is really brief, so I tried to put together a code in an effort to programmatically query a table. Here it is ... object Test extends App { val master = "spark://localhost.localdomain:8084" val jobName =…
4
votes
3 answers

java.lang.ClassNotFoundException on startup

We have very weird java.lang.ClassNotFoundException on app startup that happens to very small amount of customers (< 1%). We never saw it in dev env and we cannot understand the source of this issue. Here is the stack trace from Google play crash…
user1744147
  • 1,099
  • 13
  • 30
4
votes
1 answer

JSF Configuration of the file upload filter

I am trying to use fileUpload component. As I read from primefaces user guide, I have to configure the fileUpload filter. PrimeFaces FileUpload Filter
4
votes
3 answers

Java RMI - ClassNotFound exception

I'm creating a Java RMI program, but I'm getting a ClassNotFoundException. Could you guys help me figure it out? I'm using Eclipse. Somebody suggested me it was a codebase problem, but how does this relate? Here are the codes for my Server and…
Rod
  • 424
  • 2
  • 7
  • 17
4
votes
3 answers

IntelliJ and android.support.v7.widget.GridLayout

I am running into trouble either setting up the support v7 GridLayout library in my IntelliJ project, or properly referencing it in my code. I currently use the ActionBarSherlock and Facebook libraries in my project, and have set up the support…
4
votes
3 answers

Powermock leads to ClassNotFoundException for JUnit Plugin-Test in Eclipse, when referenced from third (plugin)

I am writing JUnit-Tests in Eclipse for testing a RCP-Eclipse-Application without Maven. For some Testcases it is necessary to user Powermock (with Easymock) to mock object-creations and static methods. I have a plugin containing the class which…
4
votes
4 answers

android - Unable to instantiate activity - ClassNotFound - Fails on one eclipse but not other

I am receiving a 'Unable to instantiate activity' error when I try to load up my program. One thing that baffles me is the exact same code works on my older PC. I just built a new one with new eclipse / android SDK / etc. I have both machines…
naradlov
  • 107
  • 1
  • 9