GMapsTaskFlow example : NoClassDefFoundError MapTag

hi
Using the example application in GoogleMapsTF.zip, that Edwin Biemond provided with his blog post "Google Maps Task Flow", I get this exception:
WARNING: Error trying to include:viewId:/googlemaps-flow-definition/maps uri:/maps.jsff
javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/googlecode/gmaps4jsf/component/map/MapTag
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NoClassDefFoundError: com/googlecode/gmaps4jsf/component/map/MapTag
     at jsp_servlet.__maps_jsff._jspx___tag3(__maps_jsff.java:221)
     at jsp_servlet.__maps_jsff._jspx___tag1(__maps_jsff.java:156)
     at jsp_servlet.__maps_jsff._jspx___tag0(__maps_jsff.java:103)
     at jsp_servlet.__maps_jsff._jspService(__maps_jsff.java:64)
     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     ... 70 moreI only got this to work (e.i. run from JDeveloper) after I updated the "gmaps4jsf-core-1.1.1-8-NOV-2008-SNAPSHOT.jar" library in the ViewController project to correctly refer to the gmaps4jsf-core-1.1.1-8-NOV-2008-SNAPSHOT.jar file (which has the com.googlecode.gmaps4jsf.component.map.MapTag class).
I'm not sure I understand why the ViewController project needs to refer to this gmaps4jsf JAR file directly.
I would expect the result of the GMapsTaskFlow project, adflibGMapsTaskFlow.jar, to be "self-contained". As such the ViewController project would only have to refer to that adflibGMapsTaskFlow.jar file, which it seems to be doing (but still it results in the NoClassDefFoundError without a proper library definition for the gmaps4jsf JAR file in the ViewController project).
How can this be explained?
many thanks
Jan Vervecken

Hi Jan,
I find this very strange , the google task flow deploy jar contains a war ( in the .wslibs/jsp folder ) with the gmaps4jsf jar. I will do some tests.
thanks Edwin

Similar Messages

  • Exception in thread "main" java.lang.NoClassDefFoundError

    Am using java 1.3.1 on Red Hat Linux 7.1
    i get this error
    Exception in thread "main" java.lang.NoClassDefFoundError
    while running a simple program HelloWorld.java
    help

    When you use the "java" command, the only required argument is the name of the class that you want to execute. This argument must be a class name, not a file name, and class names are case sensitive. For example, "java HelloWorld.java" won't work because the class name isn't HelloWorld.java, it's HelloWorld. Similarly, "java helloworld" won't work because a class defined as "public class HelloWorld {" is not named helloworld due to case sensitivity. Finally, the .class file must be in a directory that is in the Classpath - that's where java.exe searches to find the file that contains the class.

  • NoClassDefFoundError when trying to return a custom Object

    Hi,
    I'm trying to get some system memory info from a Windows machine using Java. I've written the C code and Java code and it all compiles fine. I can also use most of the methods in the two files. I have a problem with one method though. Its a method that is returning an object type that I created that mirrors a windows structure. Below is the code.
    // Java Object to store the data
    package agent.win32;
    public class MemoryInfo{
      int dwLength;
      int dwMemoryLoad;
      int dwTotalPhys;
      int dwAvailPhys;
      int dwTotalPageFile;
      int dwAvailPageFile;
      int dwTotalVirtual;
      int dwAvailVirtual;
      public int get_dwLength() { return dwLength; }
      public int get_dwMemoryLoad() { return dwMemoryLoad; }
      public int get_dwTotalPhys() { return dwTotalPhys; }
      public int get_dwAvailPhys() { return dwAvailPhys; }
      public int get_dwTotalPageFile() { return dwTotalPageFile; }
      public int get_dwAvailPageFile() { return dwAvailPageFile; }
      public int get_dwTotalVirtual() { return dwTotalVirtual; }
      public int get_dwAvailVirtual() { return dwAvailVirtual; }
    // Java Class that uses JNI
    package agent.win32;
    public class NIMSNT {
      //Constructor
      public NIMSNT(){};
      static{
        try{
          System.loadLibrary("NIMSNT");
        catch (java.lang.UnsatisfiedLinkError e) {
          System.out.println (e);
       * check psapi.dll and psapi functions
       * return true if NT process can be enumerate
      public static native boolean Initialize();
       * Description:The EnumProcesses function retrieves the process identifier
       * for each process object in the system
       * return value:the list of process identifiers
       * call psapi function EnumProcesses
      public static native int[] EnumProcesses();
       * Description:The OpenProcess function returns a handle to an existing process object.
       * return value:If the function succeeds, the return value is an open handle to the specified process
       * call kernel32 function OpenProcess
      public static native int OpenProcess(int Pid);
       * Description:The EnumProcessModules function retrieves a handle for each module in the specified process
       * return value:the list of module handles
       * call psapi function EnumProcessModules
      public static native int[] EnumProcessModules(int hProcess);
       * Description:The GetModuleFileNameEx function retrieves the fully qualified path for the specified module
       * return value:the fully qualified path for the specified module
       * call psapi function GetModuleFileNameEx
      public static native String GetModuleFileName(int hProcess,int hModule);
       * Description:The GetModuleBaseName function retrieves the base name of the specified module
       * return value:the base name of the specified module
       * call psapi function GetModuleBaseName
      public static native String GetModuleBaseName(int hProcess,int hModule);
       * Description:function closes an open object handle
       * return value:true if succesfuly
       * call kernel32 function CloseHandle
      public static native boolean CloseHandle(int handle);
       * Description:function gets system memory
       * return value:String
      public static native MemoryInfo GetSystemMemoryInfo();
    // C Structure (defined in windows.h)
    typedef struct _MEMORYSTATUS {
      DWORD dwLength;
      DWORD dwMemoryLoad;
      SIZE_T dwTotalPhys;
      SIZE_T dwAvailPhys;
      SIZE_T dwTotalPageFile;
      SIZE_T dwAvailPageFile;
      SIZE_T dwTotalVirtual;
      SIZE_T dwAvailVirtual;
    } MEMORYSTATUS, *LPMEMORYSTATUS;
    // C code
    #include <windows.h>
    #include <string.h>
    #include "agent_win32_NIMSNT.h"
    #define MaxProcessNumber 10000
    /** Type Definitions                                  **/
    typedef BOOL (WINAPI *ENUMPROCESSES)(
         DWORD * lpidProcess, 
           DWORD cb,            
           DWORD * cbNeeded     
    typedef BOOL (WINAPI *ENUMPROCESSMODULES)(
         HANDLE hProcess,     
         HMODULE * lphModule, 
         DWORD cb,            
         LPDWORD lpcbNeeded   
    typedef DWORD (WINAPI *GETMODULEFILENAMEEXA)(
         HANDLE hProcess,          
         HMODULE hModule,          
         LPTSTR lpstrFileName,     
         DWORD nSize               
    typedef DWORD (WINAPI *GETMODULEBASENAME)(
         HANDLE hProcess,          
         HMODULE hModule,          
         LPTSTR lpstrFileName,     
         DWORD nSize               
    typedef struct _PROCESS_MEMORY_COUNTERS {
        DWORD cb;
        DWORD PageFaultCount;
        DWORD PeakWorkingSetSize;
        DWORD WorkingSetSize;
        DWORD QuotaPeakPagedPoolUsage;
        DWORD QuotaPagedPoolUsage;
        DWORD QuotaPeakNonPagedPoolUsage;
        DWORD QuotaNonPagedPoolUsage;
        DWORD PagefileUsage;
        DWORD PeakPagefileUsage;
    } PROCESS_MEMORY_COUNTERS, *PPROCESS_MEMORY_COUNTERS;
    typedef BOOL (WINAPI *GETPROCESSMEMORYINFO)(
         HANDLE hProcess,
         PPROCESS_MEMORY_COUNTERS ppsmenCounters,
         DWORD cb
    /** Global Variables                                  **/
    ENUMPROCESSES EnumProcesses;
    ENUMPROCESSMODULES EnumProcessModules;
    GETMODULEFILENAMEEXA GetModuleFileNameExA;
    GETMODULEBASENAME GetModuleBaseName;
    GETPROCESSMEMORYINFO GetProcessMemoryInfo;
    /** DLL Entry                                         **/
    BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_being_called, LPVOID lpReserved){    
         return TRUE;
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    Initialize
    * Signature: ()Z
    JNIEXPORT jboolean JNICALL Java_agent_win32_NIMSNT_Initialize(JNIEnv * env,jclass clazz){
         HANDLE hpsapi=LoadLibrary("PSAPI.DLL");
         if (hpsapi==NULL) return FALSE;
         EnumProcesses=(ENUMPROCESSES)GetProcAddress((HINSTANCE)hpsapi,"EnumProcesses");
         GetModuleFileNameExA = (GETMODULEFILENAMEEXA)GetProcAddress((HINSTANCE)hpsapi, "GetModuleFileNameExA");
         GetModuleBaseName = (GETMODULEBASENAME)GetProcAddress((HINSTANCE)hpsapi, "GetModuleBaseNameA");
         EnumProcessModules = (ENUMPROCESSMODULES)GetProcAddress((HINSTANCE)hpsapi, "EnumProcessModules");
         GetProcessMemoryInfo = (GETPROCESSMEMORYINFO)GetProcAddress((HINSTANCE)hpsapi, "GetProcessMemoryInfo");
         if (
              NULL == EnumProcesses          ||
              NULL == GetModuleFileName     ||
              NULL == GetModuleBaseName     ||
              NULL == EnumProcessModules  )
            return FALSE;
         return TRUE;   
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    EnumProcesses
    * Signature: ()[I
    JNIEXPORT jintArray JNICALL Java_agent_win32_NIMSNT_EnumProcesses(JNIEnv * env, jclass clazz){
         DWORD aPids[MaxProcessNumber];
         DWORD cGot;
         jintArray Pids=0;
         if(EnumProcesses(aPids,sizeof(aPids),&cGot)){
              cGot /= sizeof(aPids[0]);
                 Pids= (*env)->NewIntArray(env,cGot);
              (*env)->SetIntArrayRegion(env,Pids,0,cGot,(jint*) aPids);
         return Pids;
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    OpenProcess
    * Signature: (IZI)I
    JNIEXPORT jint JNICALL Java_agent_win32_NIMSNT_OpenProcess (JNIEnv * env, jclass clazz,jint Pid){
         return (jint) OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,FALSE,Pid);
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    EnumProcessModules
    * Signature: (I[I)[I
    JNIEXPORT jintArray JNICALL Java_agent_win32_NIMSNT_EnumProcessModules (JNIEnv * env, jclass clazz, jint hProcess){
         HMODULE hModule[MaxProcessNumber];
         jintArray jModule=0;
         DWORD cGot;    
         if (EnumProcessModules((HANDLE)hProcess,hModule,sizeof(hModule),&cGot)){
              cGot/= sizeof(hModule[0]);
              jModule= (*env)->NewIntArray(env,cGot);
              (*env)->SetIntArrayRegion(env,jModule,0,cGot,(jint*)hModule);
         return jModule;
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    GetModuleFileName
    * Signature: (II)Ljava/lang/String;
    JNIEXPORT jstring JNICALL Java_agent_win32_NIMSNT_GetModuleFileName(JNIEnv * env, jclass clazz, jint hProcess, jint hModule){
         jstring jName=0;
         char FileName[MAX_PATH];
         if(GetModuleFileNameExA((HANDLE)hProcess,(HMODULE)hModule,FileName,sizeof(FileName))!=0){
              jName=(*env)->NewStringUTF(env,FileName);
         return jName;
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    GetModuleBaseName
    * Signature: (II)Ljava/lang/String;
    JNIEXPORT jstring JNICALL Java_agent_win32_NIMSNT_GetModuleBaseName(JNIEnv * env, jclass clazz, jint hProcess, jint hModule){
         jstring jName=0;
         char FileName[MAX_PATH];
         if(GetModuleBaseName((HANDLE)hProcess,(HMODULE)hModule,FileName,sizeof(FileName))!=0){
              jName=(*env)->NewStringUTF(env,FileName);
         return jName;
    * Class:     nims4_agent_win32_NIMSNT
    * Method:    CloseHandle
    * Signature: (I)Z
    JNIEXPORT jboolean JNICALL Java_agent_win32_NIMSNT_CloseHandle(JNIEnv * env, jclass clazz, jint handle)
         return CloseHandle((HANDLE) handle);
    * Class:     nims_agent_win32_NIMSNT
    * Method:    GetSystemMemoryInfo
    * Signature: (I)Lagent/win32/MemoryInfo;
    JNIEXPORT jobject JNICALL Java_agent_win32_NIMSNT_GetSystemMemoryInfo(JNIEnv * env, jclass clazz){
         jfieldID jfield;
         jobject jobj=0;
         MEMORYSTATUS stat;
         stat.dwLength = sizeof(stat);
         GlobalMemoryStatus(&stat);
         clazz=(*env)->FindClass(env,"agent.win32.NIMSMemoryInfo");
         if (clazz==0) return 0;
         jobj = (*env)->AllocObject (env,clazz);
         //set NIMSMemoryInfo object field
         // dwLength
         jfield=(*env)->GetFieldID(env,clazz,"dwLength","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwLength);
         // dwMemoryLoad
         jfield=(*env)->GetFieldID(env,clazz,"dwMemoryLoad","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwMemoryLoad);
         // dwTotalPhys
         jfield=(*env)->GetFieldID(env,clazz,"dwTotalPhys","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwTotalPhys);
         // dwAvailPhys
         jfield=(*env)->GetFieldID(env,clazz,"dwAvailPhys","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwAvailPhys);
         // dwTotalPageFile
         jfield=(*env)->GetFieldID(env,clazz,"dwTotalPageFile","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwTotalPageFile);
         // dwAvailPageFile
         jfield=(*env)->GetFieldID(env,clazz,"dwAvailPageFile","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwAvailPageFile);
         // dwTotalVirtual
         jfield=(*env)->GetFieldID(env,clazz,"dwTotalVirtual","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwTotalVirtual);
         // dwAvailVirtual
         jfield=(*env)->GetFieldID(env,clazz,"dwAvailVirtual","I");
         (*env)->SetIntField (env,jobj, jfield,stat.dwAvailVirtual);
         return jobj;
    };I can use all of the methods in the Java/C code except for the the last native method   public static native MemoryInfo GetSystemMemoryInfo(); . I get a NoClassDefFoundError when I try to use this method. I have a feeling that I'm just doing something stupid.
    Thanks in advance,
    John

    Yes, exactly. I changed the name of that class and forgot to change it in the c code. Thanks for the feedback.
    Also, if anyone is using this code as an example, you need to change "agent.win32.MemoryInfo" to "agent/win32/MemoryInfo" in the c code. If it is left as "agent.win32.MemoryInfo" you will get a ClassCircularityError when trying to make multiple calls to the NIMSNT.GetSystemMemoryInfo();.

  • Error while running CachedRowSet Example

    I am getting the following error when I try to the CachedRowSet example. Any help would would be greatly appreciated.
    ERROR:
    Request URI:/test548_html/untitled2.jsp
    Exception:
    java.lang.NoClassDefFoundError: javax/naming/Referenceable
    CODE EXAMPLE AS IN JSP DEVELOPERS GUIDE:
    <%@ page import="java.sql.*, javax.sql.*, oracle.jdbc.pool.*" %>
    <!------------------------------------------------------------------
    * This is a JavaServer Page that uses Connection Caching at Session
    * scope.
    --------------------------------------------------------------------!>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    scope="session" />
    <HTML>
    <HEAD>
    <TITLE>
    ConnCache 3 JSP
    </TITLE>
    </HEAD>
    <BODY BGCOLOR=EOFFFO>
    <H1> Hello
    <%= (request.getRemoteUser() != null? ", " + request.getRemoteUser() : "") %>
    ! I am Connection Caching JSP.
    </H1>
    <HR>
    <B> Session Level Connection Caching.
    </B>
    <P>
    <%
    try {
    ods.setURL((String)session.getValue("connStr"));
    ods.setUser("scott");
    ods.setPassword("tiger");
    Connection conn = ods.getConnection ();
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT ename, sal " +
    "FROM scott.emp ORDER BY ename");
    if (rset.next()) {
    %>
    <TABLE BORDER=1 BGCOLOR="C0C0C0">
    <TH WIDTH=200 BGCOLOR="white"> <I>Employee Name</I> </TH>
    <TH WIDTH=100 BGCOLOR="white"> <I>Salary</I> </TH>
    <TR> <TD ALIGN=CENTER> <%= rset.getString(1) %> </TD>
    <TD ALIGN=CENTER> $<%= rset.getDouble(2) %> </TD>
    </TR>
    <% while (rset.next()) {
    %>
    <TR> <TD ALIGN=CENTER> <%= rset.getString(1) %> </TD>
    <TD ALIGN=CENTER> $<%= rset.getDouble(2) %> </TD>
    </TR>
    <% }
    %>
    </TABLE>
    <% }
    else {
    %>
    <P> Sorry, the query returned no rows! </P>
    <%
    rset.close();
    stmt.close();
    conn.close(); // Put the Connection Back into the Pool
    } catch (SQLException e) {
    out.println("<P>" + "There was an error doing the query:");
    out.println ("<PRE>" + e + "</PRE> \n <P>");
    %>
    </BODY>
    </HTML>
    null

    Hi,
    Goto Project Properties:
    Search for the following in left pane:
    Oracle Applications -> Runtime Connection
    DBC file : Choose the correct dbc file from your local machine. You have to get it from your dba and paste it in this path: jdevhome\jdev\dbc_files\secure\*.dbc
    User Name: Application User Name
    Password : Application password
    Responsibilty Key:
    Goto Application Developer --> Responsibility --> Define -- >
    Query for the available responsibility for the given user. Say for example: "Order Management Super User"
    Application: Order Management
    Responsibilty Key: ORDER_MGMT_SUPER_USER
    Application Short Name:
    Goto Application Developer --> Application --> Register -- >
    Query for the given application " Order Management"
    Short Name: ONT
    Responsibility Key and Application Short Name depends upon the object you are developing.
    Regards.

  • Error While building the Sample Example

    Hi,
    I'm trying to run the first example in the following tutorial:
    http://docs.oracle.com/cd/E17904_01/web.1111/e13758/toc.htm
    Getting the following error:
    java.lang.NoClassDefFoundError: com/sun/xml/ws/model/RuntimeModeler
    at weblogic.wsee.util.ClassUtil.getNamespaceFromClass(ClassUtil.java:151
    at weblogic.wsee.jws.WebServiceRuntimeDecl.initNamespaces(WebServiceRunt
    imeDecl.java:253)
    at weblogic.wsee.jws.WebServiceRuntimeDecl.<init>(WebServiceRuntimeDecl.
    java:77)
    at weblogic.wsee.tools.jws.decl.WebServiceDecl.<init>(WebServiceDecl.jav
    a:48)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:81)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:68)
    at weblogic.wsee.tools.jws.decl.WebServiceDeclFactory.newInstance(WebSer
    viceDeclFactory.java:54)
    at weblogic.wsee.tools.anttasks.JwsModule.buildAndValidate(JwsModule.jav
    a:583)
    at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java
    *:574)*
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.model.RuntimeModeler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    *... 29 more*
    Kindly help me out in how to run the example, please let me know where I'm going wrong.
    I'm beginning to feel oracle has the most pathetic documentation, even when u following exactly as told in the tutorial, still its code does not work, personally I feel oracle products are the most complex and most useless while at the same time very expensive.

    Hi,
    you see that message: "The password must be at least 8 alphanumeric characters with at least one number or special character." ?
    The password: The weblogic password you provide when prompted
    must be at least: minimal condition for secure passwords enforced on WLS by default
    at least 8 alphanumeric characters: no 7 but eight or more characters
    with at least one number or special character: password should have a number in it or an "@" "-" or similar
    E.g.
    weblogic1
    is one password option that would meet that requirement
    Frank

  • Servlet + Tomcat NoClassDefFoundError

    Hi,
    I am developing a servlet which takes data from Amazon's Web services (in XML format) and then outputs a RSS feed. I use xerces for parsing the XML and then use Rome to output the RSS feed. When I run the servlet then I get the following error.
    However when I run the same code over the commandline, it runs fine, however running it as a servlet, it shows the NoClassDefFoundError . I am also sending the code , it contains the commented out System.out statements which I use when I am running it over the command line
    Thanks
    Gaurav
    javax.servlet.ServletException: Invoker service() exception
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:524)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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 filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
         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.StandardContext.invoke(StandardContext.java:2416)
         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:171)
         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:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError
         at form_input.doPost(form_input.java:84)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:466)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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 filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
         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.StandardContext.invoke(StandardContext.java:2416)
         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:171)
         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:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    The Code:
    //JAXP 1.1
    import org.w3c.dom.*;
    import org.w3c.dom.Document;
    import javax.xml.parsers.*;
    import org.apache.xerces.dom.DocumentImpl;
    import org.apache.xerces.dom.DOMImplementationImpl;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.*;
    import java.util.Vector;
    import org.apache.xerces.jaxp.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    //import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import com.sun.syndication.feed.synd.*;
    import com.sun.syndication.io.SyndFeedOutput;
    import com.sun.syndication.io.FeedException;
    import java.io.IOException;
    import java.text.ParseException;
    import java.io.FileWriter;
    import java.io.Writer;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.List;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class form_input extends HttpServlet
    private static final DateFormat DATE_PARSER = new SimpleDateFormat("yyyy-MM-dd");
         public void doGet(HttpServletRequest request, HttpServletResponse response)
                             throws IOException, ServletException
              doPost(request,response);
         public void doPost(HttpServletRequest request, HttpServletResponse response)
                             throws IOException, ServletException
    response.setContentType("text/xml");
              PrintWriter out = response.getWriter();
              URL data = new URL("http://xml.amazon.com/onca/xml3?t=myWebsite-20&dev-t=1RX5WFR818MJJAEN8A02&KeywordSearch=dogs&mode=books&type=lite&page=1&f=xml");
              URLConnection connection = data.openConnection();
              connection.setUseCaches(false);
    Document doc= null;
              NodeList DetailList = null;
              NodeList DetailChildren = null;
              Node Detail = null;
              Node DetailChild = null;
              Node ChildValue = null;
              DOMParser dparsers = new DOMParser();
              List entries = new ArrayList();
              SyndFeed feed = new SyndFeedImpl();
              SyndEntry entry;
              SyndContent description;
              SyndFeedOutput output = new SyndFeedOutput();
              try
                   feed.setFeedType("rss_1.0");
                   feed.setTitle("Amazon search for dog");
    feed.setLink("http://www.amazon.com");
    feed.setDescription("Amazon search results for dogs");
                   dparsers.parse(new InputSource(connection.getInputStream()));
                   doc = dparsers.getDocument();
                   DetailList = doc.getElementsByTagName("Details");
                   for( int i=0; i<DetailList.getLength(); i++)
                        Detail = DetailList.item(i);
                        DetailChildren = Detail.getChildNodes();
                        entry = new SyndEntryImpl();
                        for( int j=0; j<DetailChildren.getLength(); j++)
                             //Iterate through each of the children and start filling out the RSS thingie
                             //Gotta extract Asin, ProductName, ReleaseDate, Manufacturer, Authors -> Author
                             DetailChild = DetailChildren.item(j);
                             if(DetailChild.getNodeName().equals("Asin"))
                                  //if(DetailChild.hasChildNodes())
                                  //     System.out.println(DetailChild.getNodeName() + " has child nodes");
                                  ChildValue = DetailChild.getFirstChild();
                                  //System.out.println(DetailChild.getNodeName()+ " type = "+DetailChild.getNodeType()+" value="+ChildValue.getNodeValue());
                                  entry.setLink("http://www.amazon.com/exec/obidos/ASIN/"+ChildValue.getNodeValue());
                                  //System.out.println("Match found for Asin");
                             else if(DetailChild.getNodeName().equals("ProductName"))
                                  ChildValue = DetailChild.getFirstChild();
                                  //System.out.println(DetailChild.getNodeName()+ " type = "+DetailChild.getNodeType()+" value="+ChildValue.getNodeValue().length());
                                  if(ChildValue.getNodeValue().length() > 100 )
                                       entry.setTitle(ChildValue.getNodeValue().substring(0,100));
                                  else
                                       entry.setTitle(ChildValue.getNodeValue());
                                  //System.out.println("Match found for ProductName");
                             else if(DetailChild.getNodeName().equals("ReleaseDate"))
                                  ChildValue = DetailChild.getFirstChild();
                                  //System.out.println(DetailChild.getNodeName()+ " type = "+DetailChild.getNodeType()+" value="+ChildValue.getNodeValue());
                                  //System.out.println("ReleaseDate: "+DetailChild.getNodeValue());
                                  //entry.setPublishedDate(DATE_PARSER.parse(DetailChild.getNodeValue()));
                                  entry.setPublishedDate(DATE_PARSER.parse("2004-07-07"));
                                  //System.out.println("Match found for ReleaseDate");
                             else if(DetailChild.getNodeName().equals("Manufacturer"))
                                  ChildValue = DetailChild.getFirstChild();
                                  //System.out.println(DetailChild.getNodeName()+ " type = "+DetailChild.getNodeType()+" value="+ChildValue.getNodeValue());
                                  description = new SyndContentImpl();
                                  description.setType("text/plain");
                                  description.setValue("Initial release of Rome");
                                  entry.setDescription(description);
                        entries.add(entry);
                   feed.setEntries(entries);
                   String fxml = output.outputString(feed);
                   out.println(fxml);
              catch (ParseException ex) {
    // IT CANNOT HAPPEN WITH THIS SAMPLE
    ex.printStackTrace();
    out.println("ERROR: "+ex.getMessage());
              catch( SAXException se)
                   se.printStackTrace();
    out.println("ERROR: "+se.getMessage());
              catch (Exception ex) {
    ex.printStackTrace();
    out.println("ERROR: "+ex.getMessage());

    Hi,
    I am building the servlet for now in
    $TOMCAT_HOME/webapps/examples/WEB-INF/classes ,
    however there is no 'lib' directory in
    $TOMCAT_HOME/webapps/examples/WEB-INF . I created one
    and put the jar files there, but still I get the same
    error. Infact when I start the server, I do not see
    the jar file in CLASSPATH
    Thanks
    GauravYou shouldn't be putting your app in the examples directory.
    You should create a directory under TOMCAT_HOME/webapps for YOUR individual apps. Each one should have a WEB-INF directory under that, and /classes and /lib under that. Your web.xml belongs in the WEB-INF directory. Your .class files, and their package directories, belong under WEB-INF/classes. 3rd party JARs, like JDBC drivers, belong in WEB-INF/lib.
    The problem is that you don't know how to deploy a Web app properly on Tomcat.

  • Example ---Defining Cell Variants: TableSingleMarkableCell-Getting error

    Hi All,
          We are trying an example of cell variant concept of table as given in NetWeaver help. But after deploying we are getting folllowing error. Please guide me.
    <b>Create a value attribute attributePointer, switch to the Properties, click … for the property type, and select the Java Simple Type. Enter com.sap.tc.webdynpro.progmodel.api.IWDAttributePointer and confirm with Ok</b>---
    I am not able to get this type..I have chosen ---com.sap.ide.webdynpro.uielementdefinitions.AttributePointer
    Thanks in Advance,
    Gangadhar.
    <b>Error we are getting is</b>  
    java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDAbstractTableColumn
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructors(Class.java:865)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:68)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.<init>(DelegatingView.java:41)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:486)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:523)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:421)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:404)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:618)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    <b>Example we are trying is</b>
    You need the option to select a single cell to provide a value help for individual cells, for example.
    The interface TableSingleMarkableCell allows you to group cell variants in any way as you like and to make a single cell selectable in this group. The following example shows how to proceed if you want to implement a selection of a single cell from an entire table.
    Prerequisites
    You have created an applicaton with a component and view in your Web Dynpro project.
    Procedure
    Creating the Context
           1.      Create a value node TableNode for the data of the table and insert three value attributes of the type String for the table columns.
           2.      Create a value attribute selectedCellVariant of the type String in the TableNode.
           3.      Create a value attribute attributePointer, switch to the Properties, click … for the property type, and select the Java Simple Type. Enter com.sap.tc.webdynpro.progmodel.api.IWDAttributePointer and confirm with Ok.
    Creating the View
           1.      Open the context menu in the Outline, select Apply Template and then Table. In the subsequent dialog box from the context, select three attributes for the columns (col1, col2, col3). Confirm by choosing Finish
           2.      Set the property selectionMode of the table to none.
    Repeat the steps for each column.
           3.      Highlight the column and open the context menu. Select Insert Cell Variant, TableSingleMarkableCell and confirm with Finish.
           4.      Enter the same value for each TableSingleMarkableCell for the property variantKey - for example, variant1
           5.      Insert a cell editor of the type TextView in each TableSingleMarkableCell.
    Binding the UI Elements
           1.      Bind the text property of each TextView to the column in which the property is contained.
           2.      Bind the attributeToMarkproperty of the corresponding TableSingleMarkableCell to the column in which the element is contained.
           3.      Bind the selectedCellVariantproperty of each TableColumn to the context attribute selectedCellVariant.
           4.      Add the following source code to the wdDoInit method.
    wdDoInit()
    1
    2
    3
    IPrivateUseSingleMarkableCellsView.ItableNodeElement elem;
          int count = 10;
    // Fill dummy data
         for(int i=0; i<count; i++) {
             elem = wdContext.nodeTableNode().createTableNodeElement();
             wdContext.nodeTableNode().addElement(elem);
             elem.setCol1(“1.” + i);
             elem.setCol2(“2.” + i);
             elem.setCol3(“3.” + i);
    // set TableSingleMarkableCell as a variant for the table
             elem.setSelectedCellVariant(“variant1”);
                For each element that is created in the for loop and is then added, the
                TableSingle MarkableCell is set as a cell variant in row 3.
           5.      Add the following source code to the wdDoModifyView method.
    wdDoModifyView()
    IWDAttributeInfo markedDataInfo = wdContext.currentContextElement().getAttributePointer(“attributePointer”).getAttributeInfo();
                            ((IWDTableSingleMarkableCell) view.getElement(“TableSingleMarkableCell1”)).bindMarkedData(markedDataInfo);
                            ((IWDTableSingleMarkableCell) view.getElement(“TableSingleMarkableCell2”)).bindMarkedData(markedDataInfo);
         1.                          ((IWDTableSingleMarkableCell) view.getElement(“TableSingleMarkableCell3”)).bindMarkedData(markedDataInfo);
    The current AttributeInfo is now retrieved at every change of the view and is bound to the context using the markedDataproperty.
    Result
    Each single cell can be selected separately. You can define an action and in its method, you can determine the coordinates of the currently selected cell using the following code:
    IWDAttributePointer attPointer = wdContext.currentContextElement().getAttributePointer();
    Message was edited by:
            Gangadharayya Hiremath

    Hi Gangadhar,
    at first: you are right: you have to choose
    com.sap.ide.webdynpro.uielementdefinitions.AttributePointer
    and not the other one. I already updated the documentation for this.
    In which SP are you working?
    Kind Regards
    Stefanie

  • Create Service Consumer BS: java.lang.NoClassDefFoundError

    Hello,
    I am trying to create service Consumer Business Service (consume a Web Service from JD Edwards Enterprise One).
    To do that I have followed the next steps:
    1) Download the WSDL file from CRM On Demand’s web page
    2) From JDE:
    a. Create a business service from OMW
    b. Generate a web service proxy within JDeveloper
    In this step, it was necessary rename the Business Service Package =>
    A portion of the proxy package name must be in upper case; however, JDeveloper named the proxy using lower case.
    I have followed “JD Edwards EnterpriseOne Tools 8.97 Business Services Development Guide” to rename the Business Service Package:
    "Renaming the Business Service Package
    You must rename the package so that the name matches the case of the rest of the
    business service. After you rename the package, you should rebuild the code to ensure
    no errors exist. Use these steps to rename the business service package.
    ► To rename business service package
    In the business service project on JDeveloper
    1. Select the business service package, and then click Replace in Files on the Search menu.
    2. On the Replace in Files window, enter the lower case name (for example, jrh90i20).
    3. Enter the upper case name (for example, JRH90I20).
    4. In the Search Path pane, select the Active Project option.
    5. Click OK.
    The upper case name appears.
    6. Save the renamed file by selecting Save All from the File menu.
    You should rebuild the code to make sure no errors exist."
    However, when I try to generate a secure proxy I have the error:
    java.lang.NoClassDefFoundError --> It is trying to find the package with lower case name, however it is in upper case name…
    Do you know if it is necessary to do something change more? Change some reference file or any path?
    I think that when JDeveloper deploys the secure proxy, internally it has some reference with the lower case name, and it isn’t changed with “Renaming the Business Service Package”…
    I am looking for some file that has some reference but I haven’t found nothing…
    Any help is welcome.
    The log file is:
    java.lang.NoClassDefFoundError: oracle/e1/bssv/j5500007/proxy/types/crmondemand/xml/contact/query/ListOfContactQuery (wrong name: oracle/e1/bssv/J5500007/proxy/types/crmondemand/xml/contact/query/ListOfContactQuery)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at oracle.ideimpl.IdeClassLoader.loadClass(IdeClassLoader.java:129)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaAnalyzer.getValueClassBeanInfo(SchemaAnalyzer.java:465)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.structuredType(ComplexTypeBindingModeler.java:142)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.complexType(ComplexTypeBindingModeler.java:442)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.complexType(LiteralSchemaTypeModeler.java:502)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:380)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.processElementMember(ComplexTypeBindingModeler.java:339)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.processMember(ComplexTypeBindingModeler.java:191)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.structuredType(ComplexTypeBindingModeler.java:168)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.complexType(ComplexTypeBindingModeler.java:442)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.complexType(LiteralSchemaTypeModeler.java:502)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:380)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:136)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:145)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaAnalyzer.schemaTypeToLiteralType(SchemaAnalyzer.java:395)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.searchSchema(WSDLModeler.java:566)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.OperationModeler.searchSchema(OperationModeler.java:946)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.DocLiteralOperationModeler.buildInput(DocLiteralOperationModeler.java:525)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.DocLiteralOperationModeler.buildOperation(DocLiteralOperationModeler.java:256)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.OperationModeler.process(OperationModeler.java:93)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processSOAPOperation(WSDLModeler.java:1094)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processBindingOperation(WSDLModeler.java:1028)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.createNewPort(WSDLModeler.java:892)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processPort(WSDLModeler.java:765)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processService(WSDLModeler.java:679)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:404)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:223)
    at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:173)
    at oracle.j2ee.ws.common.processor.Processor.runModeler(Processor.java:72)
    at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:95)
    at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createModel(WsdlToJavaTool.java:398)
    at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.getSeiInfo(WsdlToJavaTool.java:536)
    at oracle.j2ee.ws.tools.wsa.Util.getSeiInfo(Util.java:230)
    at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1085)
    at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2285)
    at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2156)
    at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:308)
    at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1190)
    at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getServiceTargetNamespace(WebServiceProxy.java:1593)
    at oracle.jdeveloper.webservices.model.OracleWebServicesUtils.createInitialClientOracleWebservices(OracleWebServicesUtils.java:1025)
    at oracle.jdeveloper.webservices.model.security.SecurityIO.save(SecurityIO.java:564)
    at oracle.jdeveloper.webservices.model.security.SecurityModel.writeConfiguration(SecurityModel.java:485)
    at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.generateImpl(ProxyGenerator.java:330)
    at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.mav$generateImpl(ProxyGenerator.java:77)
    at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator$1ThrowingRunnable.run(ProxyGenerator.java:206)
    at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
    at java.lang.Thread.run(Thread.java:595)
    Thanks and regards.

    It sounds to me like you are doing the right thing. Take a look at the tutorial on the Oracle Fusion Middleware for Apps Best Practice Center for consuming external web services to see if this helps: http://www.oracle.com/technology/tech/fmw4apps/jde/pdf/consuming-external-web-services-using-business-services.pdf.
    Dave

  • Unable to get following example working

    http://java.sun.com/products/jlf/ed2/samcode/textme1.html
    i am unable to get this example of file menus working.
    i have created a new project in JBuilder called TextMenu.jpx
    i have altered the project properties to look for TextMenu as the main method but it gives me a compilation error:
    "java.lang.NoClassDefFoundError: TextMenu
    Exception in thread "main" "
    can anyone else get this example working???

    Hi there,
    OK So its been two years since the last reply to this thread, but just incase anyone else out there is having problems with getting this example working in JBuilder here is how we did it.
    First off remove the "package samples;" line from the top of the .java file
    then locate the following line
    resources = ResourceBundle.getBundle( "samples.resources.bundles.TextMenuResources", locale);
    and change the part in the quotes to just "TextMenuResources".
    Finally open the samples.jar file and extract the file "TextMenuResources.properties" to the class folder of the project you are working on (for example if your project was called "TextMenu" then locate the "\TextMenu\class" folder and extract the file to there).
    Then compile the .java file in jbuilder and it runs, hopefully.
    I'm guessing there are easier ways to achieve a working state, but i had to get this working on a college computer with a variety of security precautions in place (including no command prompt, and no control panel which makes altering the classpath environment variable hard unfortunately).
    Hope that this helps someone.
    Sheepy / Andy

  • JSF 2.0 Beta1, simple example, doesn't work, why?

    I made a simple JSF 2.0 NetBeans (Web Application project) example. Only imported library jars are jsf-api.jar and jsf-impl.jar from mojarra-2.0.0-Beta1 release.
    These are files which I added:
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.xhtml</url-pattern>
        </servlet-mapping>
    </web-app>
    test.xhtml (example from DZone JSF 2.0 RefCard):
    <html xmlns="http://www.w3.org/1999/xhtml"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:ui="http://java.sun.com/jsf/facelets">
         <h:head></h:head>
         <h:body>
              <h:form>
                   <h:outputText value="test" />
              </h:form>
         </h:body>
    </html>And that's it. There is no faces-config.xml, as it is not needed. There are no managed beans. JSF and Facelets plugins are disabled.
    When I try to deploy, a get an exception:
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: com/sun/facelets/tag/jsf/ComponentHandler
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         at com.sun.faces.util.Util.loadClass(Util.java:200)
         at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:308)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:523)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:358)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:311)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:260)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:312)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:210)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
         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:597)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.ClassNotFoundException: com.sun.facelets.tag.jsf.ComponentHandler
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 39 moreI tried NetBeans versions: 6.5.1, 6.7-RC3 and 200906261401 Build. Tried with latest Apache-Tomcat and JBoss. It's all the same.
    What is the problem? Why it seeks for a facelets com.sun.faces.config.ConfigureListener, from conventional standalone facelets library? Shouldn't it use facelets classes from JSF 2.0 library?
    I tried to add facelets-1.1.15.B1 jar into project, just to see what happens, and the same exception is thrown ...
    Please help!

    It's because somewhere on your classpath there is a facelet-taglib.xml that's referencing Facelet 1.1.x classes which aren't present.

  • Error: java.lang.NoClassDefFoundError in execution

    Hi, I compile my code right but when I'm executing the code I get the following error:
    java.lang.NoClassDefFoundError: jahuwaldt/tools/NeuralNets/NeuronFactory
    This is my code:
    import jahuwaldt.tools.NeuralNets.*;
    public class Gene
    public FeedForwardNet OOLFFNet;
    public Gene(int newNumInput,int newNumOutput,int newNumHidden,int newNeuronHLayer)
      OOLFFNet = new FeedForwardNet(NumInput,NumOutput,NumHidden,NeuronHLayer, new BasicNeuronFactory() );This line that fails is the last one.
    In the directory of jahuwaldt/tools/NeuralNets I got the file NeuronFactory.class. So I don't know why the code compiles right but when it is in execution mode gives the error non class found, when the class is in the directory. Any help?. Thanks in advance

    Hi, thanks again. I'm stuck with this I have test several options but I still get the same error. These are some options that I have tried.
    java -classpath  C:\NeuralNet\jahuwaldt\tools\NeuralNets\NeuronFactory\*.class; sim.app.OOL.OOLWithUI
    java -classpath  C:\NeuralNet\jahuwaldt\tools\NeuralNets\NeuronFactory\NeuronFactory.class; sim.app.OOL.OOLWithUIWhere is the problem?, I think that they are the same that the example from the java help.
    java -classpath C:\java\MyClasses\myclasses.jar utility.myapp.Cool
    Thanks again.

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

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

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

  • Problem in runing the jdb examples!

    Hi,everyone:
    As a part of my research project, I need catch the type of variables dynamically.So I decided to use the JDI.
    First I want to compile and run the jdb example. But I got a problem.
    When I use Eclipse, it run fine. But when I use the command line mode, I got a error:
    Exception in thread "main" java.lang.NoClassDefFoundError: TTY (wrong name: com/sun/tools/example/debug/tty/TTY)
    at java.lang.ClassLoader.defineClass0(Native Method)
    I don't konw why? Is there anyone can help me?
    Thank you!!
    Duanyh
    SJTU

    Hello
    You wrote:
    [...]when I use the
    e command line mode, I got a error:
    Exception in thread "main"
    n" java.lang.NoClassDefFoundError: TTY (wrong name:
    com/sun/tools/example/debug/tty/TTY)
    at java.lang.ClassLoader.defineClass0(Native
    ve Method)
    I don't konw why?Because the name of the main class is not TTY. It
    is com.sun.tools.example.debug.tty.TTY
    For more information on handling packages, refer to this page:
    "Creating and Using Packages"
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
    For an example of how to compile and run TTY (the jdb debugger),
    take a look at this forum thread:
    http://forum.java.sun.com/thread.jsp?forum=47&thread=453776
    Is there anyone can help me?
    Thank you!!
    Duanyh
    SJTU

  • Working fine and then java.lang.NoClassDefFoundError out of nowhere?

    Running Java 1.4.2 and Tomcat 5.0.25, both due to shared platform limitations...
    I'm new to Java but managed write the JSP's I needed and they have been working beautifully. Then today, out of nowhere, I get the following in the log:
    2007-02-06 22:00:20 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
    2007-02-06 22:00:20 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
    2007-02-06 22:00:22 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
    2007-02-06 22:00:22 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
    2007-02-06 22:00:35 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2007-02-06 22:00:35 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2007-02-06 22:00:35 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2007-02-06 22:00:35 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2007-02-06 22:00:35 StandardContext[/servlets-examples]SessionListener: contextInitialized()
    2007-02-06 22:00:37 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpClient
         at org.apache.jsp.host.get_jsp._jspService(get_jsp.java:96)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:534)when I found the server, it seemed to be unresponsive to any http request I sent it. After a restart, all was functioning again just like before. The jar for org/apache/commons/httpclient/HttpClient is in my web_inf/lib dir as it always has been. It wouldn't have worked on restart if it wasn't.
    So, the question is... is there some bug in the Tomcat and Java combination I've got that caused this? If not, then what happened? Should I up the logging level to warnings? Should I move the jars I'm using into the tomcat lib dir? Any help would be appreciated by this early java learner.
    Thanks,
    Mac

    Could this be a situation where load played a factor? Just another thought I had...

  • Beginner running RMI example problem

    I am trying to test this RMI code from Thinking in java and it is giving this error
    Exception in thread "main" java.lang.NoClassDefFoundError: DispatchPerfectTime (
    wrong name: project3/rmi/DispatchPerfectTime)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    I compiled the 3 files below and also called rmic and created a stub and skeleton..... Only it doesnt run..
    Any ideas why ?
    INTERFACE
    package project3.rmi;
    import java.rmi.*;
    interface PerfectTimeI extends Remote
         long getPerfectTime() throws RemoteException;
    }Implementation of Remote interface
    package project3.rmi;
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    import java.net.*;
    public class PerfectTime extends UnicastRemoteObject implements PerfectTimeI
         public long getPerfectTime() throws RemoteException
              return System.currentTimeMillis();
         //constructor to throw remote exceptions
         public PerfectTime() throws RemoteException
              //super(); called automatically
         //register for rmi server
         public static void main(String args[]) throws Exception
              LocateRegistry.createRegistry(2005);
              System.setSecurityManager(new RMISecurityManager());
              PerfectTime pt = new PerfectTime();
         Naming.rebind("//200.23.23.2:2005/PerfectTime",pt); //I put dummy IP instead of my real IP
              System.out.println("Ready to do time");
    }USING REMOTE OBJECT
    /**Using the remote object**/
    package project3.rmi;
    import java.rmi.*;
    public class DispatchPerfectTime
         public static void main(String args[]) throws Exception
              System.setSecurityManager(new RMISecurityManager());
              PerfectTimeI t = (PerfectTime)Naming.lookup("//200.23.23.2:2005/PerfectTime");
              for(int i =0;i<10;i++)
              System.out.println("Perfect Time is "+t.getPerfectTime());
    }

    I am just using another RMI example from class now...
    All files are compiling but this is error.....
    C:\>java -classpath c:\ RMIServer
    Starting Server
    Started Server...
    Binding to RMI Registry
    Error RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: RMIServer_Stub
    I doono if my host is correct...... I donno what to write in place of test... its some service??
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class RMIServer extends UnicastRemoteObject implements RMIInterface
      static String host = "rmi://IPAddress/test";
      static String data[] = {"c","c++","java"};
      public RMIServer() throws RemoteException
                super();
      //implement methods
      public int getNumData() throws RemoteException
                return data.length;
      public String getData(int index) throws RemoteException
              if(index>=0 && index<data.length)
                   return data[index];
              else
                   return "N/A";
      public static void main(String args[])
           RMIServer server;
           try{
                System.out.println("Starting Server");
                server = new RMIServer();
                System.out.println("Started Server...");
                  System.out.println("Binding to RMI Registry");
                Naming.rebind(host,server);
                System.out.println("Remote methods registered successfully");
           catch(Exception e){
                System.out.println("Error "+e.getMessage());
      }//main
    } //class

