🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14406

JB3Enterprise: SnoopServlet doesnt compile?!

#14406
From: Patrick Luginb�hl
Date: Mon, 06 Sep 1999 00:00
32 lines
1900 bytes
According to the manual I downloaded the servlet documentation from sun and
tried to compile the examples. They all worked fine with Suns jsdk, but if I
try to compile SnoopServlet with JB3 Enterprise the compiler fails on line
37, 48 and 113 (getAttributeNames() / getMaxInactiveInterval() not found)

I realize that the example comes from jsdk 2.1 while JB implements jsdk
2.0...
If I add server.jar and servlet.jar from jsdk 2.1 into a new package and add
this to the project it does work, while servletRunner gets into problems
8since it doesn't serve Web pages)

What is the best method to
a) add jsdk 2.1-stuff to JB's jsdk.jar? Which classes are required?

b) servletRunner seems to be replaced by jsdk WebServer. Is there an easy
way to update the generated ServletServer? I could replace the template and
replace just two lines:

import sun.servlet.http.*;    // original JB3
import com.sun.web.shell.*;  // jsdk 2.1?
...
HttpServer.main(arguments); // original JB3
com.sun.web.shell.Startup.main(arguments); // jsdk 2.1?

This seems to compile and running but only if I set the classpath
statically. Is there a way to assign a 'temporary' classpath just when
running the WebServer?

Thank you
Patrick

patrick.luginbuehl@switzerland.org
Technical Details
Message-ID: <6ILA3.110$D31.65691@news>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,50e292a5a84b8bfd,start
X-Google-Attributes: gidf74b3,public
From: "Patrick Luginb�hl" <patrick.luginbuehl@switzerland.org>
Subject: JB3Enterprise: SnoopServlet doesnt compile?!
Date: 1999/09/06
Message-ID: <6ILA3.110$D31.65691@news>
X-Deja-AN: 521606068
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
X-Trace: news 936609666 193.72.68.253 (Mon, 06 Sep 1999 11:21:06 MET DST)
Organization: EUnet AG, Switzerland. A KPNQwest Company.
NNTP-Posting-Date: Mon, 06 Sep 1999 11:21:06 MET DST
Newsgroups: borland.public.jbuilder.java.language