Http server help

Hi,
Can some one plz post the code for implementing a multithreaded http server which can serve multiple clients concurrently. And a post method implemented in the web server which to send an smtp request to the http server.
I do not need the smtp code... only the http code..
plz help and post by tomorrow latest as i am working on an assignmnt n i cnt figure dis part out..
Thankz in advance

Rather than us posting the source, you can download it from http://tomcat.apache.org/ .

Similar Messages

  • Changing port for http server not working, please help

    Hi Gurus
    I installed standalone hhtp server from db companion cd on AIX 5.3 10gR2.
    I tested the http server URL http://XXX.XXX.XXX.com:7777/epdev/helloworld
    after creating a procedure in the db and it works
    But I need http server to use port 80 and not default of 7777
    I did 2 changes in httpd.conf - Port 80 and Listen 80 But after this I am not
    able to start http server . Can somebody tell me what am I missing here ?
    I even tried starting it as root and got error as well
    $HTTP_HOME/opmn/bin/opmnctl startall
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=cov6053:6200
    0 of 1 processes started.
    ias-instance id=IAS-X-cov6053.6299
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=720916)
    failed to start a managed process after the maximum retry limit
    Log:
    /export/host/thishost/unix/cen/app/oracle/product/http10.2/opmn/logs/HTTP_Server~1
    The log file has this entry no error:
    07/11/15 10:45:26 Start process
    /export/host/thishost/unix/cen/app/oracle/product/http10.2/Apache/Apache/bin/apachectl start: execing httpd
    Thanks a lot for your help

    I was able to reslove this. Followed this :
    On UNIX, you will hare to run as root if you want to run on ports less than 1024.
    In order to run Oracle HTTP Server as root, perform the following steps:
    Shutdown Oracle HTTP Server using the following command:
    UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] stopproc ias-component=HTTP_Server
    Change to root user. Navigate to ORACLE_HOME/Apache/Apache/bin on UNIX or ORACLE_HOME\Apache\Apache\bin on Windows and execute the following command:
    chown root .apachectl
    chmod 6750 .apachectl
    Exit root.
    Restart Oracle HTTP Server using the following command:
    UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] restartproc ias-component=HTTP_Server

  • Oracle HTTP server could not be started.. Urgent....  help me!!!

    Dear oracle professionals,
    I've installed 9iAS in my win2000 server. and it was working well but yesterday when i started my oracle http server service it says the following error in a message box,
    "Apache.Exe - Entry point not found
    The procedure entry point OCIUserCallBackRegister could not be located in the dynamic link library OCI.dll "
    and service failed without starting. my day to day operations in this server have been stopped now. anybody can help me noww????
    Thanks in advance!!
    Kathir

    Hi,
    what's the version of iAS you are using. If it is iAS v2, you shouldn't start / stop HTTP server stand-alone. You should use opmnctl script $ORCALE_HOME/opmn/bin. This "opmn" service is also listed in you win*2000 machines service list.
    Hope that helps.
    Ved

  • Oracle HTTP server could not be started.. Ur....  help me!!!

    Dear oracle professionals,
    I've installed 9iAS in my win2000 server. and it was working well but yesterday when i started my oracle http server service it says the following error in a message box,
    "Apache.Exe - Entry point not found
    The procedure entry point OCIUserCallBackRegister could not be located in the dynamic link library OCI.dll "
    and service failed without starting. my day to day operations in this server have been stopped now. anybody can help me noww????
    Thanks in advance!!
    Kathir

    Hi,
    what's the version of iAS you are using. If it is iAS v2, you shouldn't start / stop HTTP server stand-alone. You should use opmnctl script $ORCALE_HOME/opmn/bin. This "opmn" service is also listed in you win*2000 machines service list.
    Hope that helps.
    Ved

  • HTTP SERVER need help.

    I have a http server problem.
    my platform win2k adv server
    w or w/o iis
    w or w/o active directory
    I installed the oracle 902 but the http quite ?????
    I shut down the iis services the http server doesn't take over. in oracle817 the http index page will just pop up.
    but in 9i it doesn't.
    some other thing i noticed is during the installation sometime the agent service right before the starting http services or just after the scott database creating done. it sometime when through sometime doesn't.
    any help?
    I basically just want to install apache and use apache to launch my form or other html page.

    Thank you so much ejp, I have been reading books for the past week trying to figure this out, had no luck.
    I'm just not sure about a couple of things, if you could clearify it for me.
    At the moment, I am doing the processes in the following order
    read request - main method
    send reply - HTTPclass
    close connection - HTTPclass
    I think you are telling me to change when I close the connection, ie the HTTPclass should remain in a while loop for a while (unless the keep-alive is not set).. I did try that, but everytime a new request would come in, the main method would make a new HTTPclass object and service it, rather then the old one servicing it.
    I dont quite understand this part
    while (read request != EOF)what does end of file have to do with it??
    sorry, these are probably easy questions, i'm just really confused
    Thanks again,
    Hakim

  • HTTP Server (Main) error need help.

    Hello,
    We are having the following error in the HTTP Server logs and need to understand what is causing this issue.
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 962577774223,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 2216708226414,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 4484450958748,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.properties
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] (10054)An existing connection
    was forcibly closed by the remote host: MOD_OC4J_0087: Got an unexpected error while calling send() to send a message to oc4j and the
    error code is 10054.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0053: Failed to call
    network routine to send out an ajp13 buffer message to oc4j.
    [Tue Dec 19 15:30:25 2006] [warn] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0027: Failed to send
    out an ajp13 message to oc4j.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0026: Failed to marshal
    a request to ajp13 message headers or send them to the web container.
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 5360624479132,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 911038360600,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 4793688799699,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 859498756624,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    Any help would be great.

    More information from the OC4J_BI_Forms application log file.
    06/12/20 07:44:35 formsweb: Forms session <78> failed during startup: no response from runtime process
    06/12/20 07:44:35 formsweb: Forms session <78> exception stack trace:
    oracle.forms.engine.RunformException: Forms session <78> failed during startup: no response from runtime process
    at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
    at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
    at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)

  • Vista and 10g Http server +apex 3.0.1 Please help

    previous unanswered post about not being able to find correct installation method.
    I've setup 10gR2+Http server, installed apex 3.0.1 then copied images but from this point on cannot start http server with error 13 in app. log file.
    10gEX + apex 3.0.1 works perfectly but my client will need more than 4GB of storage so wanted to upsize.
    I've modified dads.conf and all other files as per guide but now http server is giving a '404' error. Should it be marvel.conf?
    Can still access EM for 10g
    Have checked alllocations for log files but none are being generated.
    Have I broken HTTP server?
    Please help or give some guidance as I have done this 9 times now without success!
    Thanks
    Marotuff

    Hi.
    Oracle HTTP Server is part of a separate download, the Application Server 10g Realease 3:
    http://www.oracle.com/technology/software/products/ias/index.html
    In the 'For Deployment" section, download the proper Zip File for Windows (It took an hour on my machine) and unzip to a writable folder on your server.
    Then you must use the Universal Installer to install.
    Choose 'Advanced Install" and choose the HTTP Server option.
    Make sure to read the Installation Guide. Good Luck.

  • Adobe Update Server - help with HTTP service

    Hi all,
    Could anyone please help me out with the specifics for the HTTP server needed for the Adobe Update Server?
    I'm reading the TechNotes PDF, though helpful for the updater server itself, it isn't really clear on the HTTP service part.
    What url exactly? which rights? and so on...
    Maybe someone could host a website on his OS X Server machine and make some screenshots for me?
    Thanks in advance!!

    Hi,
    There is no specific requirement from the http server for setting up adobe update server using AUSST. It should be any up-and-running http server say Apache. URLs are automatically generated by AUSST in form of client configuration files, so you do not need to bother about the URLs as such.  Similarly rights to the generated updater contents would also be automatically taken care by the tool itself. The only thing you need to figure out and tell the AUSST tool is the http based URL corresponding to the update server root that you are setting up. The latest documentation at http://www.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/UpdateServerSetupTool_ TechNote.pdf has some troubleshooting steps that help you out with most common issues.
    Thanks,
    Manju
    (AUSST Engineering team)

  • Help: starting HTTP server error !!

    Hi,
    I am trying to start an oracle 9iAS (9.0.2) infrastructure's system component which is (HTTP server) through the Oracle Enterprise Manager and i am always getting the following error (oracle.sysman.emSDK.util.jdk.EMException: The opmn requested has failed.From opmn:HTTP/1.1 204 No Content Cntent-:Length: 0 Content-Type: text/html Response: 0 of 1 processes started. Check opmn log files such as ipm.log and ons.log for detailed.
    can you please help me with this?

    libdb.so.2 is included in compat-glibc rpm package.
    Try "rpm -qa | grep compat-glibc" to check of that package is installed on your system.
    If yes, then try find the file with similar name "find -name 'libdb.so*'" and simply create the symlink which will be named libdb.so.2
    Example:
    $ find -name 'libdb.so*'
    ./usr/lib/libdb.so.5 (just example)
    # cd /usr/local/lib
    # ln -s libdb.so.5 libdb.so.2
    Apache will be working correctly...

  • HELP--- HTTP Server wont start,

    I disabled the Webgate protecting port 8080 thats being used by OAM now my HTTP server wont start. Thoughts on getting it started. Here's the Enterprise manager HTTP_Server log entry.
    08/04/10 21:18:53 Start process
    [Thu Apr 10 21:18:57 2008] [debug] mod_oc4j.c(1667): Initializing OC4J connection cache size to 40
    [Thu Apr 10 21:18:57 2008] [debug] mod_onsint.c(1202): mod_onsint: after parsing OpmnHostPort directive, got a hostport with host:127.0.0.1, port:7200 and is_ssl:0.
    [Thu Apr 10 21:18:57 2008] [debug] www\src\modplsql\sosd\swwwap.c(1279): mod_plsql: plsql_create_server_config called
    fopen: No such file or directory
    Apache.exe: could not open document config file c:/program
    Thanks!

    I believe you have disabled the web gate in the OAM.But when a web gate is installed, it writes to the HTTP server httpd.conf file to as a part of installation and to redirect the requests on that server to the OAM. So Now if you revert back to the original conf file are the edition before the installation of web gate and try to start the same, you should be fine.

  • Delete File from URL located on HTTP Server.

    Hello All, could you anybody help me with my Problem. I need to delete some File in URL located on HTTP Server. The File was created via using of the Function 'DP_CONTROL_SEND_STREAM_TO_URL'. Any Times I need to delete this File from the url Location, but I cann't find any Functions or Method of any Class (GUI 6.20) to realise that. I read lot of very good Blogs from Thomas Jung about HTTP classes, but I cann't find somthing relevant for me...
    Sincerely Yours,
    Lubomir

    Hi,
    You can try with GUI_DELETE_FILE and give http location in FILE_NAME
    or WS_FILE_DELETE.
    I am not getting any CNDP function module for your purpose.
    Hope you will get sucess..
    Thanks,
    Chetan Shah

  • Single Sign-on and HTTP Server not started

    I have installed oracle9iAS on SuSE Linux Enterprise Server 8 (SLES 8) which is certified by Oracle to run oracle9iAS. Everything was working propely after installation but when I restarted the server, the listener, the iasdb instance, and the EM started properly but when I went to http://servername:1810 and clicked on start all i got them all started but the HTTP Server and the Single Sign-on. When I tried to start the HTTP Server individually i got the following error:
    oracle.sysman.emSDK.util.jdk.EMException: The opmn request has failed. From opmn: HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html Response: 0 of 1 processes started. Check opmn log files such as ipm.log and ons.log for detailed.
    I checked the log and its showing the following:
    03/10/25 16:44:23 Connection 0,192.168.10.11,6200 message missing 'Content-Lengt
    h'
    GET /dms0/Spy?recurse=all&format=xml&operation=get&value=false&units=true&descri
    ption=true&name=%2F HTTP/1.1
    Host: linux2.future:6200
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: RPT-HTTPClient/0.3-3
    Cache-Control: no-cache
    Pragma: no-cache
    Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
    I tried to start it from command line with the command
    $dcmctl start -ct ohs
    and it returned ADMN-906025
    Anyone can help me solving this problem??

    This error Can be caused by a syntax error in your httpd.conf file, check it / correct it try reloading OHS.
    Ensure that emctl is not running when you run any dcmctl commands! If you have already run any dcmctl commands with emctl running that can cause your problem - if so to fix it solution is really to re-install.

  • Problem in starting HTTP Server (Oracle 9i AS Rel 1 on Solaris 2.8)

    Hi All,
    I have installed Oracle9i database Rel1 (version 9.0.1) on Sun Solaris2.8) successfully and now, I'm trying to install Oracle 9i Application Server Rel1 (version 1.0.2.2.1) on the same system. I stopped the database before starting installion of AS. My installation is limited to Oracle Forms & Reports Services and Oracle HTTP Server. Installation successfully completed, but, it is failed to start HTTP server. The error I'm getting is:
    Syntax error on line 14 of $ORACLE_HOME/Apache/Apache/conf/mod__sse.conf
    AuroraService - directive already in effect for this server.
    $ORACLE_HOME/Apache/Apache/bin/httpsctl start: httpd could not be started.
    Line 14 in mod__sse.conf is:
    AuroraService inst1_http
    How can I resolve this issue ? Please help.
    An early help would be highly appreciated.
    Thanks in Advance.
    Sajan Thomas

    Hi,
    I have resolved that issue by commenting that line. Since I'm not using servlets, I hope that wouldn't create any problems !
    Sajan

  • HTTP Server is not currently supported with Solaris 10

    I am having a problem to start the HTTP Server on Solaris 10 (I am installing HTTP Server as part of HTMLDB installation on Solaris 10).
    I had a problem to install it at first, however I've found on 'AskTom' that unsetting ORA_NLS33 helps and it did. Now I can't start the HTTP server and I've found on metalink that 'HTTP Server is not currently supported with Solaris 10, this is targeted for Q2CY05'.
    Has this been fixed yet?
    Thank you for your time.
    DanielD

    Hi james,
    I have checked the log file but i am unable to find what to do next.
    I am giving the small piece of content of the log file. The following messages are repeating again and again...
    Log content:-
    07/09/23 17:20:36 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:22:26 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:22:30 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:24:40 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:24:44 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:26:36 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:26:42 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:28:57 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:29:01 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd

  • How to deal with deadlock on wwv_flow_data table when http server times out

    There are some threads about a deadlock on the wwv_flow_data table. None of them contain a real explanation for this behaviour. In my case I will try to explain what I think is happening. Maybe it helps somebody who is hitting the same matter.
    In my case with APEX 3.2.1 I am navigating from one page to another. Doing this APEX will lock the table wwv_flow_data. As soon as the other page is shown the lock will be released. But now this other page contains a bad performing query (standaard report region). After 5 minutes the http server (modplsql) will time out and present the message "No response from the application server" on the screen. In the meanwhile the query is still running on the database server and the lock stays on the wwv_flow_data table.
    Normal user behaviour will be that the user will use the back button to return to the previous page and tries it again to navigate to the other page or
    the user will try to refresh the page with the bad performing query.
    And voila now you will have a deadlock on the wwv_flow_data table since a second session is trying to do the same thing while the first hasn't finished yet.
    How to deal with it?
    First of all. Have a good look at the bad performing query. Maybe you can improve it that it will succeed before the http server will timeout.
    In my case the 11gr1 optimizer couldn't handle a subquery factoring clause in the best way. After changing it back to a classical inline query the problem was solved.
    Secondly you could increase the timeout parameter of the http server. Although this not the best way.
    Maybe it would better if APEX in a next version would release the lock on the table wwv_flow_date earlier or do a rollback just before the moment that the http server is timing out.
    regards,
    Mathieu Meeuwissen

    Hello Shmoove,
    I saw your reply here and you probably understand the problems the HTTP 100 response may cause.
    I am trying to send image that was taken by getSnapshot. The problem is that the server respond with this HTTP 100 message.
    I suspect that the reason that my server doesn't recognize the file that I'm sending from J2me is that the "server to client" response to the 100 message comes after the second message of (see what the TCPIP viewer shows down here):
    POST /up01/up02.aspx HTTP/1.1
    Content-Type: multipart/form-data; boundary=xxxxyyyyzzz
    Connection: Keep-Alive
    Content-length: 6294
    User-Agent: UNTRUSTED/1.0
    Host: szekely.dnsalias.com:80
    Transfer-Encoding: chunked
    400: Client to Server (126 bytes)
    78
    --xxxxyyyyzzz
    Content-Disposition: form-data; name="pic"; filename="david.jpg"
    Content-Type: application/octet-stream
    400: Connected to Server
    400: Server to Client (112 bytes)
    HTTP/1.1 100 Continue
    Server: Microsoft-IIS/5.1
    Date: Wed, 23 Mar 2005 00:47:02 GMT
    X-Powered-By: ASP.NET
    Any help will be appreciated,
    David

Maybe you are looking for

  • Search is not working for subsites

    hello, SharePoint search is not working for any of the subsites and it is just working for top level site. I can see that all the subsites is visible in search. Any idea? interesting thing is, it is not working just for one site collection subsites.

  • What settings to use

    I have recorded clips using a pansonic HDC-TM&700. The clips are recorded as 1920x1080 HDTV 1080i (16:9). I will be burning regular def disks but I want to watch them on a high def 1080P TV. Any advice as to what FCP 7 settings to use and what DVD se

  • Time Capsule and Apple Tv Question regarding iTunes

    (Sorry if this has been asked) I wanted to know if you could set up the time capsule as basically a centralized itunes server and connect to it from multiple apple tv's at the same time to stream music to different rooms( 3 rooms at most) if not will

  • How many sessions would I need for BBP?

    Hi friends, I am going to work on preparing a BBP document for Benefits implementation. Could you please guide me on how many sessions of workshops would I be needing for different components of Benefits module? I need to prepare presentations for ea

  • Macbook pro keYboard not working properlY

    Hello, I suspect mY kids split a drink over mY macbook pro. MY keyboard has several issues: -When I type lower case Y, I onlY get uppercase Y. -When pressing the spacebar I get a space but its followed bY a closed square bracket. -When pressing enter