Maybe you are looking for

  • Problem with BizTalk server 2013 SFTP adapter on Cloud VM

    All,  We have deployed Microsoft Biztalk Server 2013 Enterprise edition on a cloud VM. We are facing an issue with SFTP adapter to receive. Following are the details;  On this VM, we are facing an issue with BizTalk server 2013 SFTP adapter. The SFTP

  • Problems Creating R/3 46c Source System in BW3.50

    Hello. Does anyone know if there is a way around opening up your R/3 system when creating it as a Source System in BW?  I have no problems when creating the Source System in DEV, but when I attempt to create it in QAS and PRD, I get the message "Chan

  • Replicate quickly an SAP TDMS HCM copy

    Madame and Sirs goodevening, I have this scenario: I implementented a SAP TDMS HCM - EXPERT scrambling scenario from my prod system (IE PRD) to quality system (IE: QUA). My question is: is possible in the future (next month?) re-execute only HCM - EX

  • Auto generate employee/applicant number

    Hi All I want to auto generate the employee and applicant number as follows: ABCW0000001 ABCS00000001 Where first 3 characters i.e., ABC stands for the company name and fourth characters i.e., W stands for Workers and followed by the employee number.

  • LR Question Mark in Library

    All pix are now on my external HD. The question mark showed up on my pix in LR. I did right click to show in finder and it directed me to my external HD which was connected. However, it didn't find it by itself. I had to directed to straight to the f