TiniHttpServer

Doc Gloumy <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini,gmane.spam.detected
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.