Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    fischerb Guest

    Default Build failed because of missing symbols [Solved]

    If i try to build open-xchange i got errors about missing symbols

    src/com/openexchange/ajax/AJAXServlet.java:562: cannot find symbol
    symbol : method getContextPath()
    src/com/openexchange/ajax/ImportExport.java:122: cannot find symbol
    symbol : method getParameterMap()
    src/com/openexchange/ajax/ImportExport.java:162: cannot find symbol
    symbol : method getParameterMap()
    src/com/openexchange/tools/ajp13/TestServlet.java:92: cannot find symbol
    symbol : method getHeaders(java.lang.String)
    src/com/openexchange/webdav/action/WebdavGetAction.java:203: cannot find symbol
    symbol : variable SC_REQUESTED_RANGE_NOT_SATISFIABLE

    What's wrong with my servlet.jar?
    It's not clear to me, which Java Servlet Lib i have to use. Currently I'm using servlet.jar out of jsdk2_1-solsparc.tar.Z
    Last edited by Ben Pahne; 03-02-2007 at 01:33 PM.

  2. #2
    RedNalie Guest

    Default

    I'm getting the same errors, I renamed it to jsdk.jar to no avail. The servlet.jar does containt all the classes it asks for as far as I can see.

    Anyone have any ideas?

  3. #3
    neo Guest

    Default

    Hum, I think you made a little mistake in downloading the specification archive.

    Scroll down on that page http://java.sun.com/products/servlet/archive.html and there you find the "Specification archive".

    greets
    Andreas

  4. #4
    RedNalie Guest

    Default

    Quote Originally Posted by neo View Post
    Hum, I think you made a little mistake in downloading the specification archive.

    Scroll down on that page http://java.sun.com/products/servlet/archive.html and there you find the "Specification archive".

    greets
    Andreas
    Tried it, didn't work

  5. #5
    genielog Guest

    Default Bad servlet.jar version ? => unable to compile

    Hello,

    I did download the archive version of the servlet library. There's a Windows version and a Solaris one. I picked up the solaris one. Then I decompress the tar.Z file and get the servlet.jar contained.

    I change the build.xml of open xchange to use that jar file but I had the same problem :

    [javac] /home/pacherie/Dvp_v3/Projects/open-xchange/src/com/openexchange/ajax/AJAXServlet.java:563: cannot find symbol
    [javac] symbol : method getContextPath()
    [javac] location: interface javax.servlet.http.HttpServletRequest
    [javac] final String path = req.getContextPath() + req.getServletPath();


    Plus additionals errors for the methods getParameterMap() and so on.

    I suspect that Open XChange do not relies on the version of the servlet that is available on Sun web site.

    Any ideas ?

  6. #6
    fischerb Guest

    Default

    Tried all different servlet.jar's and always got this errors.
    If i use the jsdk.jar from jsdk20-solaris2-sparc.tar.Z i got even more error messages.

  7. #7
    Join Date
    Feb 2007
    Posts
    8

    Default

    have you changed the file name of the jsdk in the build.xml or have you renamed the file so that it fits with the call in the build.xml?

  8. #8
    RedNalie Guest

    Default

    Quote Originally Posted by admin View Post
    have you changed the file name of the jsdk in the build.xml or have you renamed the file so that it fits with the call in the build.xml?
    I tried both to no avail unfortunately...

  9. #9
    fischerb Guest

    Default

    I modified the build.xml and renamed jsdk.jar to servlet.jar
    I also use netbeans to browse through the code, which additionally highlights all my discrepancies and netbeans confirms all these build-errors.

  10. #10
    Ben Pahne Guest

    Default

    ok got your problem. the solution:

    go here:
    http://java.sun.com/products/servlet/download.html

    go to:

    -> SPECIFICATIONS
    -> Java Servlet
    -> 2.3 - Final Release

    download:

    -> Download class files 2.3 Zip Format

    after download rename the zip file to jsdk.jar and move it into the lib dir and try to compile again. maybe you have to do a ant clean first.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •