Subject: pkg/12873: www/jakarta-servletapi fails to install with Java2
To: None <gnats-bugs@gnats.netbsd.org>
From: Bob Kemp <bob@allegory.demon.co.uk>
List: netbsd-bugs
Date: 05/08/2001 22:25:45
>Number:         12873
>Category:       pkg
>Synopsis:       jakarta-servletapi pkg fails to install with Java 2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 08 13:27:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Bob Kemp
>Release:        -current within the last 2 weeks
>Organization:
none
>Environment:
System: NetBSD allegory.demon.co.uk 1.5U NetBSD 1.5U (ALLEGORY) #0: Wed May 2 17:17:36 MEST 2001 bob@allegory.demon.co.uk:/usr/src/sys/arch/i386/compile/ALLEGORY i386
Architecture: i386
Machine: i386
>Description:

    The output of javadoc has changed from 1.1 to 1.3.  It is now
    generated in a directory structure following the classes'
    package hierarchy, eg java/lang/Integer.html and not with the
    package as part of the filename, as in java.lang.Integer.html

    If you have sun-jdk13 pkg installed and then try to install
    install jakarta-servletapi it will fail, as shown below.
    If you uninstall jdk13, reinstall jdk1.1.8 and then
    again try to install the servlet api, it works just fine.
    Indeed the workaround is to create a binary pkg this way
    and use it in a jdk13 system.

>How-To-Repeat:

    Note: "allegory jakarta-servletapi 1001#" is my prompt

    allegory jakarta-servletapi 1001# make cleandir
    ===> Cleaning for jakarta-servletapi-3.2.1
    allegory jakarta-servletapi 1002# make install
    ===> Validating dependencies for jakarta-servletapi-3.2.1
    => Checksum OK for jakarta-servletapi-3.2-src.tar.gz.
    ===> Extracting for jakarta-servletapi-3.2.1
    ===> Required installed package jakarta-ant-1.3: jakarta-ant-1.3 found
    ===> Required installed package {sun-jre,jdk}-*: sun-jre-1.3.0.2 found
    ===> Required installed package {sun-jdk,jdk}-*: sun-jdk-1.3.0.2 found
    ===> Patching for jakarta-servletapi-3.2.1
    ===> Configuring for jakarta-servletapi-3.2.1
    ===> Building for jakarta-servletapi-3.2.1
    Buildfile: build.xml

    clean:
      [deltree] DEPRECATED - The deltree task is deprecated.  Use delete instead.
      [deltree] DEPRECATED - The deltree task is deprecated.  Use delete instead.
      [deltree] DEPRECATED - The deltree task is deprecated.  Use delete instead.
      [deltree] Deleting: /usr/pkgsrc/www/jakarta-servletapi/work/jakarta-servletapi-3.2-src/lib

    prepare:
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/classes
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/docs
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/docs/api
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/lib
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/src
	[mkdir] Created dir: /usr/pkgsrc/www/jakarta-servletapi/work/jakarta-servletapi-3.2-src/lib

    compile:
	[javac] Compiling 40 source files to /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/classes
      [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
      [copydir] Copying 3 files to /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/classes

    javadoc:
      [javadoc] Generating Javadoc
      [javadoc] Javadoc execution
      [javadoc] Loading source files for package javax.servlet...
      [javadoc] Loading source files for package javax.servlet.http...
      [javadoc] Loading source files for package javax.servlet.jsp...
      [javadoc] Loading source files for package javax.servlet.jsp.tagext...
      [javadoc] Constructing Javadoc information...
      [javadoc] Building tree for all the packages and classes...
      [javadoc] Building index for all the packages and classes...
      [javadoc] Building index for all classes...
      [javadoc] javadoc: warning - Tag @see: Class or Package not found: java.io.BufferedWriter
      [javadoc] javadoc: warning - Tag @see: Class or Package not found: java.lang.Integer#toString(int)
      [javadoc] javadoc: warning - Tag @see: Class or Package not found: java.lang.Long#toString(long)
      [javadoc] javadoc: warning - Tag @see: Class or Package not found: java.lang.Float#toString(float)
      [javadoc] javadoc: warning - Tag @see: Class or Package not found: java.lang.Double#toString(double)
      [javadoc] Generating /usr/pkgsrc/www/jakarta-servletapi/work/build/servletapi/docs/api/stylesheet.css...
      [javadoc] 5 warnings

    dist:
      [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
      [copydir] Copying 108 files to /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api
	  [jar] Building jar: /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/lib/servlet.jar
     [copyfile] DEPRECATED - The copyfile task is deprecated.  Use copy instead.
      [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
      [copydir] Copying 43 files to /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/src
     [copyfile] DEPRECATED - The copyfile task is deprecated.  Use copy instead.

    all:

    BUILD SUCCESSFUL

    Total time: 57 seconds
    ===> Installing for jakarta-servletapi-3.2.1
    install -c -o root -g wheel -m 444 /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/lib/servlet.jar /usr/pkg/lib/java
    install -d -o root -g wheel -m 555 /usr/pkg/share/doc/java/jakarta-servletapi
    install -d -o root -g wheel -m 555 /usr/pkg/share/doc/java/jakarta-servletapi/api
    install -c -o root -g wheel -m 444 /usr/pkgsrc/www/jakarta-servletapi/work/jakarta-servletapi-3.2-src/README /usr/pkg/share/doc/java/jakarta-servletapi
    install -c -o root -g wheel -m 444 /usr/pkgsrc/www/jakarta-servletapi/work/jakarta-servletapi-3.2-src/LICENSE /usr/pkg/share/doc/java/jakarta-servletapi
    install -c -o root -g wheel -m 444 /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/* /usr/pkg/share/doc/java/jakarta-servletapi/api
    install: /usr/pkg/share/doc/java/jakarta-servletapi/api: not a regular file
    *** Error code 1

    Stop.
    *** Error code 1

    Stop.
    *** Error code 1

    Stop.
    *** Error code 1

    Stop.
    allegory jakarta-servletapi 1003# ls -R /usr/pkg/share/doc/java/jakarta-servletapi
    LICENSE  README   api/

    /usr/pkg/share/doc/java/jakarta-servletapi/api:
    allclasses-frame.html     deprecated-list.html      help-doc.html             index-all.html            index.html
    allegory jakarta-servletapi 1004# 
    allegory jakarta-servletapi 1004# 
    allegory jakarta-servletapi 1004# ls -R /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api
    allclasses-frame.html     index-all.html            overview-frame.html       package-list              stylesheet.css
    deprecated-list.html      index.html                overview-summary.html     packages.html
    help-doc.html             javax/                    overview-tree.html        serialized-form.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax:
    servlet/

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet:
    GenericServlet.html             ServletException.html           SingleThreadModel.html          package-frame.html
    RequestDispatcher.html          ServletInputStream.html         UnavailableException.html       package-summary.html
    Servlet.html                    ServletOutputStream.html        class-use/                      package-tree.html
    ServletConfig.html              ServletRequest.html             http/                           package-use.html
    ServletContext.html             ServletResponse.html            jsp/

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/class-use:
    GenericServlet.html             ServletConfig.html              ServletInputStream.html         ServletResponse.html
    RequestDispatcher.html          ServletContext.html             ServletOutputStream.html        SingleThreadModel.html
    Servlet.html                    ServletException.html           ServletRequest.html             UnavailableException.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/http:
    Cookie.html                                HttpSessionBindingEvent.html               package-frame.html
    HttpServlet.html                           HttpSessionBindingListener.html            package-summary.html
    HttpServletRequest.html                    HttpSessionContext.html                    package-tree.html
    HttpServletResponse.html                   HttpUtils.html                             package-use.html
    HttpSession.html                           class-use/

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/http/class-use:
    Cookie.html                                HttpServletResponse.html                   HttpSessionBindingListener.html
    HttpServlet.html                           HttpSession.html                           HttpSessionContext.html
    HttpServletRequest.html                    HttpSessionBindingEvent.html               HttpUtils.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/jsp:
    HttpJspPage.html          JspFactory.html           JspWriter.html            package-frame.html        package-use.html
    JspEngineInfo.html        JspPage.html              PageContext.html          package-summary.html      tagext/
    JspException.html         JspTagException.html      class-use/                package-tree.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/jsp/class-use:
    HttpJspPage.html          JspException.html         JspPage.html              JspWriter.html
    JspEngineInfo.html        JspFactory.html           JspTagException.html      PageContext.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/jsp/tagext:
    BodyContent.html          TagAttributeInfo.html     TagLibraryInfo.html       package-frame.html
    BodyTag.html              TagData.html              TagSupport.html           package-summary.html
    BodyTagSupport.html       TagExtraInfo.html         VariableInfo.html         package-tree.html
    Tag.html                  TagInfo.html              class-use/                package-use.html

    /usr/pkgsrc/www/jakarta-servletapi/work/dist/servletapi/docs/api/javax/servlet/jsp/tagext/class-use:
    BodyContent.html          Tag.html                  TagExtraInfo.html         TagSupport.html
    BodyTag.html              TagAttributeInfo.html     TagInfo.html              VariableInfo.html
    BodyTagSupport.html       TagData.html              TagLibraryInfo.html

>Fix:

    Either make the servletapi a binary pkg using (eg) the 1.3 javadoc output
    or make it a binary package, like xalan-j.

    The workaround is to install a binary package for jakarta-servletapi with jdk 1.1.8,
    reinstall jdk13 and then use the binary package instead of "make install".

>Release-Note:
>Audit-Trail:
>Unformatted: