Problems in Using Jakarta POI in Jserv- NoClassDefFound

Hi,
I'm trying to deploy an application on Jserv which used the Jakarta's POI API. I placed the Jar file in the server folders and specified the same path in the file Jserv.properties.
But then when trying to access that folder it gives the error NoClassDefFound for the poi's packages meaning its not picking up the classes under this jar.
I restarted the Jserv several times after mentioning the path.
Can anybody help me on this in pointing out wat i have missed here.
Thanks in advance,
Vijay

hello,
i'm also having problems using poi. I've copied the poi jar to tomcat/lib and also to the lib directory of the systems jdk. I've done the same with the commoms-logging.jar.
Within a jsp is import these things:
<code>
<%@ page
     buffer="128"
     import="java.util.*,
          org.apache.poi.hssf.usermodel.*,
          org.apache.poi.hssf.util.*"
%>
</code>
But when calling the url of the page i get:
Package org.apache.poi.hssf.usermodel not found in import.
Why, it is in the import? Whats wrong there?
Thank you,
Hava a nice day,
Nico

Similar Messages

  • How to read .doc files using jakarta POI api......

    Hi all,
    I've googled a lot on reading the file contents of an MS word file. I couldn't get a solution yet. Can you please give some sample codes for using the POI api for extracting only the text contents from an MS word file.
    Thanks and Regards,

    whenever i click the folders, it's taking
    to the internal folders. but there's no
    option to download the whole package.Thats because you're looking at a tool which displays the contents of an svn repository through a web site.
    What you need is a subversion client (the repository is a subversion repository).
    There are several easy to use clients available:
    Here's two:
    1) subclipse: If you use eclipse. Dammed great tool IMHO. http://subclipse.tigris.org/
    2) tortoise svn http://tortoisesvn.tigris.org/
    When you've got a client, you'll need to give it a repository URL from which to check out.
    For the POI project, that URL is http://svn.apache.org/repos/asf/jakarta/poi/trunk/
    ~D

  • Jakarta --POI doubt

    I am using a servlet to create an xls file using Jakarta-POI.Rt now i am saving the file to the server,then copy to the client s/m which accesses the servlet
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("export");
    FileOutputStream fileOut = new FileOutputStream("test.xls");
    wb.write(fileOut);
    fileOut.close();
    This code directly saves the file to the server.
    Can i write the workbook directly to client's s/m using any buffering?
    bcoz my boss told me this will create sme security issues .....
    Anybody plz help me..
    Thanks in advance

    Don't a different stream, like the servlets output stream?!

  • Jakarta POI Excel97-2000 (Excel 2003?)

    Hi All
    I need to read data from Excel 2003 spreadsheet using my java program.
    I looked at Jakarta POI, and JDBC-ODBC bridge options.
    POI says Excel97-2000
    Creating system DSN does not show Excel 2003 options. It shows Excel97-2000, Excel 3.0 etc
    My environment is Windows XP 2002.
    Can I read Excel 2003 documents using POI?
    If I deploy this program on a machine which has earlier versions of excel on it will it be able to read.
    I just have plain text in excel spreadsheet.
    Please let me know.
    Thanks
    bib

    Hard to answer this question definitively because it very much depends upon exactly what is in the file. If you have saved a complex, formatted document that makes extensive use of features that were introduced into Excel for version 2003 then you will face problems. If the file contains simply plain text, then you should be fine. Most of the API authors base their product on an earlier version of the BIFF8 format to ensure compatibility with as wide a range of Excel versions as possible. That is why they all mention that the API will handle files that are based upon a specific version of Excel. Hopefully, you will be fine distributing the application onto machines that run earlier versions of Excel.
    By the way, have you also considered JExcel? It handles a few things differently to HSSF (POI) and you may prefer the way it approaches parsing an Excel spreadsheet file and exposing it's contents.

  • Number Formatting in Excel using HSSF POI

    Hi,
    I am downloading some data into the Excel file using hssf poi and I do my number formatting(either rounded,unrounded or general etc.) in java. The problem is that after the Excel file is created, the values in it behave like text though it shows the format as number. I am not able to plot any graphs or do any mathematical calculations using it. I need to convert it using "=VALUE(data)" before I do so.Is there anyway I can rectify this in the API itself?
    Your suggestions will be very helpful.
    Thanks.

    http://jakarta.apache.org/poi/hssf/quick-guide.html#CellTypes ?
    Otherwise, Apache POI has a mailing list...

  • Jakart POI HWPF

    I am trying to create/edit a Word document using a pure Java approach. So far the most succesful approach has been using JIntegra (which claims that can do everything that you can do with VBA). However, JIntegra has a commercial license. So, I am trying to look into Jakarta POI which has been in development for ever. It seems to have some functionality that I can use as far as creating/editing word documents but one big fuctionality that I need is inserting images, which so far I haven't been able to figure out.
    Any body out there has been succesful at implementing an application using POI HWPF, if so, I will really appreciate your input.
    Regards,
    Paul

    I have the same problem. Right now, we're using libraries from the JACOB project
    (http://danadler.com/jacob/), but I haven't been able to find any really helpful documentation. If anybody
    has another solution, I'd be thrilled to hear about it also.

  • *PROBLEM SOLVED: Using "java" command in JSDK1.4.1

    I had a problem before when using the java command for JSDK1.4.1
    What I just realised/found was that there different situations
    for using the "java" command. I will give you some tips in
    case you are running in the same problem or may be to help
    another person:
    RUNNIN FILES (.java) THAT ARE "NOT" PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\"
    2)You can compile it from iside or outside the folder that
    holds the "test.java" (i.e. SUB)
    3)After compiled, you can ONLY run the "test.class" file
    from within the folder that holds the CLASS file i.e. "SUB"
    You can not be at the "APP" folder and type:
    "java SUB.test" NOR "java SUB/test"
    RUNNING FILES (.JAVA) THAT ARE PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\COM\"
    2)Now let's say that the fiel includes the "package SUB.COM;" line
    in the code, which makes it part of a package.
    COMPILING
    3)If the "test.java" file does NOT use another file in the same
    folder, you can compile it from where ever you want. It could
    be from within inside OR outside the folder holding the file
    4)If the "test.java" file DOES use another file in the same folder,
    then you have to go "javac" it from any folder aoutside the
    folder that is hosting (holding) the "test.java" file
    EXMAPLE:
    If am in folder "APP" I can do this: "javac SUB/COM/test.java"
    Or if am in "SUB" I can do: "javac COM/test.java"
    BUT if Im in "COM" I can NOT do: "javac test.java"
    RUNNING
    5)Make sure that you have produced a "test.class" file when compiling
    6)Recall that the "test.java" file includes the line "package SUB.COM;"
    which means that it is part of this package. and that it is stored
    inside "COM"
    7)You can ONLY run the "test.class" file from the FIRST folder above
    the package where that the "test.class" file is forming part of
    i.e from inside the "APP" folder, You CAN NOT run the file from
    anywhere else but the first folder (APP) above the package (SUB.COM)
    8)EXAMPLE:
    To run the "test.class" I must be in: "C:\APP"
    I can NOT be in "C:\" nor "C:\APP\SUB" nor "C:\APP\SUB\COM"
    Then type in the command window: "java SUB.COM.test" and..
    *** ESO ES TODO AMIGOS!! **** (THAT'S ALL FOLKS)
    I hope this help to other people.. some factors like enviromental
    variable may change what I just stated though.
    In my computer runnning "Windows 2000" my variables are:
    1)JAVA_HOME: C:\j2sdk1.4.1
    2)path: <other paths>;C:\j2sdk1.4.1\bin;
    THANK U FOR ALL THE PEOPLE WHO WERE TRYING TO HELP ME SINCE YESTERDAY
    my email: [email protected]

    Yeah, he did get a lot of it wrong but oh well, at least he's putting forth some effort. If you need any help alex, just send me a note. Everyone should also look into using Jakarta Ant for even your simple applications, it makes all these little directory issues go away real fast. If you need a generic build.xml file that has nice features, again, just send me a note.
    -Spinoza

  • Should I install Apache Web server to use Jakarta Tomcat Servlet engine?

    Hello,
    I have some problems and now have a question:
    Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
    JTK home page is available via http://localhost:8080
    Tomcat ver 3.1.3
    Thanks.

    No, you don't need to run Apache webserver (httpd) to run Tomcat. Tomcat by default runs on port 8080, but you can set it to any port, including 80, if you have permission to do so (on *nix systems, you need root permissions to run services on any port below 1024).
    Tomcat is a webserver as well, just one that includes a servlet container and JSP processor. So it will serve your html files, images, etc (aka static content), just as well as Apache httpd, in addition to being able to run servlets and JSPs.
    Apache httpd has more options for serving static content than Tomcat, so many people prefer to use it as their main webserver and only use Tomcat as a sort of "plugin" to handle servlets and JSPs. This can be achieved through a connector. Instructions on how to set this up are on the Jakarta website.
    So you could use Apache and Tomcat combined, next to each other, or totally separated. In many cases, just Tomcat will do.

  • Problem While using Applet Reqd classes using Weblogic 5.1

    Hi All,
    Here is my problem while using other classes from the Applet gives an error:NoClassDefFound,
    I have also put the applet reqd. classes in a jar file and placed this jar along with the applet
    in weblogic/myserver/serverclases,
    my tag in the html file is as follows:
    <applet code="MyApplet.class" archive="voucher.jar"
         codebase="/classes/" >
    </applet>
    is there any problem with my tag or directory structure,
    It would be great ful and thanks for helping in solving this problem.
    sai.

    Is this an issue with the "T-engine" or the "J-engine"? Are you using a
    ubbconfig file or weblogic.properties file? Can you post the stack trace?
    This may be an known issue and simply require you to install the latest
    service pack for WLS 5.1 (aka. J-engine)...
    Mary Ann Slavin wrote:
    Accordning to the Software Product Information (SPI) for WLE 5.1 it is
    available on the following Linux versions so this could be a problem
    with the version you are running.
    "BEA WebLogic Enterprise 5.1 software for Red Hat Linux 6.2 and Reliant
    Unix 5.45 is available separately. "
    MAS
    yajneesh Sabharwal wrote:
    hello friends,
    I have a Problem in Using Weblogic 5.1
    I am using weblogic 5.1 Enterprise on Linux 2.2.16 SuSE (7.0) with
    Dual Celeron 550MHz and 1GB RAM. The server runs our web application
    which uses the servelt, JSP and XSQL technology. The problem is
    that often i receive ASSERTION FAILURES where after the jsp's stop
    displaying content. Is this a Weblogic administration problem or
    the underlying OS problem. Kindly advice.
    Thankx in Advance
    Yajneesh sabharwal

  • Jakarta poi and Jexcel

    Hello techies,
    I want read an Excel sheet using Java. I had gone through net and found two Api's.
    One is Jakarta's POI and another one is JExcel.
    Iam totally confused, which one i need to implement and is there any performance difference b/w these two api's.
    Also can any body tell me from which url i have to download these two s/w and how to install them.
    regards,
    ramu

    One is Jakarta's POI and another one is JExcel.
    Iam totally confused, which one i need to
    e i need to implement and is there any performance
    difference b/w these two api's.Don't know, i'm sure a google would tell you.
    e.g 1
    2
    Also can any body tell me from which url i
    which url i have to download these two s/w and how to
    install them.I'm suprised you found out about the libs, but not the download URLs Google Jakarta POI and: First Hit!...

  • Jakarta Poi and Adf

    Hi All
    I have a requirement to create a web application that interfaces with microsoft com.
    I have searched through the forum and the Jakarta poi looks like a good option.
    My question is, has anyone integrated jakarta poi with adf and deployed the app to the web application server.
    I am using Jdeveloper 10.1.2.
    Has anyone done a mail merge ?
    Thank you

    Another reference:
    http://technology.amis.nl/blog/?p=450

  • I am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    i am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    The warranty for the iPhone is not and has never been International.
    Warranty and support are ONLY valid in the country of origin.  The only exception is the EU where the entire EU is treated as one country.
    If the device will be used in India, buy it in India.
    An unlocked iPhone will work on any supported GSM carrier world wide.  The LTE portion of a US purchased, unlocked iPhone is unlikely to work outside North America as it does not support the appropriate bands used in other countries.

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

  • Problem in using FM SELECT_TEXT

    Hi friends,
    I have a problem in using fm SELECT_TEXT.
    Here I want to fetch Material PO text in Material master to my report.
    I just dont know in which field of table "it_thead" the actual text is available.\
    I tried debugging the program but was not successful.
    I have also tried using READ_TEXT but it gives an error if no Text exists.
        CALL FUNCTION 'SELECT_TEXT'
          EXPORTING
            client     = sy-mandt
            object     = 'MATERIAL'
            name       = wrk_matnr
            id         = 'BEST'
            language   = sy-langu
          TABLES
            selections = it_thead.
    How do i print the actual MAterial PO text in IT_THEAD ?
    hope u understand the question...please do let me know if any details are required from myside..

    Hi,
    My mistake.
    Check below sample code.
    PARAMETERS: po_matnr TYPE mara-matnr.
    DATA: i_lines TYPE STANDARD TABLE OF tline,
          wa_lines TYPE tline,
          l_matnr TYPE thead-tdname.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = po_matnr
    IMPORTING
       OUTPUT        = po_matnr
    MOVE po_matnr TO l_matnr.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'BEST'
        LANGUAGE                      = sy-langu
        NAME                          = l_matnr              "Pass material with leading zeros
        OBJECT                        = 'MATERIAL'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         = i_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT i_lines INTO wa_lines.
      WRITE: /1 wa_lines-tdline.
    ENDLOOP.
    Just execute this code by inputting ur material number.
    If the text doesnot exist the error u r getting because of not commenting the MESSAGE statement after FM call. Try in the way i told above.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Feb 28, 2009 4:36 PM

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

