How can I resolve java.lang.NoClassDefFoundError?

I am new to Java and have installed it on my Linux Ubuntu 9.04 workstation in order to learn Java. Basic Java programs work, but I am having trouble connecting to a MySQL database. I installed these packages using Synaptic Package Manager, which I thought should cover everything I need for database connectivity: 1.gsfonts-x11; 2.java-common; 3.odbcinst1debian1; 4.sun-java6-bin; 5.sun-java6-jdk; 6.sun-java6-jre; 7.unixodbc.
After these packages were installed, I was not sure if I needed to do this, but I downloaded the MySQL connector from http://www.mysql.com/products/connector/ and installed in a directory called /home/mark/mysql/.
I edited /etc/environment" and added a CLASSPATH to where I installed the connector:
{code}CLASSPATH="/home/mark/mysql/mysql-connector-java-5.1.7/mysql-connector-java-5.1.7-bin.jar"
{code}
I created a very simple Java program based on one I found on the internet. I named the program Jdbctest to test the connection,
{code}import java.sql.*;
public class Jdbctest {
public static void main(String[] args){
System.out.println("running Jdbctest.java");
try {
Statement stmt;
//Register the JDBC driver for MySQL.
Class.forName("com.mysql.jdbc.Driver");
//Define URL of database server for database named mysql
// on the localhost with the default port number 3306.
String url = "jdbc:mysql://localhost:3306/mysql";
//Get a connection to the database for a
// user named root with password carrot.
// This user is the default administrator
// having full privileges to do anything.
Connection con = DriverManager.getConnection(url,"root", "carrot");
//Display URL and connection information
System.out.println("URL: " + url);
System.out.println("Connection: " + con);
//Get a Statement object
stmt = con.createStatement();
//Select from a table
stmt.executeQuery("SELECT host, user FROM mysql.user ");
con.close();
}catch( Exception e ) {
e.printStackTrace();
}//end catch
}//end main
}//end class Jdbctest{code}
but I get this error:
{code}Exception in thread "main" java.lang.NoClassDefFoundError: Jdbctest
Caused by: java.lang.ClassNotFoundException: Jdbctest
     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:307)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Jdbctest. Program will exit.{code}
I don't really understand what this error message is telling me. I've Googled for an explanation, and it seems to indicate that my CLASSPATH is wrong, but I'm not sure what it should be and how to fix it. Any assistance would be greatly appreciated.

Your class JdcbTest isn't in that JAR, is it? So you need the CLASSPATH to also specify where that is. Typical CLASSPATHs start with a dot and then some jars.

Similar Messages

  • Can't resolve java.lang.System.out

    Hi,develpoers:
    Does anyone know how to fix this problem:
    C:\cai\VCTest\robo-sdk\build\sun\robot\vision\Search1.java:57: cannot resolve symbol
    symbol : variable out
    location: class java.lang.System
    System.out.println("Look returned null VisionImage");
    I don't know why this error occured because this application ran well last day.
    Thanks in advance!
    Cai

    But there is no other variable named "System". All the fields of "System" cannot be used but System.exit(1)can work. And all the methods of String like trim()can not work. Below is the codes:
    package sun.robot.vision;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import SK.gnome.twain.*;
    import sun.robot.vision.*;
    import java.lang.System;
    import java.io.*;
    public class Search1
    public Search1() {
    public void searchPuck(String colourString) {
    Image i;
    boolean found = false;
    VisionImage image = null;
    byte colour = VisionImage.NO_COLOUR;
    if (colourString.equals("red"))
    colour = VisionImage.RED;
    if (colourString.equals("blue"))
    colour = VisionImage.BLUE;
    if (colour == VisionImage.NO_COLOUR) {
    System.out.println("Invalid colour. Must be one of red or blue");
    System.exit(1);
    while (!found) {
    TwainSource source = null;
    /* grab an image from the camera */
    try {
              try{      source=TwainManager.getDefaultSource();}catch(Exception e){}
                   i=Toolkit.getDefaultToolkit().createImage(source);
              image = new VisionImage(i);          
              if (image == null) {
    System.out.println("Look returned null VisionImage");//here got the error
    System.exit(1);
    } catch (VisionException ve) {
    // System.out.println("Unable to look");
    // System.out.println(ve.getMessage());
    System.exit(1);
    image.setDebugLevel(2);
    if (image.canYouSee(colour) == false){}
    //do nothing
    else
    found = true;
    VisionObject puck = image.getVisionObject(colour);
    if (puck == null) {
    // System.out.println("Internal Error: ball is null object");
    System.exit(1);
    /* Print a message to tell the user that we've found the ball and
    * where it is relative to the robot
    StringBuffer saw = new StringBuffer("I see the ball " );
              StringBuffer size = new StringBuffer( );
    if (puck != null) {
    int pos = puck.getPosition();
    switch (pos) {
    case VisionObject.LEFT:
    saw.append("to the left of the robot");
    break;
    case VisionObject.CENTRE:
    saw.append("in front of the robot");
    break;
    case VisionObject.RIGHT:
    saw.append("to the right of the robot");
    break;
              size.append(image.getHeight()+","+image.getWidth());
    // System.out.println(size.toString());
    // System.out.println(saw.toString());
    Point c = puck.getCentre();
    mc.send(3);
    //System.exit(0);
    public static void main(String[] args) {
    if (args.length < 1) {
    //System.out.println("Usage: Fetch <ball_colour>");
    System.exit(1);
    //System.out.println("it is me");
    // String colourString = args[0].toLowerCase();
         String colourString = args[0];
         colourString= colourString.trim();//trim cannot work
    Search1 f = new Search1();
    f.searchPuck(colourString);
    Any help will be highly approciated.
    Cai

  • How can I called java.lang.Math.sqr function from PL/SQL?

    JVM is loaded and I've queried the system table showing there are more than 9000 JAVA class objects.
    When I try something like:
    select java.lang.Math.sqrt(9) from dual;
    I get ORA-00904 (invalid column name) error. How can I invoke standard java.lang.Math methods in PL/SQL?
    tia

    You need to write a PL/SQL wrapper for the java call.
    Then you just call the PL/SQL function..
    -------PL/SQL wrapper
    FUNCTION GetFullName( code varchar2) RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'ResponseXml.GetPersonFullName(java.lang.String) return java.lang.String';
    Now you can do
    Select GetFullName( 'mycous' ) from dual;

  • Can't get by Exception in thread "main" java.lang.NoClassDefFoundError:

    With the help of someone on the Forum, I resolved the class reference that was giving me fits. But I'm still getting
    Exception in thread "main" java.lang.NoClassDefFoundError: jform_example
    This is all the information that I get. It compiles and runs from SunOne IDE, but not from command line. What Class reference or whatever am I missing? I don't know that my environment variables are correct. I've tried to find a comprehensive list of steps to do so, but without success. So I've been winging it.
    What information should I provide that will help you help me. I'm spending WAY to much time on this issue.
    Help!
    Gary

    This error occurs when the java.exe program can not find the class whose name was specified on the command line. Note that the argument to java.exe is the class name not a file name. java.exe tried to find a file whose name is jform_example.class. It searched the directories that were in your system's Classpath environment variable at the time of command execution. It didn't find the file.
    So the file jform_example.class must exist, must be named exactly as specified (java is case sensitive so Jform_Example won't work), the source code must not start with a package statement (a package statement means the class name is package_name.jform_example), and the jform_example.class must be in a directory that's in your Classpath.
    Try to CD to the directory where jform_example.class is located and use the command "java -classpath . jform_example" This uses the current directory as the Classpath during execution.

  • Installed yosemite. CS5 no longer workers. Error message about Java SE 6. But SE 6 doesn't seem to have a MAC version. How can I resolve?

    Installed Yosemite on my Mac. CS5 no longer workers. When I try to open Photoshop, I get an error message about needing a Java SE 6. This is different from the other Java update Yosemite required (I already installed that). I assumed the higher update would suffice for previous versions, but I guess it doesn't work that way. Went over to the Java site, but SE 6 doesn't seem to have a MAC version. How can I resolve this?

    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Mylenium

  • Can't Run Java Programs -- java.lang.NoClassDefFoundError Error

    I am running 10.4.11. For some reason I can no longer run Java programs. (I could in the past)
    For example. I create a simple Hello World program as follows and save it as Hello.java:
    class HelloWorld
    public static void main (String args[])
    System.out.println("Hello, world!");
    Then I compile it:
    Javac Hello.java
    Then I try to run it:
    java Hello
    But I get this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Hello
    I think it must be a CLASSPATH problem but normally you do not need to worry about ClassPATH. Apple sets it up for you out of the box.
    What is wrong?

    I totally forgot that the class name should be the same as the filename.
    After I renamed the file to HelloWorld.java and recompiled, I could run "java HelloWorld"
    Rob

  • I am getting the following error: Unable to locate class: java.lang.NoClassDefFoundError: on an iPlanet WS. We have ensured that the classpath in jvm12.conf includes the jar file with path. Any ideas?

     

    Well, now I'm pulling my hair out even more because I can't get it to resolve anything in jaxws-rt.jar at runtime. Note: compile-time still works FINE.
    I was messing with classpaths and stuff (and the endorsed dirs option of course) and it was "working" to the extent I had posted before, but then I kept playing with it and at some point I said, this isn't working and I need to reset all this stuff back to the way it was.
    ... so I did that. And now it won't resolve "PolicyException:"
    java.lang.NoClassDefFoundError: com/sun/xml/ws/policy/PolicyException
    This doesn't mean anything to you guys I bet, but that happens when it FIRST gets inside the web service code, which references PolicyException (doesn't even use it at that point.. I'm assuming the import is screwing it up when it's in the constructor). So now it won't resolve at all. Before, it was getting past this point and telling me the "method not found" error on the next line or this same error for WSBindingProvider two lines down, when it's actually being used. AWESOME.
    I downloaded the latest jaxws-rt.jar and all its dependencies, shoved that into my lib folder, and set the endorsed dir to that folder (There's kind of a web of dependencies here. jaxws-rt.jar expects all its dependencies to be in the same folder, it seems, so I don't know how it was "working" before when I just copied jaxws-rt.jar into my separate endorsed dir - but I can't move all of those files to endorsed because I need them in my project (which expects them to be in the lib folder)). What happened? It went back to my original "String" error (first error in the first post), which means it's not getting endorsed at all from that location.
    What a mess.
    Can someone tell me what the heck I'm supposed to do with this jar file?

  • Error Launching BPEL Console - java.lang.NoClassDefFoundError

    Hi All,
    After Installed standard SOA Basic install
    I am able to launch the below consoles
    - Application Server
    - ESB
    - Rules Author
    - Web Services Manager
    but when i launch the BPEL console i get the below error
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 10.1.3.1.0
    Build: 0
    Build time: Mon Oct 09 08:44:49 PDT 2006
    Build type: release
    Source tag: PCBPEL_10.1.3.1.0_GENERIC_061009.0802
    Exception Message:
    [java.lang.NoClassDefFoundError]
    org/apache/log4j/Category
    Exception Trace:
    java.lang.NoClassDefFoundError: org/apache/log4j/Category
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
         at java.lang.Class.getConstructor0(Class.java:2640)
         at java.lang.Class.getConstructor(Class.java:1629)
         at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
         at org.collaxa.thirdparty.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
         at org.collaxa.thirdparty.apache.axis.encoding.TypeMappingImpl.(TypeMappingImpl.java:68)
         at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTypes(TypeSoapRegistry.java:251)
         at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegistry.java:79)
         at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:126)
         at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:613)
         at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:474)
         at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:1111)
         at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.java:924)
         at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:111)
         at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:254)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServerBean_RemoteProxy_4bin6i8.init(Unknown Source)
         at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:60)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
         at com.evermind.server.http.HttpApplication.(HttpApplication.java:738)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
         at com.evermind.server.Application.getHttpApplication(Application.java:545)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2450)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:998)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    any pointers in how to resolve the issue or what is causing it ?
    thanks

    one way of overcoming the error is to include the below entry in server.xml
    <code-source path="D:\product\10.1.3.1\OracleAS_1\bpel/lib/orabpel-thirdparty.jar"/>

  • Java.lang.NoClassDefFoundError: while starting Integration Builder!

    Hello experts,
    I was working on IR absolutely fine. The connection went off and I tried to log in to IB again. It gave me locking error when I was trying to edit any object. So the BASIS guy stopped the XI server and tried to make it up again.
    After that when I am trying to open Integration builder, its giving me the following error:
    "Application error occurred during request processing.
      Details:   java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
    Exception id: [000D604D0DA7005D00000019001FC08E0004424566F0368A]"
    Neither me nor my BASIS guy are having any idea why this error is comming all of a sudden when everything was working absolutely fine.
    Can anyone please help me in resolving this issue as this is very critical?
    Thanks in advance.
    Regards,
    Yash

    Hi Matias,
    We tried all possible ways like restarting the workstation and the server. Infact only after we stoped the server and tried to put it up, this problem started coming. It was working fine perviously. We are trying all possible ways to reslove it but till now no major success. It is really hampering my development schedule.
    I will ask my BASIS guy to check the management console. Even I tried to see what was the error in the XI administrator login and i found that many of the services (under Admistration - Application) are either in status "Stopped" or "Implicit_Stopped" and when we try to start them, they dont get started!! One of the application among them is also tcslmslmapp! How can that be started?
    Will thsi problem impact on all the developments i have done till now?
    Also the detail error trace which i get when starting IB is:
    "Message
    java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
    Stacktrace
    Thrown:
    java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:130)
    at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
    at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:442)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
    at jsp_Main1197871112880._jspService(jsp_Main1197871112880.java:21)
    at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
    at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
    at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    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(AccessController.java:215)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Unable to establish connection to JMS server
    at com.sap.aii.ib.server.notification.MessageReceiverFactory.(MessageReceiverFactory.java:95)
    at com.sap.aii.ib.server.notification.MessageReceiverFactory.(MessageReceiverFactory.java:51)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
    at com.sap.aii.ib.server.transport.impl.service.InternalTransportServiceImpl.(InternalTransportServiceImpl.java:106)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:157)
    at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
    at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:442)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
    at jsp_Header1197871112637._jspService(jsp_Header1197871112637.java:16)
    ... 18 more"
    If you can provide me your mail id, i can even mail you the defaulttrace file!
    Please help!
    Regards,
    Yash

  • Exception in thread "main" java.lang.NoClassDefFoundError: oracle/i18n/text

    Hi All
    I am using XSLT transformation in JDeveloper with the following code but getting exception. How to avoid using Oracle XSLT processor which looks incomplete ?
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer;
    try {
    result =
    new StreamResult(new OutputStreamWriter(new FileOutputStream(output),
    "UTF-8"));
    transformer = factory.newTransformer(XSLTFile);
    transformer.transform(inputXML, result);
    } catch (TransformerException e) {
    e.printStackTrace();
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    Code runs fine but throws exception when there is any XPath expression in the XSLT file such as
    /ns:root/sa:node[@name='attribName']
    It does not show exception for simple expressions like "/ns:root/sa:node"
    Exception is
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/i18n/text/OraCollator
    at oracle.xml.xqxp.functions.builtIns.FNUtil.getCollator(FNUtil.java:355)
    at oracle.xml.xqxp.datamodel.OXMLItem.compareValue(OXMLItem.java:1080)
    at oracle.xml.xpath.XPathItem.compareValue(XPathItem.java:409)
    at oracle.xml.xpath.XPathSequence.compareGeneral(XPathSequence.java:1477)
    at oracle.xml.xpath.ComparisonExpr.evaluate(XSLExpr.java:1507)
    at oracle.xml.xpath.XPathPredicate.filter(XPathPredicate.java:264)
    at oracle.xml.xpath.XPathChildAxis.getNodeList(XPathAxis.java:580)
    at oracle.xml.xpath.XPathStep.evaluate(XPathStep.java:555)
    at oracle.xml.xpath.PathExpr.evaluate(XSLNodeSetExpr.java:859)
    at oracle.xml.xpath.XSLExprBase.streamingEvaluate(XSLExprBase.java:392)
    at oracle.xml.xslt.XSLForEach.processAction(XSLForEach.java:135)
    at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:497)
    at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
    at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:585)
    at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:332)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:485)
    PS. my XSLT version is <?xml version="1.0" , can't make it to 2.0 as Jdeveloper (11.1.1.5.0) throws error during compilation.

    The exception got resolved by the library orai18n-collation.jar in the directory "Oracle\Middleware\oracle_common\modules\oracle.nlsrtl_11.1.0"
    However I wanted to completely avoid Oracle V2 Parser as it was working in a fresh project where only standard import javax.xml.transform.Transformer was available.

  • Java.lang.NoClassDefFoundError: jxl/format/CellFormat

    hi Experts,
    i m trying Excel export and import functionality for this i m using jxl.jar  ,but when i m deploying my application i m getting java.lang.NoClassDefFoundError: jxl/format/CellFormat
    how to resolve this problem.

    Hi,
    it depends whether you are using JDI or not. If you use JDI, you only have to create an External Library DC and add the jxl.jar per Drap&Drop in Navigation panel to the DC. Add the file also to the public part. In the Web Dynpro DC add the External Library DC as used DC and deploy both DCs on the server.
    The only error you can make is to deploy the components using "Deploy new archive and run..." -> this command won't deploy the jar and you have the same result as now. You have do build & deploy it step-by-step (Development Component -> Build..., Development Component -> Deploy).
    If you don't use JDI, perform like described by Lakshmi.
    Regards,
    Martin

  • Java.lang.NoClassDefFoundError: com/sap/tc/logging/Configurator

    I have installed this NWDS 2.0.12. When I click on the icon from desktop, I see a splash screen for a second and then immediately an error message saying 'Problem during startup. Check the .log file in .metadata folder of your workspace.'
    Following is the log file
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Jun 29, 2006 16:09:37.302
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Configurator
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.getConstructor(Class.java:1027)
         at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:709)
         at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
         at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
         at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:485)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:130)
         at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167)
         at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103)
         at org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:784)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Can somebody help me to resolve this? What should be the potential cause for the error?

    java.lang.NoClassDefFoundError: <b>com/sap/tc/logging/Configurator</b>
    Either a missing jar or the classpath is not defined right.

  • Java.lang.NoClassDefFoundError at oracle.xml.parser.v2.NonValidatingParser

    Hi All,
    While accessing the JPDK provider URL that is integrated with PeopleSoft application, I am getting the following error
    500 Internal Server Error
    java.lang.NoClassDefFoundError at oracle.xml.parser.v2.NonValidatingParser.(NonValidatingParser.java:172) at oracle.xml.parser.v2.XMLParser.(XMLParser.java:174) at oracle.xml.parser.v2.DOMParser.(DOMParser.java:92) at oracle.portal.utils.xml.v2.XMLUtil.getParser(Unknown Source) at oracle.portal.utils.xml.v2.XMLUtil.parseDocument(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.parseRegistry(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.validate(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.validate(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at oracle.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:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at com.peoplesoft.pt.portlet.jpdk.provider.PSProviderFilter.doFilter(PSProviderFilter.java:78) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at com.peoplesoft.pt.portlet.logging.DynamicFilter.doFilter(DynamicFilter.java:83) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
    As our application uses AXIS to do WebServices, we have removed the default oracle xml shared library by using remove-inherited in orion-application.xml. In addition, we package our own xerces in our application ear file. It looks like PDK is looking for oracle xml parser resulting in the NoClassDefFoundError exception.
    The above exception is thrown if I access the JDPK provider URL after accessing our application.
    However, if I restart the OC4J and ccess the JPDK provider URL without accessing our application, I get the following error
    500 Internal Server Error
    oracle.classloader.util.AnnotatedLinkageError: class oracle.xml.parser.schema.XSDNode cannot access its superinterface oracle.xml.parser.schema.XSDComponent Invalid class: oracle.xml.parser.schema.XSDNode Loader: oracle.cache:10.1.3 Code-Source: /D:/Oracle/OAS101310/OracleAS_1/LIB/xschema.jar Configuration: (ignore manifest Class-Path) in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar Dependent class: oracle.xml.parser.v2.XMLNode Loader: PeopleSoft2.web.pspc:0.0.0 Code-Source: /D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar Configuration: WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java:1462) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:167) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy.loadClass (SearchPolicy.java:645) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass (SearchPolicy.java:396) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1674) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06] at oracle.xml.parser.v2.XMLNode. (XMLNode.java:4123) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.NonValidatingParser. (NonValidatingParser.java:172) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.XMLParser. (XMLParser.java:174) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.DOMParser. (DOMParser.java:92) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.utils.xml.v2.XMLUtil.getParser (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/ptlshare.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.utils.xml.v2.XMLUtil.parseDocument (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/ptlshare.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.parseRegistry (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.validate (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.validate (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown, by unknown] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [unknown, by unknown] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [unknown, by unknown] at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknown] at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.SOAPServlet.service (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at javax.servlet.http.HttpServlet.service (HttpServlet.java:856) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/servlet.jar (from (ignore manifest Class-Path) in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by api:1.4.0] at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:64) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.peoplesoft.pt.portlet.jpdk.provider.PSProviderFilter.doFilter (PSProviderFilter.java:78) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/classes/ (from WEB-INF/classes/ in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\classes), by PeopleSoft2.web.pspc:0.0.0] at com.evermind.server.http.EvermindFilterChain.doFilter (EvermindFilterChain.java:15) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.peoplesoft.pt.portlet.logging.DynamicFilter.doFilter (DynamicFilter.java:83) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/classes/ (from WEB-INF/classes/ in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\classes), by PeopleSoft2.web.pspc:0.0.0] at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:619) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:368) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:866) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:448) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:302) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:190) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:239) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler.access$700 (ServerSocketAcceptHandler.java:34) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:880) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]

    On further test, If I let the default oracle xml parser be loaded, then I do not get the the exception.
    I have removed the following lines from orion-application.xml
         <imported-shared-libraries>
              <remove-inherited name="oracle.xml"/>
         </imported-shared-libraries>
    Now, If I access the JPDK provider URL
    http://ple-fjunod.peoplesoft.com:9820/pspc/providers/psprovider/ps/EMPLOYEE
    I get the excepted page
    Congratulations! You have successfully reached your Provider's Test Page.
    Recognizing Portlets...
    Recognizing component versions...
    ptlshare.jar version: 10.1.3.2.0
    pdkjava.jar version: 10.1.3.2.0
    Can someone please tell me that if I remove the inherited default oracle XML parser using remove-inherited tag in orion-application.xml, how do I make the JPDK use my own packaged xerces XML parser.
    Thanks

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

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

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

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

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

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

Maybe you are looking for

  • Trying to implement a VPD policy but got the following error ORA-20001

    hey good day, I'm trying to implement a VPD policy to my application. After I have performed the below task (Label 1) in oracle 10g database. When I'm about to access my application page in ApEx 3.2.1 I got the following error ORA-20001: get_dbms_sql

  • Help with InDesign and using MacBook Pro with 2.4 GHz Intel Core 2 Duo with 2GB

    Have a Mac Book Pro running 2.4 GHz Intel Core 2 Duo with 2GB RAM is there anyway to use InDesign and if so what version would run on this machine and would I still be able to interface with a printer to produce a magazine?  Or is it possible to upgr

  • Firewire 800 xHD with intel duo core imac?

    I need to get some new desktop external hard drives for backup. Want firewire, but all are 800s now. Can I use them on my iMac6,1 - intel core 2 Duo? ca. 2008-2009. Has 3 ports for 400 Firewire (+ 2 USB which is too slow). Also, Seagate used to be fl

  • Elements Organizer and Editor Fonts Too Small

    Is Adobe ever going to fix this problem of the fonts not adjusting their size in both the organizer and the editor?  The only option to alter the font seems to be to switch to a "System Font", but that option doesn't work. It doesn't change the font

  • Adding image to panel gives an error

    any ideas whatz wrong with this Panel p = new Panel(); Graphics g = getGraphics(); g.drawImage(splashImage, 0,0, p); add(p,BorderLayout.CENTER ); the error i get is "AWT-Windows" (TID:0x14bda60, sys_thread_t:0x56a0cb8, state:R, native ID:0x540) prio=