The import weblogic.utils.collections.MultiMap cannot be resolved

Hi,
I imported a project from weblogic to eclipse. I'm getting the below mentioned error
"The import weblogic.utils.collections.MultiMap cannot be resolved "
Added the necessary weblogic jar files to the project in eclipse.
Kindly help me.
Thanks in advance.

Please Close this thread and reopen it in
Oracle Discussion Forums » Application Server » WebLogic Server - General

Similar Messages

  • The import com.adobe.service.ConnectionFactory cannot be resolved

    I am trying to step through the Reader Extensions samples for extended my form via servlets.
    I imported in the datamanager-client.jar and PDFManipulation.jar files found in my Adobe\LiveCycle\ReaderExtensions\sdk folder.
    However, I am getting the error that "The import com.adobe.service.ConnectionFactory cannot be resolved" I believe this should be part of the datamanager-client.jar.
    Any insight? I also tried the datamanager-client.jar found in this folder: Adobe\LiveCycle\components\csa\common\lib\adobe, but no luck there either.
    Thank you,
    Jennifer

    Hello -
    ok, wrong file. I needed the DocumentServicesLibrary.jar (used the one found here: Adobe\LiveCycle\ReaderExtensions\lib) file. That's what I get for trying to run through this too quickly...
    Thanks...
    Jennifer

  • The import "java.util.scanner" is not vaild

    I am experiment with the java.util.scanner API after compiling the code below I received the following error:
    The import "java.util.Scanner" is not valid, since it does not name a type in a package.
    I declared a string variable should that suffice?
    import java.util.Scanner;
    public class Echo {
    public static void main (String[] args)
    String message;
    Scanner scan = new Scanner (System.in);
    System.out.println ("enter something:");
    message = scan.nextLine();
    System.out.println ("hey you entered: \"" + message + "\"");
    }

    Most IDEs let you select and installed JDK for them to use. Check out that IDE's preferences.
    Otherwise, start here and learn to do it with a simple text editor or programmer's editor, and the command line.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/

  • We auto import flash.utils.trace; which cannot be found

    Steps to reproduce:
    1. Create a flex application with a script tag
    2. Inside the script tag get hints after 'tra'
    3. The first item that appears is 'trace(..rest)' -- select
    that
    Actual Results:
    import flash.utils.trace; is added
    and this error appears in problems pane

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Flex 3 - flash.error package Error classes:
    The flash.error package contains Error classes that are
    considered part of the Flash Player API. In contrast to the Error
    classes just described,
    Link:
    http://livedocs.adobe.com/flex/3/html/11_Handling_errors_14.html
    Yahoo! Flash (R) Blog Blog Archive Yahoo! and Flex: Feel
    Good:
    Dec 13, 2007 ... generates an error (Flex SDK 2 compiler on
    mac OS X) ... came across this skin for Flex via the Yahoo! Flash
    Blog. Its a very clean looking
    Link:
    http://www.yswfblog.com/blog/2007/12/13/yahoo-and-flex-feel-good-in-your-own-skin/
    Error (Flex 3):
    Returns the call stack for an error as a string at the time
    of the error's construction (for the debugger version of Flash
    Player and the AIR Debug Launcher
    Link:
    http://livedocs.adobe.com/flex/3/langref/Error.html
    Error #2025 - Clash between Flex 2 & Flash CS3 :: Thanks,
    Mister!:
    This was a tough error, and probably not the first one that
    will be encountered as Flash and Flex start mingling more in the
    near future.
    Link:
    http://thanksmister.com/?p=64
    Error (Flex 2.0.1 Language Reference):
    package { import flash.display.Sprite; public class
    ErrorExample extends Sprite ... Current page:
    http://livedocs.adobe.com/flex/201/langref/Error.html
    Link:
    http://livedocs.adobe.com/flex/201/langref/Error.html
    Flex Monkey Patches flash:
    Recently we upgraded to flash player 9.0.115. We are still
    using Flex 2.0.1 hfxxx and now we regularly get the following error
    when we run our Flex app:
    Link:
    http://blog.flexmonkeypatches.com/tag/flash/
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Question on import java.util.ArrayList, etc.

    Hi,
    I was wondering what the following meant and what the differences were. When would I have to use these:
    import java.util.ArrayList;
    import java.util.Collections; <--I especially don't understand what this means
    import java.util.Comparator; <---same for this (can I consolidate these into the bottom two?)
    import java.io.*;
    import java.util.*;

    MAresJonson wrote:
    Also, what does this mean:
    return foo == f.getFoo() ? true : false;
    (more specifically...what does the "? true : false" mean and is there another way to code that?)It's called the ternary operator. For your specific example, you could just do:
    return foo == f.getFoo();But, more generally,
      return foo == f.getFoo() ? "equal" : "Not equal";means:
    if (foo == f.getFoo()) {
       return "equal";
    else {
       return "Not equal";
    }As everyone else said at the same time...

  • Weblogic.utils.AssertionError moving from 6.1sp3 to 6.1sp4

    Has anyone used webstart with 6.1sp4
    I have a Java Webstart (v1.0.1) swing application deployed to a
    weblogic 6.1 sp3 server. This configuration has worked successfully
    for the last 6 months. I am now trying to install sp4 and I get the
    following error. I have recompiled my application and my ejbs. I
    have also tried packaging the full weblogic.jar from sp4 with my
    application. After I return the context using
    weblogic.jndi.WLInitialContextFactory, when I attempt to execute a
    call to an ejb I get this...
    java.util.EmptyStackException
    at weblogic.utils.collections.Stack.pop(Stack.java:82)
    at weblogic.kernel.ResettableThreadLocalStack.pop(ResettableThreadLocalS
    tack.java:79)
    at weblogic.jndi.internal.ThreadEnvironment.pop(ThreadEnvironment.java:1
    8)
    at weblogic.jndi.internal.WLContextImpl.close(WLContextImpl.java:72)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.close(ReadOnlyCon
    textWrapper.java:30)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.closeContext(Unkno
    wn Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.getEventMappings(U
    nknown Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB.ejbCreate(Unkn
    own Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_Impl.ej
    bCreate(ACubeStatelessPOEEJB_a8m3bo_Impl.java:117)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionP
    ool.java:159)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool
    .java:119)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.ja
    va:156)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:12
    4)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObje
    ct.java:63)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl.
    handleEvent(ACubeStatelessPOEEJB_a8m3bo_EOImpl.java:69)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl_
    WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ attempt
    to pop from
    an empty stack ] - with nested exception:
    [java.util.EmptyStackException]
    at weblogic.kernel.ResettableThreadLocalStack.pop(ResettableThreadLocalS
    tack.java:81)
    at weblogic.jndi.internal.ThreadEnvironment.pop(ThreadEnvironment.java:1
    8)
    at weblogic.jndi.internal.WLContextImpl.close(WLContextImpl.java:72)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.close(ReadOnlyCon
    textWrapper.java:30)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.closeContext(Unkno
    wn Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.getEventMappings(U
    nknown Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB.ejbCreate(Unkn
    own Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_Impl.ej
    bCreate(ACubeStatelessPOEEJB_a8m3bo_Impl.java:117)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionP
    ool.java:159)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool
    .java:119)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.ja
    va:156)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:12
    4)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObje
    ct.java:63)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl.
    handleEvent(ACubeStatelessPOEEJB_a8m3bo_EOImpl.java:69)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl_
    WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    This is fixed in SP5. You coula get a patch over SP4 from support by referring to
    CR093416.
    Jeff Ryan wrote:
    Has anyone used webstart with 6.1sp4
    I have a Java Webstart (v1.0.1) swing application deployed to a
    weblogic 6.1 sp3 server. This configuration has worked successfully
    for the last 6 months. I am now trying to install sp4 and I get the
    following error. I have recompiled my application and my ejbs. I
    have also tried packaging the full weblogic.jar from sp4 with my
    application. After I return the context using
    weblogic.jndi.WLInitialContextFactory, when I attempt to execute a
    call to an ejb I get this...
    java.util.EmptyStackException
    at weblogic.utils.collections.Stack.pop(Stack.java:82)
    at weblogic.kernel.ResettableThreadLocalStack.pop(ResettableThreadLocalS
    tack.java:79)
    at weblogic.jndi.internal.ThreadEnvironment.pop(ThreadEnvironment.java:1
    8)
    at weblogic.jndi.internal.WLContextImpl.close(WLContextImpl.java:72)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.close(ReadOnlyCon
    textWrapper.java:30)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.closeContext(Unkno
    wn Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.getEventMappings(U
    nknown Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB.ejbCreate(Unkn
    own Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_Impl.ej
    bCreate(ACubeStatelessPOEEJB_a8m3bo_Impl.java:117)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionP
    ool.java:159)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool
    .java:119)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.ja
    va:156)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:12
    4)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObje
    ct.java:63)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl.
    handleEvent(ACubeStatelessPOEEJB_a8m3bo_EOImpl.java:69)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl_
    WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ attempt
    to pop from
    an empty stack ] - with nested exception:
    [java.util.EmptyStackException]
    at weblogic.kernel.ResettableThreadLocalStack.pop(ResettableThreadLocalS
    tack.java:81)
    at weblogic.jndi.internal.ThreadEnvironment.pop(ThreadEnvironment.java:1
    8)
    at weblogic.jndi.internal.WLContextImpl.close(WLContextImpl.java:72)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.close(ReadOnlyCon
    textWrapper.java:30)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.closeContext(Unkno
    wn Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeEventMapper.getEventMappings(U
    nknown Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB.ejbCreate(Unkn
    own Source)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_Impl.ej
    bCreate(ACubeStatelessPOEEJB_a8m3bo_Impl.java:117)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionP
    ool.java:159)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool
    .java:119)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.ja
    va:156)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:12
    4)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObje
    ct.java:63)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl.
    handleEvent(ACubeStatelessPOEEJB_a8m3bo_EOImpl.java:69)
    at com.advpcs.acube.eventhandler.ejb.ACubeStatelessPOEEJB_a8m3bo_EOImpl_
    WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Import -Export Utility in Shared Services

    Hi,
    Can anyone help me to get through the import-export utility of Shared Services?
    I need to know
    1)How to export security file information stored in shared services using xml file( I need to run it in weekly basis)
    2)How to import it back if ever the security file gets corrupted?
    Please help me with th same.

    If you go with the csv format (yes, I know, you wrote xml) you don't need an internal id field.
    Here's a snippet of a file I used to build a group in Shared Services 11.1.1.3:
    #group_children,,,,
    id,group_id,group_provider,user_id,user_provider
    XXXXPlan_All_Users,,,HoldenW,XXXXDC
    XXXXPlan_All_Users,,,CooperG,XXXXDC
    XXXXPlan_All_Users,,,WayneJ,XXXXDCI'm sure I got the format by first manually creating the group in SS, then exporting it, then modifying it. Yes, I did actually delete that native group in SS before I reimported from this file.
    Regards,
    Cameron Lackpour

  • Import org.apache.avalon cannot be resolved

    Hi, I am new to Eclipse and J2EE in general and I have tried to import a project in Eclipse 3.0.1. However, I am getting several compile errors having to do with the following imports:
    import org.apache.avalon.framework.activity.Initializable;
    import org.apache.avalon.framework.activity.Startable;
    import org.apache.avalon.framework.configuration.Configurable;
    import org.apache.avalon.framework.configuration.Configuration;
    import org.apache.avalon.framework.configuration.ConfigurationException;
    import org.apache.avalon.framework.logger.AbstractLogEnabled;
    import dragon.common.services.cache.janitor.ICacheJanitorService;
    import dragon.common.services.cache.store.IExpiringStoreComponent;
    import dragon.common.services.cache.store.IStoreComponent;
    stating that
    "The import..." [import package name] "...cannot be resolved"
    Can anyone help with what I should do? Thanx

    I am trying to compile code but keep getting an error stating that the import of a class is not working? I wondered if I am having the same problem. I am running eclipse 3.0. The applet is called joole and it is importing CBoolFkt but it is evidently not working. Appreciate any ideas.
    The applet is not initiating and the error messages is as follows:
    java.lang.Error: Unresolved compilation problems:
         The import CBoolFkt cannot be resolved
         The import ShowCopyright cannot be resolved
         at Joole.<init>(Joole.java:8)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • My class cannot be resolved to a type

    I just installed jstl and I am trying to get it work using this test code. The class Customer is in WEB-INF/classes, an ArrayList of Customer objects is stored in the session in the attribute "results". Any ideas why this is failing?
    <base href="<%= request.getScheme() +"://" + request.getServerName() + (request.getServerPort() != 80 ? ":" + request.getServerPort() : "") + request.getRequestURI() %> "/>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ page import="java.util.Collection,
                     java.util.ArrayList"%>
    <%@ taglib prefix="h" tagdir="/WEB-INF/tags" %>
    <jsp:useBean id="customer" class="Customer" />
    <jsp:useBean id="results" scope="session" class="java.util.ArrayList" />
    <table>
    <c:forEach items="${customer.results}" var="item">
    <tr>
         <td><c:out value="${item.id}"/></td>
         <td><c:out value="${item.name}"/></td>
    </tr>
    </c:forEach>
    </table>Here is the error I'm getting:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         Search.doPost(Search.java:95)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
    An error occurred at line: 8 in the jsp file: /listCustomers.jsp
    Generated servlet error:
    Customer cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:413)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         Search.doPost(Search.java:95)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.16 logs.

    I added this line to my class:
    package storePackage;and put the compiled class in: WEB-INF/classes/storePackage/
    Then I changed my jsp to:
    <base href="<%= request.getScheme() +"://" + request.getServerName() + (request.getServerPort() != 80 ? ":" + request.getServerPort() : "") + request.getRequestURI() %> "/>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ page import="java.util.Collection,
                     java.util.ArrayList"%>
    <%@ taglib prefix="h" tagdir="/WEB-INF/tags" %>
    <c:set var="customer" value="<%= new Customer() %>"/>
    <jsp:useBean id="customer" class="com.storePackage.Customer" />
    <jsp:useBean id="results" scope="session" class="java.util.ArrayList" />
    <table>
    <c:forEach items="${customer.results}" var="item">
    <tr>
         <td><c :o ut value="${item.id}"/></td>
         <td><c :o ut value="${item.name}"/></td>
    </tr>
    </c:forEach>
    </table>Now I'm getting this:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /listCustomers.jsp(9,0) The value for the useBean class attribute com.CustomerPackage.Customer is invalid.
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         Search.doPost(Search.java:95)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: /listCustomers.jsp(9,0) The value for the useBean class attribute com.CustomerPackage.Customer is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1174)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3304)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         Search.doPost(Search.java:95)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.16 logs.

  • DefaultHander cannot be resolved to a type

    Hello -
    I am using Eclipse to write a java mapping program but even before compilation, Eclipse IDE shows DefaultHandler as cannot be resolved to a type.
    I have done the following imports:
    import com.sap.aii.mapping.api.StreamTransformation;
    import org.xml.sax.*;
    import java.io.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.Map;
    import javax.xml.parsers.SAXParser;
    I have added only aii_map_api.jar in the External JAR's in Eclipse.
    What other imports should be done to avoid this error?
    Thanks,
    Tirumal

    Tirumal ,
    If you are getting the same error as you have written in the thread subject,
    <b>DefaultHander</b> cannot be resolved to a type , then note that if it is reffering to an imported class <b>DefaultHander</b> which should be <b>DefaultHandler</b>

  • Runtime error - Session cannot be resolved to a type

    Hello! I try to get JavaMail working, but all in vain.
    The problem is I get such an error every time.
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 29 in the jsp file: /SendMail.jsp
    Session cannot be resolved to a type
    26:    prop.put("mail.smtp.host",hostMail);
    27:    prop.put("mail.smtp.user",fromEmail);
    28:    prop.put("mail.smtp.auth","true");
    29:    Session ses =  Session.getInstance(prop,null);
    30:    ses.setDebug(true);
    31:    MimeMessage msg = new MimeMessage(ses);
    32:    MimeBodyPart m1 = new MimeBodyPart();
    An error occurred at line: 29 in the jsp file: /SendMail.jsp
    Session cannot be resolved
    26:    prop.put("mail.smtp.host",hostMail);
    27:    prop.put("mail.smtp.user",fromEmail);
    28:    prop.put("mail.smtp.auth","true");
    29:    Session ses =  Session.getInstance(prop,null);
    30:    ses.setDebug(true);
    31:    MimeMessage msg = new MimeMessage(ses);
    32:    MimeBodyPart m1 = new MimeBodyPart();
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)I'm using Eclipse, so I've added external JARs there (activation.jar, mail.jar, mailapi.jar, pop3.jar, smtp.jar). In addition to this, the same libraries are in +/opt/jdk1.6.0_13/jre/lib/+.
    I've imported javax.mail.*, java.util.*, javax.mail.internet.* in my JSP file. I tried to do a lot of manipulations. Also I tried to use different code examples, but the error in the line "Session.getInstance(props, null)" remains the same.
       Properties prop = new Properties();
       prop.put("mail.smtp.host",hostMail);
       prop.put("mail.smtp.user",fromEmail);
       prop.put("mail.smtp.auth","true");
       Session ses =  Session.getInstance(prop,null);The same problem remains when I do this as a Servlet. Class compilation with javac occurs without errors.
    Might the problem be in version compatibility? I use: ArchLinux, Tomcat 5.5, JavaMail 1.4.2.
    Thanks in advance.
    Edited by: Pavel_Z on May 7, 2009 4:55 PM

    Now I am confident that the problem is with library including, as the same thing happens with other libraries.
    I found that such a warning appears every time:
    Classpath entry /jspbook/src/lib/mail.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.Unfortunately, I've no idea how to include this in a proper way. I think that setting it in "Add External JARs" in "Java Build Path" is enough... or not?
    Seems we're close to solve the problem. May be this screen shot will be helpful to determine the problem?
    http://img257.imageshack.us/img257/3967/screenshotjavaeejspbook.png
    You can see that libraries are included in the Project Explorer

  • JSP impot class cannot be resolved to a type

    This has got to be an easy problem but we cannot seem to figure it out.
    I am using Tomcat 6.0.18 and JRE 1.5.09
    This is my class:
    package hello;
    public class hello{
    public void run(){
         System.out.println("Hello World");
    }}This is my JSP:
    <%@ page language="java" import="java.util.* , java.io.* , java.text.*" errorPage="error.jsp"%>
    <%@ page import="hello.*" %>
    <%
    hello h = new hello();
    h.run();
    %>and this is the error:
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 7 in the jsp file: /test.jsp
    hello cannot be resolved to a type
    4:
    5: <%
    6:
    7: hello h = new hello();
    8: h.run();
    9:
    10: %>
    I have the "hello.class" in
    C:\Tomcat6\webapps\ROOT\WEB-INF\classes\hello
    C:\Tomcat6\webapps\ROOT\WEB-INF\classes
    C:\Tomcat6\webapps\ROOT\WEB-INF
    C:\Tomcat6\webapps\manager\WEB-INF\classes\hello
    C:\Tomcat6\webapps\manager\WEB-INF\classes
    C:\Tomcat6\webapps\manager\WEB-INF
    C:\Tomcat6\webapps\host-manager\WEB-INF\classes\hello
    C:\Tomcat6\webapps\host-manager\WEB-INF\classes
    C:\Tomcat6\webapps\host-manager\WEB-INF
    Can someone pelase offer a suggestion and please tell me where the CLASS file should actually reside? Please?

    hii..
    Try this code.I hope u wil get the output.
    test.jsp
    <%@ page language="java" import="java.util.* , java.io.* , java.text.*" errorPage="error.jsp"%>
    <%@ page import="hello.*" %>
    <html>
    <head></head>
    <body><%
    hello h = new hello();
    out.println( h.run());%>
    </body>
    </html>
    hello.java
    package hello;
    public class hello{
    public String run(){
         String a="Hello World";
    return a;
    }}

  • Enumeration cannot be resolved in JSP

    I am using Apache Tomcat/6.0.10, you will find below there is a program as well as an error message, for some reason, the Enumeration just doesn't seem to be recognized by the compiler.
    <%@ page contentType="text/html;charset=big5" %>
    <%@ page import="java.util.Enumeration" %>
    <html>
    <head><title>Sample264</title></head>
    <body>
    <h2>before deleting</h2>
    <%
    // save application param
    String storedData="JSPexample";
    application.setAttribute("appdata",storedData);
    String param;
    Enumeration enum=application.getAttributeNames();
    while(enum.hasMoreElements())
         param=enum.nextElement().toString();
         out.println("<b>"+param+"</b>:"+application.getAttribute(param)+"<br>");
    %>
    <h2>after deleting</h2>
    <%
    application.removeAttribute("appdata");
    enum=application.getAttributeNames();
    while(enum.hasMoreElements())
         param=enum.nextElement().toString();
         out.println("<b>"+param+"</b>:"+application.getAttribute(param)+"<br>");
    %>
    </body>
    </html>
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 12 in the jsp file: /test2.jsp
    Enumeration cannot be resolved
    9: String storedData="JSPexample";
    10: application.setAttribute("appdata",storedData);
    11: String param;
    12: Enumeration enum=application.getAttributeNames();
    13: while(enum.hasMoreElements())
    14: {
    15:      param=enum.nextElement().toString();
    I would appreciate if any of you try this program and see whether it works on your tomcat or not.
    I also tried to import java.util.* (the whole thing) but it failed as well.
    Thank you for your help.

    I tried but still doesn't work......thx for replying though....
    below is the same message, except with a different line number
    may I ask u, did u try to run it in your IE??If u did, did it work??
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 11 in the jsp file: /test2.jsp
    Enumeration cannot be resolved
    8: String storedData="JSPexample";
    9: application.setAttribute("appdata",storedData);
    10: String param;
    11: Enumeration enum=application.getAttributeNames();
    12: while(enum.hasMoreElements())
    13: {
    14:      param=enum.nextElement().toString();

  • Table error - Context Path Cannot Be Resolved (Last Node Is Empty)

    Hi All,
    I am dynamically building up a context node called PoList which is used to hold the contents of a table.
    My BAPI is called and a routine transfers the contents of the BAPI context node across into the POList context node. This is rendered correctly on the screen. There is a routine which filters the results based on a vendor. The code works fine when some records are found but when no records are found, I get the error "Context Path POLIST.EBELN Cannot Be Resolved (Last Node Is Empty) ".
    The cardinality of the PoList node is 0..N. This should mean that 0 records is valid.
    The ABAP which fills the context is pasted below :
    data:
        Node_Z_Bapi_Po_Combined             type ref to If_Wd_Context_Node,
        Node_Changing_Po                    type ref to If_Wd_Context_Node,
        Node_T_Header                       type ref to If_Wd_Context_Node,
        Elem_T_Header                       type ref to If_Wd_Context_Element,
        itab_C_T_Header    type If_Componentcontroller=>Elements_Polist,
       stru_C_T_Header    like line of itab_C_T_Header,
        Stru_T_Header                       type If_Componentcontroller=>Element_T_Header .
      data:
        Node_Polist                         type ref to If_Wd_Context_Node,
        Elem_Polist                         type ref to If_Wd_Context_Element,
        Stru_Polist                         type If_Componentcontroller=>Element_Polist.
      data:
    lri_Element    type ref to if_Wd_Context_Element,
    loa_Elements   type Wdr_Context_Element_Set.
    navigate from <CONTEXT> to <Z_BAPI_PO_COMBINED> via lead selection
      Node_Z_Bapi_Po_Combined = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Z_Bapi_Po_Combined ).
    navigate from <Z_BAPI_PO_COMBINED> to <CHANGING_PO> via lead selection
      Node_Changing_Po = Node_Z_Bapi_Po_Combined->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Changing_Po ).
    navigate from <CHANGING_PO> to <T_HEADER> via lead selection
      Node_T_Header = Node_Changing_Po->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_T_Header ).
    navigate from <CONTEXT> to <POLIST> via lead selection
      Node_Polist = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Polist ).
      loa_Elements = node_T_Header->get_Elements( ).
      loop at loa_Elements[] into lri_Element.
        lri_Element->get_Static_Attributes(
          importing Static_Attributes = stru_C_T_Header ).
    Get the vendor number
        if i_lifnr is initial.
          insert  stru_C_T_Header into table itab_C_T_Header[].
        elseif i_lifnr = stru_c_t_header-lifnr.
          insert stru_C_T_Header into table itab_C_T_Header[].
        endif.
      endloop.
      data : W_LINES TYPE I.
      describe table itab_c_t_header lines w_lines.
      if w_lines eq 0.
        node_Polist->set_lead_selection_index( 0 ).
        CALL METHOD NODE_POLIST->INVALIDATE.
      else.
        node_Polist->bind_Table( itab_C_T_Header ).
        clear itab_C_T_Header[].
      endif.
    I would have though that invalidating the node would blank the context node and mean that the table is empty but instead I get an error.
    Please help.
    Richard

    Hi Richard,
    The problem here is that some UI element tries to bind against a node where the parent node is empty. You have to make sure that the last but one node has at least 1 element, otherwise you should hide the UI element (visibility = NONE).
    If the lead selection were empty, the corresponding error message would tell you this, but it explicitely says: "Last Node is Empty", and you can trust it.
    One possibility to have at least one element in the node is to change the cardinality to 1..n. If you have a supply function for this node, you have to make sure that there is at least 1 element (bind empty structure to the node), otherwise the framework creates the first element for you.
    Ciao, Regina

  • Include JSP in JSP - Error:  cannot be resolved to a type

    Hello,
    Several of my jsp pages include other jsp pages. The project has many errors: "x cannot be resolved to a type". Is there a way to resolve these errors? Below is a small example of the issue:
    JSP #1:
    <%@ page import="com.testing.Introduction" %>
    <html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Hello</title>
    </head>
    <body>
    <%
         Introduction intro = new Introduction();
         String speak = intro.sayHello();
    %>
    <p><%=speak %></p>
    <%@ include file="Name.jsp" %>
    </body>
    </html>  JSP #2:
    <html>
    <head>
    <title>Name</title>
    </head>
    <body>
    <%
         String speak2 = intro.sayName();
    %>
    <p>
    <%=speak2 %>
    </p>
    </body>
    </html>Class:
    package com.testing;
    public class Introduction
         public static void main(String[] args) {
         public Introduction() {
              super();
         public String sayHello() {
              return "Hello";          
         public String sayName()     {
              return "My name is Sam";
    }The error shows up in Name.jsp; the issue is with "intro". Any ideas how to resolve this issue?
    Thank you in advance for your help!

    The jsp page Name.jsp appears to be missing the import statement that appears in the first page.
    <%@ page import="com.testing.Introduction" %>The included file is included character for character into the main page which is then treated as a single jsp page for the response. The include directive is invoked at the time of page translation. Given this, I don't see the purpose of using the <html> <head> and <title> tags in the second and included page. I don't think that this suggests the proper purpose of the include directive.
    Note too that if the included file changes, all of the jsp files that call this file need to be updated as well. Servers can handle the alteration of the main jsp, but may not serve the altered content if the included file changes.
    For more information see here. http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro8.html

Maybe you are looking for

  • LDP question

    Hi, all, I have a question regarding LDP tunnel LSP which I can't think of a satisfied answer. Suppose we have two routers connected back to back, but, LDP is not enabled on either router's interface. If I configure EoMPLS in between , a LDP targeted

  • EnterPrise Portal Content Missing

    Hi Friends, I have recently Installed NW2004S (with usage types ep and pi) on Sun Solaris OS 5.10 and Oracle 10.2 for Test Environment.After Installing Facing issue with Java Engine. I am facing 2 issues: 1)For every half an hour server0 is restartin

  • Create two different printer profiles in ePrintCenter.

    Dear, I want to create two different printer profiles: one "color" printer and one "black & white" printer. In the ePrintCenter you can only create one kind of profile. (Associated with one e-mail address) Is it possible to set this up? Regards. Prin

  • I just need to get my licenses again, adobe was taken off of laptop

    Laptop, due to freaking Windows 8, had to do a refresh and Adobe was uninstalled, need to get my license again so I can use the program I paid for again. Thanks

  • Address Book won't print

    I have previously printed lists from my address book without difficulty. Suddenly, when I choose File>Print, nothing happens. Nothing shows up in the print cue. Can anyone help?