ERROR: java/lang/NoClassDefFoundError. HELP!!!

Hi all, can any one tell me what's wrong with my program that runs fine in JavaONEStudio5, but i find following error message when i run it in WTK21:
Project "readWriteRights" loaded
Project settings saved
Building "readWriteRights"
Build complete
Running with storage root DefaultColorPhone
Uncaught exception java/lang/NoClassDefFoundError: ReadWriteRights.
Here is my simple program:
* readWriteRights.java
* A simple application program to read a text file
* and store it's content into a Record Store.
* the data is read from the Record Store for verification
* Created on 2004/4/8 2:29am
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import javax.microedition.rms.*;
import java.io.*;
public class readWriteRights extends MIDlet {
public readWriteRights() { } // constructor
public void startApp() throws MIDletStateChangeException {
     String fileName = "origin.drm";
     String field[] = new String [] {"","","","","","","",""};  // Total 8 constraints in the file
     int i = 0;
     // retrieve the contents of a resource file
     System.out.println("Retrieving the resource file - readme.txt");
     System.out.println("--------------------------------------------");
     InputStream is = this.getClass().getResourceAsStream(fileName);
     try {
          if ( is != null ) {
               int ch = is.read();
               while ( ch != -1) {
               // print out the contents of the readme file
               System.out.print((char) ch);
                    // temp = (temp-10)*2;   // decoding
                    if (ch == 10) { i++; } //skip it if the character is \n
                    else
                         field[i] += (char)ch;
                    if(i >= field.length)
                    { ch = -1;}
                    else{ ch = is.read();}
               is.close();
          } catch (IOException e) {
               System.out.println(e);
     // Write to a record store
     String rs_Name = "db1";
     RecordStore rs = null;
     try {
                 if ( exist(rs_Name) == true) {
          RecordStore.deleteRecordStore(rs_Name);
             }  // check and delete existing Record Store
          rs = RecordStore.openRecordStore(rs_Name,true);
          System.out.println("Record Store "+rs_Name+" is opened.");
     catch(Exception e){
          System.out.println("Error: "+e.getMessage());
     finally{
          //* write records
          for (int j = 0; j < field.length; j++)
               byte[] rec = field[j].getBytes();
               //close the record store
               try {
                    rs.addRecord(rec,0,rec.length);
                    System.out.println((j+1) +" record is added to db1");
                    System.out.println("Record: "+field[j]);
               catch (Exception e){System.out.println("Error: "+e.getMessage());}
          System.out.println("Write reord completed.");
          //* read records
          try {
               int len =50;
                        byte[] recData = new byte[len];
                        System.out.println("The data read from Record Store.");
               for (int k=1; k <= rs.getNumRecords(); k++)
                    len = rs.getRecord(k, recData, 0);
                    System.out.println("Record #"+k+": "+new String(recData, 0, len));
                    System.out.println("---------------------------------------------------");
          catch (Exception e){System.out.println("Error2: "+e.getMessage());     }
          // * close record Store
          try {
               rs.closeRecordStore();
               System.out.println("record store db1 is closed");
          catch (Exception e){System.out.println("Error: "+e.getMessage());}
destroyApp(true);
notifyDestroyed();
* The method to check if the Record Store existed or not
     public boolean exist(String recordStoreName) {
          boolean existF=true;
          RecordStore rs=null;
          if(recordStoreName.length()>32) return false;
               try {
                    rs=RecordStore.openRecordStore(recordStoreName,false);
               catch(RecordStoreNotFoundException e) {existF=false;}
               catch(Exception e){}
               finally{
                         try{
                              rs.closeRecordStore();
                         }catch(Exception e){}
          return existF;
} // end of check Record Store existance method          
* Pause the MIDlet
public void pauseApp() { }
* Called by the framework before the application is unloaded
public void destroyApp(boolean unconditional) { }
}

I doubt that the error is caused by " java.io.* " which is not included in MIDP so that my program cannot run in WTK21.. is that true?
if yes, what can I do with it because I have to run it in WTK21 for demonstration. thx!!!!!

Similar Messages

  • Error: java.lang.NoClassDefFoundError in execution

    Hi, I compile my code right but when I'm executing the code I get the following error:
    java.lang.NoClassDefFoundError: jahuwaldt/tools/NeuralNets/NeuronFactory
    This is my code:
    import jahuwaldt.tools.NeuralNets.*;
    public class Gene
    public FeedForwardNet OOLFFNet;
    public Gene(int newNumInput,int newNumOutput,int newNumHidden,int newNeuronHLayer)
      OOLFFNet = new FeedForwardNet(NumInput,NumOutput,NumHidden,NeuronHLayer, new BasicNeuronFactory() );This line that fails is the last one.
    In the directory of jahuwaldt/tools/NeuralNets I got the file NeuronFactory.class. So I don't know why the code compiles right but when it is in execution mode gives the error non class found, when the class is in the directory. Any help?. Thanks in advance

    Hi, thanks again. I'm stuck with this I have test several options but I still get the same error. These are some options that I have tried.
    java -classpath  C:\NeuralNet\jahuwaldt\tools\NeuralNets\NeuronFactory\*.class; sim.app.OOL.OOLWithUI
    java -classpath  C:\NeuralNet\jahuwaldt\tools\NeuralNets\NeuronFactory\NeuronFactory.class; sim.app.OOL.OOLWithUIWhere is the problem?, I think that they are the same that the example from the java help.
    java -classpath C:\java\MyClasses\myclasses.jar utility.myapp.Cool
    Thanks again.

  • Error: java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.BaseHa

    I am using JDeveoper10.1.2 with JHeadStart
    I am developing the OrderEntry application using ADF with Struts. Whenever i make the "Gender" field as Radio Group Button i get the following error message
    Error: java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.BaseHandlerTag
    Please help what could be the cause.

    I have another way to solve this problem!
    When these errors happened, u double clicked on the error line in Embedded OC4J Server log window. The error will lead to the blue marked line, may be:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> (1)
    or
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> (2)
    If line (1) marked, change the prefix="html" to prefix="html1"
    If line (2) marked, find the lines like <bean:message key="link.something_here"/>
    and change to <bean:message key="link.something_here1"/> and the correspond line of this key in the ApplicationResources.properties file of the project
    I successfully using this way but only if one error happend at a time or two errors from two kinds of error
    This way is not as good as the previous way mentioned in previous post.

  • Error: java.lang.NoClassDefFoundError when Automatic Import Service loads

    Hi
    The netware server running NW 6.5sp4a has been reloaded due to hardware
    failure.
    All the data was restored to all volumes.
    When I run zfdstart I get the following error:
    error: java.lang.NoClassDefFoundError when Automatic Import Service loads.
    Help !!!
    Thanks
    Minesh

    [email protected] wrote:
    > error: java.lang.NoClassDefFoundError when Automatic Import Service loads.
    hmm... would say that the zeninstall wasn't correctly done... try
    reinstalling importing..
    Marcus Breiden
    If you are asked to email me information please change -- to - in my e-mail
    address.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • Error 'java.lang.NoClassDefFoundError: rn exception in thread 'main'

    I have been trying to install Full ABAP Edition-trial version of SAP Netweaver 04s on Windows XP professional SP2. I am getting the error 'java.lang.NoClassDefFoundError: run exception in thread 'main' while trying to execute 'setup.exe' in the image folder.
    i have installed 'j2sdk-1_4_2_09' on the system. still i am getting the same error. can somebody help me.
    I reinstalled the operationg system still the problem persisits.
    Thanks!

    I solved this problem by reinstalling the operating system.
    after this, I tried to start SAP MMC, it gave another error user id and password not valid.
    To avoid this problem make sure that password for administrator of the Operation system (PC or Laptop) should match the password for SAP MMC.

  • Error "java.lang.NoClassDefFoundError: sun/security/provider/Sun" in 10.1.2

    Hi,
    I developed an ADF UIX application in JDeveloper 10.1.2. It works fine when I run on embedded oc4j in my machine.
    I deployed it to Oracle Application Server 10g in AIX. When I run the application from the Application Server and try to open a uix page with data I get the following error:
    500 Internal Server Error
    java.lang.NoClassDefFoundError: sun/security/provider/Sun     at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:280)     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:482)     at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)     at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java(Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:58)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:47)     at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java(Inlined Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:536)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)     at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)     at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java(Compiled Code))     at java.lang.Thread.run(Thread.java:568)
    Can anybody tell/help why I am getting this error?
    Thanks
    Syed

    I believe this counts to be a bug in adf. I met with such errors as well in migration 1012 from NT to AIX platform, and after decompiling adf jar code and tak a look at it, the following code block indicates that In class- oracle.jbo.client.Configuration
    , it is hard coded to get secure provider- sun/security/provider/Sun, as listed below...
    import sun.security.provider.Sun;
    static void checkSecurityProviders()
    Provider aprovider[] = Security.getProviders();
    boolean flag = false;
    for(int i = 0; i < aprovider.length; i++)
    if(!aprovider.getName().equals("SUN"))
    continue;
    flag = true;
    break;
    if(!flag)
    try
    Sun sun = new Sun();
    Security.addProvider(sun);
    catch(Exception exception)
    exception.printStackTrace();
    Adam

  • When get into ESR ,,error - java.lang.NoClassDefFoundError

    Hi expert!!
    I got the error ( java.lang.NoClassDefFoundError) when getting into ESR..
    for the detail , occured after clicking logon buttom.
    the error  occured when getting into ESR only. no problem with  ID, RWB, SR, SLD, NWA.
    i used JDK 1.6 with my laptop, but once got the above error,
    i tried to change JDK 1.6.0_24  to 1.5.0_22, but same happened.
    restore achives and generate new signature  didn't help this error.
    all of host on exchange proflie used FQDN.
      the following is for components info regarding PI 7.1
    =========================================================================================
      sap.com SAP-XIAFC    1000.7.11.0.0.20081028231200 SAP AG
      sap.com SAP_BUILDT  1000.7.11.0.0.20081028231700 SAP AG
      sap.com SAP_XIAF      1000.7.11.0.0.20081209013800 SAP AG
      sap.com SAP_XIESR    1000.7.11.0.0.20081209013800 SAP AG
      sap.com SAP_XIGUI     1000.7.11.0.0.20081028231200 SAP AG
      sap.com SAP_XITOOL 1000.7.11.0.0.20081209013800 SAP AG
    thanks
    bangbang

    Hi,
    Please clarify:
         Are you getting this error in a freshly installed system or in the system which was working fine earlier?
         Have you done any patching or upgaradationd recently?
    Please refer to the sap notes below which may help to resolve your issue:
    #1515991
    #1452561
    Regards,
    Naveen.

  • Error 500--Internal Server Error: java.lang.NoClassDefFoundError:

    Dears
    I deployed a and ADF application in Weblogic server configured instance. Compilation and deployment was done perfectly. When I tried to Run the application in my local weblogic instance it throw the following exception
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: com/sun/facelets/FaceletViewHandler
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl._initIfNeeded(ViewHandlerImpl.java:346)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:88)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:763)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:374)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.kacst.common.filter.ErrorHandlerFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.ClassNotFoundException: com.sun.facelets.FaceletViewHandler
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         ... 58 more
    Any body has faced a similar issue. Please let me know your views
    Best regards
    Mohamed Chargui

    The JSF version packaged starting in 11.1.2.0.0 has been upgraded to 2.0.
    Jdeveloper 11.1.1.6 support is JSF 1.2.
    Upgrade to JDeveloper 11.1.2.0.0.
    With an earlier version of WLS (10.3.4) add the jsf library configuration for the JSF 2.0 library to weblogic.xml with exact-match set to true.
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>2.0</specification-version>
    <implementation-version>1.0.0.0_2-0-2</implementation-version>
    *<exact-match>true</exact-match>*
    </library-ref>
    Edited by: dvohra16 on Feb 28, 2013 6:43 AM

  • Error: java.lang.NoClassDefFoundError in Jdeveloper 9.0.5.2.(Build 1618)

    Error: java.lang.NoClassDefFoundError org.apache.struts.taglib.BaseHandlerTag
    Hi,
    We are using Jdeveloper10g version 9.0.5.2(Build 1618) as our IDE. We have a struts based controller architecture in our project. So we frequently use struts tags in our jsp pages. The application is working fine but sometimes when i do some changes in one of or a number of the jsp files in Jdeveloper , after recompiling i get the above error in number of jsps though i haven't touched those jsps at all.
    I found a work around for this problem by just shutting down the Jdeveloper and again starting it.
    It gives such kind of errors for only stuts based tag containing jsps.
    Do anybody has any solution for this persistent problem.
    My whole team is facing this problem.
    With Warm Regards,
    Datta.

    No anyone knows?

  • Error: java.lang.NoClassDefFoundError.... what do I do?

    I'm kinda new to this.... Everything works fine on my Desktop machine (XP Pro), but I've tried twice now to install the SDK (1.5.0_05) on my laptop (XP Home) and here's the problem.
    When I create a simple classs (see example below) and compile it, everying goes ok and I get the FileName.class result. But when I try to run it ("C:\Documents and Settings\ .... \java directory > java FileName") I get the following error statement.
    Exception in thread "main" java.lang.NoClassDefFoundError: FileName
    What do I do to fix this?

    Hello,
    I have the same problem but I'm using Jbuilder. I allways get this error:
    java.lang.NoClassDefFoundError:
    Test Exception in thread "main"
    I don't even have a class called Test but whichever project I run gives this error. Even simple hello world programs. This question has been asked before but I couldn't find any real answers. Someone mentioned class paths but I don't know how to test this.
    Is anyone familiar with Jbuilder project options? I have JRE and JSE installed. Thanks.

  • Error java.lang.NoClassDefFoundError: com/tangosol/net/CacheFactory

    error java.lang.NoClassDefFoundError: com/tangosol/net/CacheFactory
    could please let me know why i am getting this error. I have coherence.jar and tangosol.jar in classpath.
    Edited by: tally_15 on Jun 23, 2010 6:12 AM

    Hi,
    Is it a new setup? Is CacheFactory the only class you can't access or you can't access any Coherence class?
    Thanks,
    Wei

  • Servlet error: java.lang.NoClassDefFoundError

    We have created OC4J instance on application server.
    Deployed single application (ear) consisting of one ejb module and one web module.
    We have deployed the application using OEM, it is installed successfully.
    When we try to access the action class following error is displayed,
    Servlet error:
    java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2028)
    This problem does not occur always.
    We have been able to successfully deploy the same ear file on some ocassion.
    OS used: Linux Advanced server 2.1
    Application server: 10g (9.0.4)

    Hi, here is my CLASSPATH setting,
    CLASSPATH=d:\ptc\Windchill\codebase;d:\ptc\Windchill\codebase\WEB-INF\lib\ie.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\JGL.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\xerces.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\saxon.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\xalan.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\mail.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\activation.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\soap.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\jnilib
    the wt.content package is packed into the wt.jar, and the wt.jar is in the d:\ptc\Windchill\codebase directory.

  • [C4089]: Caught JVM Error: java.lang.NoClassDefFoundError:

    the Message Queue & the client have been running for days. Today my Connection ExceptionListener caught a Exception with the following message:
    [C4089]: Caught JVM Error: java.lang.NoClassDefFoundError: com/etang/dispatch/DispatchItem
    I must say the class is definitely available( when I restart the client, it is OK), anyone has got the same problem?
    I've updated the package containing the "lost" class fie while the client is running. Would this contribute to the exception?
    MQ3.5 SP1 Platform Edition

    I use j2sdk1.4.2_07 for last 8 months. Now I got a error while interpreting the class file like Exception in thread "main" java.lang.NoClassDefFoundError: check.
    I am sure definitely I have the class in the current directory.
    I reinstall the j2sdk1.4.2_07 again I got the same error.
    Reply me if anybody solve the error like this.

  • JSP error java.lang.NoClassDefFoundError: org/apache/commons/fileupload/Fil

