First Spring Application .Help needed.java.lang.ClassNotFoundException

Hi
i am new to this site and java Springs, I couldn't find seprate spring forum so i am posting my question here.
i hope its not a problem.
I am very new to Springs and struggeling through my first Spring MVC application. can any one help me here.
Here is what i have done uptill now.
WEB.XML
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
        <servlet-name>HelloSpring</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        </servlet>
    <servlet-mapping>
        <servlet-name>HelloSpring</servlet-name>
        <url-pattern>*.htm</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>      
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
     <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>
</web-app>
HelloSpring-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN/EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="mappings">
            <props>
                <prop key="/hello.htm">HelloSpringController</prop>
            </props>
        </property>
    </bean>
    <bean id = "HelloSpringController" class="HelloSpringController" />
</beans>
index.jsp
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hello Spring</title>
    </head>
    <body>
    <form action="hello.htm"  method="POST">
        What is your name?
        <input type="text" name="yourName" value="" />
    </form>
    </body>
</html>
welcome.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hello Spring</title>
    </head>
    <body>
    Hello <c:out value="${name}" />
    </body>
</html>
HelloSpringController.java (in default package)
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
public class HelloSpringController implements Controller {
    public HelloSpringController() {
    public ModelAndView handleRequest(HttpServletRequest httpServletRequest,
                                      HttpServletResponse httpServletResponse)
                                        throws Exception {
        String name = httpServletRequest.getParameter("yourName");
        return new ModelAndView("welcome.jsp", "name", name);
}After Entering name in the text box of index.jsp, i am getting the following error.
exception
javax.servlet.ServletException: Servlet.init() for servlet HelloSpring threw exception
     org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     java.lang.Thread.run(Unknown Source)
root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMapping' defined in ServletContext resource [/WEB-INF/HelloSpring-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [HelloSpringController] for bean with name 'HelloSpringController' defined in ServletContext resource [/WEB-INF/HelloSpring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: HelloSpringController
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)
     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:330)
     org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:266)
     org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:236)
     org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
     javax.servlet.GenericServlet.init(GenericServlet.java:211)
     org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     java.lang.Thread.run(Unknown Source)
root cause
java.lang.ClassNotFoundException: HelloSpringController
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
     org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
     org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:327)
     org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1066)
     org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMatch(AbstractBeanFactory.java:1094)
     org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:354)
     org.springframework.context.support.AbstractApplicationContext.isSingleton(AbstractApplicationContext.java:745)
     org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:255)
     org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandlers(SimpleUrlHandlerMapping.java:125)
     org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initApplicationContext(SimpleUrlHandlerMapping.java:103)
     org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
     org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:304)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1168)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:330)
     org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:266)
     org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:236)
     org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
     javax.servlet.GenericServlet.init(GenericServlet.java:211)
     org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     java.lang.Thread.run(Unknown Source)Can anybody tell me what is am doing wrong .. it will be a greate help...
thanks in advance

vikash_sharma wrote:
Thanks for another quick reply
here is the folder structure of war.
HelloSpring.war
-----------Bin (empty)Wrong. No need for this. Remove it.
------------src/HelloSpringController.javaWrong. Source code doesn't go in WAR.
------------WEB-INF/classes(empty)there's your problem. the HelloSpringController.class has to be in there.
/libWhere are the Spring JARs?
/META-INF
/tldDon't need /tld.
------------welcome.jsp
------------index.jspWhere's your web.xml? Where is the Spring configuration?
You're still blank. Not even close to correct. You don't seem to know Java well enough to tackle this. You will NOT be able to accomplish this by asking questions here. Go back and learn more basics.
%

