RE: TiniHttpServer
"Kelly Smith" <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Dear Doc - Just edit (or cut and paste) this into 'build.properties', and
notice that:
dependency.classpath= <-- is BLANK
and make sure that this is the same...
dependency.files=ths_owapi_dep.txt
and make sure that this is the same...
dependency.groups=THS_MIN
Also, add your servlet as:
src.files= \
SnoopServlet.java, \
SessionServlet.java, \
AuthenticatedServlet.java, \
BackupServlet.java, \
OneWireServlet.java, \
FamilyCode10Servlet.java, \
FamilyCode12Servlet.java, \
FamilyCode20Servlet.java, \
TiniServlet.java, \
HelloServlet
This should get you going!
...from my copy of 'build.properties':
#
# Set "dependency.classpath" to the directories and/or JAR files
# that contain third-party classes required by your servlets.
#
# Note that servlet.jar and the 1-Wire classes are already
# included elsewhere so they need not be repeated here.
#
# NOTE: Be sure to use forward slashes (/) even on Windows!
#
# NOTE: Separate entries with semicolons (';') or colons (':').
dependency.classpath=
################
#
# Set "dependency.files" to a list of dependency files.
# You do not need to specify the owapi_dep.txt file that comes with
# the TINI firmware.
#
# NOTE: Separate entries with commas (',').
dependency.files=ths_owapi_dep.txt
################
#
# Set "dependency.groups" to a comma-separated list of dependency groups
# you use. These dependency groups should be defined in the owapi_dep.txt
# file that comes with the TINI firmware OR one of the dependency files
# listed on in the extra.dependency.filess property above. Fully qualified
# class names may be listed here as well, but creating and using a
# dependency group is preferable.
#
# The ths_owapi_dep.txt file defines the following dependency groups:
#
# THS_ALL includes all 1-Wire container classes (and classes required
# by the container classes). This makes OneWireServlet
# far more interesting, but also make TiniHttpServer.tini
# rather large. Only recommended for 1 MB TINIs.
#
# NOTE: This does *NOT* include any additional 1-Wire utility
# classes that not required by the 1-Wire container classes.
#
# THS_MIN includes only the 1-Wire classes that are absolutely required
# for the sample servlets. It makes OneWireContainer less
# interesting, but also makes TiniHttpServer.tini much smaller.
# This is the default and is recommended for 512 KB TINIs.
#
# If you omit OneWireServlet.java, FamilyCode10Servlet.java, and
# FamilyCode10Servlet.java from servlet.src (see above), you may set
# onewire.deps to nothing for an even smaller TiniHttpServer.tini file.
#
# NOTE: Separate entries with commas (',').
dependency.groups=THS_MIN <-- sets-up the MINIMUM of 1-Wire devices (look
at: ths_owapi_dep.txt)
Best regards, Kelly Smith
-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:tini-admin-6tN4nzCoH/[email protected]]On Behalf Of
Doc Gloumy
Sent: Wednesday, May 19, 2004 12:20 PM
To: tini-6tN4nzCoH/[email protected]
Subject: [TINI]TiniHttpServer
I use TiniHttpServer and I dont arrive to use the ant to have
TiniHttpServer.tini file.
I need informations about BuildDependency, I dont understand what is it !
It's use to add class dependency...
This is my problem :
I want to put just only one serlet on my Tini board, this servlet just
says "hello" :
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloServlet extends HttpServlet {
public void service( ServletRequest request,
ServletResponse response )
throws ServletException, IOException {
response.setContentType( "text/html" );
PrintWriter out = response.getWriter();
out.println( "<html><body>" );
out.println( "<h1>Hello depuis une servlet</h1>" );
out.println( "</body></html>" );
}
}
I've change my build.properties as Kelly Smith told me :
################
#
# Set "dependency.classpath" to the directories and/or JAR files
# that contain third-party classes required by your servlets.
#
# Note that servlet.jar and the 1-Wire classes are already
# included elsewhere so they need not be repeated here.
#
# NOTE: Be sure to use forward slashes (/) even on Windows!
#
# NOTE: Separate entries with semicolons (';') or colons (':').
dependency.classpath=C:\tini1_02d\tini1.02d\bin
I use this .bat to set my classpath :
@echo on
set ANT_HOME=c:\ant141
set JAVA_HOME=c:\jdk1.3.1
set PATH=%PATH%;%ANT_HOME%\bin
set PATH=%PATH%;%JAVA_HOME%\bin
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\TiniAnt.jar
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\ant.jar
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\servlet.jar
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\bin
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\jre\lib\rt.jar
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\tools.jar
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\comm.jar
set CLASSPATH=%CLASSPATH%;C:\tini1_02d\tini1.02d\bin\tini.jar
When I try to use ant, I have this error :
C:\ant141\bin>ant
Buildfile: build.xml
init:
check jdk:
check jsdk:
check tiniant:
check tiniant version:
check tini:
check tools:
setup:
tini:
BUILD FAILED
C:\ant141\bin\build.xml:133: Could not find BuildDependency. Make sure
you have
it in your classpath
Total time: 0 seconds
I've try tu put this line in my *.bat to put BuildDependency.class :
set
CLASSPATH=%CLASSPATH%;C:\tini1_02d\tini1.02d\bin\tini\BuildDependency.class
But I always have the error Could not find BuildDependency ! My servlet
do not require Dependency, and I dont understand why i must use
BuildDependency.class
Someone can help me ?
Thx
PS : does a cgi server Exist for TINI, or an other way to use dynamics
server pages ?
Thx
--
/**************************************************
GARCIA Patrick alias Doc Gloumy
BTS Informatique et Reseaux pour l'Industrie et les Services
Port : 06-89-51-54-01 Tel : 05-61-07-65-58
Trésorier, electricien,
Responsable logistique et materiel de PcRézoo
www.pcrezoo.net
[email protected]
ICQ : 94469133
MSN : [email protected]
**************************************************/
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini