How hard is it to create a simple http server in java?

how hard is it? where do i read on how to do it?

Here is a class I called EchoServer. It simply receives an HTTP request wraps some HTML around it and sends it back to your browser. It should give you an idea of a simple structure and the API's to look at.
Hope it helps.
import java.io.IOException;
import java.io.InterruptedIOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class EchoServer extends Object
     public static void main(String args[])
          throws IOException
          if ( args.length != 1)
               System.out.println("try: java EchoServer <port>");
               System.exit(-1);
          // Make sure port is numeric
          int port = -1;
          String portString = args[0];
          try
               port = Integer.parseInt(portString);
          catch(NumberFormatException nfe)
               System.out.println("port: " + portString + " is not a valid port number, try again");
               System.exit(-1);
          // Create server socket and loop forever handling each request as it is received
          ServerSocket server = null;
          try
               server = new ServerSocket( port );
               System.out.println( server );
               while ( true )
                    // this next line will wait until a client hits this port
                    Socket client = server.accept();
                    respond( client );
                    client.close();
          catch(Exception e)
               e.printStackTrace();
          finally
               if ( server != null )
                    server.close();
     public static void respond(Socket client)
          String request = getRequest( client);
          // Send request back wrapped in HTML
          OutputStream os = null;
          try
               os = client.getOutputStream();
               String response = "HTTP/1.0 200 Ok" + "\n"
                    + "Server: Echo Server" + "\n"
                    + "Content-type: text/html" + "\n"
                    + "\n"
                    + "<h2>The request you made was</h2>\n"
                    + "<pre>\n"
                    + "-------------------------------------\n"
                    + request
                    + "-------------------------------------\n"
                    + "</pre></html>\n";
               os.write(response.getBytes());
          catch(InterruptedIOException iioe)
          catch(IOException ioe)
               System.out.println(ioe.getMessage());
     private static String getRequest(Socket client)
String request = "";
byte[] iobuff = new byte[512];
int bytes;
          try
          // Wait 100 milliseconds before assuming the complete request has been received
          // Note: when this test wasn't here the server seemed to hang. If you find a better solution please let me know
          InputStream is = client.getInputStream();
          client.setSoTimeout(100);
while ( (bytes = is.read( iobuff )) != -1 )
String temp = new String( iobuff, 0, bytes );
request += temp;
//                    System.out.println(temp);
          catch(InterruptedIOException iioe)
               // this exception handles the socket timeout
          catch(IOException ioe)
               request = ioe.getMessage();
          return request;

Similar Messages

  • How to get  current working directory of the ftp server,in java application

    Hi All,
    I?m FTP?ing the file using java.net.url.
    Here is the snippet of the code:
    public void ftpFile()throws ChrsException
    try
    System.out.println("FTPing the file '"+localfile+"'");
    OutputStream os = openUploadStream(targetfile);
    FileInputStream is = new FileInputStream(localfile);
    byte[] buf = new byte[16384];
    int noOfBytesRead;
    while (true)
    //Read the data from the source File into buf
    noOfBytesRead = is.read(buf);
    if (noOfBytesRead <= 0)
    break;
    //Writes the data present in the buf to the target file
    os.write(buf, 0, noOfBytesRead);
    os.close();
    is.close();
    close();
    System.out.println ("The file '"+localfile+"' is Sucessfully FTP'd to '"+targetfile+"'");
    catch (MalformedURLException malExcp)
    System.out.println ("Invalid URL. Error in FTP'ing the file: \""+localfile+"\"");
    catch(IOException ioe)
    System.out.println ("Error in FTP'ing the file: \""+localfile+"\"");
    private OutputStream openUploadStream(String targetfile) throws MalformedURLException, IOException
    URL url = null;
    //Creates a URL object with FTP protocol
    if (user == null)
    url = new URL("ftp://" + host + "/" + targetfile + ";type=i");
    else
    url = new URL("ftp://" + user + ":" + password + "@" + host + "/" + targetfile + ";type=i");
    urlc = url.openConnection();
    //Get the OutputStream that writes to this connection.
    OutputStream os = urlc.getOutputStream();
    return os;
    Now I need to find what the current directory is when the user logs in with username and password on to the FTP server in java.
    Thanks in Advance.

    as soon as user logs in he is taken to the directory
    "ftproot/pub/abc".
    now If I execute pwd command , is hould be able to
    get to know tht user is under "ftproot/pub/abc"Three respected posters, well two plus me ;-), have just told you otherwise. The information about the current directory is (a) secure and (b) useless to the user, as he can't do anything with it. The user doesn't want to know that at all and you shouldn't try to tell him. And in any case FTP doesn't support it, again for security reasons, so you can't do it.
    Just accept it.

  • How to calculate the byte tranfer to the http server

    Hi,
    I'm developing a multiplayer game on mobile phone.
    At the end of the connexion, I need to know how many bytes were sent and received from the http server.
    Here is the part code for the connexion to the server :
    HttpConnection connection = (HttpConnection)Connector.open(request);
    connection.setRequestMethod(HttpConnection.GET);
    InputStream is = connection.openInputStream();
    long length = connection.getLength();
    byte[] datach = new byte[1];
    int ch = 0;
    while(is.read(datach) != -1)
         ch = datach[0];
         b.append((char)ch);
    String s = b.toString();The size of each data I have to send or receive is less than 50 bytes.
    All I do for now is adding the request size and the server response size.
    For each request, I have to count the header size and the data size. But I don't know how to find the header size of my request.
    And for each response from the server, I count the header size and the data size with connection.getLength().
    I don't know whether it's the right method.
    Does anyone know a better method to calculate exactly the bytes sent and received?

    TCP/IP "overhead" is basically 20%.

  • How to install Soap on the (Apache) Oracle HTTP Server

    Hi,
    Does anyone know how to install SOAP on the Oracle HTTP Server? I downloaded a soap version (it seems that the standard version comes without SOAP) from the xml.apache.org site and followed the installation instructions as far as I could (only Tomcat is described). However, no 'soaping'!!! Maybe I'm overlooking something because I cannot imagine that it should be difficult.
    Thanks in advance!
    Hans

    Hans, the SOAP implementation is part of OC4J. You get it out of the box. Check out how to use the out-of-the-box implementation in the tutorials on Web services with Oracle9i JDeveloper at:
    http://otn.oracle.com/tech/webservices/htdocs/series/content.html
    These tutorials/samples use the implementation of SOAP/WSDL that Oracle calls J2EE Web Services and this is the long term direction of Oracle's Web services implementation. This implementation is what Oracle will be evolving to Sun's Java Web Services Developer Pack as it finalizes into J2EE 1.4.
    If you want to use Oracle/Apache SOAP, this too is included in OC4J but its support is being deprecated in future releases of Oracle9iAS in favour of the J2EE Web Services implementation. To find it, check out the OC4J/soap/webapps/ directory for the soap.ear file (it is in a slightly different spot if you are using the full Oracle9iAS R2 but still within the soap directory structure. Simply add <application name="soap" path="../../../soap/webapps/soap.ear" auto-start="true"/> to your OC4J server.xml and <web-app application="soap" name="soap" root="/soap" /> to your OC4J http-web-site.xml, re-start and away you go.
    Finally, just to be sure, SOAP support in Oracle9iAS did not appear until 1.0.2.2.x and higher. If using 1.0.2.1 or less, you are correct, there is no SOAP support.
    Mike.
    Most folks that try out the J2EE Web Services find it is pretty easy to use so

  • How to set -Xss or ulimit  for Oracle Http Server

    Hi,
    We are facing Out of Memory Error in OHS 11g in our cluster environment. Where I can see below statements in http log file:
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Cannot create GC thread. Out of system resources.
    # Possible reasons:
    # The system is out of physical RAM or swap space
    # In 32 bit mode, the process size limit was hit
    # Possible solutions:
    # Reduce memory load on the system
    # Increase physical memory or swap space
    # Check if swap backing store is full
    # Use 64 bit Java on a 64 bit OS
    # Decrease Java heap size (-Xmx/-Xms)
    # Decrease number of Java threads
    # Decrease Java thread stack sizes (-Xss)
    # Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #  Out of Memory Error (gcTaskThread.cpp:46), pid=17956, tid=140591807985408
    When I run the ulimit command on machine, stack size is showing as 10MB:
    Result:
    [oracle@XXXXXX bin]$ ulimit -a
    core file size          (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 1031958
    max locked memory       (kbytes, -l) 3500000
    max memory size         (kbytes, -m) unlimited
    open files (-n) 131072
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 131072
    virtual memory          (kbytes, -v) unlimited
    file locks (-x) unlimited
    Setting the stack size to 512KB or 256KB might resolve the problem.
    I tried setting ulimit -s 512  in my user bash_profile. and ran ulimit -a , then it is showing as 
    stack size (kbytes, -s) 512
    If I set at user level, does it have any impact? Or we should set at JVM level using -Xss
    Can some body tell me where can I set -Xss for Oracle HTTP server 11g?
    Regards,
    Vidya

    Hi Marco,
    I believe you'll need to setup a MX record under 'More Actions' for your domain in Site Settings / Site Domains.
    Select the option "Use another external service for email" and enter your primary mail server's hostname at priority 10.
    Think you can repeat this step for your secondary mail server (priority 20) if you have one.
    Regards
    Mike

  • How do I fix the following error message: HTTP Server Error 503?

    I no longer can access the Internet by pressing the Internet button on my computer. I receive the following error message: HTTP Server Error 503. How do I fix that problem.

    http://pcsupport.about.com/od/findbyerrormessage/a/503error.htm

  • How do I stop Mac creating files on Windows server creating hidden files?

    I have my macbook connecting to a windows 2003 server share. Whenever I write a file, either by creating or editing and saving, it creates a hidden file too. I edit filename.doc then I'll also have ._filename.doc in that directory. It's distracting the windows users and causing me to become a little unpopular. How can I prevent those hidden files from being created?

    This happens in part with some Mac files that contain both a resource and a data fork. Windows doesn't know how to handle these files and breaks them apart. Also, Mac OS creates certain hidden files used by the Finder that also get transferred but are no longer hidden on Windows because Windows does not recognize the "." preceding a filename as the Unix shorthand for "invisible."
    There are a number of free utilities you will find at VersionTracker or MacUpdate that can prevent this and the hidden files from appearing on the Windows drive.
    Zipping files before transfer will also prevent the problem from occurring.

  • Displaying a jpg on the browser using a simple http server.....

    Hi
    I've written a simple server which responds by sending a jpg file .
    BROWSER ---request---> SERVER ( reads a jpg file, converts to byte[] and writes to browser )
    ^
    |
    |
    <----response ----------
    So I connect from the browser and the server sends a jpg and I'd to display that. Everything is thru sockets. There is no webserver as such.
    The problem is, I'm getting the text fine, but instead of the picture, I get lots of characters...probably the browser is unable to interpret the jpg . How to I display the jpg ? Do I have to convert the characters in the server code before sending it ?
    Anything to do with Base64 encoding ??
    Thanks !!

    All answers to this question including mine disappeared ??????
    In order to serve an image or any other type of data over the HTTP protocol you have to supply the correct HTTP response header with the data.
    The stream of bytes written to the client should be structured like this:
    A status code followed by several lines of key/value pairs with header information, a blank line and finally the bytes of the image.
    All lines in the header should end with \r\n no matter what OS the server is running.
    HTTP/1.1 200 OK
    Date: Wed, 07 Nov 2001 18:37:47 GMT
    Server: MyServer/0.1
    Content-Type: image/jpeg
    Content-Length: 4321The Content-Length field must have the length of the image data in bytes. The Content-Type field must be the correct mime type for the image data.
    Read RFC 2068 if you want or need more information.

  • Client Socket Problem: retrieving data from my Simple http Server...

    here's the main part of the "sending" of data from my server class:
    write(b.getBytes());
    outtStream.write(version.getBytes());
    outStream.write(replyCode.getBytes());
    here the server sends the data back to the client...i've tested this on a webbrowser and got a correct response...
    now in my client side, I'm having problems...
    1) I dont know how to retrieve the data from the outStreams above...
    2) Can anyone give me some help plz...or descriptive sample code
    here's the main part of the client sending its data first from the user input(client) and then sending the data...(ive created the socket)
    input = new BufferedReader(new InputStreamReader(System.in));
    output = new PrintWriter(socket.getOutputStream(),true);
    while((message = input.readLine()) != null)
    output.println(message);//sends the client's input to server?
    System.out.println(input.readLine());//retrieves server's response
    //then outputs it

    also i tried adding
    input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    after the System.in one and still no luck :[                                                                                                                                                                                                                                                                                               

  • How to invoke a stored procedure on MS Sql Server with Java?

    I started writing Enterprise Java Beans and created an ODBC dsn with MS Sql Server 2000 which I can access using jdbc:odbc:mySqlDSN. This all works fine using Java Sql Statements. What kind of Java/Java Sql statement can I use to invoke a stored procedure on the Sql Server? Is it possible to use ADO/ADO command objects with Java? Is it possible to import/implement Mdac2.6 ActiveX data objects libary in Java?
    Thanks

    Thanks all for your replies. I will search the api for callable statements. I am curious though, the reply that suggests using a prepared statement - can I put the name of a stored procedure in a prepared statment or is this just suggestions an action query like Insert Into, Update, Delete? Like with ADO you can say
    cmdObject.CommandType = adStoredProcedure
    cmdObject.CommandText = "NameOfStoredProc"
    cmdObject.ExecuteNonQuery()
    Once I am calling/importing/implementing the proper libraries/interfaces in Java, can a prepared statement reference a stored procedure as above?
    Thanks

  • Can't create a HTTP server

    I'm trying to create a temporal HTTP server over my local network IP http://192.168.1.3, so I can transfer files to a computer, I can see what is the local IP, but I don't find the way to get connected, using the following code I got the message "can´t connect to host"
    NSString *URL = [NSString stringWithFormat:@"http://%@:8080",[self getAddress]];
    NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:URL]cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
    if ([NSURLConnection canHandleRequest:theRequest])
    NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
    NSString *status;
    if (theConnection)
    status = @"Connection OK";
    else
    status = @"Connection Failed";
    NSLog(status);
    /**Here returns the error message
    - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    NSString *message = [NSString stringWithFormat:@"CONNECTION FAILED! ERROR - %@ %@",[error localizedDescription],[[error userInfo] objectForKey:NSErrorFailingURLStringKey]];
    NSLog(message);
    Can some one help me to fix this or tell me how open and close a connection ?
    Thank you

    When I open any of the those apps, it creates a HTTP server with over 192.168.1.3:8080. In my own app it detects tha IP and return a "Conection OK" message but connection:DidFailWithError gives me the "can't connect to host" message.
    When I open Air Sharing on my iPod and at the same time my own app on the simulator I got a succesful connection. So it makes me feel that I do not really know what is the correct command to open a connection.

  • A simple web server !!! Help needed ...

    Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
    But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
    Here is the code
    =============
    package service;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.net.SocketException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Listener implements Runnable {
    private InputStream is;
    private OutputStream os = null;
    boolean connected = false;
    ServerSocket server=null;
    Socket client=null;
    public Listener() throws SocketException, IOException {
    server = new ServerSocket(2772);
    client = server.accept();
    System.out.println("Connected to :" + client.getInetAddress().getHostAddress() + " @" + client.getPort());
    is = client.getInputStream();
    os = client.getOutputStream();
    Thread t = new Thread(this);
    t.start();
    public void run() {
    String b = "";
    while(true) {
    try {
    int c = is.read();
    if (c!=-1) {
    b +=(char)c;
    System.out.print((char)c);
    } else {
    System.out.println(b);
    break;
    //System.out.println(b);
    if (b.contains("keep-alive") && !connected) {
    connected = true;
    System.out.println("request recieved sending response");
    String lineSep = System.clearProperty("line.separator");
    String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
    String res = "HTTP/1.1 200 OK" + lineSep + "Connection: close" + lineSep + "Date: Thu, 06 Aug 1998 12:00:15 GMT" + lineSep;
    res = res + "Server: WebApplication" + lineSep + "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" + lineSep + "Content-Length: " + (data.length()-1) + lineSep;
    res = res + "Content-Type: text/html;" + lineSep + data;
    System.out.println("<" + res + ">");
    os.write(res.getBytes());
    os.close();
    // Thread.sleep();
    } catch (IOException ex) {
    Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
    =======
    When ever i entered the url from the browser i get this output :
    OUTPUT
    ======
    Connected to :127.0.0.1 @2143
    GET / HTTP/1.1
    Host: localhost:2772
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: UTF-8,*
    Keep-Alive: 300
    Connection: keep-aliverequest recieved sending response
    <HTTP/1.1 200 OK
    Connection: close
    Date: Thu, 06 Aug 1998 12:00:15 GMT
    Server: WebApplication
    Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
    Content-Length: 65
    Content-Type: text/html;
    <html><head><title>URA DHURA</title></head><body>HHH</body></html>>
    ===========
    Can any one give a clue???
    Thanks.

    Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
    But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
    Here is the code
    =============
    package service;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.net.SocketException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Listener implements Runnable {
    private InputStream is;
    private OutputStream os = null;
    boolean connected = false;
    ServerSocket server=null;
    Socket client=null;
    public Listener() throws SocketException, IOException {
    server = new ServerSocket(2772);
    client = server.accept();
    System.out.println("Connected to :" client.getInetAddress().getHostAddress() " @" client.getPort());
    is = client.getInputStream();
    os = client.getOutputStream();
    Thread t = new Thread(this);
    t.start();
    public void run() {
    String b = "";
    while(true) {
    try {
    int c = is.read();
    if (c!=-1) {
    b =(char)c;
    System.out.print((char)c);
    } else {
    System.out.println(b);
    break;
    //System.out.println(b);
    if (b.contains("keep-alive") && !connected) {
    connected = true;
    System.out.println("request recieved sending response");
    String lineSep = System.clearProperty("line.separator");
    String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
    String res = "HTTP/1.1 200 OK" lineSep "Connection: close" lineSep "Date: Thu, 06 Aug 1998 12:00:15 GMT" lineSep;
    res = res "Server: WebApplication" lineSep "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" lineSep "Content-Length: " (data.length()-1) lineSep;
    res = res "Content-Type: text/html;" lineSep + data;
    System.out.println("<">");
    os.write(res.getBytes());
    os.close();
    // Thread.sleep();
    } catch (IOException ex) {
    Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
    {code}
    =======
    When ever i entered the url from the browser i get this output :
    OUTPUT
    ======
    Connected to :127.0.0.1 @2143
    GET / HTTP/1.1
    Host: localhost:2772
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: UTF-8,*
    Keep-Alive: 300
    Connection: keep-aliverequest recieved sending response
    <HTTP/1.1 200 OK
    Connection: close
    Date: Thu, 06 Aug 1998 12:00:15 GMT
    Server: WebApplication
    Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
    Content-Length: 65
    Content-Type: text/html;
    <html><head><title>URA DHURA</title></head><body>HHH</body></html>>
    ===========
    Hello endasil,
    Actually I got a sudden idea of developing a web application which allows the content to be accessed from a web browser. Its user interface will be accessible through browser. Of course you can say I could use PHP, JSP as the frontend and at the back end USE the application.
    But I just want to explore and learn.
    Any way,
    Thank you for your reply.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to send emails to HTTP server?

    hi to all,
    iam dont know how to send a emails & receive emails using
    HTTP server like HOTMAIL,SIFY so and so...
    what is the HTTP host of HOTMAIL and so....?
    and successful with SMTP,IMAP,POP3...
    ITS Urgent,
    Nagaraju G

    hi to all,
    iam dont know how to send a emails & receive emails using
    HTTP server like HOTMAIL,SIFY so and so...
    what is the HTTP host of HOTMAIL and so....?
    and successful with SMTP,IMAP,POP3...
    ITS Urgent,
    Nagaraju G

  • Trex Index could not be created HTTP server error: 503 (Errorcode 7266)

    Hi Friends,
    I have installed EP6.0 SP15 on one machine and Trex 6.1 on another machine.All the services are green in the Trex monitor.And also i am able to get a reply from http://host:30205/TrexHttpServer/TREXISAPIExt.dll?CMD=PING.Connection sucessful.While creating my first index in Index Administration i get this error message.
    "Index could not be created; creating index failed: HTTP server error: 503 (Errorcode 7266)."
    Please tell me as to what steps i am missing and also where can i see the log message in portal.
    Thanks
    Sidharath

    hi friends,
    I went through the settings of trex services on server and found out that even after installing IIS 6.0 it was showing the path of Apache that that is i think the reason that httpserver is green but it is not using the CPU resources.I will share the setting with you.
    [queueserver]
    executable=TREXQueueServer.exe
    arguments=-port 30204
    startdir=C:\usr\sap\trex_02
    starttime=5000
    instances=1
    #hp_32:environment=_M_ARENA_OPTS=1:256,_M_SBA_OPTS=512:100:16
    As the executable for queserver is there so it is using cpu resources.
    [apache]
    executable=httpd
    arguments=-d C:\usr\sap\trex_02/Apache -R C:\usr\sap\trex_02/Apache/libexec -F
    startdir=C:\usr\sap\trex_02/Apache/bin
    instances=1
    As there is no folder for apache in trex installation so i think it is not working.Please check the setting in Trex Administration->Configration->Choose name server and on the right botton of it is edit services.Double click it and you will see the settings as i have shown above.Please share the settings with me as i will be then able to work with trex.
    Do i have to install Apache instead of IIS6.0.Please guide me.
    Thanks
    Sidharath

  • How can i create a simple netweaver portal page that shows text and images?

    Hi,
    i have a simple question or maybe it's not so simple.
    I am completly new to SAP Netweaver 2004s Portal. At the moment i'm trying to understand the struture of the whole thing. I already know how to create roles, worksets and pages and i know how to combine the different elements so a user can acces them.
    And now i want to create a simple portal page that shows text and images. Is it possible to create such a simple page with the portal content studio? What iView do i have to use?
    (I just want to create a start page with a welcome text on it.)

    Marc
    Considering that you would any ways go ahead with complex development from this simple start page I recommend create a Web dynpro Iview for your start page (include the Iview in your page).
    For putting the contents use Netweaver Developer studio to build a simple start page application and put your static text on that Iview.
    Please go through the following log after your NWDS development is over - This will make you comfortable for further challenging work.
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/ca934257a5c96ae10000000a155106/frameset.htm
    Do reward points if this helps and let me know of you want anything more.

Maybe you are looking for

  • How do I get my apps and pics off my 3gs to my 4

    just upgraded to the apple 4, but have photos on the 3 GS and some apps too that I really don't want to lose...can someone tell me how I can get the stuff off the old iphone and onto the new one?

  • Screen saver files inaccessible

    Ok. I've had this iMac for two weeks. Everything was working perfectly out of the box. I love Apple! Anyway. At some point in the last couple of days, my screen savers got nerfed. Not sure how. I initially had it set to "Word of the Day," and when it

  • PLEASE Quicktime component for AVI files?

    Trying to bring .AVI video files shot on Casio z750 over to Streamclip or at least START with QuickTime and THEN Streamclip so I can edit/burn family stuff in imovie/idvd.

  • Zen Vision: M Charging Probl

    I bought a Zen Vision: M six or seven months ago, and since then the player has been great, my only problem with it is it is notorious for freezing when I try to change songs. This happens rarely, but when it does I have to do a full system reset. An

  • Missing Password

    ChitlinsCC,  mentions a missing password problem in a reply.  I've been meaning to look into this for the last few days.  I'd assume somehow my Firefox password cache got confused.  Is the auto fill password deletion somehow an ASC doing?  It's bad e