Similar Messages

  • JDBC help needed ; java.lang.NoClassDefFoundError:test1

    hi, everyone, i had a problem when i run my own app to connect javadb in embedded mode
    i ve added the ~/javadb/lib/derby.jar to CLASSPATH
    and ~/javadb/lib/derby.jar:~/javadb/lib/derbytools.jar to DERBY_HOME
    but there is a problem said my own application class cannot be found.
    here is my code:
    import java.sql.*;
    class test1
      public static void main (String args [])
           throws SQLException
           try {
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
        } catch (Exception e) {
            System.out.println("ERROR: failed to load javadb JDBC driver.");
            e.printStackTrace();
            return;
          Connection conn = DriverManager.getConnection("jdbc:derby:testdb");
      try{
         Statement stmt1 = conn.createStatement();
            ResultSet rset1 = stmt1.executeQuery( "SELECT * FROM PART" );
         long counter1 = 0;
            double price1;
         while ( rset1.next() )
             price1 = rset1.getDouble(8);
             if (price1 == 1306.4)
              counter1++;
         System.out.println( counter1 );
         stmt1.executeQuery("SHUTDOWN");
         conn.close();
       catch (SQLException e )
         String errmsg = e.getMessage();
         System.out.println( errmsg );
    }and i ve followed one Derby JDBC tutorial on the internet,
    * AutoLoadJdbcDriver.java
    * Copyright (c) 2007 by Dr. Herong Yang. All rights reserved.
    import java.sql.*;
    import java.util.*;
    public class AutoLoadJdbcDriver {
      public static void main(String [] args) {
        Connection con = null;
        try {
          listDrivers();
    // Find the driver for a given URL
          Driver driverClass = (Driver) DriverManager.getDriver(
            "jdbc:derby://somehost/somedb");
          System.out.println("\nDriver for jdbc:derby://somehost/somedb");
          System.out.println("   "+driverClass.getClass().getName());
          listDrivers();
        } catch (Exception e) {
          System.err.println("Exception: "+e.getMessage());
      private static void listDrivers() {
        Enumeration driverList = DriverManager.getDrivers();
        System.out.println("\nList of drivers:");
        while (driverList.hasMoreElements()) {
          Driver driverClass = (Driver) driverList.nextElement();
          System.out.println("   "+driverClass.getClass().getName());
    The output below confirms that the DriverManager class is able to load any JDBC driver classes as long as their JAR files are included in the classpath.
    C:\>javac AutoLoadJdbcDriver.java
    C:\>java -cp .;\local\javadb\lib\derbyclient.jar AutoLoadJdbcDriver
    List of drivers:
    sun.jdbc.odbc.JdbcOdbcDriver
    org.apache.derby.jdbc.ClientDriver
    Driver for jdbc:derby://somehost/somedb
    org.apache.derby.jdbc.ClientDriver
    List of drivers:
    sun.jdbc.odbc.JdbcOdbcDriver
    org.apache.derby.jdbc.ClientDriver
    but on my machine , it keep telling me the massage
    Exception in thread "main" java.lang.NoClassDefFoundError: SimpleApp
    Exception in thread "main" java.lang.NoClassDefFoundError: test1
    Exception in thread "main" java.lang.NoClassDefFoundError: AutoLoadJdbcDriver
    the ij works well
    and the other java app(without jdbc) works well.
    anybody can help me to solve this problem?
    Edited by: Xiao on Jan 18, 2008 6:19 PM

    but on my machine , it keep telling me the massage
    Exception in thread "main" java.lang.NoClassDefFoundError: SimpleApp
    Exception in thread "main" java.lang.NoClassDefFoundError: test1
    Exception in thread "main" java.lang.NoClassDefFoundError: AutoLoadJdbcDriverI assume you get these messages when you try and run the three programs mentioned (SimpleApp, test1 and AutoLoadJdbcDriver).
    What commands do you use to do this? What does the command line report the CLASSPATH to be (using the echo command)?
    The simplest cause would be that you have the derby jar mentioned as part of CLASSPATH, but not the current directory.

  • Help:java.lang.ClassNotFoundException

    we have one application.We are calling ejb through applet.
    We have sybase EAServer3.6.1 and jaguar 3.6.1.Java code is in jdk118 and ejb1.0.
    Our architacture is: applet<->ejb<->server.
    Our ejb is deployed on server.That we are calling our ejb through applet.Whole code for applet and ejb is lying on server.When we run our application through browser from different m/c we are getting two errors.
    1)com.ms.security.SecurityExceptionEx.
    2)powersoft.powerj.jaguar.InitialContextException: javax.naming lookup failed for component: HelloEJBPackage/HelloEJB
    Exception: [Root exception is [Root exception is java.lang.ClassNotFoundException: java.rmi.Remote]javax.naming.NamingException]javax.naming.NamingException.
    When I set classpath on each m/c.
    i.e (c:/prog/sybase/shard/sun/jdk118/lib/classes.zip) my application is running fine it just gives warning for securiety not for lookup method failed.
    Our system is in production.We can not make setting for individual clients.We need our applet should take classes from server not from client m/c.
    Can anybody help me to solve this problem?

    If the client is created using powerj, pl cross verify the code for the lookup() in the client with component properties in the jaguar server.
    check the component properties , in the installed packages of the jaguarCTS , under jaguar manager of the sybase central java edition.
    kar

  • Java.lang.ClassNotFoundException when deploy application on Weblogic 10.3

    Hi all, when I deploy an application on Weblogic 10.3 the following error occurs
    the following detail is shown on the summary screen when I deploy the application via control
    An error occurred during activation of changes, please see the log for details.
    weblogic.application.ModuleException:
    com.excellence.exoa.sso.SsoSessionListener
    The deployment has been successfully installed
    the following detail is shown on the log
    Could not load user defined listener: com.excellence.exoa.sso.SsoSessionListener
    java.lang.ClassNotFoundException: com.excellence.exoa.sso.SsoSessionListener
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35)
    at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:117)
    at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:65)
    at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1765)
    at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1126)
    at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
    at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    the following listener is configured in the web.xml
    &lt;listener&gt;
    &lt;listener-class&gt;com.excellence.exoa.sso.SsoSessionListener&lt;/listener-class&gt;
    &lt;/listener&gt;
    and the SsoSessionListener class is packaged in the mainframe.jar. there are two mainframe.jar in this ear, the first which include SsoSessionListener in the souce directory and the other mainfrain.jar which extend the SsoSessionListener is in the ./extend/mainframe.jar
    How can I fix this error ? any suggestion?
    Thanks
    Jayson
    Edited by: Jayson on Feb 12, 2009 3:37 AM
    Edited by: Jayson on Feb 12, 2009 3:54 AM

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

  • 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.

  • Server.xml: Parent Application Tag: java.lang.ClassNotFoundException

    Hi,
    I have 2 EAR´s deployed on an OC4J (10.1.2) Standalone:
    uncomsso - SingleSignOn
    uncomtvv - Main App.
    My server.xml is as follows:
    <application name="uncomsso" path="../applications/singlesignon.ear" />
    <application name="uncomtvv" path="../applications/uncomtvv.ear"
    parent="uncomsso"/>
    I have many jars in the singlesignon.ear/lib that must be shared to uncomtvv.ear.
    I tought that with the parent application tag, this could be possible, but even with the tag on the server.xml, I´m getting java.lang.ClassNotFoundException.
    How can I make the jars on the singlesignon.ear/lib be available to the uncomtvv.ear classes?
    Any clarification will be appreciated,
    Thanks,
    Murilo

    Actually, it seems to search the classes first on the WEB-INF/classes of uncomtvv web module and then, instead of searching the lib directory of uncomtvv EAR, it searches the lib dir of singlesignon EAR and finally the instance classloader...
    Anybody can explain me why it doesn´t look for the classes on the lib dir of the uncomtvv EAR?
    ( The jars in lib dir of uncomtvv.ear are referenced by the MANIFEST.MF of META-INF web-module )
    Thanks,

  • [junit] java.lang.ClassNotFoundException HELP!!!!!!!

    Hello,
    I'm trying to get my project running with my ant build.xml file but i get the following error:
    Buildfile: C:\Users\bmesta\Desktop\workspace\Project2\build.xml
    compile:
    testApplication:
    [echo] Running the junit tests...
    [junit] Testsuite: project2.AllTests
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Null Test:      Caused an ERROR
    [junit] project2.AllTests
    [junit] java.lang.ClassNotFoundException: project2.AllTests
    [junit]      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit]      at java.security.AccessController.doPrivileged(Native Method)
    [junit]      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit]      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    [junit]      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit]      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit]      at java.lang.Class.forName0(Native Method)
    [junit]      at java.lang.Class.forName(Class.java:247)
    [junit]      at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [junit]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [junit]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    [junit] Test project2.AllTests FAILED
    all:
    BUILD SUCCESSFUL
    Total time: 546 milliseconds
    My build file is the following:
    <project name="Project2" default="all" basedir=".">
         <description>
              Simple build file
         </description>     
         <!-- set global properties for this build -->
         <property name="sourceDir" location="src" />
         <property name="testDir" location="test" />
         <property name="junitLocation" value="C:/Program Files/eclipse/plugins/org.junit4_4.3.1/junit.jar" />          
         <path id="classpath">
             <pathelement location="${junitLocation}" />
         </path>     
         <target name="clean-compile-test">
              <delete verbose="false">
                   <fileset dir="${testDir}" includes="**/*.class" />
              </delete>
         </target>     
         <!-- Compile the java code from ${src} -->     
         <target name="compile" description="compile the source" >
              <javac srcdir="${sourceDir}" verbose="false" debug="true"/>
         </target>     
         <target name="testApplication" depends="compile">
              <echo>Running the junit tests...</echo>
              <junit>
                   <classpath refid="classpath" />
                   <formatter type="brief" usefile="false" />
                   <batchtest>
                        <fileset dir="${testDir}" includes="**/*Tests.class" />
                   </batchtest>
              </junit>
         </target>          
         <target name="all" depends="testApplication" />
         <target name="clean" depends="clean-compile-test" />
    </project>          FYI, the structure of my project is the following:
    Project2
    -src
    -project2 [package]
    GSTCalc.java, GSTCalcMain.java, GSTCalcPanel.java, GSTCalcFrame.java
    -test
    -project2 [package]
    GSTCalcTest.java, GSTCalcPanelTest.java, GSTCalcFrameTest.java, and AllTests.java
    I can't fix this problem for some reason it cant find my AllTests class. If you can hel fix this problem I will be so happy. Im so frustrated and I need to get this working. Btw, this is my first build file that i have wrote.
    Cheers,
    BRUNO

    bmesta wrote:
    well i did a tutorial and cut the sections that i need it for my build.xmlWas it necessary to manually alter the _build.xml? Could you not let Eclipse do that using the right options?                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help me with this  one:java.lang.ClassNotFoundException: com.mysql.jdbc.Dri

    compile and build:Successful
    but when I run it...I got this msg:
    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Administrator\Form\build\classes
    compile:
    run:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    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:276)
    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:169)
    at my.form.MyDBConnection.init(MyDBConnection.java:26)
    at my.form.FormUI.<init>(FormUI.java:20)
    at my.form.FormUI$40.run(FormUI.java:1094)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    I use two classes
    FormUI.java and MyDBConnection.java
    * MyDBConnection.java
    package my.form;
    import java.sql.*;
    public class MyDBConnection {
    private Connection myConnection;
    /** Creates a new instance of MyDBConnection */
    public MyDBConnection() {
    public void init(){
    Connection connection = null;
    Statement statement = null;
    try{
    Class.forName("com.mysql.jdbc.Driver");
    myConnection=DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/test,'root' "
    catch(SQLException sqlException){
    sqlException.printStackTrace();
    System.exit(1);
    catch ( ClassNotFoundException classNotFound )
    classNotFound.printStackTrace();
    System.exit(1);
    finally
    try
    statement.close();
    connection.close();
    catch ( Exception exception )
    exception.printStackTrace();
    System.exit( 1 );
    public Connection getMyConnection(){
    return myConnection;
    public void close(ResultSet rs){
    if(rs !=null){
    try{
    rs.close();
    catch(Exception e){}
    public void close(java.sql.Statement stmt){
    if(stmt !=null){
    try{
    stmt.close();
    catch(Exception e){}
    public void destroy(){
    if(myConnection !=null){
    try{
    myConnection.close();
    catch(Exception e){}
    * FormUI.java
    * Created on May 2, 2007, 10:33 AM
    package my.form;
    import java.sql.*;
    * @author Administrator
    public class FormUI extends javax.swing.JFrame {
    /** Creates new form FormUI */
    public FormUI() throws Exception {
    mdbc=new MyDBConnection();
    mdbc.init();
    Connection conn=mdbc.getMyConnection();
    stmt=conn.createStatement();
    initComponents();
    * MyDBConnection.java
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jTextField2 = new javax.swing.JTextField();
    jTextField3 = new javax.swing.JTextField();
    jTextField35 = new javax.swing.JTextField();
    jPanel3 = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    jTextField5 = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextField6 = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTextField7 = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jTextField4 = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    jTextField8 = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    jTextField9 = new javax.swing.JTextField();
    jLabel11 = new javax.swing.JLabel();
    jTextField10 = new javax.swing.JTextField();
    jLabel12 = new javax.swing.JLabel();
    jTextField11 = new javax.swing.JTextField();
    jLabel13 = new javax.swing.JLabel();
    jTextField12 = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextField13 = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    jLabel16 = new javax.swing.JLabel();
    jTextField14 = new javax.swing.JTextField();
    jLabel17 = new javax.swing.JLabel();
    jTextField15 = new javax.swing.JTextField();
    jLabel18 = new javax.swing.JLabel();
    jTextField16 = new javax.swing.JTextField();
    jLabel19 = new javax.swing.JLabel();
    jTextField17 = new javax.swing.JTextField();
    jLabel20 = new javax.swing.JLabel();
    jTextField18 = new javax.swing.JTextField();
    jLabel21 = new javax.swing.JLabel();
    jTextField19 = new javax.swing.JTextField();
    jLabel22 = new javax.swing.JLabel();
    jTextField20 = new javax.swing.JTextField();
    jLabel23 = new javax.swing.JLabel();
    jTextField21 = new javax.swing.JTextField();
    jLabel24 = new javax.swing.JLabel();
    jTextField22 = new javax.swing.JTextField();
    jLabel25 = new javax.swing.JLabel();
    jTextField23 = new javax.swing.JTextField();
    jLabel26 = new javax.swing.JLabel();
    jTextField24 = new javax.swing.JTextField();
    jLabel27 = new javax.swing.JLabel();
    jTextField25 = new javax.swing.JTextField();
    jLabel28 = new javax.swing.JLabel();
    jTextField26 = new javax.swing.JTextField();
    jLabel29 = new javax.swing.JLabel();
    jTextField27 = new javax.swing.JTextField();
    jLabel30 = new javax.swing.JLabel();
    jTextField28 = new javax.swing.JTextField();
    jLabel31 = new javax.swing.JLabel();
    jTextField29 = new javax.swing.JTextField();
    jLabel32 = new javax.swing.JLabel();
    jTextField30 = new javax.swing.JTextField();
    jLabel33 = new javax.swing.JLabel();
    jTextField31 = new javax.swing.JTextField();
    jLabel34 = new javax.swing.JLabel();
    jTextField32 = new javax.swing.JTextField();
    jLabel35 = new javax.swing.JLabel();
    jTextField33 = new javax.swing.JTextField();
    jLabel36 = new javax.swing.JLabel();
    jTextField34 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jLabel37 = new javax.swing.JLabel();
    jLabel38 = new javax.swing.JLabel();
    jTextField37 = new javax.swing.JTextField();
    jTextField36 = new javax.swing.JTextField();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jPanel1.setBackground(new java.awt.Color(204, 255, 204));
    jLabel1.setText("custID");
    jLabel2.setText("PIN");
    jLabel3.setText("Source");
    jLabel4.setText("SaleDate");
    jTextField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField1ActionPerformed(evt);
    jTextField2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField2ActionPerformed(evt);
    jTextField3.setText("SourceHub");
    jTextField3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField3ActionPerformed(evt);
    jTextField35.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField35ActionPerformed(evt);
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addGap(28, 28, 28)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel1)
    .addComponent(jLabel2))
    .addGap(15, 15, 15)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
    .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 88, Short.MAX_VALUE)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addComponent(jLabel3)
    .addComponent(jLabel4))
    .addGap(13, 13, 13)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addComponent(jTextField35)
    .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))
    .addGap(198, 198, 198))
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addGap(21, 21, 21)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel1)
    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel3))
    .addGap(18, 18, 18)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(jLabel2)
    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel4)
    .addComponent(jTextField35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(23, Short.MAX_VALUE))
    jPanel3.setBackground(new java.awt.Color(204, 255, 204));
    jLabel5.setText("First Name");
    jTextField5.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField5ActionPerformed(evt);
    jLabel6.setText("Last Name");
    jTextField6.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField6ActionPerformed(evt);
    jLabel7.setText("Address");
    jTextField7.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField7ActionPerformed(evt);
    jLabel8.setText("City");
    jTextField4.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField4ActionPerformed(evt);
    jLabel9.setText("ZIP");
    jTextField8.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField8ActionPerformed(evt);
    jLabel10.setText("Sales Rep");
    jTextField9.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField9ActionPerformed(evt);
    jLabel11.setText("Phone");
    jTextField10.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField10ActionPerformed(evt);
    jLabel12.setText("Alt Phone");
    jTextField11.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField11ActionPerformed(evt);
    jLabel13.setText("E-Mail");
    jTextField12.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField12ActionPerformed(evt);
    jLabel14.setText("DateofBirth");
    jTextField13.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField13ActionPerformed(evt);
    jPanel2.setBackground(new java.awt.Color(204, 255, 204));
    jLabel16.setText("AnnualAmount");
    jTextField14.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField14ActionPerformed(evt);
    jLabel17.setText("AnnualDay");
    jTextField15.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField15ActionPerformed(evt);
    jLabel18.setText("AnnualMonth");
    jTextField16.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField16ActionPerformed(evt);
    jLabel19.setText("MonthlyAmount");
    jTextField17.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField17ActionPerformed(evt);
    jLabel20.setText("MonthlyDay");
    jTextField18.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField18ActionPerformed(evt);
    jLabel21.setText("MonthlyStatusDate");
    jTextField19.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField19ActionPerformed(evt);
    jLabel22.setText("AnnualStatus2");
    jTextField20.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField20ActionPerformed(evt);
    jLabel23.setText("MonthlyStatus2");
    jTextField21.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField21ActionPerformed(evt);
    jLabel24.setText("Plan");
    jTextField22.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField22ActionPerformed(evt);
    jLabel25.setText("Bonus Gift");
    jTextField23.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField23ActionPerformed(evt);
    jLabel26.setText("AccountType");
    jTextField24.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField24ActionPerformed(evt);
    jLabel27.setText("AbaNumber");
    jTextField25.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField25ActionPerformed(evt);
    jLabel28.setText("AccountNumber");
    jTextField26.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField26ActionPerformed(evt);
    jLabel29.setText("BankName");
    jTextField27.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField27ActionPerformed(evt);
    jLabel30.setText("Verification Number");
    jTextField28.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField28ActionPerformed(evt);
    jLabel31.setText("Upsale1");
    jTextField29.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField29ActionPerformed(evt);
    jLabel32.setText("Upsale2");
    jTextField30.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField30ActionPerformed(evt);
    jLabel33.setText("UP1BillDate");
    jTextField31.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField31ActionPerformed(evt);
    jLabel34.setText("UP2BillDate");
    jTextField32.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField32ActionPerformed(evt);
    jLabel35.setText("Date-Time");
    jTextField33.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField33ActionPerformed(evt);
    jLabel36.setText("Notes");
    jTextField34.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField34ActionPerformed(evt);
    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addContainerGap()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel16)
    .addComponent(jLabel19)
    .addComponent(jLabel22)))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGap(34, 34, 34)
    .addComponent(jLabel24))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jLabel26))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGap(23, 23, 23)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel29)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGap(2, 2, 2)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addComponent(jLabel31)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel35)
    .addComponent(jLabel33)))))))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addComponent(jTextField24)
    .addComponent(jTextField22)
    .addComponent(jTextField20)
    .addComponent(jTextField17)
    .addComponent(jTextField14, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel17)
    .addComponent(jLabel20))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addComponent(jTextField18)
    .addComponent(jTextField15, javax.swing.GroupLayout.DEFAULT_SIZE, 73, Short.MAX_VALUE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addComponent(jLabel18)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addComponent(jLabel21)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addComponent(jLabel27)
    .addComponent(jLabel25)
    .addComponent(jLabel23))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addComponent(jTextField25)
    .addComponent(jTextField23)
    .addComponent(jTextField21, javax.swing.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addComponent(jLabel28)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jTextField26))))))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
    .addComponent(jTextField31, javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jTextField29, javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jTextField27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE))
    .addGap(21, 21, 21)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel30)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
    .addComponent(jLabel34)
    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addGap(14, 14, 14)
    .addComponent(jTextField34, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jTextField32, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))))
    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
    .addComponent(jLabel32)
    .addGap(20, 20, 20)
    .addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))))
    .addGroup(jPanel2Layout.createSequentialGroup()
    .addComponent(jTextField33, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(27, 27, 27)
    .addComponent(jLabel36)))
    .addGap(113, 11

    I am not sure what is the driver for mysql. I just came across the similar kind of problem in the forum and I have given the forum link below. Check if you have the file and then set the classpath.
    [Hyperlinks] http://forum.java.sun.com/thread.jspa?threadID=522873&messageID=2503366
    [HyperLinks]

  • Error : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    Hi,
    I am writing an application and am trying to open a connection to Oracle database that is on a server. I am using the following test code to check if it connects to the database.
    import java.sql.*;
    class dbAccess {
      public static void main (String args []) throws SQLException
            String DBurl = "jdbc:oracle:thin:@local:1522:DBORA";
            String user = "test";
            String pwd = "test123";
            Class.forName("oracle.jdbc.driver.OracleDriver");
            con = DriverManager.getConnection(DBurl, user, pwd);
    }On running the above program I keep on getting the following error:
    Error : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    java.lang.NullPointerException
    If I open the connection using JDeveloper wizard I can see the DB. But if running the above program in the JDev, JCreator or commandline keep on getting the error. Any help is appreciated. Thanks

    How do I set the path for the Oracle Driver. ThanksI dunno. You're supposed to know where that class is (what jar it lives in). You set it up in JDeveloper in the first place, so you must have known where it is. After you know that, it's up to you to figure out how JCreator projects are set up to include jars in a project (just like JDeveloper projects do). For the command-line way, you set the classpath on the command-line arguments:
    java -cp (your classpath here, which must include the jars it needs) ...

  • 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

  • EJB Module deployed but encounters java.lang.ClassNotFoundException

    Hi. I have successfully deployed my ejb in Weblogic 8.1 but I get still get the java.lang.ClassNotFoundException when I invoke the bean. The application will work only if i include the jar in the classpath in the startweblogic.cmd. However, this option displays the warning
    <i><Warning> <EJB> <BEA-010001> <While deploying
    EJB 'XXXBean', class XXXBeanHome was loaded from the system classpath. As a result, this class cannot be re
    loaded while the server is running. To prevent this behavior in the future, make
    sure the class is not located in the server classpath.>
    .</i>
    Is there something I forgot to configure in weblogic so I dont need to include the jar in the classpath? So I can also reload the jar while the server is running.
    Any help is highly appreciated

    I'll need more information to help you debug the ClassNotFoundException.
    Can you show me the error message? And where is the class that it cannot find located?
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Java.lang.ClassNotFoundException: oracle/webdb/provider/v2/adapter/soapV1/ProviderAda

    i am using tutorial "Building Java Portlets Using Oracle9i JDeveloper"
    from: "http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/BUILD.JAVA.PORTLETS.USING.JDEVELOPER.V2.HTML "
    I recieve following error when i try to run this command in browser like:
    http://host.domain/<application>/providers
    java.lang.ClassNotFoundException: oracle/webdb/provider/v2/adapter/soapV1/ProviderAdapter
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.locateService(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    i think the problem is in the _default.properties file either container fail to initialize that file. Is there any solution to that problem or there is some other way to solve this problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Usman,
    If you have installed JPDKv2 properly, all the samples would be deployed automatically & _default.properties file is created
    in %PDKHOME%\home\applications\jpdk\jpdk\WEB-INF\deployment.
    A Sample _default.properties file would look like
    serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
    loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
    showTestPage=true
    definition=providers/sample/provider.xml
    autoReload=true
    Going through the exception it seems that the _default.properties file is there, hence it is able to read the serviceClass (first line from it)
    ProviderAdapter.class file is in pdkjava.jar which resides at %PDKHOME%\home\applications\jpdk\jpdk\WEB-INF\lib
    I think you need to see if you have this class file in the pdkjava.jar .
    Thanks & Regards,
    Abhinav

  • Java.lang.ClassNotFoundException: COM.cloudscape.core.JDBCDriver

    O/S: Windows XP Pro
    Software: j2sdk1.4.1_01, j2sdkee1.4
    1/ First Problem:
    when I read the book, it's said that I need to add the J2EE JAR files to the CLASSPATH variable:
    %J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale
    (the locale JAT file is not under the lib directory. Where is it located at?)
    2/ Second Problem:
    I have a Java program called CreateAgency.java and a batch file called CreateAgency.bat. The batch looks like
    @echo off
    call %J2EE_HOME%\bin\setenv
    @echo on
    java -classpath .;%CPATH% CreateAgency
    When I run the batch file to create a cloudscape database, I encounter 2 errors:
    * call %J2EE_HOME%\bin\setenv is not recognized as an internal or external command
    * java.lang.ClassNotFoundException: COM.cloudscape.core.JDBCDriver
    What's the setenv file? Where is it stored?
    Where is JDBCDriver loated at?
    In general, how can I fix these problems?

    I Figured it out!!!
    my solution to problem 1
    I have left out the ;%J2EE_HOME%\lib\locale in my classpath. I also do not have this folder, and I don't know what it is supposed to do. I don't think it will cause a problem if you leave it out.
    my solution for problem 2.
    I was able to get the CreateAgency Program to run.
    If you want to get the create agency application to run then all you have to do is append the location of cloudscape.jar to the classpath.
    On my system I have cloudscape.jar file located in
    %J2EE_HOME%\lib\system\cloudscape.jar
    Append this line to the classpath. Then compile and run CreateAgency.java. It should work fine then.
    Setenv is a bat file that should be stored in %J2EE_HOME%\bin\setenv. I do not have the setenv.bat file, so I get the same error.

  • Java.lang.ClassNotFoundException: oracle.j2ee.ws.server.WSForwardServlet

    Hi,
    I created a simple ADF BC Service with Jdeveloper and I am trying to deploy it to weblogic server in my soa setup.While deploying the application I am getting the below exception in the console:
    JDeveloper Version: Studio Edition Version 11.1.1.5.0 (Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013)
    Console output:
    ==========
    [11:33:42 AM] ---- Deployment started. ----
    [11:33:42 AM] Target platform is (Weblogic 10.3).
    [11:34:20 AM] Retrieving existing application information
    [11:34:22 AM] Running dependency analysis...
    [11:34:22 AM] Building...
    [11:34:22 AM] Deploying 3 profiles...
    [11:34:22 AM] Wrote Archive Module to /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/Project1/deploy/bcProfile1_Common.jar
    [11:34:22 AM] Wrote EJB Module to /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/Project1/deploy/bcProfile1_MiddleTier.jar
    [11:34:23 AM] Wrote Enterprise Application Module to /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/deploy/Project1_bcProfile1.ear
    [11:34:23 AM] /space/Sreekanth/Oracle/Middleware/jdk160_24/jre/bin/java -client -jar /space/Sreekanth/Oracle/Middleware/jdeveloper/../oracle_common/modules/oracle.webservices_11.1.1/wsa.jar -jaxwsEjbAssemble -input /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/deploy/Project1_bcProfile1.ear -output /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/deploy/tmp -classpath /space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adfsharembean.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/bc4j-mbeans.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/bc4jwizard.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/groovy-all-1.6.3.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/db-ca.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.ldap_11.1.1/ojmisc.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.javatools_11.1.1/resourcebundle.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.activation_1.1.0.0_1-1.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.mail_1.1.0.0_1-4-1.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adftransactionsdt.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.view_11.1.1/adf-dt-at-rt.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adfdt_common.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adflibrary.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.security_11.1.1/adf-share-security.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.security_11.1.1/adf-controller-security.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.mds_11.1.1/oramds.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.servlet_1.0.0.0_2-5.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.jsp_1.2.0.0_2-1.jar:/space/Sreekanth/Oracle/Middleware/jdeveloper/ide/macros/../../../wlserver_10.3/server/lib/ojdbc6.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/jlib/commons-cli-1.0.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.bali.share_11.1.1/share.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.xmlef_11.1.1/xmlef.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.dms_11.1.1/dms.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.xdk_11.1.0/xml.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.javacache_11.1.1/cache.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.ucp_11.1.0.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.javatools_11.1.1/javatools-nodeps.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.management_1.2.1.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.management.j2ee_1.0.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.ldap_11.1.1/ldapjclnt11.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-common.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-ee.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-unsupported-api.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-manifest.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jacc-spi.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.pki_11.1.1/oraclepki.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.osdt_11.1.1/osdt_core.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.osdt_11.1.1/osdt_cert.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.osdt_11.1.1/osdt_xmlsec.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.osdt_11.1.1/osdt_ws_sx.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.iau_11.1.1/fmw_audit.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.security.jacc_1.0.0.0_1-1.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/commonj.sdo_2.1.0.jar:/space/Sreekanth/Oracle/Middleware/modules/org.eclipse.persistence_1.1.0.0_2-1.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar:/space/Sreekanth/Oracle/Middleware/oracle_common/modules/oracle.web-common_11.1.1.jar:/space/Sreekanth/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/space/Sreekanth/Oracle/Middleware/modules/javax.ejb_3.0.1.jar -createSchemaMappings -ear /home/sreekanth/jdeveloper/mywork/ADF-BC-Application1/deploy/Project1_bcProfile1.ear -servletFilterClass oracle.jbo.server.svc.ServiceContextFilter
    [11:34:24 AM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
    [11:34:24 AM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
    [11:34:24 AM] INFO: GenericWSWarAnnotationListener.parseAnnotatedClass Adding Servlet Mapping with URL pattern /AppModuleService for annotated WebService class project1.server.serviceinterface.AppModuleServiceImpl
    [11:34:24 AM] WSA process exited with code 0.
    [11:34:36 AM] Deploying Application...
    [11:34:54 AM] [Deployer:149193]Operation 'deploy' on application 'Project1_bcProfile1' has failed on 'AdminServer'
    [11:34:54 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application Project1_bcProfile1 on AdminServer.: Failed to load webapp: 'ADF-BC-Application1-Project1-context-root'.
    [11:34:58 AM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'ADF-BC-Application1-Project1-context-root'
    [11:34:58 AM] Caused by: java.lang.ClassNotFoundException: oracle.j2ee.ws.server.WSForwardServlet
    [11:34:58 AM] See server logs or server console for more details.
    [11:34:58 AM] weblogic.application.ModuleException: Failed to load webapp: 'ADF-BC-Application1-Project1-context-root'
    [11:35:00 AM] #### Deployment incomplete. ####
    [11:35:00 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    can some one help If I have to add something to classpath or install any additional plugins.
    Thanks
    Sreekanth

    For sure you are missing a library as the 'Caused by: java.lang.ClassNotFoundException: oracle.j2ee.ws.server.WSForwardServlet' error tells.
    You can use 'Tools'->'Manage Libraries' and paste the class name into the search field, search for it and see all libraries which contain the missing class. Add this (one of them) to the projects libs and it should work.
    Make sure you deploy to a server which is set up with the correct adf runtime libs (11.1.1.5.0 means you need a WLS 10.3.5 server).
    Timo

  • Java.lang.ClassNotFoundException WLS 8.1 sp3

    Hi
    trying to deploy a .war into weblogic which it says deploys successfully. However, upon accessing the application the following error occurs...
    I read that it may be 3rd party jars within the WEB-INF\lib of the .war may have some conflict with weblogic? this .war file was deployed successfully in a tomcat environment
    can anyone help
    thanks
    Josh
    ####<Oct 5, 2006 3:03:10 PM SGT> <Error> <HTTP> <austin50> <prtsServer> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101017> <[ServletContext(id=6381419,name=online,context-path=/online)] Root cause of ServletException.
    wicket.WicketRuntimeException: Unable to create application of class com.online.web.login.StartApplication
    at wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:68)
    at wicket.protocol.http.WicketServlet.init(WicketServlet.java:270)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.online.web.login.StartApplication'
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:186)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    at wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:53)
    ... 18 more
    Caused by: java.lang.UnsupportedClassVersionError: com/online/web/login/StartApplication (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)
    ... 24 more

    1) sorry, there is no official solution of "1999 schema" problem that I know of.
    2) if the service is not changed, there is no need to re-create call or stub object for every invocation.

Maybe you are looking for

  • How to format an external HD with Mountain Lion ?

    I am trying to format a brand new 3TB extrnal drive to Mac OS Extended using Disk Utility under Mountain Lion, so I can hook up my Stardom Safe Capsule to my Time Capsule and increase its storage capacity. I am getting the same error every time: "Wip

  • Ora-04030 out of process memory

    Hai All, My database is oracle 9i(9.2.0.1.0)in AIX when I run one query from my oracle developer suite session then 'ora-04030 out of process memory error when trying to allocate 38424 bytes (hash-join subh,klcqc:kllcqslt)' This same query when I run

  • Lightroom 2.1 Opens with card inserted to card reader

    Lightroom 2.1 opens whenever a card is inserted to the card reader. The fix provided for Lightroom 1 does not work (run/msconfig/startup/uncheck apdproxy). What is the fix for 2.1? I looked and did not see it. It is so frustrating that if not able to

  • Graphic vs. movie clip

    I'm trying to transition from putting my code in the timeline to putting code in an external ActionScript file. What I'm trying to do is take a graphic from the library and  addChild like I would with a movie clip.  Only the 'Export for ActionScript'

  • HT3275 TIme Machine deleting files I deleted from my home drive

    This seems like a very basic problem but I cant find an answer and am no longer able to use Apple Support.  I am trying to erase files from my very crowded home drive.  I bought an external drive and backed up all fikles there.  However, now when I d