Problems with Deploy java.lang.NoClassDefFoundError

I Have an aplication in Jdeveloper 11.1.2.2, i make the ear for the aplication and i tried to deploy it on the embebed weblogic of my jdeveloper and in a weblogic 10.3.6 with the patch for adf 11.1.1.2 (the server its fine because i have other aplications running on it).
The deploy goes well, i can access to some pages and work with the application BUT when a access to a page with input Date control the page return this error.
java.lang.NoClassDefFoundError: oracle/adf/view/rich/component/rich/input/RichInputDate
     at java.lang.Class.getDeclaredMethods0(Native Method)
     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
     at java.lang.Class.getDeclaredMethods(Class.java:1791)
     at oracle.adfinternal.controller.beans.AnnotationUtils.findAnnotatedMethods(AnnotationUtils.java:194)
     at oracle.adfinternal.controller.beans.AnnotationUtils.runPostConstructIfSpecified(AnnotationUtils.java:63)
i tried to put the adf-richclient-api-11.jar in the viewController project and deploy, but the problem persist
Edited by: UserMan on 25-jun-2012 8:02

The app runs on jdeveloper fine (in the integrated weblogic), when i create de ear file to deploy in the production webLogic it doesn't work, and if i try to deploy the same ear in the integrated webLogic in doesn´t work too, and the error is the same.

Similar Messages

  • Problem invoking WLST - java.lang.NoClassDefFoundError: weblogic.management

    Hi Guys!
    I want craete the new user 'jdoe' for domain 'tst2_domain' (WebLogic Server Version: 10.3.5.0)
    For it I have script 'create_user.sh':
    # Set the Environment Variables
    /home/testuser/Oracle/Middleware/user_projects/domains/tst2_domain/bin/setDomainEnv.sh
    export JAVA_HOME=/home/testuser/Oracle/Middleware/jdk160_24/
    export PATH=$PATH:$JAVA_HOME/bin/
    export CLASSPATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/modules/com.bea.common.configfwk_1.5.0.0.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-api.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-impl.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-common.jar:/home/testuser/Oracle/Middleware/Oracle_OSB1/lib/sb-kernel-resources.jar
    # Execute the WLST script..
    cd resources
    java weblogic.WLST createUsers.py.../resources/createUsers.py:
    url = 'localhost:7001'
    username = 'weblogic'
    password = 'welcome1'
    print 'Adding users to DefaultAuthenticator.'
    connect(username, password, url)
    # Check if user already exists
    cd('/')
    authProvider = cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    if authProvider.userExists('jdoe'):
         print 'User jdoe already exists'
         exit()
    else:
         # Create users
         print 'Creating new user: jdoe'
         authProvider.createUser('jdoe','welcome2','a sample service bus administrator')
         authProvider.addMemberToGroup('Administrators','jdoe')
    print 'Users created successfully.'
    exit()Domain 'tst2_domain' is running...
    I started the create_user.sh and then i had the error:
    $ ./create_user.sh
    Initializing WebLogic Scripting Tool (WLST) ...
    Problem invoking WLST - java.lang.NoClassDefFoundError: weblogic.management.scripting.WLScriptContext
    Could you please help me? Which the problem in the script?
    $ ./setWLSEnv.sh
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/bin:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/testuser/bin
    Your environment has been set.
    $ java weblogic.WLST
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.WLST
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    Caused by: java.lang.ClassNotFoundException: weblogic.WLST not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)

    But if run script as $ ./wlst.sh /home/testuser/create_user/resources/createUsers.py - its ok!
    $ ./wlst.sh /home/testuser/labs/Practice_05/create_user/resources/createUsers.py
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/home/testuser/Oracle/Middleware/wlserver_10.3/server/bin:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/testuser/bin
    Your environment has been set.
    CLASSPATH=/home/testuser/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_oepe1050/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/testuser/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/testuser/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/testuser/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/testuser/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/home/testuser/Oracle/Middleware/utils/config/10.3/config-launch.jar::/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/testuser/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbytools.jar::
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Adding users to DefaultAuthenticator.
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'tst2_as_server' that belongs to domain 'tst2_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Creating new user: jdoe
    Users created successfully.
    Exiting WebLogic Scripting Tool.

  • Hibernate Error while deploying : java.lang.NoClassDefFoundError: org/hibernate/MappingException.

    Hi,
    We are migrating to weblogic server. While deploying the EAR in Production WebLogic server I am getting the following - "Class Not found Exception" .  I have local version of weblogic server which is coupled with eclipse is not giving me any error when I deploy the same EAR, but only production weblogic server is giving error. In the production environment we are using clusters. and we have staging environment also.
    It would be great if someone let me know how to get rid of this error. Thanks in advance
    Environment:
    Java - 1.6
    Hibernate - 3
    Spring - 2
    Web Logic - 10.3.5
    WebLogic-Application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <!--weblogic-version:10.3.5-->
        <wls:application-param>
            <wls:param-name>webapp.encoding.default</wls:param-name>
            <wls:param-value>UTF-8</wls:param-value>
        </wls:application-param>
        <wls:prefer-application-packages>
            <wls:package-name>antlr.*</wls:package-name>
        </wls:prefer-application-packages>
    </wls:weblogic-application>
    Stack trace from the server:
    <<WLS Kernel>> <> <0000K1E1LgQ5e_5_rPt1iY1HwEvb000009> <1375698508586> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/jboss-spring.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/MappingException.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/jboss-spring.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/MappingException
    ####<05.08.2013 12:28 Uhr MESZ> <Error> <Deployer> <FE0APP216> <WLS_FORMS> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000K1E1LgQ5e_5_rPt1iY1HwEvb000009> <1375698508601> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1375698508071' for task '6'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
           at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
           at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
           at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
           at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
           at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
           at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:140)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
           at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
           at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
           at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: java.lang.NoClassDefFoundError: org/hibernate/MappingException
           at java.lang.Class.getDeclaredConstructors0(Native Method)
           at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
           at java.lang.Class.getConstructor0(Class.java:2699)
           at java.lang.Class.getDeclaredConstructor(Class.java:1985)
           at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
           at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
           at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
           at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
           at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
           at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
           at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
           at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
           at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
           at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
           at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
           at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
           at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
           at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
           at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
           at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
           at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
           at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:140)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
           at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
           at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
           at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Hello,
    I recommend not the xmlpull jar file, but the xpp3-*.jar file found with your Enterprise installation.  It's in the "external" subfolder where you got your other Enterprise jar files.
    You'll have to remove the xmlpull jar, since they'd version conflict.
    Sincerely,
    Ted Ueda

  • Jaxb with weblogic -- java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement

    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar file in weblogic
    classpath in setEnv script. I am getting the following error, when I am trying
    to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir but then I
    got security error.
    I will appreciate if someone in this newsgroup comments or suugest some solution.
    Thanks
    Jeewan

    On 06 Aug 2002, Jeewan wrote:
    >
    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar
    file in weblogic classpath in setEnv script. I am getting the
    following error, when I am trying to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir
    but then I got security error.
    I will appreciate if someone in this newsgroup comments or suugest
    some solution. Put the jaxb jar file in in your webapp's WEB-INF/lib directory and it
    should work fine.
    Barry

  • Please HELP me with installation - java.lang.noclassdeffounderror:

    Please Help! For school we need to install JAVA. I installed JDK 5.0 and id did not work. I got exception in thread "main" java.lang.noclassdeffounderror: hello. I was using Texpad to write, compile, and run it. In short I deleted all JAVA 5.0 using My Computer program removal. I installed JAVA 1.4..2_10 and I am still getting that same error. I want the JAVA 1.4..2_10 to be installed and not JAVA.5.0.
    My System Variable CLASSPATH still shows C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip. My System Variable PATH has nothing as far as JAVA in it. MY PATHEXT has JS and JSE amoung other things in it. My System Variable QTJAVA still has Files\Java\jre1.5.0_03\lib\ext\QTJava.zip in it.
    Please tell me step-by-step how I can fix this. I never updated these variables before. What do I need to type and where? What do I need to get rid of or change?
    PLEASE HELP!
    Thanks,
    Jim

    I left my System variable classpath --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I left my QT JAVA --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I added Path --> ;C:\j2sdk1.4.2_10\bin and then restarted my computer. I added hello file in C:\j2sdk1.4.2_10\bin and tried to compile it under a new name and it would not compile. it gave me the error below. I was able to compile other java program in my other folder in a different directory. I am still getting the same error messages/ Anything else I should try? IS there anyplace or person I can call who would come and fix this? Something is wrong. This should not be giving me this much trouble. All The Java directions on other websites tell me to do different things. I am so confused... please help.
    I get this during the compilenow:
    javac: invalid flag: C:\j2sdk1.4.2_10\bin\helloa.txt
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -help Print a synopsis of standard options
    Tool completed with exit code 2
    Jim
    If you can fix this I will give you 14 points. I hope it is enough. I just want this to work for school.

  • Custom Connector Deployment : java.lang.NoClassDefFoundError

    Hi,
    We have a Custom Connector for connecting to the Google System.
    I moved the Objects from an existing OIM System to the new one.
    Now, I have the following error thrown when the "Create User" Task is getting executed.
    Is there a way to print which class file is missing? It didn't say what class? Any pointers?
    ===========================================
    11/01/17 21:00:23 java.lang.reflect.InvocationTargetException
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/17 21:00:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/01/17 21:00:23 at java.lang.reflect.Method.invoke(Method.java:585)
    11/01/17 21:00:23 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpGMAIL_CREATE_USERV2.CREATEUSER(adpGMAIL_CREATE_USERV2.java:161)
    11/01/17 21:00:23 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpGMAIL_CREATE_USERV2.implementation(adpGMAIL_CREATE_USERV2.java:59)
    11/01/17 21:00:23 at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.ejb.beansimpl.tcScheduleTaskOperationsBean.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.ejb.beans.tcScheduleTaskOperationsSession.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/17 21:00:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/01/17 21:00:23 at java.lang.reflect.Method.invoke(Method.java:585)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    11/01/17 21:00:23 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    11/01/17 21:00:23 at tcScheduleTaskOperations_RemoteProxy_6ocop18.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/17 21:00:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/01/17 21:00:23 at java.lang.reflect.Method.invoke(Method.java:585)
    11/01/17 21:00:23 at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:67)
    11/01/17 21:00:23 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    11/01/17 21:00:23 at java.lang.Thread.run(Thread.java:595)
    11/01/17 21:00:23 Caused by: java.lang.NoClassDefFoundError
    11/01/17 21:00:23 at au.oim.googleapps.GoogleAppsClient.<init>(GoogleAppsClient.java:100)
    11/01/17 21:00:23 at au.oim.googleapps.GoogleAppsHelper.createUser(GoogleAppsHelper.java:58)
    11/01/17 21:00:23 at au.oim.googleapps.users.UserCreator.createUser(UserCreator.java:19)
    11/01/17 21:00:23 ... 38 more
    11/01/17 21:00:23 com.thortech.xl.dataobj.util.tcAdapterTaskException
    11/01/17 21:00:23 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpGMAIL_CREATE_USERV2.CREATEUSER(adpGMAIL_CREATE_USERV2.java:167)
    11/01/17 21:00:23 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpGMAIL_CREATE_USERV2.implementation(adpGMAIL_CREATE_USERV2.java:59)
    11/01/17 21:00:23 at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.ejb.beansimpl.tcScheduleTaskOperationsBean.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at com.thortech.xl.ejb.beans.tcScheduleTaskOperationsSession.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/17 21:00:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/01/17 21:00:23 at java.lang.reflect.Method.invoke(Method.java:585)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/01/17 21:00:23 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/01/17 21:00:23 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    11/01/17 21:00:23 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    11/01/17 21:00:23 at tcScheduleTaskOperations_RemoteProxy_6ocop18.createScheduleItem(Unknown Source)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/17 21:00:23 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/17 21:00:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/01/17 21:00:23 at java.lang.reflect.Method.invoke(Method.java:585)
    11/01/17 21:00:23 at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:67)
    11/01/17 21:00:23 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    11/01/17 21:00:23 at java.lang.Thread.run(Thread.java:595)
    ===========================================
    Regards
    Vijay Chinnasamy
    Edited by: Vijay_Chinnasamy on Jan 17, 2011 3:28 AM

    I closed checked for the error, and the error is different now.
    ==================
    11/01/18 01:12:43 java.lang.reflect.InvocationTargetException
    11/01/18 01:12:43 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/01/18 01:12:43 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/01/18 01:12:43 Caused by: java.lang.ExceptionInInitializerError
    11/01/18 01:12:43 at au.oim.googleapps.GoogleAppsClient.<init>(GoogleAppsClient.java:100)
    11/01/18 01:12:43 at au.oim.googleapps.GoogleAppsHelper.createUser(GoogleAppsHelper.java:58)
    11/01/18 01:12:43 at au.oim.googleapps.users.UserCreator.createUser(UserCreator.java:19)
    11/01/18 01:12:43 ... 38 more
    11/01/18 01:12:43 Caused by: java.lang.NullPointerException
    ==================
    It looks like some value is null? any ideas?
    Regards
    Vijay Chinnasamy

  • Problems with DirectPrinterDemo: java.lang.NoSuchMethodException

    Hello,
    our environment is oracle forms10g Version 9.0.4.0.19. i have tried to run the directprinterbean from casey bowden, but i had no luck. i forced forms to use the jre 1.5.06. instead of the jinitiator but i get error messages like these..
    java.lang.NoSuchMethodException: sun.java2d.SunGraphicsEnvironment.setFallbackFont(java.lang.String)
         at java.lang.Class.getMethod(Unknown Source)
         at oracle.forms.engine.Main.initDesktop(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NoSuchMethodException: sun.java2d.SunGraphicsEnvironment.preferLocaleSpecificFonts()
         at java.lang.Class.getMethod(Unknown Source)
         at oracle.forms.engine.Main.initDesktop(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Version von Forms-Applet: 9.0.4.0
    java.lang.ClassFormatError: Truncated class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    what should i do to fix the problem? what are meaning the error messages in detail? where is my fault?
    is there a way to run the directprinterbean with jinitator?
    thank you
    Gunnar
    Message was edited by:
    [email protected]

    Hi
    Did you ever find out what caused this. We are having a similar problem where we forced the use of jre 1.6

  • Problem with debug java.lang.NullPointerException

    Hi All,
    i am having a very strage issue with Flash Builder 4.5.1.
    If I create a Flex Mobile Application, i am able to debug the app with no problems.
    if I create a Flex Mobile and PHP Project, and then connect to a data service, i am not able to debug the app. i am having the following error:
    An internal error occurred during: "Launching Main_App".
    java.lang.NullPointerException
    SO: Windows 7
    Flash Builder 4.5.1
    Any ideas on this?
    Thanks a lot,
    Joe

    Hi Steven,
    I turned on debugger on oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.
    The exception is rised in method :
    processActionPerform
    at statement :
    ActionForward forward = super.processActionPerform(request, response, action, form, mapping);
    I hope it is helpful.
    Cezary

  • Problem with:error: java.lang.ClassFormatError: Truncated class file

    Hello, I created an simple applet writing "hello world". Now I would like to add *.class file to my serwer witch I've implemented on microcontroller P89C51RD2BN.
    Serwer is programmed with hex file which is created after compiling C source files. In this case I converted .class file to array in C (using hexedit program). When I am (using IE ) browsing my serwer Html site is loading corectly and *.class file is send from serwer also corectly (define arrays are transfered corectly) but applet is not initiated. When I am runnig Java console I can see this:
    error: java.lang.ClassFormatError: Truncated class file
    When I am runnig the same site with the same class file on my PC everything is ok.
    I would be greatfull for any help. Thx. (sorry for my English :P )

    Not too familiar with native compilation, which I believe you are trying to accomplish here. It would appear that you don't have any problems running your applet, more or less running it after being converted to legacy code. Try the "native methods" forum under "Fundementals/Key Classes", this may be helpful. Sorry for not being too helpful.

  • Java.lang.NoClassDefFoundError: weblogic/Home$HomeSingleton error

    hi,
    I am using the Weblogic version 10.3.5.0 and i have py script inorder to check the admin server and admin port.
    but when i am running
    java weblogic.WLST checkServer.py "weblogic" "welcome1" "localhost:7001"
    i get the following error : Problem invoking WLST - java.lang.NoClassDefFoundError: weblogic/Home$HomeSingleton
    Note: before running the script i run: . ./setWLSEnv.sh
    the answer was:
    CLASSPATH=/app/ofm/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/app/ofm/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/app/ofm/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/app/ofm/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/app/ofm/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/app/ofm/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/app/ofm/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/app/ofm/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/app/ofm/Oracle/Middleware/wlserver_10.3/server/bin:/app/ofm/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/app/ofm/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin:/app/ofm/Oracle/Middleware/jrockit_160_24_D1.1.2-4/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/patrol/bin
    Your environment has been set.
    Please advice?

    Hi,
    What you have in .py file based on it it trying to look for $HomeSingleton which is not specified.
    Try to check that .py file and let me or else put the .py file here I will check and let you know the updates.
    Regards,
    Kal

  • HELP:: jsse1.0.3 problem with jdk1.3.1(java.lang.NoClassDefFoundError)

    Hi,
    I am now working with jsse1.0.3 and jdk1.3.1(I can not use the new jdk version, because the system I developed is based on jdk1.3.1). what makes me strange is that I can compile my program without problem, but when I run it, it always report error.
    my source code is :
    import java.security.*;
    import javax.net.ssl.*;
    System.out.println("Classpath ->"+System.getProperty("java.class.path"));
    SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket SSLcontrol_connection = (SSLSocket)factory.createSocket(ftp_server, 990);
    SSLcontrol_connection.startHandshake();
    ..........the erroe message is:
    Classpath ->O:\hpovams_dev_sd40\sd\lib\JClark.zip;O:\hpovams_dev_sd40\sd\lib\jcert.jar;O:\hpovams_dev_sd40\sd\lib\jnet.jar;O:\hpovams_dev_sd40\sd\lib\jsse.jar;..........
    java.lang.NoClassDefFoundError
    at javax/net/ssl/SSLSocketFactory.a (DashoA12275)
    at javax/net/ssl/SSLSocketFactory.getDefault (DashoA12275)It is not a classpath problem as I have included the 3 jar files into classpath,.
    I also tried to add
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());before create SSLSocketFactory, then it report that
    java.lang.NoClassDefFoundError
         at com/sun/net/ssl/internal/ssl/Provider.<init> (DashoA12275)My developing GUI is eclipse 3.1, and the OS is winXP.
    Please give me some help, thank you very much.

    oh. I have found the problem. Acturally, the running enviroment is under microsoft j++, so it could only support jdk1.1, but jsse only support from jdk1.2, so that's the problem why it said that no class found.
    Now I only found that oracle has a solution for SSL which support
    jkd1.1(SUN's jsse package only support from jdk1.2). It described the
    method and sample code in Oracle Advanced Security Administrator's
    Guide Release 2 (9.2)
    (http://www.stanford.edu/dept/itss/docs/oracle/9i/network.920/a96573/a...)

  • Java dc use another java dc with java.lang.NoClassDefFoundError

    Dear All:
    I've created 2 java dc.
    I assinged the second dc as a used dc for the first dc.
    I've created a web dynpro dc and add the first dc as used dc.
    I can build those three dc without any error, but when I deploy to server and run I got an exception "java.lang.NoClassDefFoundError"
    Is there anyone know how to fix it.
    thanks in advance.
    Allen.

    Hi Allen,
    I believe the following link will help you create two public parts (for Compile Time and for Runtime) of the wrapper DC and then include the Public Parts in the Used DCs of the Final Development Component.
    http://help.sap.com/saphelp_nw70/helpdata/en/42/43973fade73c17e10000000a114084/frameset.htm
    Without adding the Public Parts, your final DC to consume the Java Library would not show any Compile Time Error but would throw Class Definition Not Found Exception even though you deploy the wrapper DC on the Server. This should solve your problem. For any clarification you can always come back to me.
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Deployment error, java.lang.NoClassDefFoundError: org/apache/commons/digest

    Hi all,
    I get the following stack trace when deploying an app where I added some JSF stuff:
    <Aug 24, 2005 9:49:24 AM PDT> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application appsdircg_war.
    java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at weblogic.servlet.internal.WebAppServletContext.registerEventListener(WebAppServletContext.java:2785)
         at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:2373)
         at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:5600)
         at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServletContext.java:5578)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:838)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet]
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    The relevant jar file, commons-digester.jar is in the the WEB-INF/lib folder, just like all the other commons-*.jar files.
    My CLASSPATH variable doesn't contain anything except a an XMLSpy jar file.
    I'm running WLS 8.1 SP2.
    Any help/hints are greatly appreciated.

    I would set "prefer-web-inf-classes" to "true" in your "weblogic.xml" file. Without this, you may be getting classloader confusion with some of the commons jars that are used within WebLogic.

  • Java.lang.NoClassDefFoundError -  Oracle 9.0.2 with Tomcat 5.5.7

    Hi all,
    If I have post at a wrong forum, please let me know.
    My problem is that, after installing Oracle 9.0.2 as a standalone db on my PC, some Java and Jsp classes don't run properly. I get the following error msg:
    java.lang.NoClassDefFoundError: javax/xml/transform/Source
    I think it may be a problem with path. For Java programs, I now use a bat file to set path to ignore "C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;" in system's path like this:
    set PATH_BAK=%PATH%
    set Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Executive Software\Diskeeper\;"C:\Program Files\Symantec\Norton Ghost 2003\";C:\j2sdk1.4.2_06\bin;C:\j2sdk1.4.2_06\jre\lib\ext
    java %1
    SET PATH=%PATH_BAK%
    The Java classes run properly with the bat file now. But would there be some better solutions? And how can I run the JSP programs again?
    Really appreciate for any suggestion / help. Thanks very much in advance.

    Hi all,
    I have further located the problem -- if remove from path "C:\Program Files\Oracle\jre\1.3.1\bin", the Java classes works again.
    But what problem would occur if it is removed from path permanently? Any suggestion? Thanks very much.

  • Problems Installing ABAP Netweaver 7 - java.lang.NoClassDefFoundError:

    When I try to install this version of a ABAP Netweaver in my notebook, with Windows XP, an error message appers saying that "java.lang.NoClassDefFoundError: runException in thread main "
    I've already configured the enviroment variable and I've tested running javac through command line . The Microsoft Loopback adapter is configured too ( I think that this error dosent have any relation to this configuration).
    The only topic that ive found in forum its here: Software Downloads and the solution propoused there doesn't works for me.
    Can anyone help me?
    Thanks

    Hi,
    it's me again 
    I think that my .jar is not corrupted because I've tried to install in another machines and the error doesn't occur and I've used this DVD in the same notebook, but in a VM without problems.
    Well, then the files should be really ok.
    Maybe a problem with SP2?
    No, the trail version is working fine with SP2.
    Before I have to leave the office now two additional advices/attempts from me:
    1. Please make sure that you've deactivated all installed antivirus- and/or firewall-programs while installing - e.g. the in SP2 included one.
    2. Try to download the latest Java version from http://java.com/en/download/index.jsp
    3. Install it to a new directory
    4. Point the environment variable JAVA_HOME to the new directory
    5. Restart your computer
    6. Test the proper installation of Java with java -version
    7. Try to restart the setup.
    If it fails again please check the event log of Windows. Perhaps there is a helpful error message logged.
    But I cross the fingers that it's working.
    Regards,
    Norman Schröder
    Sorry for my wrong english.
    I think I have to say the same 
    But I can understand you very well so don't think about it.

Maybe you are looking for

  • How to add all photos in one Album

    Hi, I bought iMovie yesterday and I have albums in photos application. I want to add all photos in one album to iMovie. Thanks Best Regards

  • Ms9 files export as jpg or bmp

    Hello  everybody, My problem and my question is: is it possible to export a circuit from Multisim9 as Bmp or jpg? Because I can´t print a Circuit at a DIN A3 scape.   Without making a screenprint   Quick reply much appriciated.

  • Powerpoint embedding problems

    Hi, I'm currently having problems embedding a flash movie into a powerpoint presentation, using steps similar to the ones set out at this link: http://www.flashgeek.com/tutorials/02_embed_01.asp The flash movie will play perfectly until the presentat

  • Can't get MySQL to start.

    Hello all, I'm trying to rebuild my system after a big crash. Did a total new reinstall of Server but I cannot get mySQL to start. Something is set wrong somewhere. If I look at the service in Server Admin if I look at MySQL I see: MySQL Service is:

  • Physical reads in Database

    Dear Experts, I need to pull distinct SQL IDs for the SQLs run by a particular user - "PROD" b/w 9am - 5pm ( snap IDs 1000 - 1008). I wrote below SQL: select distinct sql_id from DBA_HIST_SQLSTAT where PARSING_SCHEMA_NAME = 'PROD' and snap_id between