I have been tasked with carrying a proof-of-concept that tries to use
servlets to drive clients accessing an existing distributed Java
application.
One approach that I am trying is to embed the com.sun.web.shell.Startup
object(s) in my classes.
While trying to invoke the 'main' static method of
com.sun.web.shell.Startup, I get an error message on standard output:
.
.
JSDK WebServer Version 2.1
Loaded configuration from: file:/home/amarkel/src/jswdk-1.0/webserver.xml
Problem creating admin registry
The following is a snippet of code that indicates how I am invoking
the class:
// instantiate the embedded webserver
//
Startup.main (new String[] { "-config",
"/home/amarkel/src/jswdk-1.0/webserver.xml" });
I modified the delivered webserver.xml file to include absolute paths
for the document and work areas in order to allow me to work in my own
development directory.
The following is the modified webserver.xml:
<!DOCTYPE WebServer [
<!ELEMENT WebServer (Service+)>
<!ATTLIST WebServer
id ID #REQUIRED
adminPort NMTOKEN "">
<!ELEMENT Service (WebApplication*)>
<!ATTLIST Service
id ID #REQUIRED
port NMTOKEN "8080"
hostName NMTOKEN ""
inet NMTOKEN ""
docBase CDATA "/home/amarkel/src/jswdk-1.0/webpages"
workDir CDATA "/home/amarkel/src/jswdk-1.0/work"
workDirIsPersistent (false | true) "false">
<!ELEMENT WebApplication EMPTY>
<!ATTLIST WebApplication
id ID #REQUIRED
mapping CDATA #REQUIRED
docBase CDATA #REQUIRED
maxInactiveInterval NMTOKEN "30">
]>
<WebServer id="webServer">
<Service id="service0">
<WebApplication id="examples" mapping="/examples"
docBase="/home/amarkel/src/jswdk-1.0/examples"/>
</Service>
</WebServer>
Follows the CLASSPATH I am using.
CLASSPATH=/home/amarkel/src/jswdk-1.0/webserver.jar:/home/amarkel/src/jswdk-1.0/
lib/servlet.jar:/home/amarkel/src/jswdk-1.0/lib/jsp.jar:/home/amarkel/src/jswdk-
1.0/lib/jspengine.jar:/home/amarkel/src/jswdk-1.0/examples/WEB-INF/jsp/beans:/ho
me/amarkel/src/jswdk-1.0/webpages/WEB-INF/jsp/beans:/home/amarkel/src/jswdk-1.0/
webpages/WEB-INF/servlets:/home/amarkel/src/jswdk-1.0/lib/xml.jar:/ws/sx1.0-tool
s/jdk1.2.1-reference/lib/tools.jar:/ws/edison_work/arieh/usr/proto:/ws/edison/pr
oto/cmc_framework.jar:/ws/sx1.0-tools/opt/SUNWesm/SUNWesmru_1.1.0.1/lib/classes/
cmc_framework.jar:/ws/sx1.0-tools/opt/SUNWesm/SUNWdae_1.3/lib/classes/sundae.jar
:/ws/sx1.0-tools/jest/current/lib/classes/jest.jar:/ws/sx1.0-tools/opt/SUNWesm/S
UNWmjhlp/lib/classes/jhall.jar:/ws/sx1.0-tools/opt/SUNWesm/SUNWmjacf/lib/classes
/activation.jar:/ws/sx1.0-tools/opt/SUNWesm/SUNWmjmai/lib/classes/mail.jar:/ws/s
x1.0-tools/jest/current/lib/jest.jar:.
---
Is there anything inherently wrong with what I am trying to do ?
Arieh
--
Arieh Markel Sun Microsystems Inc.
Network Storage 500 Eldorado Blvd. MS UBRM11-171
e-mail: [EMAIL PROTECTED] Broomfield, CO 80021
Let's go Panthers !!!! Phone: (303) 272-8547 x78547
(e-mail me with subject SEND PUBLIC KEY to get public key)
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html