Maybe you are looking for

  • In Flash Builder: "No Disk" Error when trying to switch to Design View

    Just had Flash Builder Beta 1 uninstalled and Beta 2 installed instead. When I try to switch to Design View or open a link from Start Page in Flash Builder Beta 2, the application  freezes and "No Disk" error message pops up.

  • Clip notes output module missing

    Hi there I have a big problem. Clip notes output module is missing in after effects. Clip notes play fine on the pc in acrobat reader but after effects says the output module is not installed. Have tried to reinstall after effects and adobe reader. N

  • When I updated my software, i got my sisters pictures and information on my ipod. How do i get my information back?

    My sister updated my software under her name anmd now my ipod has all her pictures, music, information, and all my apps are gone.  I want all my information back and i can't find out how.  My ipod is listed under her name now too. I called apple but

  • ITunes 11 copy and paste playlist

    I used to create a playlist of songs and choose the columns I wanted to see (usually Name and Artist). Select All, Copy, and Paste into something like Notes would give me a simple text list with the columns I chose. Now, in iTunes 11, doing the same

  • Find the last character in an aplhanumreic string

    Hi guys first time poster long time hiding in the shadows, hopefully someone can help me I have set of username stored and I need to find the last character before the number for example abc123 I would want to find c ab123 I would want to find b any