Java.lang.NoClassDefFoundError in Java Web Service Pack

I downloaded a Java WSDP 1.0.01 together with the tutorial.
When I tried to compile a simple program using the SAX package, it said it couldn't resolve such names as SAXParserFactory, etc.
Then I moved all the .jar files to the JRE/lib/ext directory (I am using jdk 1.3.1.02, a bit out of date I know). And it compiled very well.
However, when I tried to run it, I got the error message:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParser
It seems that the run-time environment cannot find the correct path to load those standard classes.
Is there an easy way to specify the place for the JRE to look for those classes (.jar files)? I don't like the long command line option by the way.
Can anyone help?

You should put the jaxp-api.jar in your classpath while running your file. There are some other files also which are not required while compiling but are required when running them because the internal api uses them.
--Ashwani                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

Similar Messages

  • Java.lang.NoClassDefFoundError: javax/xml/rpc/Service

    Hi,
    I have created client stubs for a webservice using axis wsdl2java tool. When I try calling these stubbed methods from JUnit tests, they are working fine but when I try to execute the jar (it is a swing) I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at com.Gudds.SeCURE.MainUI.<init>(MainUI.java:76)
            at com.Gudds.SeCURE.Main.Start(Main.java:62)
            at org.owasp.webscarab.WebScarab.main(WebScarab.java:34)I have put the jaxrpc.jar in the classpath and I suppose this jar has the java.xml.rpc.service class but I donot understand why it fails while executing the jar but works fine from the eclipse IDe. Plase help me.
    Regrdas,
    Kundan

    1. Build jar file with MAINFEST.MF and Export of Eclipse , which has content:
    suppose in folder:
    c:\client.jar ( client of web service )
    c:\contrib/lib/ axis apis
    Main-Class: com.MainClassName
    Class-Path: contrib\axis\jaxrpc.jar contrib\axis\activation.jar con
    trib\axis\axis.jar contrib\axis\axis.jar contrib\axis\commons-disco
    very.jar contrib\axis\wsdl4j.jar contrib\axis\saaj.jar contrib\axi
    s\soap.jar contrib\axis\commons-logging.jar contrib\axis\log4j.jar
    contrib\axis\mail.jar
    2. build jar with ant: make sure the their are at least one blank between
    values of Class-Path.
              <jar destfile="../Client/client.jar" >
                   <fileset dir="${build.dir}"/>
              <manifest>
              <attribute name="Built-By" value="${user.name}"/>
                   <attribute name="Main-Class" value="com.MainClass"/>
              <attribute name="Class-Path" value=" contrib\axis\jaxrpc.jar contrib\axis\activation.jar .. "/>
              </manifest>
              </jar>
    3. If you haven't pack you class file in jar, create a bat to set CLASSPATH
    exactly to all jars.
    Hope this helps

  • Error: java.lang.NoClassDefFoundError when Automatic Import Service loads

    Hi
    The netware server running NW 6.5sp4a has been reloaded due to hardware
    failure.
    All the data was restored to all volumes.
    When I run zfdstart I get the following error:
    error: java.lang.NoClassDefFoundError when Automatic Import Service loads.
    Help !!!
    Thanks
    Minesh

    [email protected] wrote:
    > error: java.lang.NoClassDefFoundError when Automatic Import Service loads.
    hmm... would say that the zeninstall wasn't correctly done... try
    reinstalling importing..
    Marcus Breiden
    If you are asked to email me information please change -- to - in my e-mail
    address.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • Exception in thread "main" java.lang.NoClassDefFoundError: Hello/java

    I installed jdk 1.5 on my windows XP SP2 system and tried to run a simple program:
    public class Hello {
         public static void main(String[] args) {
              System.out.println("Hello world!!");
    }     but i get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Hello/java
    I've set the classpath as:
    CLASSPATH=C:\Java\jdk1.5.0_09\lib;
    and path variableas:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;%SYSTEMROOT%\system32\WBEMC:\PROGRA~1\COMMON~1\AUTODE~1;C:\Java\jdk1.5.0_09\bin;c:\j2sdkee1.3.1\bin;c:\Java\jdk1.5.0_09\lib;
    I didn't have this problem when i was using SP1 of windows xp...
    Plz help!!

    Oh!! I didn't know this was a famous question of this forum!!
    Just added a semi-colon at the end of classpath and it works fine.... although a strange solution

  • Exception in thread "main" java.lang.NoClassDefFoundError: Example2_22/java

    I'm trying to run the following code
    public class Example2_22
         public static void main( String[] args )
              int a = 65;
              int b = 78;
              System.out.println( 29 / 4 );
              System.out.print( "Hello there!\n" );
    }Seems simple enough but I'm getting the error in my title
    Exception in thread "main" java.lang.NoClassDefFoundError: Example2_22/java
    I'm running Ubuntu 8 on the eeepc 900
    $ java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
    Any idea what's going on?

    Obviously from the error message you are trying to "run" this:
    java Example2_22.java
    That's not the way to do it. You first need to compile the source code, and then run the java executable passing it the class name , which has nothing to do with the file name of Example2_22.java.
    You need to do the tutorials:
    [http://java.sun.com/docs/books/tutorial]

  • Java.lang.NoSuchMethodError while invoking web service method

    Hi, I have a web service which has two methods exposed as
    A and B.
    I deployed it on weblogic server (7.0 SP4) and fired teh request when I got this error:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring/>
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NoSuchMethodError
    I tried deploying the web service on another instance and there the method A was invoked but I got the same error when I tried invoking B.
    I tried it on third instance and there both the methods were successfully invoked.
    The methods A and B name start with capital letter (someone told me that method name should not start with capital letter but that does not hold good here)
    Any idea why this starnge behavior of web service?

    Hi Guys,
    I have solved the above issue by applying the PATCH 1 & PATCH 2 of the
    BPEL 10.1.2 version .
    Thanks
    Kalyan

  • Java.lang.OutOfMemoryError in a web service client

    Please...
    I'm doing a web service client.
    To access to the webservice I have to enter a date
    I'm using Axis api to connect to the webservice
    everything its ok until in some day an exception appears
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: [java.lang.OutOfMemoryError]
    faultActor: /apiws/Manifiesto
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: [java.lang.OutOfMemoryError]
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at MANIF.QueryManif_wsdl.QueryManifBindingStub.consultaManif(QueryManifBindingStub.java:218)
         at prueba.main(prueba.java:75)
         {http://xml.apache.org/axis/}hostname:Martin-ciappe
    [java.lang.OutOfMemoryError]
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at MANIF.QueryManif_wsdl.QueryManifBindingStub.consultaManif(QueryManifBindingStub.java:218)
         at prueba.main(prueba.java:75)
    I already change the virtual machine memory with -Xms256m -Xmx1200m
    And I tried everything... so please if you know the answer to my problem please answer me
    Thanks a lot
    Edited by: elchape on Jun 18, 2008 1:22 PM

    can't anybody help me?

  • Java.lang.IncompatibleClassChangeError when deploying web service

    Hi there,
    I'm trying to deploy a jax-rpc web service and get a java.lang.IncompatibleClassChangeError error when I use org.apache.axis.client.AdminClient with the following deploy.wsdd file. The funny thing is the Web Service is deployed and listed in AXIS. Can anyone help me to resolve this.
    <!-- Use this file to deploy some handlers/chains and services      -->
    <!-- Two ways to do this:                                           -->
    <!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
    <!--      after the axis server is running                          -->
    <!-- or                                                             -->
    <!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
    <!--      from the same directory that the Axis engine runs         -->
    <deployment
        xmlns="http://xml.apache.org/axis/wsdd/"
        xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      <!-- Services from FlightInfoServiceIFService WSDL service -->
      <service name="flightservice" provider="java:RPC" style="rpc" use="encoded">
          <parameter name="wsdlTargetNamespace" value="urn:flightservice"/>
          <parameter name="wsdlServiceElement" value="FlightInfoServiceIFService"/>
          <parameter name="wsdlServicePort" value="flightservice"/>
          <parameter name="className" value="flightCompany.rpcservice.FlightserviceSoapBindingImpl"/>
          <parameter name="wsdlPortType" value="FlightInfoServiceIF"/>
          <parameter name="typeMappingVersion" value="1.2"/>
          <operation name="getFlights" qname="operNS:getFlights" xmlns:operNS="urn:flightservice" returnQName="getFlightsReturn" returnType="rtns:string" xmlns:rtns="http://schemas.xmlsoap.org/soap/encoding/" soapAction="" >
            <parameter qname="in0" type="tns:string" xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"/>
          </operation>
          <parameter name="allowedMethods" value="getFlights"/>
          <parameter name="scope" value="Session"/>
      </service>
    </deployment>

    I was getting this error running AdminClient from a ant task, but the got no error when I ran it from the commanr line. But I'm getting the same thing back from the actual service itself whrn I try and invoke it using stubs generated by the wsdl2java tool with the following code
        public String getFlightsFromWSService(String date) throws Exception {
         String REMOTE_ENDPOINT_URL = "http://localhost:7070/axis/services/flightservice";
         String namespace = "flightservice";
         String portName = "FlightInfoServiceIF";
         String servicename = "flightservice";
         //make a service
         FlightInfoServiceIFService service = new FlightInfoServiceIFServiceLocator();
         //get a stub to the service
         FlightInfoServiceIF flightSvc = service.getflightservice( new URL( REMOTE_ENDPOINT_URL ));
         //make a call
         return flightSvc.getFlights(date);
        }TCPMonitor gives me this pile of stuff
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html;charset=ISO-8859-1
    Content-Language: en-IE
    Date: Tue, 31 May 2005 22:43:12 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    <html>
       <head>
          <title>Apache Tomcat/4.1.31 - Error report</title>
          <STYLE>
             <!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
    H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
    BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;}
    B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE>
          </head>
          <body>
             <h1>HTTP Status 500 - </h1>
             <HR size="1" noshade="noshade">
                <p>
                   <b>type</b> Exception report
                </p>
                <p>
                   <b>message</b>
                   <u></u>
                </p>
                <p>
                   <b>description</b>
                   <u>The server encountered an internal error () that prevented it from
    fulfilling this request.</u>
                </p>
                <p>
                   <b>exception</b>
                   <pre>javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
    (ApplicationFilterChain.java:222)     at org.apache.catalina.core.ApplicationFilterChain.doFilter
    (ApplicationFilterChain.java:146)     at  ...........lots more exceptions.........
                </p>
                <p>
                   <b>root cause</b>
                   <pre>java.lang.IncompatibleClassChangeError     at
    org.apache.axis.message.MessageElement.addTextNode
    (MessageElement.java:1387)
         at org.apache.axis.message.SOAPHandler.endElement
    (SOAPHandler.java:118)
         at org.apache.axis.encoding.DeserializationContext.endElement
    (DeserializationContext.java:1083)     at
    org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
    (Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(Unknown Source)
         at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
    (Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    </pre>
                </p>
                <HR size="1" noshade="noshade">
                   <h3>Apache Tomcat/4.1.31</h3>
                </body>
             </html>

  • Exception in thread "main" java.lang.NoClassDefFoundError: test/java

    why do i get this error every time i try and run my code?

    Sounds like you have a file test.java
    compile it:
    javac test.java
    produces test.class
    run it:
    java test
    sounds like you were trying something like this:
    java test.java (WRONG)

  • Portal Service - java.lang.NoClassDefFoundError

    Hi all,
    I've a Web Dynpro project which uses a portal service we wrote.
    I added the service's name to the "Sharing References" of the project and the project runs.
    However, after each restart to the server I get 'java.lang.NoClassDefFoundError' for the portal service. Redeploying the service solves the problem until next restart...
    After doing a lot of checking I've came to the conclusion that the problem is in the initialization of the service in the component controller.
    The component controller has 3 methods. In each of this methods the service is called
    ISqlService sqlservice = (ISqlService)WDPortalUtils.getServiceReference(ISqlService.KEY);
    After commenting this lines and moving the initialization line to "begin others" segment the problem seems to be solved (I've done some restarts to the server and the application ran without a problem)
    My question is: if none of the methods of the controller is called on application startup then why do I get the java.lang.NoClassDefFoundError?
    Also, when does the Web Dynpro framework load the portal service? isn't it supposed to be first time the service is called?
    Regards,
    Omri

    Hi Umesh,
    Try declaring a runtime reference for the service you are using in the project properties.
    Please explore the options:
    Project properties -> WebDynpro References -> Service References & Sharing References
    For ex:In my application, i use KM functionality.Even though Ive KM jars in the classpath (as external lib DCs), I mentioned a runtime reference in "Sharing References" as PORTAL:sap.com/com.sap.km.application.
    Similarly, I remember seeing somewhere mentioning the service you're trying to access as a Service Reference in the DC properties.
    something like: PORTAL:mycompany.com/com.....MyService
    A common portal service that is used in WebDynpro DCs is URLGenerator service. Probably if you search on it, you might find a clue.
    Regards,
    Rajit Srinivas

  • Servlet error: java.lang.NoClassDefFoundError

    We have created OC4J instance on application server.
    Deployed single application (ear) consisting of one ejb module and one web module.
    We have deployed the application using OEM, it is installed successfully.
    When we try to access the action class following error is displayed,
    Servlet error:
    java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2028)
    This problem does not occur always.
    We have been able to successfully deploy the same ear file on some ocassion.
    OS used: Linux Advanced server 2.1
    Application server: 10g (9.0.4)

    Hi, here is my CLASSPATH setting,
    CLASSPATH=d:\ptc\Windchill\codebase;d:\ptc\Windchill\codebase\WEB-INF\lib\ie.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\JGL.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\xerces.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\saxon.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\xalan.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\mail.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\activation.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\soap.jar;d:\ptc\Windchill\codebase\WEB-INF\lib\jnilib
    the wt.content package is packed into the wt.jar, and the wt.jar is in the d:\ptc\Windchill\codebase directory.

  • Weblogic.application.ModuleException: java.lang.NoClassDefFoundError -

    Hi
    I receive a problem when deploying a resource adapter - but it is not very informative on where to look for the problem
    weblogic.application.ModuleException: java.lang.NoClassDefFoundError
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:217)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
    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:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at weblogic.connector.outbound.RAOutboundManager.initializeMCF(RAOutboundManager.java:485)
    at weblogic.connector.outbound.RAOutboundManager.createConnectionFactory(RAOutboundManager.java:440)
    at weblogic.connector.outbound.RAOutboundManager.initialize(RAOutboundManager.java:385)
    at weblogic.connector.outbound.RAOutboundManager.<init>(RAOutboundManager.java:116)
    at weblogic.connector.common.RAInstanceManager.initialize(RAInstanceManager.java:1181)
    at weblogic.connector.common.RAInstanceManager.<init>(RAInstanceManager.java:343)
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:178)
    usually ClassDefNotFoundError would mention which class it has a problem with - but in this case nothing .

    when problem is
    [12:21:26 PM] Weblogic Server Exception: weblogic.application.ModuleException:
    [12:21:26 PM] Caused by: java.lang.NullPointerException:
    [12:21:26 PM] See server logs or server console for more details.
    For deploy Fussion Web aplication
    The problem is weblogic 10.3.5.0 you need install Realtime Software the package name is ofm_appdev_generic_11.1.1.5.0_disk1_1of1.zip and install jdeveloper the package name is jdevstudio11121install.bin when installation is finished, you need extend domain to Oracle JRF 11.1.10 is redy only you need restart weblogic server. The problen to deploy Fussion Web Aplication is resolved

  • "java.lang.NoClassDefFoundError" error while run t-code SXMB_IFR in XI

    Hi
    When I am trying to run t-code <b>SXMB_IFR</b> in Xi it give me below error.
    <b>Exception Details
    Exception class: java.lang.NoClassDefFoundError
    Message
    java.lang.NoClassDefFoundError
    Stacktrace
    Thrown:
    java.lang.NoClassDefFoundError: null
         at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
         at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:426)
         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:374)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:201)
         at jsp_Main1172666584171._jspService(jsp_Main1172666584171.java:21)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:467)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:181)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</b>
    Reg,
    Hiren Patel

    Hi Hiren,
       Check these threads:
    Problem starting SXMB_IFR and J2EE Engine
    java.lang.NoClassDefFoundError
    Regards,
    Subhasha Ranjan

  • Java.lang.NoClassDefFoundError Toolkit.getDefaultToolkit

    hi all
    i got this error in a servlet.
    i wrote it on my computer with no errors but, when i moved and executed it on a linux machine it doesn't work:
    java.lang.NoClassDefFoundError at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
    at counter.count.createCounter(count.java:245)
    the code is
    images=Toolkit.getDefaultToolkit().getImage(imageSrc);
    i think that the jdk version is the same on both the computers (1.4.0 or higher), and the code is the same!
    why have i this problem
    thanx
    sandro

    hi rajesh
    you don't know how i'm happy to see your answers!
    i'm so desperate with this problem!
    as you asked to me, this is the full stack trace that tomcat prints when i call my servlet:
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at java.awt.Toolkit$2.run(Toolkit.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
         at counter.count.createCounter(count.java:231)
         at counter.count.processRequest(count.java:176)
         at counter.count.doGet(count.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    i don't know if there is some environment variable set up in a different way from my system (w2k) to the real server system (linux), also because i installed the jdk (1.4.0 on windows) without setting anything
    if can help i'll post you soon the version of tomcat/jdk used by linux
    thanx a lot
    sandro

  • Java.lang.NoClassDefFoundError : IService

    Hello,
    I am trying to test the IURLGeneratorService. I have the following code:
    IURLGeneratorService ugs = (IURLGeneratorService)ResourceFactory.getInstance()
    .getServiceFactory()
    .getService(IServiceTypesConst.URLGENERATOR_SERVICE);
    String id = ugs.getID();
    I get the following error:
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/wcm/service/IService
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
    Any pointers on what I am doing wrong?
    Thanks,
    Asheesh

    Hi Asheesh,
    why don't you follow the general rule I advised?!
    > Caused by: java.lang.NoClassDefFoundError:
    > com/sapportals/wcm/service/urlgenerator/IURLGeneratorService
    For sure, you will have bc.rf.global.service.urlgenerator_api.jar in your buildpath.
    This comes from application com.sap.netweaver.bc.rf.service/lib. So add "com.sap.netweaver.bc.rf.service" to your SharingReference.
    > 1) Is my portalapp.xml correct?
    No, see above. Please follow the rule strictly.
    > 2) Can I have multiple property elements with
    > attribute "name" = "SharingReference" in the
    > portalapp.xml?
    You can give it a try. The standard is to seperate the values within one property by ",".
    > 3) Is the value "com.sap.netweaver.bc.rf" correct for
    > bc.rf.global.service.urlgenerator_api.jar (contains
    > IURLServiceGenerator)
    No, see above. The name is not derived from the JAR but from the portal application, ie the dir name where the "lib" dir is to be found, in which the JAR is; see my first posting, read carefully.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Maybe you are looking for

  • Link to OAF page from workflow notification

    I am trying to give a link in a workflow notification to the customer details page in R12. I decompiled the Controller classes of the customer pages to get the parameters that the page needs. The page I am trying to access is defined as a function ,

  • Error in CAF NW 7.2 that don't occurs in CAf NW 7.1

    Hi Experts I had a problem to develop a CAF app in NW 7.2. I has an SC with CAF DC developed in NW 7.1 and works fine. I got this one and imported to NW 7.2. This CAF DC have the follow structure: One BO Node: StatusBO. One AS: ExecutorService One AS

  • Message Prioritization PI 7.1

    Hi All, I want to know how exactlyfunctionality of Message Prioritization of PI 7.1 and the type of scenario in which it can be seen exactly in real time ? I have read all the onling help on this topic and now expect practical examples and explanatio

  • SCCM 2012 client push occurs from site server or from distribution point?

    I would like to set up client push in SCCM 2012 and I have a remote site with about 80 workstations that I would like to deploy the clients to using client push, but this remote site is VERY slow, as in less than 3Mbps slow. There is a remote DP loca

  • Best modem for comcast voice?

    I'm currently leasing a tier 3 gateway device, and it's garbage! Can someone recomend the best modem (retail) that can be used with comcast voice? Also. I'm not actually using the phone line, only got it to get a lower price on the 105 mpbs speeds. C