Announcement

Collapse
No announcement yet.

Build failed because of missing symbols

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Build failed because of missing symbols

    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 Guest; 03-02-2007, 01:33 PM.

  • #2
    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?

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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 ?

          Comment


          • #6
            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.

            Comment


            • #7
              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?

              Comment


              • #8
                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...

                Comment


                • #9
                  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.

                  Comment


                  • #10
                    ok got your problem. the solution:

                    go here:


                    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.

                    Comment


                    • #11
                      Problem fixed !

                      Great, that fixed my problem. Compilation ends successfuly. I had to go foward in the install process to check it now.

                      thank's for the help.

                      Comment


                      • #12
                        changed the wiki, too.

                        Comment

                        Working...
                        X