JMS error- Exception in thread "Main Thread" java.lang.NoClassDefFoundError

Hi guys,
I am new to JMS programming and i'm have the following error...I have set up a simple weblogic server on my local machine and i am trying to send a message to a queue i've created on a JMS server. I am trying to manually run an example provided by BEA WebLogic... the code follows.
//package examples.jms.queue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;
import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
/** This example shows how to establish a connection
* and send messages to the JMS queue. The classes in this
* package operate on the same JMS queue. Run the classes together to
* witness messages being sent and received, and to browse the queue
* for messages. The class is used to send messages to the queue.
* @author Copyright (c) 1999-2006 by BEA Systems, Inc. All Rights Reserved.
public class QueueSend
  // Defines the JNDI context factory.
  public final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory";
  // Defines the JMS context factory.
  public final static String JMS_FACTORY="weblogic.examples.jms.QueueConnectionFactory";
  // Defines the queue.
  public final static String QUEUE="weblogic.examples.jms.exampleQueue";
  private QueueConnectionFactory qconFactory;
  private QueueConnection qcon;
  private QueueSession qsession;
  private QueueSender qsender;
  private Queue queue;
  private TextMessage msg;
   * Creates all the necessary objects for sending
   * messages to a JMS queue.
   * @param ctx JNDI initial context
   * @param queueName name of queue
   * @exception NamingException if operation cannot be performed
   * @exception JMSException if JMS fails to initialize due to internal error
  public void init(Context ctx, String queueName)
    throws NamingException, JMSException
    qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
    qcon = qconFactory.createQueueConnection();
    qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    queue = (Queue) ctx.lookup(queueName);
    qsender = qsession.createSender(queue);
    msg = qsession.createTextMessage();
    qcon.start();
   * Sends a message to a JMS queue.
   * @param message  message to be sent
   * @exception JMSException if JMS fails to send message due to internal error
  public void send(String message) throws JMSException {
    msg.setText(message);
    qsender.send(msg);
   * Closes JMS objects.
   * @exception JMSException if JMS fails to close objects due to internal error
  public void close() throws JMSException {
    qsender.close();
    qsession.close();
    qcon.close();
/** main() method.
  * @param args WebLogic Server URL
  * @exception Exception if operation fails
  public static void main(String[] args) throws Exception {
    if (args.length != 1) {
      System.out.println("Usage: java examples.jms.queue.QueueSend WebLogicURL");
      return;
    System.out.println(args[0]);
    InitialContext ic = getInitialContext(args[0]);
    QueueSend qs = new QueueSend();
    qs.init(ic, QUEUE);
    readAndSend(qs);
    qs.close();
  private static void readAndSend(QueueSend qs)
    throws IOException, JMSException
    BufferedReader msgStream = new BufferedReader(new InputStreamReader(System.in));
    String line=null;
    boolean quitNow = false;
    do {
      System.out.print("Enter message (\"quit\" to quit): \n");
      line = msgStream.readLine();
      if (line != null && line.trim().length() != 0) {
        qs.send(line);
        System.out.println("JMS Message Sent: "+line+"\n");
        quitNow = line.equalsIgnoreCase("quit");
    } while (! quitNow);
  private static InitialContext getInitialContext(String url)
    throws NamingException
    Hashtable<String,String> env = new Hashtable<String,String>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
    env.put(Context.PROVIDER_URL, url);
    return new InitialContext(env);
}when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.

when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.This is Java 101:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rtrb_classload_viewer.html
You've got to have the WebLogic JAR that contains the necessary .class files in your CLASSPATH when you run.
Don't use a CLASSPATH environment variable; use the -classpath option when you run.
%

Similar Messages

  • Error occurred during initialization of VM & java/lang/NoClassDefFoundError

    ascertain:tcglive:~/BUILD/bin> ./listJobs
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    ascertain:tcglive:~/BUILD/bin> ./startJobServer -fg
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    We've been trying to get rmiregistry started but have noticed the following discrepancy on the server.
    ascertain:tcglive:~> which java
    /usr/bin/java
    ascertain:tcglive:~> echo $JAVA_HOME
    /usr/local/j2sdk1.4.2_03
    There are conflicting versions of java on this box and even though 1.4.2 has been specified in $JAVA_HOME, the environment does not seem to recognise this:
    ascertain:tcglive:~> java -version
    java version "1.2.2"
    Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)

    What does
    which javasay?

  • Error!!!!! java.lang.NoClassDefFoundError:

    Hi,
    I have been allocated a project to design a secured email using SMIME using JAVA and C++. Also we have the provider Baltimore Technologies.
    The problem is the examples given by Baltimore Technologies is showing following error inspite of following all the procedures.
    If any one has a program code or can guide me how write a program in this direction will be really helpful.
    The objective is to:
    1.) write a java program for smime.
    2.)encrypt the email, send, verify, decrypt.
    also it will be grateful if you can explain about "format of P7m/P7s"..... and also JNDI
    Any help is appreciated...
    thanks and regards
    sanmishra

    can any one help!!!!!
    why i am getting this error???
    smime example
    [13] Failed to open PFX file
    com.baltimore.jpkiplus.pkidevice.PKIDeviceException: PKCS12Provider::openFile(); nested exception is:
    com.baltimore.jcrypto.asn1.ASN1Exception: PFX:fromASN1Object - the passphrase authentication on the PFX fails.
    at com.baltimore.jpkiplus.pkcs12.PFX.fromASN1Object([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkcs12.PFX.fromBER([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkcs12.PFX.<init>([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Provider.openFile([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Device.initInstance([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKIDeviceManager.getPKIDevice([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.a([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.openVault([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.openVault([DashoPro-V1.3-013000])
    at SMIMEExamples.setup(SMIMEExamples.java:89)
    at SMIMEExamples.main(SMIMEESetup error: Wrapped PKIDeviceException
    xamples.java:56)
    Error: Vault.getKeyProvider() - KeyProvider not available.
    Error: Vault.getKeyProvider() - KeyProvider not available.
    Error: Vault.getKeyProvider() - KeyProvider not available.
    Error: STATIC CMSEnvelopedData.encrypt() - ; 1 >= 1
    Error: Vault.getKeyProvider() - KeyProvider not available.
    thanks and regards
    sanmishra

  • Java.lang.NoClassDefFoundError error on sun one 6.0 web server

    Hello,
    I'm trying to run a simple hello_world test but get an error message as follows
    [17/Nov/2003:12:49:55] info (23151): Internal Info: loading servlet /test/hello_
    world.jsp
    [17/Nov/2003:12:49:56] failure (23151): Internal error: Unexpected error conditi
    on thrown (java.lang.NoClassDefFoundError: sun/tools/javac/Main,sun/tools/javac/
    Main), stack: java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at com.iplanet.server.http.servlet.IWSJavaC.compile(IWSJavaC.java, Compi
    led Code)
    at com.iplanet.server.http.servlet.IWSJavaCompiler.compile(IWSJavaCompil
    er.java:73)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled C
    ode)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.
    java, Compiled Code)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntit
    y.java, Compiled Code)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunn
    er.java, Compiled Code)
    Here is my web-apps.xml file ->
    # pg web-apps.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE vs PUBLIC "-//Sun Microsystems, Inc.; iPlanet//DTD Virtual Server Web
    Applications 6.0//EN"
    "http://developer.iplanet.com/webserver/dtds/iws-webapps_6_0.dtd">
    <vs>
    <web-app uri="/hello_world" dir="/nnn.nnn.nnn.nn/test" enable="true"/>
    </vs>
    Just erased ip just in case.
    Has anyone experinced same behaviour?

    What service pack of 6.0 server are you using? What is the JDK version? Try running the VM in server mode. Here's the docs to run JVM in server mode:
    http://docs.sun.com/source/816-6770-10/rn60sp6.html#1017482
    Hope it helps.
    Thanks,
    Manish

  • Error running Workbench -java.lang.NoClassDefFoundError: java/sql/Savepoint

    Hi,
    I have recently installed toplink. When I try to connect to the Oracle Server (same machine) I get the below error
    I am running 9i (DB) and I have Sun JDK 1.4.1_03. The classpath looks like this
    c:\oracle\ora92\toplink\core\lib\toplink.jar;c:\oracle\ora92\toplink\core\lib\xerces.jar;c:\oracle\ora92\toplink\core\lib\antlr.jar;C:\oracle\ora92\jdbc\lib\ojdbc14.jar;C:\oracle\ora92\jdbc\lib\nls_charset12.jar
    Assistance greatly appreciated.
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: java/sql/Savepoint
         at java.lang.ClassLoader.defineClass0(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 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)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.toplink.workbench.model.db.BldrDatabase.login(Unknown Source)
         at oracle.toplink.workbench.ui.BldrMainView.login(Unknown Source)
         at oracle.toplink.workbench.ui.BldrActionManager$32.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hi,
    I am using Oracle 10g Express Edition. I try to connect to oracle using Web Sphere Appserver. I am getting java.lang.NoClassDefFoundError: java/sql/Savepoint
    java.lang.NoClassDefFoundError: java/sql/Savepoint
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:547)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:347)
         at java.sql.DriverManager.getConnection(DriverManager.java:543)
         at java.sql.DriverManager.getConnection(DriverManager.java:194)
         at org.apache.jsp._index._jspService(_index.java:76)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    Could you please help me to solve this exception?
    Thanks,
    Siva

  • Business Rules error-java.lang.NoClassDefFoundError: com/hyperion/hbr/core/

    Hey I recently applied the 11.1.1.3.04 service fix for calc mgr/planning which involved a few file changes for EAS as well.
    I patched and re-deployed calc mgr/planning/eas without any issues in DEV
    When I patched prod, and then redeployed the web servers, business rules is now failing.
    This error is in the planning log:
    java.lang.NoClassDefFoundError: com/hyperion/hbr/core/HBRThinServer
    and this error is in EAS log when I login to EAS:
    ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.db.DBTable - Error while creating Repository object. Please make sure your HBR Configuration is correct.
    ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.core.PluginDataManager - Error creating PluginDataManager. Please check your log file for details on what caused this error.
    Anyone run into this issue and have any advice how to solve it? I also opened an issue with Oracle
    THanks
    Jeff

    Thanks for the advice Nick.
    I decided to redeploy EAS app server again, but this time also re-register the database. the register database step was not needed when I patched dev or test, perhaps because in dev and test planning and eas were on the same server. In prod, eas and planning are on different servers.
    so after registering and re-using the existing tables so that I wouldn't lose my rules, the app deployed without any errors in the logs and all my business rule problems have been resolved.
    Thanks
    Jeff

  • Very Strange java.lang.NoClassDefFoundError. Class exists in classpath

    Dear Forum:
    Occasionally, I run into strange java.lang.NoClassDefFoundErrors.
    Here is an example: I have two different classes Class1.class and Class2.class in different jars. Both use a common class: AppContext in third jar file.
    If Class1 tries to use AppContext, it works just fine. However, if Class1 instantiates Class2 and Class2 tries to use AppContext, you get the nasty java.lang.NoClassDefFoundError, in the same thread.
    After a struggle and trying out different orders in class / library paths, the error goes away. However, I do want to know what is the better way to understand and resolve this issue?
    Here is a sample code, for illustration purposes only:
    File:Class1.java_
    Public class Class1
         Public Class1 ()
    AppContext.getLogger().logDebug(�test1�);
    //the above line works just fine.
    try
    Class2 something = new Class2();
    catch(Error ex)
         //here we get a java.lang.NoClassDefFoundError for AppContext, which works just fine from Class1.java
         ex.printstackTrace();
    File:Class2.java:_
    Public class Class2
    Public Class2()
    AppContext.getLogger().logDebug("test2");
    }

    I think I have answer to this mystery.
    This was an issue with the jdeveloper, where the jar file throwing the class not found exception was loaded by a different classloader and the jar file which could find the class was loaded by another classloader.
    I forgot to mention that this was a j2ee application being run by the internal j2ee server of Jdeveloper.

  • BPM and Plumtree.Edk.IRemoteSession : java.lang.NoClassDefFoundError

    I am developping in BPM Studio 10.3.1 for a BPM process. I am trying this :
    Plumtree.Edk.IRemoteSession iRemoteSession=RemoteSessionFactory.getExplicitLoginContext(new URL("http://portalhost:11905/ptapi/services/QueryInterfaceAPI"), "administrator", "portal");
    IObjectManager objectManager = iRemoteSession.getObjectManager(ObjectClass.User);
    IObjectQueryRow userObject = objectManager.querySingleObject(220); //objectid of a known user
    String participantMail = userObject.getExtendedData().getStringValue("Mail");
    String participantUserName = userObject.getExtendedData().getStringValue(String.valueOf(UserProperty.LoginName));
    Now, when I execute this code through the BPM application portlet in WCI 10.3.1, I get this error :
    The task could not be successfully executed.
    [     (cont)     ] Main: Reason: 'java.lang.NoClassDefFoundError: com/plumtree/remote/util/xp/OpenLogHelper'
    Caused by: java.lang.NoClassDefFoundError: com/plumtree/remote/util/xp/OpenLogHelper
    [     (cont)     ] Main:      at com.plumtree.remote.prc.xp.XPRemoteSession.<init>(XPRemoteSession.java:32)
    [     (cont)     ] Main:      at com.plumtree.remote.prc.xp.XPRemoteSessionFactory.GetExplicitLoginContext(XPRemoteSessionFactory.java:25)
    [     (cont)     ] Main:      at com.plumtree.remote.prc.RemoteSessionFactory.getExplicitLoginContext(RemoteSessionFactory.java:48)
    I have no compilation error when I publish and deploy the project with BPM Process Administrator
    Would you have any idea to correct this ?
    Thank you for your help
    Edited by: vVince on May 15, 2009 5:03 PM
    Edited by: vVince on May 19, 2009 6:22 PM

    the fix for this bug #8531794 has been released in hotfix#98606 for Oracle BPM 10.3.1

  • Java/lang/NoClassDefFoundError when trying to run my program in Eclipse

    I have a problem when using Eclipse. I can compile my classes in Eclipse without problems, but when I try to run the main class I get the following error message:
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    I have the same classpath setup when compiling and running the program. I am using JDK 1.3.1 and also have no problem running the program using javaw from a command prompt.
    Please answer if you have encountered this problem or have any idea what the problem might be.

    I start Eclipse using the exe file eclipse.exe with no special arguments.
    I use a JRE installed in e:\jdk1.3.1_01 so on the JRE page in the launch dialog box I have added a JRE with e:\jdk1.3.1_01\jre as the JRE home directory. This means that the JRE system library contain e:\jdk1.3.1_01\jre\lib\rt.jar. On the classpath page this JAR file is also listed as well as some other JAR files I use in my project.

  • Java.lang.NoClassDefFoundError: javax/mail/Service

    Hi,
    Happy New Year Everyone! Sadly, it's not that happy for me right now, I'm trying to write a mail app using JavaMail, but I'm getting a NoClassDefFoundError when I run the program.... The program compiles fine, it only crashes when I run the program. Does anyone have any ideas why that's happenning? I compile the program using javac -classpath .:mail.jar *.java and I'm working on a Unix Box. Any help anyone can provide is greatly appreciated!
    The error message I received is pasted below (I left out the stack trace to make reading easier).
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: javax/mail/Service
    [Stack Trace]
    Thanks in Advance!
    Juivette

    Read the directions that came with the javamail API...it tells you the OTHER API you need. Also, word of advice....I un jar'd and re-jar'd all the classes from BOTH API's in one file...makes life easier.

  • Java/lang/NoClassDefFoundError: java/lang/Object

    Hi Experts,
    We are installing Java "1.6.0_31.We have updated the environment variables with the correct Java Path but which checking the java -version we are getting the following error.
    java -version
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    hence the DAC service is not starting giving the following error.
    startserver.h: startserver.h: cannot open
    OS detected: SunOS
    ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
    Killed
    Following are the environment variable entries.
    PATH=/opt/SUNWspro/bin:/../oracle/product/10.2.0/client_1/bin:/.../Informatica/PowerCenter8.6.1/server/bin:/usr/sfw/bin:/...../JAVA631/jdk1.6.0_31/bin/sparcv9:/.../JAVA631/jdk1.6.0_31/lib:/..../JAVA631/jdk1.6.0_31/jre/lib/sparcv9/jli:/...../JAVA631/jdk1.6.0_31/jre/lib/sparcv9:$PATH
    export PATH
    Need ur support.
    Thanks

    Where do you run shell script?
    What's your Oracle's version?
    What's text of your shell script?
    By asking 100 questions and keeping 90 of them "unanswered" you throw yourself to the list of "blacklist users"
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]
    Edited by: Kamran Agayev A. on May 19, 2009 1:28 PM

  • Java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException

    Hello,
    Can someone please tell me how to fix this error in a standalone application?
    java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
    at com.myco.myapp.applet.AppletConnector.getDAO(AppletConnector.java:82)
    Basically, AppletConnector is retrieving a DAO. The DAO catches HibernateExeption. The Applet, DAO and hibernate2.jar (which contains package net/sf/hibernate/HibernateException) are located within three separate archives: Applet.jar, DAO.jar and Hib.sar, respectively.
    I have Class-Path references from to Applet.jar to DAO.jar and Hib.sar. And from DAO.jar to Hib.sar. Everything compiles fine, so the runtime error listed above is apparently linking-related. Is there something that I am missing?
    Thanks in advance.
    Itchy

    I probably should have mentioned that the applet is actually run as an application, so there is no downloading to the client.
    Otherwise, I've tried everything I can think of here. Normally, when I run the DAO.jar and Hib.sar in JBoss, net/sf/hibernate/HibernateException (within hibernate2.jar) is found without a problem. But as a standalone application, it doesn't work.

  • On starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m

    Hi,
    system i am using for Oracle SOA is :
    Windows 64 Bit
    i5 Processor
    6 GB RAM
    29 GB on C Drive is already free after installation of all SOA related products.
    I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
    i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
    setting memory limit
    starting weblogic server (Admin Server)
    starting weblogic managed server
    and so on
    now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
    as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
    oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
    sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
    xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
    nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
    est_classpath  weblogic.Server
    Listening for transport dt_socket at address: 8453
    Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    Caused by: java.lang.ClassNotFoundException: vXmx512m
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: ++Xmx512m.  Program will exit.
    Now to resolve this what i already tried are :
    I change JAVA_HOME and PATH to jdk6 which came with web logic installer
    Location is at :
    JAVA_HOME : C:\Oracle\Middleware\jdk160_29
    PATH : C:\Oracle\Middleware\jdk160_29\bin
    The above dose not include any space between path
    I ran the startWebLogic.cmd and got same error
    After that I also added
    CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
    WL_HOME:  C:\Oracle\Middleware\wlserver_10.3
    I ran the startWebLogic.cmd and got same error
    I also used earlier path which I used with eclipse when I was working on other java development.
    JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
    PATH : C:\Program Files\Java\jdk1.7.0_21\bin
    I ran the startWebLogic.cmd and got same error
    Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib      (including the existing one using ; )
    I ran the startWebLogic.cmd and got same error
    Now may be there is a file called setSOADomainEnv.cmd in
    < C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
    That include some values for memory set :
    set JAVA_OPTIONS=%JAVA_OPTIONS%
    set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
    set PORT_MEM_ARGS=-Xms512m –Xmx768m
    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
    now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
    Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
    WebLogic :
    C:\Oracle\Middleware\wlserver_10.3
    C:\Oracle\Middleware\coherence_3.7
    C:\Oracle\Middleware\oepe_11.1.1.8.0
    SOA Oracle Home Directory :
    C:\Oracle\Middleware\Oracle_SOA1
    OSB Home Location :
    C:\Oracle\Middleware\Oracle_OSB1
    Domain name : soa_div_domain
    Domain Location :       C:\Oracle\Middleware\user_projects\domains
    Application Location :  C:\Oracle\Middleware\user_projects\applications
    Domain Location:        C:\Oracle\Middleware\user_projects\domains\soa_div_domain
    form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
    Please tell me any body want more details.
    Thanks.

    I think you are missing a character '-'
    USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
    "-Xms512m -Xmx512m -XX:MaxPermSize=128m"

  • SQLJ error: "Exception in thread main java.lang.NoClassDefFoundError: sqlj/

    Hi,
    I am new to SQLJ. Now, in my PC (with Win98), I have JDK 1.2 and Oracle 8i (personal edition). I have used Java and Oracle in my PC without any problem. Now, I am going to learn SQLJ in order to create a java program to access Oracle database. What I have done is to set up several classpaths in DOS:
    SET classpath=C:\ora_program\sqlj\lib\translator.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
    SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
    The code of my program is:
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    import java.util.Date;
    public class Hello{
         public static void main(String[] args){
              java.sql.Date current_date;
              try{
                   // connect to the db
                   Oracle.connect(
                        "C:\ora_program\bin",
                        "system",
                        "manager");
                   // get the current date from the database
                   #sql{SELECT sysdate INTO :current_date FROM dual};
                   // display message
                   System.out.println("Hello, the current date is: "+ current_date);
              catch(SQLException e){
                   System.err.println("sqlException: "+e);
              finally{
                   try{
                        Oracle.close();
                   catch(SQLException e){
                        System.err.println("sqlException: "+e);
    And then I compile my program in DOS with the typing: sqlj Hello.sqlj
    The program cannot be compiled and the error message is:
    "Exception in thread main java.lang.NoClassDefFoundError: sqlj/tools/Sqlj"
    It indicates that the SQLJ translator class files cannot be found.
    I have set up the classpath in DOS (see above). How does the error come? Please help. Thanks.
    PC

    >
    SET classpath=C:\ora_program\sqlj\lib\translator.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
    SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
    The above only sets the classpath to the last value. You need to use the following.
    SET classpath=%classpath%;C:\ora_program\sqlj\lib\runtime.zip;

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

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

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

Maybe you are looking for

  • Help using tagged text in document in exported filename

    Hello, I am using the following script to export my Indesign documents as single page PDFs, and naming in a specific way: var pdfPreset = "<PDF_preset>"; var exportPath = "<filepath>"; var jobNumber = "XXXXXX_" for (aPage=0; aPage < app.activeDocumen

  • Problem with release statergy po

    Dear Friends , I had maintained release statergy for PO . I had taken chraterstic "Order type" "Purchase group" "Order Value" . All configaration is fine and simulation also showing ok . But it is not triging . Is it any problem in release indicator

  • Pass parameter from ASP to JSP

    Hi, Iam fairly new to the wonderful world of programming. Can somebody help me with the following? Iam trying to pass a hidden variable in my ASP to a JSP? Is it possible to do so? The jsp is being called in the 'action' attribute of my html 'form' t

  • Creating two web pages

    I got the family pack (for everything) I am trying to load my second website I created, and everything until I try to visit it. It asks for an Idisk name and password. I have all my sites go through godaddy and had the first site up before .Me starte

  • [solved] [Qemu+libvirt] Can't emulate e1000 NIC cards

    Hi, I want to emulate 2 e1000 NIC cards. I'm using a virsh template file. I've tried several variantes of the following : <interface type='bridge'> <source bridge='br0'/> <target dev='veth0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03