Lucene import statements not working

I'm new to Tomcat, Lucene, and JSP, so bare with me...
I just installed all three and Tomcat and JSP are working and Lucene is working. Now I'm trying to get them working together but I don't know where my issue is. I have a sample page I found and it's not working and giving me the following error messages...
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.knowledgebooks.servlet.StartupWorkServlet resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.lucene.document.Document resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. org.apache.lucene.analysis.Analyzer resolves to a package
An error occurred at line: 11 in the generated java file
Only a type can be imported. org.apache.lucene.analysis.standard.StandardAnalyzer resolves to a package
An error occurred at line: 14 in the generated java file
Only a type can be imported. resolves to a package
An error occurred at line: 15 in the generated java file
Only a type can be imported. org.apache.lucene.queryParser.QueryParser resolves to a package
An error occurred at line: 16 in the generated java file
Only a type can be imported. resolves to a package
An error occurred at line: 17 in the generated java file
Only a type can be imported. com.knowledgebooks.API resolves to a packageI'm not even sure where to begin looking. Does anyone have any idea?
Thanks in advance!

can you provide me your jsp code? so i can look into and advice you.

Similar Messages

  • Import statement not working

    i created a package named "pkg1", it contains 4 classes named
    1) Base
    2) Subclass1 (extends Base)
    3) Subclass2 (extends Subclass1)
    4) Subclass3 (extends Subclass2)
    now when i try to use the package using
    import pkg1.*
    and in main method, if i write,
    Subclass3 obj = new Subclass3();
    It does not work, error msg says "makes sure Subclass3 is in the correct sub-directory."
    However, when i tried
    import pkg1.Subclass3;
    It worked fine, Why is then import pkg1.* not working??

    I don't think that's going to help.
    Try and see.
    When the java compiler looks for a class
    pkg1.Subclass1 it looks for pkg1\
    relative to the current directory and
    pkg1\Subclass1.class relative to each directory on
    the classpath.
    When the javac compiler (at least version 1.4) looks for a dependent class, it looks in the Classpath directories. It only looks relative to the current directory if the current directory is in the Classpath. When it looks for a dependent class, it looks for both .java and .class files. If it only finds a .java file or the .java file is newer than a .class file, it will try to compile the file.
    You need to compile from the directory above
    pkg1, in this case (unfortunately) d:\
    This makes it sound like it is a requirement to compile from the directory. It isn't required.


                       WITH P_GFELD = P_GFELD AND RETURN

    Hi kota,
    1. When u use memory id, make sure of the
    following points.
    a) The memory id is SAME as the variable name
    b) Memory id should be in CAPITAL
    c) When u want to import,
    the variable name should be same as original one,
    and should be declared in the same fashion only.
    amit m.

  • Audio CD import is not working the cd is ejected before itunes can read it

    audio CD import is not working the cd is ejected before itunes can read it. Does anyone know how to fix this?

    Does this happen with all cd's or one in particular?
    Reset the SMC
    Reset the PRAM
    Try a cleaning disc. You can get them at places like Radio Shack.
    If nothing helps your optical drive has probably failed. You can replace it or purchase an inexpensive external drive. Don't buy the Apple SuperDrive as it won't work with macs that have a built in drive.

  • Select statement not working

    hi to all,
    I am trying to write use inner joining . here is code
    DATA:tabname LIKE dd02L-tabname,
         table_disc LIKE dd02t-ddtext.
      SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)
        FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
              WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
                                AND dd02L~tabname = 'ZANKI*'.
          write : tabname.
    I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank you

    I executed the ur inner join conditin by commenting 'z*' it's working fine.
    I think  where condition is not getting satisfied so u r not getting any data.
    Please conform in where condition you need * 'AND'* or OR
    I change decalration as below.
    DATA:tabname    type TABNAME,
          table_disc type AS4TEXT.
    SELECT dd02l~tabname
           dd02t~ddtext  INTO (tabname, table_disc)
    FROM dd02l  INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
    WHERE dd02t~ddlanguage = 'E' AND
          dd02l~tabclass = 'TRANSP'AND
        dd02L~tabname = 'ZANKI*'.
    write : tabname.

  • Import/Export statement  not working..

    Hi all,
       I want to export some data from BADI & Import it back in user exit.
    I wrote following line of code in BADI
           export P1 FROM xstr to memory id 'ZABHI'.
    & following line of code in User Exit
          import P1 to xstr FROM memory id 'ZABHI'.
    After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
    I tried to execute same code in single ztest abap program & it works fine there.
    Thanks in advance.

    hi abhijeet,
    you are most welcome....
    to delete, use
    ** deletes the data to save wastage of memory
    delete from database indx(xy)
      client sy-mandt
      id 'ZABHI'.
    you need to delete it coz, its available to all programs in the R/3
    server via the ID and you don't want anybody to view the data u are
    sending into memory.
    the statement that u used earlier was program specific and hence
    not accessible to the user exit.
    Samson Rodrigues.

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:

  • Import filesystem not working?

    From what I've read, the fileSystem class (which I need to
    write a data file to disk from a projector) works in Flash CS4 as
    long as you have the AIR runtime (which I do), according to the
    I found quite a bit of sample code, but I can't even get the
    package to load and all of the types and functions and classes are
    Here's my code:
    import flash.filesystem.*;
    function writeFile():void {
    var file:File = File.documentsDirectory;
    file = file.resolvePath("data.txt");
    var fileStream:FileStream = new FileStream();, FileMode.WRITE);
    // Create string
    var cOutStr:String = "This is output data";
    When I "test movie" in CS4, it doesn't even make it past the
    "import" statement, which is strange since that library is included
    in the default implicitImports.xml on my installation.
    The errors I get start with:
    1172: Definition flash.filesystem could not be found.
    And continue with expected errors if the library was not
    1120: Access of undefined property File.
    Anyone have any ideas? I can't find in my
    install folders. Perhaps it's somewhere else?
    Or perhaps I misunderstand the documentation and you can't
    use fileSystem in a flash projector with AIR?
    Or is there some setting in Flash I need to adjust to work
    with the library and AIR?
    Please help. I'm on deadline for this project and I don't
    have a clue of any other way of writing a text file to the local
    hard disk. Any assistance greatly appreciated.

    No, I'm not publishing for AIR. I have the AIR runtime and
    the free AIR SDK, but the AIR option on the Publish Dialog is
    disabled and AIR settings on File Menu do not appear as an option.
    I guess I'm pretty lost on this.

  • On iphoto my stop import is not working and the force quit does not work either

    please help - the stop import and force quit on iphoto both not working. thx!

    This happened to me today on the iPad; I put in the password 4 or 5 times. I began to think my account had been hacked. I tried again on my iPhone and it worked first time. Then I tried again on the iPad and same thing—worked first time. Maybe just a temporary glitch in the server?

  • Background-color:transparent !important; is not working in IE

    In my sharepoint site i have used "background-color:transparent !important;" css. It is not working in IE but in Mozilla is working fine.
    And I am using IE 11. Please let me know is there any thing wrong in the syntax. If that is the case please provide me correct solution for that.
    Any help would be greatly appreciated. 

    Thank you for your reply.
    I have checked given links. Those are not use for this issue.
    Actually in my sharepoint site the same code "background-color:transparent
    !important;" was working fine before installing sharepoint 2010 service pack 2. After installation we got this issue. And if i change "transparent"
    with any color, it is applying that color. Only "transparent"
    background css is not working in IE.

  • Import statement *not* required?

    Can someone explain this to me? I was following along a
    simple AS3 example (in the design video workshop) where a "Power
    Button" has some MouseEven CLICK event handling applied to it with
    a trace statement as the resulting handled function. Really simple
    basic example. The import statement is import
    How come removing the import statement does not produce an
    myButton.addEventListener(MouseEvent.CLICK, myButtonClicked);
    function myButtonClicked(event:MouseEvent):void {
    trace('do Something');

    > So to be clear...if the AS is on the main timeline,
    import statements
    > are not needed, and if the AS is external and imported,
    > statements are needed.
    That's a general rule of thumb, but not 100% applicable.
    > Are there any other exceptions to that, or does that go
    for all AS3
    > classes?
    There are exceptions, and the easiest way to find them is to
    leave out
    your import statements and plug away ... sooner or later,
    you'll get a
    compiler error, and then you'll know. :)
    >> It did strike me *** odd though, an imported .as
    file uses the same
    >> publish settings as code on the timeline. So why
    treat them differently?
    FLA files have publish settings, but AS files don't. They're
    just text
    files. I hear what you're saying ... they end up getting
    compiled along
    with / into the some FLA anyway -- and that FLA does have
    listed -- but those same AS files might be compiled in Flex
    Builder 2 or
    some 3rd party compiler. It would probably make good sense to
    require the
    import statement for inline FLA code, but not everyone is a
    programmer, and Adobe knows it. Nothing is *hurt* by using
    import in FLAs,
    but for folks who just want to do light programming, the
    convenience of not
    having to use it is nice.
    David Stiller
    Adobe Community Expert
    Dev blog,
    "Luck is the residue of good design."

  • Case when statement not working

    hi there, I am trying to work out how to get my case statement to work.
    I have got the following code. 
    select pthproto.pthdbo.cnarole.tpkcnarole, pthproto.pthdbo.cnaidta.formataddr as formataddr, cnaidta.dateeffect as maxdate, isnull(cast (pthproto.pthdbo.cnaaddr.prefix1key as varchar (50)),'') + ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix2key
    as varchar (50)),'')+ ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix3key as varchar (50)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.houseidkey as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component1
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component2 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component3 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component4
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component5 as varchar (100)),'') as mailaddress, row_number() over(partition by pthproto.pthdbo.cnarole.tpkcnarole order by cnaidta.dateeffect desc) as rn into #address from pthproto.pthdbo.cnarole
    inner join pthproto.pthdbo.cnaidty on cnarole.tfkcnaidty =cnaidty.tpkcnaidty inner join pthproto.pthdbo.cnaidta on cnaidty.tpkcnaidty = cnaidta.tfkcnaidty inner join pthproto.pthdbo.cnaaddr on cnaidta.tfkcnaaddr = cnaaddr.tpkcnaaddr order by cnaidta.dateeffect
    select *, case when mailaddress is not null then mailaddress else formataddr end as test from #address where tpkcnarole = '18306695'
    The case when statement is struggling with how i have created the column mailaddress.  As it does seem to understand when it is null.  In the example I have got there is no value in any of the columns to create
    the mailaddress.  Hence why I am referencing it from elsewhere.  Due to having a way on the system where it picks up data from 2 different places.    The mailaddress is always correct if there is one, hence why
    trying to reference that one first.  So how do i change this case when statement to work ?            

    It's ok I have fixed my own problem
    or mailaddress

    then formataddr
    else mailaddress
    as test

  • I have iMovie '11, and I am unable to access mpeg HD video files that I want to edit.  The files are fine (I can open and watch them using VLC), but I cannot seem to import the files into iMovie. File Import does not work.  Any suggestions??

    More detail: I have a bunch of mpeg HD video files that were shot on a SONY HDR-HC3 Handycam camcorder.  I would like to edit these into a single video production.  I can access and view the mpeg files using VLC (Quicktime does not work with them).  However, I seem to be unable to get the mpeg files to interface with iMovie '11 -- I cannot use the File --> Import command, nor can I drag-and-drop them into iMovie.
    Is there something anyone might suggest to get this to work?  Or are these files incompatible with iMovie?  If so, I assume I must purchase a different video editing software program (e.g. Adobe Premeir Pro).  Suggestions???
    Many thanks in advance for your time and consideration

      Yes, I tried that.   The files were ordered by their original numbers as imported from the camera, but I batched them through Phocoshop to downsize all of them into a more manageable file size.   I opened that destination folder from quick time  from where it said select image sequence.   I clicked on the first one and opened it.   The result was a large image with an arrow indicating a movie was ready to go.   When I pressed the arrow, though, I realized it had only imported that one frame so there was no movie.   The files are Jpgs and are about 450 KB each. 
        To your knowledge are there any links to iMovie tutorials or quick time tutorials that may address this situation?  Maybe there will be one I haven't looked at yet. 

  • Active state not working in scrolling site (with anchor links)

    I'm design a scrolling site with anchor links and an horizontal menu on the top.
    when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
    now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
    anyone have this bug? or any one know how to fix it ?

    Hmmm...I've just been playing around, and I think I got the Active State to work correctly.  I think my problem was not understand what Active State means.
    To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
    I did not understand that Active State means the look of the Menu Item when the PAGE is active.  I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
    Look at this page for an example of what I'm trying to achieve...
    When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
    Is there a way to achieve this with the menu states in Muse?
    Thanks for the replies!

  • Breeze 5 presenter - Import Audio not working in windows 7

    Hi All,
    We are currently using Breeze 5 presenter, the import audio function not working in the windowns 7 machine. But it works fine in the windows XP machine. Any one can help me on this or any suggesstion?
    Thanks in Advance

    Hi Heyward,
    Thanks for your reply. I just want to confirm Are you reffering to Breeze 5 presenter? or the breeze server. I am looking for the breeze 5 presenter where we create some coursewares. if possible could you also please tell us whether any patch release available from adobe to support Breeze 5 presenter on windows 7 operating system. We are getting this problem only in the window 7 machince XP works fine.
    Thank you,

Maybe you are looking for