FAQ Database Discussion Community


Second level cache in Hibernate 3.2.0 final

java,hibernate,ehcache,noclassdeffounderror,second-level-cache
I have been facing problem in using second level cache. following are the required source you need to find out what the problem is. hibernate.cfg.xml <?xml version="1.0" encoding="UTF-8"?> <!-- a SessionFactory instance --> <session-factory> <!-- User / Password --> <property name="connection.username">root</property> <property name="connection.password"></property> <!-- Database / Dialect Settings --> <property...

NoClassDefFound after Gradle and Android Studio upgrade

android,android-studio,noclassdeffounderror,build.gradle,android-multidex
Since I upgraded Android Studio, I was kinda forced to moving on Gradle's version, buildToolsVersion, and java's version to 7. And my problem is that I can actually run the project on Android Lollipop perfectly, but I lost compatibility backwards, I'm not able to run application on devices prior API...

App Crashes from playstore

android,google-play,noclassdeffounderror,zipalign
I have an app..I exported the signed apk and uploaded to play store.. When I run signed apk from my computer, it runs fine, but when I download the same from play store, it crashes... I connected the log-cat, it says no classdef found for one of my classes.. But...

java.lang.NoClassDefFoundError on android studio

java,android,gradle,android-gradle,noclassdeffounderror
I noticed that in some phones after I gave people an update to my app it crashes on launch. On phones that did not have the app before it works just fine. This is the crash log: 06-05 14:52:13.006 30819-30819/? I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file. 06-05...

NoClassDefFound means that the class cannot be found?

java,netbeans,classpath,packages,noclassdeffounderror
I don't understand NoClassDefFoundError in the context of running an OpenEJB client: [email protected]:~$ [email protected]:~$ java -classpath .:NetBeansProjects/HelloClient/dist/HelloClient.jar:apache-openejb-4.7.1/lib/openejb-client-4.7.1.jar org.acme.HelloClient Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBHome The missing class, EJBHome, is in the libray for the project: Yet doesn't show up in the manifest. How do I either force NetBeans to add...

NoClassDefFoundError below SDK 21

android,noclassdeffounderror,multidex
I just experienced an awkward bug in my App. On my Nexus 5/7, running android 5.0.1/5.0.2, everything works just fine. However if i try running the exact same code on a device with an earlier version (tested 4.4.4 and 4.3) I get the following error: 03-13 13:49:41.140 21714-21714/? E/dalvikvm﹕ Could...

android tests fail in jenkins

android,jenkins,gradle,noclassdeffounderror
I've setup a CI-server on Jenkins that will automize the build of an Android-app. When I skip the tests everything works fine. clean build -x test and I will receive apk's and a build which is finished with succes. But when I'm not skipping the tests I get an error....

NoClassDefFoundError occurs when running .jar file

java,jar,noclassdeffounderror
For school we are learning about .jar files and how to create them. Below I have code for a simple GUI component and Viewer. package mp6; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JComponent; public class HelloComponent extends JComponent { public void draw(Graphics2D g2) { g2.setFont(new Font("Arial", Font.ITALIC,...

Tomcat java.lang.NoClassDefFoundError: Could not initialize class

java,noclassdeffounderror,tomcat8
The full error: java.lang.NoClassDefFoundError: Could not initialize class lt.maze.dao.DAO The class DAO is used from my LoginServlet. It is compiled and deployed, I checked WEB-INF/classes. DAO.class exists. Why is isn't it loaded? Am I suppose to add them to my classpath manually? (I have the manifest file to load my...

java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonFactory

java,jar,noclassdeffounderror,live-streaming,youtube-data-api
I am working on YouTube broadcast sample examples. I have created a sample Java Project & added required jars. But, when I try to run the project it throws exception. Exception : Throwable: com/fasterxml/jackson/core/JsonFactory java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonFactory at com.google.api.client.json.jackson2.JacksonFactory.<init>(JacksonFactory.java:44) at com.google.api.services.samples.youtube.cmdline.live.Auth.<clinit>(Auth.java:35) at...

ClassDefNotFound exception using android library project as reference

android,noclassdeffounderror,android-library
I have an android library project and I want to reference it from another project. The library project contains activities and xml layouts. I have added its reference as following MyProject properties-->Java Build Path--> projects like this and in order and exports its listed like this but when I try...

NoClassDefFoundError with classpath

java,noclassdeffounderror,jnetpcap
I'm attempting to run a program using the command: java Honey -cp ../../jnetpcap-1.3.0/jnetpcap.jar and am getting the title error: Exception in thread "main" java.lang.NoClassDefFoundError: org/jnetpcap/Pcap at Honey.main(Honey.java:18) Caused by: java.lang.ClassNotFoundException: org.jnetpcap.Pcap at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at...

NoClassDefFoundError for .jar library at runtime in Android Studio

android,android-studio,noclassdeffounderror
Hi Friends at Stack Overflow I recently run into a problem when implementing Fiksu SDK in my Android app. A brief intro, Fiksu SDK is a marketing tool to register installation and events. All the methods related to Fiksu is in a .jar file called "ASOTracking.jar" The problem: The library...

Getting TypeNotPresentException followed by ClassNotFoundException or NoClassDefFoundError on All android versions except android L

android,android-5.0-lollipop,noclassdeffounderror,classnotfoundexception,retrofit
I am getting very interesting bug in one of my apps. My app is working fine on android L, But as soon as i try to run it on other android versions, I am getting ClassNotFoundException or NoClassDefFoundError while trying to call web services using Retrofit, even though all those...

NoClassDefFoundError with new EHCache config

java,caching,ehcache,noclassdeffounderror
I have a Java class that has a static implementation that fetches cache configuration and instantiate it like below: import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Element; import org.apache.log4j.Logger; import java.net.URL; public final class MyCacheImplementation { private MyCacheImplementation() { super(); } private static Cache myCache; private static final String EHCACHFILENAME = "..........

Apache storm - java.lang.NoClassDefFoundError: com/google/gson/Gson

java,maven,gson,noclassdeffounderror,storm
I'm using Apache Storm 0.9.4. I set up a 5 nodes cluster and it works fine. (Actually 5 supervisors are working as docker containers on 5 different physical nodes.) My environment is here $cat /etc/redhat-release CentOS release 6.6 (Final) $docker -v Docker version 1.4.1, build 5bc2ff8/1.4.1 $java -version java version...

java.lang.NoClassDefFoundError while deploying the War in websphere which uses Couchbase cache

java,websphere,classpath,ibm,noclassdeffounderror
I am facing the below error while deploying the war file in Websphere-8.5.5 Caused by: java.lang.NoClassDefFoundError: org/apache/http/params/SyncBasicHttpParams at com.couchbase.client.ViewConnection.createConnections(ViewConnection.java:120) at com.couchbase.client.ViewConnection.<init>(ViewConnection.java:100) at com.couchbase.client.CouchbaseConnectionFactory.createViewConnection(CouchbaseConnectionFactory.java:184) at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:247) at...

NoClassDefFoundError when using URLClassLoader

java,noclassdeffounderror,urlclassloader
I am trying to make a plugin storage where my java code downloads the existing jars in the storage dynamically at run time . I implemented an interface which should be implemented by each plugin. Here is the code that i used , public void importPlug() throws IOException, ClassNotFoundException, InstantiationException,...

java.lang.NoClassDefFoundError on Android devices with KitKat

android,noclassdeffounderror,android-4.4-kitkat,android-filterable
I am developing a app and at the moment the app crashes if I use Android KitKat but with Lollipop devices the app runs without crash. The error from LogCat: java.lang.NoClassDefFoundError: mypackage.utils.PlacesAutoCompleteAdapter$1 at mypackage.utils.PlacesAutoCompleteAdapter.getFilter(PlacesAutoCompleteAdapter.java:60) at android.widget.AutoCompleteTextView.setAdapter(AutoCompleteTextView.java:635) at mypackage.PlanRouteActivity.initializeLayout(PlanRouteActivity.java:148) at...

java.lang.NoClassDefFoundError: While calling fragment

java,android,android-fragments,noclassdeffounderror
I am trying to use SherlockFragment to create a Fragment, selected from a navigation drawer activity to show a tabbed fragment. My main activity is below: package com.impact.main; import com.impact.main.R; import com.impact.adapters.NavDrawerListAdapter; import com.impact.helper.SQLiteHandler; import com.impact.helper.SessionManager; import com.impact.helper.dbTables; import com.impact.model.NavDrawerItem; import java.util.ArrayList; import com.actionbarsherlock.app.SherlockFragment; import com.google.android.gms.gcm.GoogleCloudMessaging;...

Android Library Projects on Windows and Mac

java,android,eclipse,git,noclassdeffounderror
I'm asking this question on behalf of my team of two Android devs. I use Windows and my partner uses a Macbook. When sharing a project through Git, the classpaths accidentally got messed up. Here are a few observations: The library projects referenced (working initially) can't be resolved anymore. When...

java.lang.NoClassDefFoundError when already imported jar files to android studio

json,jar,android-studio,jackson,noclassdeffounderror
I receive the error java.lang.NoClassDefFoundError: org.codehaus.jackson.map.ObjectMapper even after adding the Jackson jar files. In Android Studio? Also tried a few links. Namely this, which did not help. Edit: After some research I discovered the root of the error. The dynamo-geo.jar library that is provided by Amazon is inherently flawed in...