    I'm rather new to jsp. I'm using myeclipse and I'm deploying my site on tomcat. I've been slowly working away on the errors in my log files. Most of the problems that I've run into have been missing jar files. The log error that I'm stuck on follows:
    10:14:40,359 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.wolverinecrane.view.util.SecurityFilter.doFilter(SecurityFilter.java:77)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    In my buildpath I have commons-fileupload-1.0.jar which includes org.apache.commons.fileupload which has the class FileUpload.class in it.
    Any help on what may be going wrong here would be appreciated.
    Dan

    Solved:
    http://javalive.com/modules/newbb/viewtopic.php?topic_id=355&post_id=1013&order=0&viewmode=flat&pid=0&forum=4#forumpost1013

  • 500   Internal Server Error : java.lang.NoClassDefFoundError in XI -  SLD

    Hi Friends,
    We have upgraded the NW2004s java sp level from SP 04 to SP 05. But after doing so we are getting the following error while accessing the System Landscape Directory from the following link
    "http://host:port/rep/start/index.jsp"
    The error description is as below
    "500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator.
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NoClassDefFoundError: com/sap/lcr/pers/jdbc/CRQMappedJdbcJ2EEPoolPersistence
        at com.sap.sld.wd.main.MainView.checkHealthyServer(MainView.java:423)
        at com.sap.sld.wd.main.MainView.wdDoModifyView(MainView.java:152)
        at com.sap.sld.wd.main.wdp.InternalMainView.wdDoModifyView(InternalMainView.java:893)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
        at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:282)
        ... 28 more
    Correction Hints
    It can't be determined from the exception chain, which class loader failed to load the above class. But at least the class loader of the current application does not contain a resource with name 'com/sap/lcr/pers/jdbc/CRQMappedJdbcJ2EEPoolPersistence'.
    If I click on the SLD onthe SAP Netweaver - Exchange Infrastructure, I am getting the above error.
    Pls help me to solve this problem.
    Thanks in advance
    Purnendu

    Hi Sridhar,
    Thanks a lot for your reply.
    I can launch the transaction SXMB_IFR. It works fine. I got the XI frontend with Exchange Infrastructure Tools.
    But when I click on the SLD I am getting this error.
    I have also tried to open the http://<SLDserver>:<port>/sld  link. But this is also giving me the same error.
    I have checked the SLDCHECK transaction.
    I am copy/pasting some part of the Check result for reference.
    ""Use transaction SLDAPICUST if you wish to maintain the SLD server access data
    Launching the SLD GUI in a separate browser window...
    => Verify in the browser GUI that the SLD is in a healthy running state!
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call returned exception code     4
    => Check whether the SLD is running!
    Summary: Connection to SLD does not work
    => Check SLD function and configurations""
    I have checked the following thread
    XI-SLD & IS configuration
    But the solution provided in the thread "configure the hostname without any domain with transaction SLDAPICUST" doen not work.
    By the way how to check whether SLD is running or not.
    Thanks in advance and warm regards
    Purnendu

Maybe you are looking for

  • Not able to edit Flat File Location path

    Hi, We are using OWB 11gr2. We have two control centers cc1 and cc2 along with the Default Control Center. There are two flat file locations ff1 and ff2. ff1 is registered to cc1 and ff2 is registered with cc2 . We are able to unregister ff1 and regi

  • Photo Booth slows down!

    I have a MBP 2.0 with 10.4.6 and I've noticed that Photo Booth runs very slowly when I chose effects button #1 (so you can see all the effects at the same time)... When I go to the second page of effects or just operate with one effect at a time, it

  • My signal booster has been down for 4 days i

    My signal booster has been down for 4 days, I have tried several times to try and talk to someone from my land line, after 15-20 minutes on hold I give up.My mobile phone is a much needed item where I live LL42 1RR Thanks--Les

  • JVM core dump

    JVMs crushed on my three node weblogic8.1 cluster. Not always happen, and can be any of the nodes. I tries jdk141_05,jdk141_02 and jdk142_04. There wan't any difference. The os is solaris 5.8. Here is the output of uname -s: SunOS smpc3 5.8 Generic_1

  • 6500S SMS RECIEVING TIME NOT CORRECT

    Hey, I've prob with my recieving time. when I got a message from my country(macedonia) it shows me that I recieve it 1 h earlier, but when I recieve it message from another country(usa) it shows the correct time. I tryed to set the gmt and daylight s