Java.lang.ClassNotFoundException: test/testmidlet

hello,
I am using eclipse 3.2, j2me wireless 2.2,eclipseME 1.7.9
create package test containing testmidlet.java file.
while debugging gives problem
java.lang.ClassNotFoundException: test/testmidlet
     at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
     at com.sun.midp.midlet.Scheduler.schedule(+52)
     at com.sun.midp.main.Main.runLocalClass(+28)
     at com.sun.midp.main.Main.main(+116)
Execution completed.
724498 bytecodes executed
8 thread switches
740 classes in the system (including system classes)
7091 dynamic objects allocated (406020 bytes)
2 garbage collections (293104 bytes collected)
plz help me.

1. Does your source file start with a package statement?
2. Is it in a directory structure corresponding to the package statement?
db

Similar Messages

  • Java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDri

    I am sorry in advance, because I know this topic has been posted many times, but I think after reading all the solutions and trying everything I may have messed myself up worse.
    I am trying to run this simple script to connect to my SQL database
    import java.sql.*;
      * Microsoft SQL Server JDBC test program
    public class Test {
      public Test() throws Exception {
        // Get connection
        DriverManager.registerDriver(new
        com.microsoft.jdbc.sqlserver.SQLServerDriver());
        Connection connection = DriverManager.getConnection(
        "jdbc:microsoft:sqlserver://<Host>:1433","<UID>","<PWD>");
        if (connection != null) {
         System.out.println();
          System.out.println("Successfully connected");
          System.out.println();
          // Meta data
          DatabaseMetaData meta = connection.getMetaData();
          System.out.println("\nDriver Information");
          System.out.println("Driver Name: "
           + meta.getDriverName());
          System.out.println("Driver Version: "
           + meta.getDriverVersion());
          System.out.println("\nDatabase Information ");
          System.out.println("Database Name: "
           + meta.getDatabaseProductName());
          System.out.println("Database Version: "+
          meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
      Test test = new Test();
    }I have set "PATH" in environmental variables (running windows)to be
    C:\Program Files\Java\jdk1.6.0_04\bin;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jarSo when i Compile i get the error..
    C:\SQLcode>javac Test.java
    Test.java:9: package com.microsoft.jdbc.sqlserver does not exist
        com.microsoft.jdbc.sqlserver.SQLServerDriver());Additionally, when i run
    java com.microsoft.jdbc.sqlserver.SQLServerDriver
    I get
    Exception in thread "main" java.lang.NoClassDefFoundError: com/microsoft/jdbc/sq
    lserver/SQLServerDriver
    Caused by: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLSer
    verDriverFinally, I have even ran javac -classpath "C:\Program Files\Microsoft SQL Server 2000 Driver f
    or JDBC\lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msba
    se.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserve
    r.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar"
    Test.java Which will compile correctly! However when I run the same command just with the java command as opposed to the javac command, I get
    Exception in thread "main" java.lang.NoClassDefFoundError: Test/java
    Caused by: java.lang.ClassNotFoundException: Test.java
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source) While there is a Class file in the directory.. Sorry for such a long post but I have been trying to fix this for two days now.. thank you

    Ok well i tried a number of combinations..
    My code lets say is in a folder C:\SQLCode which was successfully compiled using the command above..
    I tried doing what you suggested and got
    C:\SQLcode>java -cp .;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC
    \lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C
    :\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar Test
    Exception in thread "main" java.lang.NoClassDefFoundError: Files\Microsoft
    Caused by: java.lang.ClassNotFoundException: Files\Microsoft
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)I also tried without the direct links to the .jar files (just put the DIR) and got the same result.Any other suggestions?

  • "Java Concurrent Program" java.lang.ClassNotFoundException:

    I am creating one Concurrent Program Type "Java Concurrent Program",
    I followed steps as notes "250964.1"
    Deployed the java file to specific Directory in $JAVA_TOP
    Bounce the apache.
    I am getting this issue?
    java.lang.ClassNotFoundException: oracle.apps.fnd.cp.sample.Hello
         at java.net.URLClassLoader.findClass(URLClassLoader.java:376)
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:502)
         at java.lang.Class.forName1(Native Method)
         at java.lang.Class.forName(Class.java:180)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    I am not getting this issue OA Framework Classes (CO, AM ....)
    Looking for this solution ? This is urgent to me.
    Let us know what may be issue?
    Thanks, Avaneesh

    Avaneesh,
    What do you mean by "
    I am not getting this issue OA Framework Classes (CO, AM ....)"?
    Did you test your java code on command line?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • Java.lang.ClassNotFoundException

    Hi All,
    Does any 1 know the cause of this error?.. I'm facing this when i try to use a new Function module. proper reimport of model, restart of server is done several times.
    500   Internal Server Error
      SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    [Hide]
    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. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.ClassNotFoundException: model2.kmd.dk.Zhjm0001_Document_Id -
    Loader Info -
    ClassLoader name: [kmd.dk/hjmhjm0001_models] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp service:webdynpro service:sld service:tcsecwssecservice library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjmhjm0001_models\webdynpro\public\lib\kmd.dkhjmhjm0001_models.jar D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjm~hjm0001_models\src.zip Loading model: {parent,references,local} -
        at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:409)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:222)
        at model2.kmd.dk.Z_Hjm0033_Get_Merged_Document_Input.<init>(Z_Hjm0033_Get_Merged_Document_Input.java:51)
        at kmd.dk.CC_ViewOrderStatus.wdDoInit(CC_ViewOrderStatus.java:191)
        ... 46 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0014.20071210061512.0000 (release=645_VAL_REL, buildtime=2007-12-10:05:23:29[UTC], changelist=470565, host=pwdfm101), build date: Tue May 06 22:13:40 CEST 2008
    J2EE Engine 7.00 patchlevel 35354.450
    Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2_14-b05, vendor: Sun Microsystems Inc.
    Operating system Windows 2003, version: 5.2, architecture: amd64
    Session & Other
    Session Locale da
    Time of Failure Fri Jul 25 17:42:53 CEST 2008 (Java Time: 1217000573331)
    Web Dynpro Code Generation Infos
    kmd.dk/hjm~hjm0003_viewstatuspo
    SapDictionaryGenerationCore 7.0010.20061002105236.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:52:59[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0010.20061002105236.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:53:17[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0010.20060719095755.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:40:44[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0010.20061002110128.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:58:51[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0010.20061002105432.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:41:39[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0010.20061002105432.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:41:32[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0010.20060719095619.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:50:36[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0010.20061002110156.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:55:32[UTC], changelist=419397, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0010.20061016112122.0000 (release=645_VAL_REL, buildtime=2006-10-21:16:19:13[UTC], changelist=421181, host=pwdfm101)
    SapWebDynproGenerationCore 7.0010.20061002110128.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:59:00[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0010.20061016112122.0000 (release=645_VAL_REL, buildtime=2006-10-21:16:19:13[UTC], changelist=421181, host=pwdfm101)
    sap.com/tcwddispwda
    No information available null
    kmd.dk/hjm~hjm0001_models
    SapDictionaryGenerationCore 7.0010.20061002105236.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:52:59[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates 7.0010.20061002105236.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:53:17[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore 7.0010.20060719095755.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:40:44[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0010.20061002110128.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:58:51[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0010.20061002105432.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:41:39[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0010.20061002105432.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:41:32[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0010.20060719095619.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:50:36[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0010.20061002110156.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:55:32[UTC], changelist=419397, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0010.20061016112122.0000 (release=645_VAL_REL, buildtime=2006-10-21:16:19:13[UTC], changelist=421181, host=pwdfm101)
    SapWebDynproGenerationCore 7.0010.20061002110128.0000 (release=645_VAL_REL, buildtime=2006-10-21:15:59:00[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0010.20061016112122.0000 (release=645_VAL_REL, buildtime=2006-10-21:16:19:13[UTC], changelist=421181, host=pwdfm101)
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: model2.kmd.dk.Zhjm0001_Document_Id
    Loader Info -
    ClassLoader name: [kmd.dk/hjm~hjm0001_models]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
       common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
       interface:resourcecontext_api
       interface:webservices
       interface:cross
       interface:ejbserialization
       sap.com/tcwddispwda
       sap.com/tcwdcorecomp
       service:webdynpro
       service:sld
       service:tcsecwssec~service
       library:tcddicddicservices
       library:com.sap.aii.proxy.framework
       library:tcgraphicsigs
       library:com.sap.mw.jco
       library:com.sap.lcr.api.cimclient
       library:sapxmltoolkit
       library:com.sap.aii.util.rb
       library:com.sap.util.monitor.jarm
       library:tcddicddicruntime
       library:com.sap.aii.util.xml
       library:com.sap.aii.util.misc
       library:tc~cmi
    Resources:
       D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjmhjm0001_models\webdynpro\public\lib\kmd.dkhjm~hjm0001_models.jar
       D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjm~hjm0001_models\src.zip
    Loading model: {parent,references,local}
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:422)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:222)
         at model2.kmd.dk.Z_Hjm0033_Get_Merged_Document_Input.<init>(Z_Hjm0033_Get_Merged_Document_Input.java:51)
         at kmd.dk.CC_ViewOrderStatus.wdDoInit(CC_ViewOrderStatus.java:191)
         at kmd.dk.wdp.InternalCC_ViewOrderStatus.wdDoInit(InternalCC_ViewOrderStatus.java:2080)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:73)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:449)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:387)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:416)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:125)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:121)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:215)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.ClassNotFoundException: model2.kmd.dk.Zhjm0001_Document_Id
    Loader Info -
    ClassLoader name: [kmd.dk/hjm~hjm0001_models]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
       common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
       interface:resourcecontext_api
       interface:webservices
       interface:cross
       interface:ejbserialization
       sap.com/tcwddispwda
       sap.com/tcwdcorecomp
       service:webdynpro
       service:sld
       service:tcsecwssec~service
       library:tcddicddicservices
       library:com.sap.aii.proxy.framework
       library:tcgraphicsigs
       library:com.sap.mw.jco
       library:com.sap.lcr.api.cimclient
       library:sapxmltoolkit
       library:com.sap.aii.util.rb
       library:com.sap.util.monitor.jarm
       library:tcddicddicruntime
       library:com.sap.aii.util.xml
       library:com.sap.aii.util.misc
       library:tc~cmi
    Resources:
       D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjmhjm0001_models\webdynpro\public\lib\kmd.dkhjm~hjm0001_models.jar
       D:\usr\sap\DPX\JC01\j2ee\cluster\server0\apps\kmd.dk\hjm~hjm0001_models\src.zip
    Loading model: {parent,references,local}
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:409)
         ... 49 more
    Thanks & Regards,
    Kavitha

    Hi James, Yes i do know that the class is not found during run time. The actual place where i need to use this function module is a different DC. But as i face this problem, for testing purpose i tried using it in the same DC where the model exists. I get the exception there too.
    It occurs exactly in the line where i bind the function module in my init method.
    Line 191 in my init method is this,
    //     bind the "get document" FM
    Z_Hjm0033_Get_Merged_Document_Input document = new Z_Hjm0033_Get_Merged_Document_Input();
    wdContext.nodeZ_Hjm0033_Get_Merged_Document_Input().bind(document);
    For your information, the class not found Zhjm0001_Document_Id is a data element to which one of the function module's (Z_Hjm0033_Get_Merged_Document) import parameter is associated with.
    I could not locate the constructor which you are asking for. I searched in gen_ddic and gen_wdp. Can you help?
    Thanks,
    Kavitha
    Edited by: Kavitha Gopinathan on Jul 28, 2008 6:01 PM

  • Java.lang.ClassNotFoundException error when running a form

    Hello,
    On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
    I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
    Steps executed:
    1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
    or in the IE browser:
    2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
    The applet is not starting and I receive the following error:
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
    What does this mean? What should I do to make it work?
    Any help will be appreciated.
    Tahnk you.
    daniela

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • BarcodeEncoder class:  java.lang.ClassNotFoundException

    Hi, I am trying to add barcoding capability to our XML Publisher based report. We are trying to use Code128 barcode font and I have gone through the drill detailed out by Monsieur Dixter (thanks to him) on his blog and the XML Publisher documentation. Initially, I had been successful .. this was around 3 months ago in our DEV environment, when my template was under initial stages of development on the layout/format side. I was able to scan the barcode using a scanner. So, I froze the code and migrated the jar files to other test environments. But once the code got to other environments, the barcode stopped working. I suspected that one reason could be that the JVM couldnt find my class, which is what has been happenning. Even though I got the new instance bounced several times, the error keeps occuring and I am unable to scan the barcode.
    Would appeciate if could provide me some pointers.
    Thanks
    Vikram
    XMLP Version: 5.6.3
    EBiz: 12.0.4
    Below is the error .. The referred barcode class is placed in the custom java classpath, $XXMMX_TOP/java/classes configured by our DBA's. Other custom classes/jar placed in this classpath are being picked up, such those done for OA Framework customizations.
    I have turned the XDO Debug ON and could extract the following log:-
    ===================================================================================
    [070909_053458413][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): oa-date-validation: null
    [070909_053458420][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): xdo.TemplateValidation: null
    [070909_053458420][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): template validation is on
    [070909_053458482][][STATEMENT] TemplateHelper.runProcessTemplate() called
    [070909_053458482][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [070909_053458482][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [070909_053458482][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [070909_053458482][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
    [070909_053458482][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [070909_053458482][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[UTF8]
    [070909_053458482][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
    [070909_053458482][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [070909_053458488][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
    [070909_053458488][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=dd100-d.mmx.com)(PORT=1525)))(CONNECT_DATA=(SID=DEV)))]
    [070909_053458488][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
    [070909_053458488][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
    [070909_053458488][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
    [070909_053458488][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [070909_053458489][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
    [070909_053458489][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
    [070909_053458489][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
    [070909_053458489][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [070909_053458489][][EXCEPTION] [DEBUG] [APPLTMP]:[mmx/dev/applinst/apps/DEV_hpxda100/appltmp]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[oracle.apps.xdo.common.net.protocol]
    [070909_053458489][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0.04 jinteg:07.27.06-16:18 IA64]
    [070909_053458489][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
    [070909_053458489][][EXCEPTION] [DEBUG] [dbcfile]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Hewlett-Packard Company]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://www.hp.com/go/Java]
    [070909_053458489][][EXCEPTION] [DEBUG] [path.separator]:[:]
    [070909_053458489][][EXCEPTION] [DEBUG] [APPLCSF]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
    [070909_053458489][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
    [070909_053458489][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
    [070909_053458489][][EXCEPTION] [DEBUG] [user.dir]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc/log]
    [070909_053458489][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0.04-_27_jul_2006_10_52]
    [070909_053458490][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[11676]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
    [070909_053458490][][EXCEPTION] [DEBUG] [os.arch]:[IA64N]
    [070909_053458490][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[var/tmp/]
    [070909_053458490][][EXCEPTION] [DEBUG] [line.separator]:[
    [070909_053458490][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [070909_053458490][][EXCEPTION] [DEBUG] [os.name]:[HP-UX]
    [070909_053458490][][EXCEPTION] [DEBUG] [XDO_TOP]:[mmx/prod/applbin/apps/apps_st/appl/xdo/12.0.0]
    [070909_053458490][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [070909_053458490][][EXCEPTION] [DEBUG] [sun.java2d.fontpath]:[]
    [070909_053458490][][EXCEPTION] [DEBUG] [cpid]:[262016]
    [070909_053458490][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[8859_1]
    [070909_053458490][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.library.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N/server:/mmx/dev/applbin/apps/tech_st/10.1.3/ap
    psutil/jdk/jre/../lib/IA64N:/mmx/dev/applbin/apps/tech_st/10.1.3/lib32:/mmx/dev/applbin/apps/tech_st/10.1.3/lib:/mmx/dev/applbin/apps/apps_st/appl/cz/12.0.0/bin:/mmx/dev/applbin/apps/apps_st/appl/iby/12.0.0/bin:/mmx/dev/applbin/apps/app
    s_st/appl/pon/12.0.0/bin:/mmx/dev/applbin/apps/tech_st/10.1.3/lib32:/mmx/dev/applbin/apps/tech_st/10.1.3/lib:/mmx/dev/applbin/apps/apps_st/appl/cz/12.0.0/bin:/mmx/dev/applbin/apps/apps_st/appl/iby/12.0.0/bin:/mmx/dev/applbin/apps/apps_s
    t/appl/pon/12.0.0/bin:/usr/lib]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
    [070909_053458490][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
    [070909_053458491][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Server Compiler]
    [070909_053458491][][EXCEPTION] [DEBUG] [os.version]:[B.11.23]
    [070909_053458491][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
    [070909_053458491][][EXCEPTION] [DEBUG] [user.home]:[home/appldev]
    [070909_053458491][][EXCEPTION] [DEBUG] [user.timezone]:[America/New_York]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
    [070909_053458491][][EXCEPTION] [DEBUG] [file.encoding]:[8859_1]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
    [070909_053458491][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
    [070909_053458491][][EXCEPTION] [DEBUG] [user.name]:[appldev]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.class.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/j
    re/lib/rt.jar:/mmx/dev/applbin/apps/apps_st/comn/java/lib/appsborg2.zip:/mmx/dev/applbin/apps/apps_st/comn/java/classes]
    [070909_053458491][][EXCEPTION] [DEBUG] [DBCFILE]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.home]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre]
    [070909_053458491][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
    [070909_053458491][][EXCEPTION] [DEBUG] [user.language]:[en]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
    [070909_053458491][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
    [070909_053458492][][EXCEPTION] [DEBUG] [logfile]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc/log/FNDOPP262016.txt]
    [070909_053458492][][EXCEPTION] [DEBUG] [java.version]:[1.5.0.04]
    [070909_053458492][][EXCEPTION] [DEBUG] [java.ext.dirs]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/ext]
    [070909_053458492][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i18n.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/app
    sutil/jdk/jre/lib/sunrsasign.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar
    :/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/classes]
    [070909_053458492][][EXCEPTION] [DEBUG] [java.vendor]:[Hewlett-Packard Co.]
    [070909_053458492][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [070909_053458492][][EXCEPTION] [DEBUG] [file.separator]:[]
    [070909_053458492][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://www.hp.com/go/Java]
    [070909_053458492][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeBig]
    [070909_053458492][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[big]
    [070909_053458493][][EXCEPTION] [DEBUG] [APPLOUT]:[out]
    [070909_053458493][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[ia64r0]
    [070909_053458493][][STATEMENT] TemplateHelper.runProcessTemplate(): Configuration file :null
    [070909_053458499][][STATEMENT] TemplateHelper.runProcessTemplate(): user-variable.OA_MEDIA property not found in the property list.
    [070909_053458501][][STATEMENT] TemplateHelper.runProcessTemplate(): APPS_FRAMEWORK_AGENT profile found. Setting it to user-variable.OA_MEDIA property : http://dev.mmx.com:8004/OA_MEDIA
    [070909_053458501][][STATEMENT] TemplateHelper.runProcessTemplate(): Setting the locale info to xslt._XDOLOCALE property : en-US
    [070909_053458503][][STATEMENT] TemplateHelper.runProcessTemplate(): Profile CLIENT_TIMEZONE found : America/New_York Setting it to xslt._XDOTIMEZONE property
    [070909_053458529][][STATEMENT] TemplateHelper.runProcessTemplate(): Calling FOProcessor.
    [070909_053458529][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [070909_053458529][][STATEMENT] Logger.init(): LogDir=/mmx/dev/applbin/apps/apps_st/appl/xdo/12.0.0/temp
    [070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
    [070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
    [070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(InputStream) is called.
    [070909_053458537][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [070909_053458537][][STATEMENT] Logger.init(): LogDir=/mmx/dev/applbin/apps/apps_st/appl/xdo/12.0.0/temp
    [070909_053458537][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_data_181.xml' is created.
    [070909_053458571][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(InputStream)is called.
    [070909_053458571][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_data_182.xsl' is created.
    [070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_out83.out' is created.
    [070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(OutputStream)is called.
    [070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setLocale is called with 'en-US'.
    [070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
    [070909_053458588][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
    [070909_053458588][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
    [070909_053458591][oracle.apps.xdo.template.fo.datatype.AttrKey][STATEMENT] WARNING: Found undetermined AttrKey: xdofo:in-table
    [070909_053459583][][ERROR] java.lang.ClassNotFoundException: xxmmx.oracle.apps.xdo.template.rtf.util.barcoder.IDAutoBarcodeEncoder
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:168)
    at oracle.apps.xdo.template.rtf.util.XDOBarcodeUtil.registerVendor(XDOBarcodeUtil.java:101)
    at oracle.apps.xdo.template.rtf.XSLTFunctions.register_barcode_vendor(XSLTFunctions.java:2725)
    at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.xdo.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:111)
    at oracle.xdo.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:307)
    at oracle.xdo.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:226)
    at oracle.xdo.parser.v2.XSLValueOf.processAction(XSLValueOf.java:101)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:147)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:147)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:624)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:233)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1659)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:969)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5916)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3452)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3541)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:244)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)

    I wrote a blog entry about how jdev version match wls versions here http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/
    Timo

  • JSF/Tiles: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.Til

    Hi,
    I am working on JSF1.2 in SAP NetWeaver CE and I am using Tiles. Please help me to resolve the following issues.
    ~~~~~~~~~~~~~~~~~~~
    1. File:G:\ws_wd\ce_ws.jdi\LocalDevelopment\DCs\demo.sap.com\lbsjsf\ear\_comp\gen\default\deploy\demo.sap.com~lbsjsf~ear.ear
         Name:lbsjsf~ear
         Vendor:demo.sap.com
         Location:localDevelopment
         Version:20090402105707
         Deploy status:Warning
         Version:NEW
         Description:
              1. Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: servlet class "org.apache.tiles.servlets.TilesServlet" cannot be found in the application class path. Possible reasons: 1) package or class name not correct; 2) missing referenced component (application or library); 3) missing reference to component (application or library)., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
    Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: The servlet "com.cg.lbs.ui.controller.StartupConfigurationServlet" must implement "javax.servlet.Servlet"., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
              2. Warning exception has been returned while the 'demo.sap.com/lbsjsf~ear' was starting. Warnings:
    Warning occurred on server 4585250 during startApp demo.sap.com/lbsjsf~ear : Cannot load servlet [org.apache.tiles.servlets.TilesServlet]. Error is: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.TilesServlet
    ------------------------- Loader Info -------------------------
    ClassLoader name: [demo.sap.com/lbsjsf~ear]
    Living status: alive
    Direct parent loaders:
    [system:Frame]
    [service:servlet_jsp]
    [service:ejb]
    Resources:
    F:\usr\sap\CE1\J00\j2ee\cluster\apps\demo.sap.com\lbsjsf~ear\servlet_jsp\lbsjsf\root\WEB-INF\classes
    ++++++++++++++below is my web.xml+++++++++
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">
         <display-name>
              LocalDevelopment~LocalDevelopment~lbsjsf(2fweb~demo.sap.com
         </display-name>
         <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>
                   org.apache.myfaces.webapp.filter.ExtensionsFilter
              </filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>Faces Servlet</servlet-name>
         </filter-mapping>
         <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
         <servlet>
              <servlet-name>Tiles Servlet</servlet-name>
              <servlet-class>
                   org.apache.tiles.servlets.TilesServlet
              </servlet-class>
              <init-param>
                   <param-name>definitions-config</param-name>
                   <param-value>/WEB-INF/tiles.xml</param-value>
              </init-param>
              <load-on-startup>3</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>StartupConfiguration</servlet-name>
              <servlet-class>
                   com.cg.lbs.ui.controller.StartupConfigurationServlet
              </servlet-class>
              <init-param>
                   <param-name>log4j-init-file</param-name>
                   <param-value>sswblog4j.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
         </welcome-file-list>
    </web-app>

    That's a pretty decent error message. Have you eliminated the potential causes which were listed in the message?

  • Unmarshalling return; nested exception is: java.lang.ClassNotFoundException

    I think what I'm trying to achieve is probably very simple (or at least should be) but I've been trying for at least 5 hrs now:
    I'm using RMI for a distributed app I'm building for my degree.
    Up until today I got around the need for using a SecurityManager by including all shared classes (those I pass between client and server) in a class library .jar file referenced by both client and server projects.
    This has worked fine, but now I've coded a method that returns an object of a class that I do NOT want to include in the shared library (because I don't want the client to be able to construct these objects); therefore, I've decided to try and get the dynamic class loading working.
    I'm using netbeans and testing on a single computer.
    Here's what I'm trying:
    My main() method has the standard code I've seen: if (System.getSecurityManager() == null) System.setSecurityManager(new RMISecurityManager());
    In the server project's Run properties, I'm specifying VM Options: -Djava.security.policy=c:\security.policy -Djava.rmi.server.codebase="file://C:/"
    I've copied the ellusive class's .java file into C:\ to keep the URL simple, but I've also tried directing it to the netbean project's bin\ folder using '%20' for spaces, both with the same results - about a five second pause (so it's finding something I think) and then the error message from the client's output:
    error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: mypackage.myClass
    My policy file's contents are:
    grant {
    permission java.security.AllPermission;
    I've tried about 20 different ways of formatting the codebase argument's URL.. can anyone help?
    David
    p.s. my OS is Windows 7

    Thanks EJP,
    Yes, after posting I guessed it might want the .class file instead, so I directed it their instead - still no joy, unfortunately!
    I'm carrying out all testing on one computer, so (+if+ I could get it to work) a local codebase address would not be a problem.
    Noted about the server-side security manager. I might want to use callbacks, but the server still won't need to download class files from the client, so I'll still try and set the codebase, but will try without loading a security manager on the server-side.
    For the time being I've put the class in the shared library but have defined it within the same package as the server code. By doing this I've been able to set the class's accessibility back to default, but the client can still access it as Object (from the shared library).
    This solution is good enough, but I still wonder why the client refuses to accept the class file from the C:\ codebase.

  • Java.lang.ClassNotFoundException error when running form

    Hello,
    On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
    I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
    Steps executed:
    1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
    or in the IE browser:
    2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
    The applet is not starting and I receive the following error:
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
    What does this mean? What should I do to make it work?
    Any help will be appreciated.
    Tahnk you.
    daniela

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • 7u40 or 7u21 mixed code  java.lang.ClassNotFoundException

    I have a simple applet which shows a graph; this applet has two jar file, the main jar file is signed by a trusted CA and the other jar file is unsigned
    in the manifest for the signed jar file, I have added
    Trusted-Library value="true"
    Whe applet starts from the java console when it tries to invoke a create object on the class from the unsigned jar file, I get java.lang.ClassNotFoundException for the given class from the unsigned jar.
    I have tried this on  window 7 Chrome and Internet explorer based on variety of Java 7 release (40, 21 on internet explorer and release 6 on Chrome)
    It does not work.
    If I signed the second jar file, it works fine.
    Please notice, I do not want to bypass the check for mix code from java configuration.
    Any idea or hint will be highly apprecieated. 

    This is confirmed by the  post  https://forums.oracle.com/thread/2280127
    and it is confirmed by Oracle http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mixed_code.html#trusted_library
    "Code in a jar file that is to be marked with the Trusted-Library manifest attribute may need to be modified slightly if it uses calls that are class loader dependent [...]
    Code in a Trusted-Library can look up the normal loader by invoking Thread.currentThread().getContextClassLoader().[...]
    Generally, care must be taken to ensure that the code in the trusted library is written in a careful and secure manner and is otherwise compatible with being loaded in a separate class loader instance from any remaining jars which are part of the application and are loaded by the normal loader."
    "Thread.currentThread().getContextClassLoader().[...]" 
    I just did a simple test to call a method from a trusted jar into sandbox jar, I used reflection to do that and it worked.
    It seems for every usage of any sandbox jar file classes in the trusted jar file, we have to use reflection ( load the class, invoke the required method ). Is this the way forward. Can somebody confirm this.
    private void useReflection()
          try
               // using normal class loader
             Class<?> clazz = Class.forName("com.abc.bla.bla.SandBox", true, Thread.currentThread().getContextClassLoader());
             Constructor<?> constructor = clazz.getConstructor();
             Object obj = constructor.newInstance(new Object[] {});
             Method method = clazz.getMethod("sayHello", new Class[] {});
             method.invoke(obj, new Object[] {});
          catch (Exception ex)
             ex.printStackTrace();

  • JDBC Help - java.lang.ClassNotFoundException

    This has been one of the greatest headaches I've had since I started programming 10+ years ago. I've just started learning Java, and I really need to connect to a JDBC database (Sybase). Please, help me!!
    I've stripped my code down, because this is the part that's causing the code to generate the error:
    import java.sql.*;
    import java.io.File;
    public class test {
         public static void main() {
              Class.forName("ianywhere.ml.jdbcodbc.IDriver");
    }The error message is:
    test.java:6: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
         Class.forName("ianywhere.ml.jdbcodbc.IDriver");
              ^I'm using the following JDBC driver:
    http://astronomicus.net/jodbc.jar
    I'm typing this in to compile the code:
    javac -classpath "%ASANY9%\java\jodbc.jar" test.javaAnd finally, my CLASSPATH is:
    .;C:\j2sdk1.4.1_07\bin;%ASANY9%\java\
    The driver is located in the "%ASANY9%\java\" directory.
    Thank you so much for your help!!!
    Message was edited by:
    tate_etc
    Message was edited by:
    tate_etc

    Pu the statement in a try catch block.

  • Failed to load servlet: java.lang.ClassNotFoundException

    I've been working on a project with other developers and we've all have our own sections of a large web application that we are working on. When we are each done working on our part we send our JSPs, Beans, and servlets to the lead developer that then deploys one EAR file on our Test/QA server. I now asked the tech lead if he could send me the EAR file so I can load the application in its entirety on my local machine. When I start up the server, I get the error "Failed to load servlet: java.lang.ClassNotFoundException" for each one of my servlets. Even if the servlet path is correct I still get that error. I also tried removing the servlet in the web.xml file and then adding it again, but I still get that error. Has anyone experienced anything like this before? Is this error appearing because I have two projects (my part of the application with only my code and the complete project from the EAR file) that point to the same servlets? I'm not sure how to resolve this. Any advice would be greatly appreciated. Thanks in advance!

    That's what I thought too. But I'm installing an EAR file exported directly from another persons computer and the application is working fine on his machine. So the EAR file will automatically place the servlets in their proper path and directory structure when I import it. In any case I checked the paths myself and they are correct (the servlet file does exist in the same path). I also removed the servlet from the web.xml file and added it again through the websphere UI so if there was any miss-type in the directory path it would have been corrected by websphere. I also tried making a minor change to the servlet file and resaving it thinking that it might correct something or do something that would allow my websphere environment to see/recognize the existance of the servlet, but that did not work. I'm out of ideas. Does anyone have any suggestions? Here is a part of my log file if it helps: Thanks!
    *** Starting the server ***
    IBM WebSphere Application Server, Release 4.0.4
    Advanced Single Server Edition for Multiplatforms
    Copyright IBM Corp., 1997-2001
    ************ Start Display Current Environment ************
    WebSphere AEs 4.0.4 ptf40230.02 running with process name localhost/Default Server and process id 3188
    Host Operating System is Windows 2000, version 5.0
    Java version = J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    server.root = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
    Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/java/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/classes;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/lib/ext;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/web/help;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasListener.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/properties;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4/bin;C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\CA_APPSW;C:\TNGSD\BIN;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\MICROS~2\Office;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
    Current trace specification = *=all=disabled
    ************* End Display Current Environment *************
    [9/13/06 9:25:18:620 EDT] 64a937ec Server U Version : 4.0.4
    [9/13/06 9:25:18:636 EDT] 64a937ec Server U Edition: Advanced Single Server Edition for Multiplatforms
    [9/13/06 9:25:18:636 EDT] 64a937ec Server U Build date: Thu Sep 05 00:00:00 EDT 2002
    [9/13/06 9:25:18:636 EDT] 64a937ec Server U Build number: ptf40230.02
    [9/13/06 9:25:21:933 EDT] 64a937ec DrAdminServer I WSVR0053I: DrAdmin available on port 7000
    [9/13/06 9:25:21:995 EDT] 64a937ec ResourceBinde I WSVR0049I: Binding Session Persistence datasource as jdbc/Session
    [9/13/06 9:25:22:136 EDT] 64a937ec ResourceBinde I WSVR0049I: Binding IDS as jdbc/IDS
    [9/13/06 9:25:23:120 EDT] 64a937ec ServletEngine A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2001
    [9/13/06 9:25:23:183 EDT] 64a937ec ServletEngine A SRVE0162I: Servlet Specification Level: 2.2
    [9/13/06 9:25:23:183 EDT] 64a937ec ServletEngine A SRVE0163I: Supported JSP Specification Level: 1.1
    [9/13/06 9:25:23:292 EDT] 64a937ec ServletEngine A SRVE0167I: Session Manager is Configured - Initializing...
    [9/13/06 9:25:23:401 EDT] 64a937ec CacheManager A DYNA0011E: Servlet cache file dynacache.xml not found; caching is disabled
    [9/13/06 9:25:23:417 EDT] 64a937ec ServletEngine A SRVE0169I: Loading Web Module: IBM Universal Test Client.
    [9/13/06 9:25:23:761 EDT] 64a937ec WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
    [9/13/06 9:25:23:792 EDT] 64a937ec WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
    [9/13/06 9:25:24:511 EDT] 64a937ec ServletEngine A SRVE0169I: Loading Web Module: IDS.
    [9/13/06 9:25:24:683 EDT] 64a937ec WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
    [9/13/06 9:25:24:683 EDT] 64a937ec WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
    [9/13/06 9:25:24:698 EDT] 64a937ec WebGroup I SRVE0091I: [Servlet LOG]: InvokerServlet: init
    [9/13/06 9:25:24:714 EDT] 64a937ec WebGroup X Servlet Error-[SettingsServlet]: Failed to load servlet: java.lang.ClassNotFoundException: com.comp.ids.admin.servlet.SettingsServlet
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:382)
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:248)
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:79)
         at java.beans.Beans.instantiate(Beans.java:216)
         at java.beans.Beans.instantiate(Beans.java:77)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:141)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:325)
         at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1218)
         at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
         at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
         at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
         at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
         at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
         at com.ibm.ws.runtime.Server.startModule(Server.java:617)
         at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
         at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
         at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
         at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV4$1.run(ServerRunnerV4.java:56)
    Message was edited by:
    MCJasper

  • When trying to connect, java.lang.ClassNotFoundException;

    I can't seem to resolve this error:
    SearchServlet.java [48:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    db.connect();
    ^
    =========The error is in the following Servlet:
    SinglesSearch.Database db=new SinglesSearch.Database();
    db.connect(); //this line throws the exception
    =========
    I've searched the web for servlets connecting to the database, but couldn't find anything that would help me figure out this issue.
    Can you help ?
    thanks,
    Dennis
    P.S.
    My database helper class.
    * Database.java
    package SinglesSearch;
    import java.sql.*;
    import java.io.*;
    public class Database {
    //Helper Class -- Takes care of DB connections and SQL
    /** Creates a new instance of Database */
    public String dbURL = "jdbc:mysql://localhost/singles";
    public String dbDriver = "com.mysql.jdbc.Driver";
    private Connection dbCon;
    public Database() {
    super();
    public boolean connect() throws ClassNotFoundException,SQLException
    { //Connect to DB
    Class.forName(dbDriver);
    dbCon = DriverManager.getConnection(dbURL,"test", "test");
    return true;
    public void close() throws SQLException
    { //Close connection to DB
    dbCon.close();

    Why is writing a servlet is so tough ?
    It seems it must be simpler. .. I mean I had to specify every last exception handling.
    I mean compare these 4 lines:
    Class.forName(dbDriver);
    dbCon = DriverManager.getConnection(dbURL,"xxx", "xxx");
    Statement stmt= dbCon.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    To the monster (in P.S.) I had to write, just for the thing to compile !!
    Is that supposed to be like that ? Or am I missing something ?
    thanks,
    Dennis
    P.S.
    //Start connection to the database
    Connection dbCon=null;
    Statement stmt=null;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(ClassNotFoundException cne) {
    //Exception handling here
    out.println(cne);
    try {
    dbCon = DriverManager.getConnection("jdbc:mysql://localhost/singles","singles", "zaq123");
    } catch(SQLException sqle) {
    out.println(sqle);
    ResultSet rs = null ;
    try {
    stmt= dbCon.createStatement(); }
    catch(SQLException cne) {
    out.println(cne);
    try { rs = stmt.executeQuery("SELECT libnum FROM profiles"); }
    catch(SQLException cne) {
    out.println(cne);
    if (rs == null)
    out.println("<P>NOTHING in the database</P>");
    else
    try {
    while(rs.next())
    out.println("<BR>");
    out.println( rs.getString("libnum") );
    } catch(SQLException cne) {
    out.println(cne);
    }

  • Java.lang.ClassNotFoundException -- CLASSPATH

    On my Linux machine, when I create a simple java file in the current directory, compile it, and run it, it works fine. Here are the steps that I take:
    javac simple.java
    java simple
    When I do the same on my Windows machine, I "get java.lang.ClassNotFoundException : simple" when I do java simple. I don't understand, both src and binary files are in the same folder. How do I fix it?

    aurir_ wrote:
    I noticed that I get this error when I set my CLASSPATH=c:\Sun\SDK\jdk\bin.
    That is a folder where I have JavaEE installed.
    You do not need that Classpath setting unless you plan to put your classes into the jdk\bin directory, which is a horrible idea.
    When I clear that entry from the CLASSPATH or do this: "java -cp . Test" it probably finds some other jdk and uses it, and it works fine.It is the recommendation to use -cp to set the classpath instead of the system environmental variable. But that does not change the "jdk" being used. Here's two links you might find useful.
    [http://www.kevinboone.com/classpath.html]
    [http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html]
    Edited by: atmguy on Aug 28, 2008 9:34 AM

  • 7u21 mixed code warning java.lang.ClassNotFoundException

    Initially with Java 7u21 when I tried to invoke the browser dialog when trying to import records through applet I got the following error:
    "Liveconnect call for Applet ID 1 is not allowed in this JVM instance"
    It used to work fine with earlier versions of Java.
    In order to fix it I have updated manifest file of applet, added the following entry for mixed code warning:
    Trusted-library: true
    I am self - signing the jars. It runs fine if I donot sign the jars, but if I self sign the jars
    then I see the following exception in Java console:
    Protocol: https
    codeBase.getPort(): -1
    appletConfig.getPort(): 443
    Exception in thread "Thread-15" java.lang.NoClassDefFoundError: com/l2fprod/common/swing/JDirectoryChooser
         at com.sjm.pcs.sneakernet.applet.ScanApplet$JavaScriptEventListener.run(ScanApplet.java:803)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.l2fprod.common.swing.JDirectoryChooser
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 2 moreAny idea what might be going wrong.
    Any idea what is going wrong?
    Thanks!

    This is confirmed by the  post  https://forums.oracle.com/thread/2280127
    and it is confirmed by Oracle http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mixed_code.html#trusted_library
    "Code in a jar file that is to be marked with the Trusted-Library manifest attribute may need to be modified slightly if it uses calls that are class loader dependent [...]
    Code in a Trusted-Library can look up the normal loader by invoking Thread.currentThread().getContextClassLoader().[...]
    Generally, care must be taken to ensure that the code in the trusted library is written in a careful and secure manner and is otherwise compatible with being loaded in a separate class loader instance from any remaining jars which are part of the application and are loaded by the normal loader."
    "Thread.currentThread().getContextClassLoader().[...]" 
    I just did a simple test to call a method from a trusted jar into sandbox jar, I used reflection to do that and it worked.
    It seems for every usage of any sandbox jar file classes in the trusted jar file, we have to use reflection ( load the class, invoke the required method ). Is this the way forward. Can somebody confirm this.
    private void useReflection()
          try
               // using normal class loader
             Class<?> clazz = Class.forName("com.abc.bla.bla.SandBox", true, Thread.currentThread().getContextClassLoader());
             Constructor<?> constructor = clazz.getConstructor();
             Object obj = constructor.newInstance(new Object[] {});
             Method method = clazz.getMethod("sayHello", new Class[] {});
             method.invoke(obj, new Object[] {});
          catch (Exception ex)
             ex.printStackTrace();

Maybe you are looking for

  • Imminent hard drive failure - warranty replacement?

    SMART drive diagnostics warns of an imminent SSD failure on a one-month old Envy laptop.   Failure ID:  U4G76X-73474Q-MFGJWK-600903.   Attempted suggested fixes per HP support pages.  No joy.  Research indicates a replacement is necessary.  How does

  • Two parameters in the SMTP Conector , EXHCANGE 2007

    Hello,    I installed a Exchange 2007 several weeks ago. I registered a domain of my own just 5 or 6 days ago too.    In "the public side" all seems to be running okay because nslookup points to my Public IP when I ask for the mx record (=mail.mydoma

  • ConvertDateTime: problems with year conversion

    In my application I want the user to enter a date into an input field following the pattern "d.MM.yyyy". Here's my code (where myDate is of type java.util.Date): <h:inputText value="#{contentHandler.myDate}"> <f:convertDateTime type="date" pattern="d

  • EPMA Period Dimension - cannot move Base members

    I am trying to move Periods out of Quarters and under YearTotal in an already deployed application in EPMA (Planning app). I want to have YearTotal above Jan-Dec, and Q1-Q4 as Dynamic Calcs with months shared below. This is all well and good in plann

  • Spotlight Comments not found

    I added "backup" as a Spotlight Comment to a variety of files and folders using an automator action. When I search using the query Spotlight Comment contains "backup" only a few of my files and folders with that comment are found. I have tried re-ind