Apache2 + Tomcat

I'm looking into building a streaming and photo sharing app using Tomcat and Apache 2.0 via the mod_jk connector. Tomcat is woeful in serving large files and hence will differ the images and music streaming to Apache.
After having done some initial research, I'm not clear on if session replication/sharing between Apache and the Tomcat servlet container is possible. For instance, if the media files are to be served via Apache then a user will only have access to resources if an authenticated session is present in Tomcat. Apache is configured to serve images/* and music/* URI's however access to these resource is restricted and should not be available directly from Apache. Only if a user is authenticated and a valid session is created in Tomcat, should the user be able to access these resources. Also, the authenticated user will only have access to their own photo and music files.
My question if this is possible? Or any alternate ideas?
Thanks!

I'm looking into building a streaming and photo sharing app using Tomcat and Apache 2.0 via the mod_jk connector. Tomcat is woeful in serving large files and hence will differ the images and music streaming to Apache.
After having done some initial research, I'm not clear on if session replication/sharing between Apache and the Tomcat servlet container is possible. For instance, if the media files are to be served via Apache then a user will only have access to resources if an authenticated session is present in Tomcat. Apache is configured to serve images/* and music/* URI's however access to these resource is restricted and should not be available directly from Apache. Only if a user is authenticated and a valid session is created in Tomcat, should the user be able to access these resources. Also, the authenticated user will only have access to their own photo and music files.
My question if this is possible? Or any alternate ideas?
Thanks!

Similar Messages

  • Mod_jk for apache2, tomcat 5 and solaris 10

    when i compile mod_jk in solaris 10 x86 box it shows following error:
    /bin/bash /var/apache2/build/libtool --silent
    --mode=compile gcc -I/usr/apache2/include -g -O2 -O
    -xarch=386 -xchip=pentium -xspace -Xa -xildoff
    -DSSL_EXPERIMENTAL -DSSL_ENGINE -DHAVE_APR
    -I/usr/share/src/apache2/srclib/apr/include
    -I/usr/share/src/apache2/srclib/apr-util/include -g
    -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
    -D_REENTRANT -I /usr/jdk/entsys-j2se/include -I
    /usr/jdk/entsys-j2se/include/ -c jk_ajp12_worker.c -o
    jk_ajp12_worker.lo
    gcc: unrecognized option `-Xa'
    gcc: unrecognized option `-KPIC'
    gcc: language ildoff not recognized
    gcc: jk_ajp12_worker.c: linker input file unused
    because linking not done
    mv: cannot access .libs/jk_ajp12_worker.lo
    *** Error code 2
    make: Fatal error: Command failed for target
    `jk_ajp12_worker.lo'
    Current working directory
    /Desktop/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common
    *** Error code 1
    The following command caused the error:
    set fnord $MAKEFLAGS; amf=$2; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='common apache-2.0'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (cd $subdir && make $local_target) \
    || case "$amf" in *=*) exit 1;; k) fail=yes;; *)
    exit 1;; esac; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'
    i'm using apache 2 that is included in solaris 10 package, tomcat 5.5.17 and jakarta-tomcat-connectors-1.2.15.
    please help.
    mnio

    Hi
    i am also face problem in mod_jk for apache 2.2.0
    I have done installation of apache 2.2.0 on Solaris 10_x86 .Problem in Solaris OS .But i face problem in tomcat connecter on Solaris 10_x86.
    I make theses step in Solaris 10.
    I download connector tomcat-connectors-1.2.25-src.tar.gz
    # gunzip tomcat-connectors-1.2.25-src.tar.gz
    # cd \tomcat-connectors-1.2.25-src\native
    #./ buildconf.sh
    # ./configure - - with - -apxs=/usr/local/apache2/bin/apxs after run this command make new file.File name is Makefile
    Edit in Makefile and parameter -Wl,-brtl
    Run make command for tomcat-connectors (mod_jk) compiling
    bash-3.00# make
    Making all in common
    /usr/local/apr/build-1/libtool silent mode=compile gcc -I/usr/local/apache2/include -g -O2 -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -DHAVE_APR -I/usr/local/apr/include/apr-1 -I/usr/local/apr/include/apr-1 -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I /include -I /include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
    /usr/local/apr/build-1/libtool[384]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[384]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[709]: /usr/local/bin/sed: not found
    *** Warning: inferring the mode of operation is deprecated.
    *** Future versions of Libtool will require --mode=MODE be specified.
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
    /usr/local/apr/build-1/libtool[1054]: /usr/local/bin/sed: not found
    : compile: cannot determine name of library object from `'
    *** Error code 1
    make: Fatal error: Command failed for target `jk_ajp12_worker.lo'
    Current working directory /export/home/apache/tomcat-connectors-1.2.25-src/native/common
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
    case $f in \
    *=* | --[!k]*);; \
    k) failcom='fail=yes';; \
    esac; \
    done; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='common apache-2.0'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (cd $subdir && make $local_target) \
    || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'
    Please help me. My E-mail ID is [email protected]

  • Anyone Familiar linking Apache2 Server to Tomcat 5.5?

    I am trying to have Apache2 work with Tomcat 5.5, but am having no success.
    There's about 10,000 documents out on the web that all contradict each other and I have no clue how to do this correctly.
    Here's what I have and what I am trying to do...
    OS: WindowsXP
    Apache Server: 2.0.53 installed set to port 8181
    Located in: D:\Program Files\Apache Group\Apache2
    Tomcat Server: 5.5.7 installed set to port 8080
    Located in D:\Program Files\Apache Software Foundation\Tomcat 5.5
    mod_jk.so (Version 1.2.8) installed into
    Located in: D:\Program Files\Apache Group\Apache2\modules
    Both Apache2 and Tomcat are installed correctly which I verified by running separately
    When I click the following link, I want Tomcat to pick up the request using the Apache2 Server
    http://localhost:8181/somePath1/somePath2/

    ok, I solved it. A couple of points to note:
    - I switched so port 80 was apache2 and port 8080 was tomcat
    - If using Windows do not use mod_jk.so instead use mod_jk.dll. Either way, place the file in the Apache2\modules directory
    - If your http.conf directory names have spaces make sure to put them in quotes.
    - If you have errors do not check the 'error' log in the Event Viewer as it gives you useless information. Instead check the 'application' logs in the Event Viewer
    Here is my tomcat/conf/workers.properties
    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13Here is my additions to the apache2\conf\httpd.conf
    # Setup for Tomcat
    # Load mod_jk module
    # Update this path to match your modules location
    LoadModule jk_module modules/mod_jk.dll
    # Declare the module for <IfModule directive>
    # AddModule mod_jk.c
    # Where to find workers.properties
    # Update this path to match your conf directory location (put workers.properties next to httpd.conf)
    JkWorkersFile "D:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties"
    # Where to put jk logs
    # Update this path to match your logs directory location (put mod_jk.log next to access_log)
      JkLogFile     "D:/Program Files/Apache Software Foundation/Tomcat 5.5/logs/mod_jk.log"
    # Set the jk log level [debug/error/info]
      JkLogLevel    info
    # Select the log format
      JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
      JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
      JkRequestLogFormat     "%w %V %T"
    # Send everything for context /examples to worker named worker1 (ajp13)
      JkMount  /somepath1/somepath2/* ajp13

  • Mod_jk child workerEnv in error state

    We're using apache2, tomcat 5 on a freebsd 5.3 machine. Starting apache we're having some "mod_jk child workerEnv in error state 30" error in our httpd-error.log. The error state number is increasing. Any clues?
    Cheers,
    Marc

    Hi Asif,
    I can submit other programs successfully.
    Please find the SQL extraction below:
    Conflict Resolution Manager
    1
    1
    Internal Manager
    1
    1
    Scheduler/Prereleaser Manager
    1
    1
    Standard Manager
    8
    8
    PO Document Approval Manager
    2
    2
    Receiving Transaction Manager
    1
    1
    PA Streamline Manager
    1
    1
    Inventory Manager
    1
    1
    INV Remote Procedure Manager
    1
    1
    Workflow Agent Listener Service
    1
    1
    Workflow Mailer Service
    1
    1
    Transportation Manager
    0
    0
    WMS Task Archiving Manager
    0
    0
    C AQCART Service
    0
    0
    Session History Cleanup
    1
    1
    UWQ Worklist Items Release for Crashed session
    1
    1
    SFM Controller Service
    0
    0
    SFM Order Queue Service
    0
    0
    SFM Work Item Queue Service
    0
    0
    SFM Fulfillment Actions Queue Service
    0
    0
    SFM Fulfillment Element Ready Queue Service
    0
    0
    SFM Event Manager Queue Service
    0
    0
    SFM Inbound Messages Queue Service
    0
    0
    SFM Timer Queue Service
    0
    0
    SFM Application Monitoring Service
    0
    0
    SFM SM Interface Test Service
    0
    0
    OAM Metrics Collection Manager
    1
    1
    Workflow Document Web Services Service
    1
    1
    Marketing Data Mining Manager
    0
    0
    Output Post Processor
    1
    1
    FastFormula Transaction Manager
    0
    0
    Regards,
    Yuvraj

  • JSP Error

    Hi,
    I've an application already running perfectly on linux (Apache 1.3.33-Tomcat 5.5.7-mod_jk 1.2.8), however, I want to run the same application on � Windows (Apache 2.0.59-Tomcat 5.5.17-mod_jk 2.0.58).
    Paths:
    Java JDK path : c:\Program Files\Java\jdk1.5.0_08
    Apache path : C:\Program Files\Apache Group\Apache2
    Tomcat path : C:\Program Files\Apache Software Foundation\Tomcat 5
    Application path: C:\Program Files\Apache Software Foundation\Tomcat 5\webapps\qelly
    I've everything (apache, tomcat, mod_jk) running on the windows server, static jsp pages of the same application work fine too, but when I search through it, it gives the following error:
    com.is.metasearch.exception.ApplicationException: Torque Exception
         at com.is.metasearch.utils.MiscUtils.getLocationFromIP(MiscUtils.java:1448)
         at com.is.metasearch.struts.SearchAction.doSearchWeb(SearchAction.java:202)
         at com.is.metasearch.struts.SearchAction.doSearch(SearchAction.java:155)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:425)
         at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:452)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
         at java.lang.Thread.run(Unknown Source)I'm completely clueless about this error. Is there some setting (paths etc..) I need to change in the application? If so, where and what?
    Any help greatly appreciated.
    � Thanks, Husain

    what kind of reasons we will get standard JSp Error.JSP error is a common error so you need to check the log files for details about the error. It could be related to JVM, resources, locks, database errors, ..etc.
    login page issue
    Thanks,
    Hussein

  • Configure Apache httpd.conf for struts requests

    Hi everyone,
    I am not sure if this is the correct place to ask this question, but I have been struggeling with this for a number of hours over the past few days and can't get it to work. I have a standard Apache2-Tomcat installation on a solaris machine. I have apache configured to talk to Tomcat to mod_jk.so and it wokrs fine for servlets and jsp. Now I have introduced struts to the picture and Apache does not seem to know what to do with the .do requests. I have configured httpd.conf according to a bunch of articles/posts that I have found on the Internet. Here is what a snippet of it looks like:
    # Load mod_jk module
    # Update this patch to match your modules location
    LoadModule   jk_module   libexec/mod_jk.so
    # Declare the module for <IfModule directive>
    #AddModule    mod_jk.c
    # Where to find workers.properties
    # Update this path to match your conf directory locaton (put workers.properties
    next to httpd.conf)
    JkWorkersFile /usr/local/apache2/conf/workers.properties
    # Where to put jk logs
    # Update this path to match your logs directory location (put mod_jk.log next to
    access_log)
    JkLogFile     /usr/local/apache2/logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel    info
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat     "%w %V %T"
    # Send everything for context /examples to worker named worker1 (ajp13)
    #JkMount     /examples/* worker1
    JkMount     /*.jsp worker1
    JkMount     /*.do worker1
    JkMount     /ValidationManagement/* worker1
    JkMount     /ActivityTracker/* worker1
    JkMount     /Bars01/* worker1
    JkMount     /Bars02/* worker1
    JkMount         /RMIS/* worker1
    JkMount         /Fars/* worker1
    JkMount         /Training/* worker1
    JkMount         /CoreDBSAP/* worker1
    JkMount         /iul/* worker1
    JkMount         /iul/*.do worker1
    JkMount         /PIForm/* worker1Here is the contents of the workers file:
    # Define 1 real worker using ajp13
    worker.list=worker1
    # Set properties for worker1 (ajp13)
    worker.worker1.type=ajp13
    worker.worker1.host=localhost
    #worker.worker1.host=10.221.13.50
    worker.worker1.port=8009
    worker.worker1.lbfactor=50
    worker.worker1.cachesize=10
    worker.worker1.cache_timeout=600
    worker.worker1.socket_keepalive=1
    worker.worker1.recycle_timeout=300I have also tried thigns like AddHandler jserv-servlet .do which I know shouldn't work since I am using mod_js.so.
    Can anyone help? I am in a crunch as I have to get this out to a client today. Thanks all!
    =======
    Found this in the mod_jk log. So, it looks like it is trying to map to the right JkMount. WTF?
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (445)]: Into jk_uri_jk_uri_worker_map_t::map_uri_to_worker, done without a match
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (459)]: Attempting to map URI '/iul/'
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (483)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 -> /iul/
    [Wed Nov 14 09:34:17 2007]  [mod_jk.c (1689)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=2670448 worker=worker1
    [Wed Nov 14 09:34:17 2007]  [jk_worker.c (90)]: Into wc_get_worker_for_name worker1
    [Wed Nov 14 09:34:17 2007]  [jk_worker.c (94)]: wc_get_worker_for_name, done found a worker
    [Wed Nov 14 09:34:17 2007]  [mod_jk.c (472)]: agsp=80 agsn=gwdevweb.amgen.com hostn=gwdevweb.amgen.com shostn=gwdevweb.amgen.com cbsport=0 sport=0
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (1741)]: Into jk_worker_t::get_endpoint
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (1367)]: Into jk_endpoint_t::service
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (257)]: Into ajp_marshal_into_msgb
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (425)]: ajp_marshal_into_msgb - Done
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (136)]: Into jk_open_socket
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (143)]: jk_open_socket, try to connect socket = 25 to 127.0.0.1:8009
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (159)]: jk_open_socket, after connect ret = 0
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (168)]: jk_open_socket, set TCP_NODELAY to on
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (177)]: jk_open_socket, set SO_KEEPALIVE to on
    [Wed Nov 14 09:34:17 2007]  [jk_connect.c (185)]: jk_open_socket, return, sd = 25
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (701)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 25 to 127.0.0.1:8009
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (737)]: sending to ajp13 #3903
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (1035)]: ajp_send_request 2: request body to send 0 - request body to resend 0
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (851)]: received from ajp13 #150
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (477)]: ajp_unmarshal_response: status = 302
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (483)]: ajp_unmarshal_response: Number of headers is = 3
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (537)]: ajp_unmarshal_response: Header[0] [Location] = [http://gwdevweb.amgen.com/iul/home.do?dept=biofit]
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (537)]: ajp_unmarshal_response: Header[1] [Content-Type] = [text/html;charset=UTF-8]
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (537)]: ajp_unmarshal_response: Header[2] [Content-Length] = [0]
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (851)]: received from ajp13 #2
    [Wed Nov 14 09:34:17 2007]  [jk_ajp_common.c (1716)]: Into jk_endpoint_t::done, recycling connection
    [Wed Nov 14 09:34:17 2007] worker1 gwdevweb.amgen.com 0.023557
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (459)]: Attempting to map URI '/iul/home.do'
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (539)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.do
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (483)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 -> /iul/
    [Wed Nov 14 09:34:17 2007]  [jk_uri_worker_map.c (539)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.doEdited by: nwahlberg on Nov 14, 2007 6:37 AM

    Ok, thanks for clarifying that. But, the poroblem still lies with Apache since that has to handle the incoming HTTP request and then forward that onto something that can handle the processing (in this case the servlet container Tomcat). Just like you have to tell Apache where to send requests to .jsp files, the same has to happen with .do. This piece seems to be working, but after it finds the worker it then doesn't know what to do. Clearly I am missing some setting that I have yet to find.
    Thanks,
    Nik

  • How to run servlets in IIS Server

    Hi Techies,
    I had read in one book , in IIS server we can run servlets n jsp.
    Can u guys tell how can we run servlets n jsp in IIS server. Does we need to include some 3rd party software in IIS
    regards,
    KRish

    Well if you were to use apache you would use the
    mod_jk_apache2
    However, im really not sure if that is around for win32 systems. However, as i said above im not 100% on windows systems.
    If you really want to test portability set aside a 5gb partition and install linux which most standard distros already have apache2/tomcat installed.(Fedora)
    Also i have to agree this seems less and less java based and more and more system based.
    If you plan on taking the route mentioned above start a post at places like linuxquestions.org since they have more tech junkies then you could imagine.

  • General functionality - service not showing up

    Hi,
    sorry that I ask this silly questions here, but I guess even though I read a lot of papers, I still miss some general conceptual points!? Maybe someone can give me a good hint what to read or how to understand SMF's general philsophy?
    Here is my (next) problem:
    I just created a new manifest file and imported it via:
    svccfg -v import ./http-tomcat5.xmlIt simply sayssvccfg: Successful import. but if I now try to get some information about the FMRI by e.g.:svcs -l tomcat5 I always get:svcs: Pattern 'tomcat5' doesn't match any instancesThe manifest looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <service_bundle type='manifest' name='tomcat'>
      <service name='network/http/tomcat5' type='service' version='1'>
        <single_instance/>
        <dependency name='config-file'
          grouping='require_all'
          restart_on='none'
          type='path'>
          <service_fmri value='file:///usr/apache2/tomcat/conf/server.xml'/>
        </dependency>
        <dependency name='loopback'
          grouping='require_all'
          restart_on='error'
          type='service'>
          <service_fmri value='svc:/network/loopback:default'/>
        </dependency>
        <dependency name='physical'
          grouping='require_all'
          restart_on='error'
          type='service'>
          <service_fmri value='svc:/network/physical:default'/>
        </dependency>
        <dependency name='fs-local'
          grouping='require_all'
          restart_on='none'
          type='service'>
          <service_fmri value='svc:/system/filesystem/local'/>
        </dependency>
        <exec_method
          type='method'
          name='start'
          exec='/lib/svc/method/http-tomcat5 start'
          timeout_seconds='60' />
        <exec_method
          type='method'
          name='stop'
          exec='/lib/svc/method/http-tomcat5 stop'
          timeout_seconds='60' />
        <exec_method
          type='method'
          name='refresh'
          exec='/lib/svc/method/http-tomcat5 refresh'
          timeout_seconds='60' />
        <stability value='Evolving'/>
        <template>
          <common_name>
            <loctext xml:lang='C'>Apache Tomcat 5 server</loctext>
          </common_name>
          <documentation>
            <doc_link name='apache.org' uri='http://jakarta.apache.org/tomcat'/>
          </documentation>
        </template>
      </service>
    </service_bundle>So up till now I was assuming that all work done by use of svccfg modifies the repository and by using svcadm refresh I advice the running processes to re-read the repository and apply the configuration found there?!

    Uff,
    no no - I know all this and I'm already in the stage of getting in love with SMF - BUT:
    I can neither see the service via svcs -a nor can I access it via svcadm!
    I all the time get: svcadm: Pattern 'tomcat5' doesn't match any instances
    Only svccfg -s tomcat5 brings me correctly to the tomcat service:
    [svc:/network/http/tomcat5>/code]
    So right now I get the feeling that this is somehow a bug - or as stated above, I got something completely wrong?!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • OC4J AJP13 Firewalled Connection, Page Not Found and Action Cancelled

    I have a J2EE application that works fine within the company intranet, however the live internet available version is plagued by Action Cancelled and Page Not Found Errors. We also get some queries that hang.
    Having recently switched from Apache2/Tomcat to OHS/OC4J (10gR2), through a halfway house of Apache2/OC4J, I can also state that the problem occurs on these platforms as well. The operational application only uses SSL connections.
    According to our Firewall team idal connection timeouts are in the order of six hours, and we have tried opening all ports between the Web Server and Application Server, just in case we were blocking something, all to no avail.
    We also sometimes get the ie popup for changing between secure and unsecure objects, or displaying secure and unsecure objects, despite having those popups disabled in the browser. The only HTTP call shown within the HTTP trace is a random call from the browser to CONNECT to the application secure base URL which points to a splash page. I have no idea where this is coming from.
    The application concerned is Business Objects.
    Any thoughts.
    Interestingly, when I activate Fiddler, the Microsoft IE HTTP(S) monitor the problem goes away, except for the page hangs which occur when a jsp script requests data.
    I can modify any parameters relating to mod_oc4j, OHS, and the application container.
    Message was edited by:
    thephona

    check your web.xml and struts-config.xml file . Are they correct ? . i mean validate them.
    also are you facing this error in a particular request or in every request.

  • Dependencies timing

    I have implemented a ldap server (and admin server) service and made apache tomcat depending on this, since we had trouble starting tomcat without ldap running (tomcat makes a jndi connection to ldap).
    Manifests etc got imported and everything if fine sa far. But on a test boot I still got trouble starting tomcat.
    The problem is as one can see from the logs that the ldap start finished after the tomcat start began!
    So me question is if there is a mechanism to solve this without placing sleep statements into the startup script - or how one should deal with this issues at all. Maybe it is not a good idea to use SMF for this at all?!

    Uff yes you are right svcs -l doesn't list ldap as dependency!
    I did not see this since I just looked at the properties via svccfg -s tomcat
    which show the dependency to ldap:
    svc:/network/http/tomcat5> listprop
    config-file                     dependency
    config-file/entities            fmri     file:///usr/apache2/tomcat/conf/server.xml
    config-file/grouping            astring  require_all
    config-file/restart_on          astring  none
    config-file/type                astring  path
    loopback                        dependency
    network-ldap-server             dependency
    network-ldap-server/entities    fmri     svc:/network/ldap/server
    network-ldap-server/grouping    astring  require_all
    network-ldap-server/restart_on  astring  none
    network-ldap-server/type        astring  service
    svc:/network/http/tomcat5>So what am I doing wrong here? I thought if it shows up in svccfg, this is the configuration which will be used at boot time!?
    May you please simply describe how I correctly apply/active (or whatsoever) the configuration seen with svccfg!

  • Display text from MySQL Text Field

    Hi,
    I am trying to display text which is stored in mysql text field. But it displays nothing. and when i try this code:
    <c:out value="${rowSrearch.pDetails}" />
    <c:set var="text" value="${rowSrearch.pDetails}"/>
    <%
    String text = (String)pageContext.getAttribute("text");
    out.print(text);
    %>
    it gives me null.
    I am just opening a resultset using <sql:query and trying to retrieve data using <c:forEach loop.
    What is the best way to retrieve data from MySQL text field.
    I am using:
    Apache2
    Tomcat 5.5.17
    MySQL 5.0.22
    mysql-connector-java-5.0.3
    Thanks

    One way is to enter them into the database with the desired formatting.

  • Gw7 webaccess and SSL

    Anyone have steps, documentation, etc to force ssl for gw7 webaccess
    running on oes2sp3?
    Haven't had much luck finding anything so far.
    Stevo

    Lok at vhosts.d look at the ssl.template in there and replace the
    items listed with the digicert details (on the same server)
    The process is 1) copy the vhostsssl.conf.template to vhostssl.conf
    2) edit
    restart apache
    Use http://www.digicert.com/ssl-certific...ion-apache.htm as
    a more detailed guide, but edit a copy of that template file.
    T
    On Wed, 23 May 2012 17:47:17 GMT, "Stevo" <[email protected]>
    wrote:
    >Tim Heywood (NKP) sounds like they 'said':
    >
    >> RewriteEngine On
    >> RewriteCond %{REQUEST_URI} ^/servlet/webacc
    >> RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
    >>
    >> Make sure that you are loading mod_rewrite
    >
    >So my response to Tim's comment is...
    >
    >Ok, so I got WA to force to SSL, thanks!
    >
    >Now, I don't remember what needs done to get WA to use our digicert
    >cert. I copied the files from my existing WA gateway to my oes box
    >that houses the new WA gateway.
    >
    >I then set the path in the SSL settings of the WA gateway to point to
    >these two files, restarted groupwise, apache2, & tomcat, but it's still
    >not using our actual cert.

  • Coldfusion 10 Enterprise with Tomcat + mod_jk and Apache2 experiencing child process hangups

    I am experiencing the most bizarre thing that so far I am unable to reproduce with my own visits to the site.
    After restarting Apache2 my cacti graphs show that the child processes increment consistently over the course of a day without dropping back down during off hours.  This behavior eventually leaves the website inaccessible...
    Looking at server-status it is filled with Ws (Sending Reply) and GET calls to my cfm applications :
    Current Time: Tuesday, 22-Jul-2014 16:33:00 PDTRestart Time: Monday, 21-Jul-2014 22:51:12 PDTParent Server Generation: 0Server uptime: 17 hours 41 minutes 48 secondsTotal accesses: 194844 - Total Traffic: 3.8 GBCPU Usage: u201.55 s34.46 cu0 cs0 - .37% CPU load3.06 requests/sec - 63.2 kB/second - 20.6 kB/request73 requests currently being processed, 4 idle workers
    WWWWWWWWWWWWWWWWWWWWWWWWWKWWWWWWWWWWWWWWWWWCWWWWW_WWWWWWCWWW_WWW _WKW...KWW.W_KWW....W........................................... ................................................................ ................................................................
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    Srv
    PID
    Acc
    M
    CPU
    SS
    Req
    Conn
    Child
    Slot
    Client
    VHost
    Request
    0-0
    15074
    0/46/1370
    W
    7.39
    46158
    0
    0.0
    0.44
    23.89
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=7000 HTTP/1.1
    1-0
    11563
    0/47/468
    W
    2.75
    58867
    0
    0.0
    4.69
    13.64
    192.168.1.10
    www.mysite.edu
    GET /catalog/index.cfm?courselist=list&dept=&searchc=PEHW%20148
    2-0
    12906
    0/65/884
    W
    7.30
    54536
    0
    0.0
    0.80
    14.62
    192.168.1.10
    www.mysite.edu
    GET /athletics/resources/nwaacc-athlete-of-the-week/ HTTP/1.1
    3-0
    13840
    0/41/1085
    W
    4.01
    51162
    0
    0.0
    0.56
    20.57
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=17001 HTTP/1.1
    4-0
    15928
    0/20/1635
    W
    5.40
    43715
    0
    0.0
    0.06
    41.37
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=37000 HTTP/1.1
    5-0
    18774
    0/19/2387
    W
    0.33
    34564
    0
    0.0
    0.24
    52.70
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=19009 HTTP/1.1
    6-0
    4321
    0/36/6612
    W
    3.61
    13200
    0
    0.0
    0.28
    129.74
    192.168.1.10
    www.mysite.edu
    GET /directory/index.cfm?directory=department&deptexp=28011 HTT
    7-0
    13077
    0/0/808
    W
    0.42
    54383
    0
    0.0
    0.00
    24.81
    192.168.1.10
    www.mysite.edu
    GET /directory/index.cfm?directory=department&deptexp=6005 HTTP
    8-0
    16488
    0/118/1673
    W
    12.39
    40692
    0
    0.0
    1.30
    35.44
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=31003 HTTP/1.1
    9-0
    10726
    0/15/110
    W
    0.58
    61963
    0
    0.0
    0.05
    1.83
    192.168.1.10
    www.mysite.edu
    GET /directory/index.cfm?directory=All&index=Q HTTP/1.1
    10-0
    13154
    0/1/688
    W
    0.00
    54165
    0
    0.0
    0.00
    16.83
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=All&firstname=Patrick&lastname=Murphy
    11-0
    12590
    0/25/516
    W
    4.45
    55851
    0
    0.0
    0.76
    11.19
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=4000 HTTP/1.1
    12-0
    12551
    0/13/454
    W
    1.84
    56055
    0
    0.0
    0.38
    10.00
    192.168.1.10
    www.mysite.edu
    GET /directory/index.cfm?directory=department&deptexp=20001 HTT
    13-0
    13333
    0/23/626
    W
    3.86
    53189
    0
    0.0
    0.57
    11.66
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=31005 HTTP/1.1
    14-0
    12410
    0/13/387
    W
    2.70
    56484
    0
    0.0
    0.42
    10.55
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=6003 HTTP/1.1
    15-0
    13162
    0/70/389
    W
    10.81
    53114
    0
    0.0
    0.86
    5.60
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=6005 HTTP/1.1
    16-0
    12309
    0/22/275
    W
    2.23
    56878
    0
    0.0
    0.43
    3.91
    192.168.1.10
    www.mysite.edu
    GET /directory/?directory=department&deptexp=20005 HTTP/1.1
    17-0
    13163
    0/57/341
    W
    11.85
    53120
    0
    0.0
    1.38
    6.49
    192.168.1.10
    www.mysite.edu
    GET /catalog/index.cfm?courselist=list&dept=&searchc=ENGR%26%20
    I have straced a hung process to only find the following :
    strace -p 6472
    Process 6472 attached - interrupt to quit
    read(23,
    Another interesting bit of info, none of these GET requests make it into my access.log file which I find very peculiar as well.
    Here are my CF Specs
    Server Details
    Server Product ColdFusion
    Version 10,0,13,287689
    Tomcat Version 7.0.23.0
    Edition Enterprise 
    Serial Number
    Operating System UNIX 
    OS Version 3.2.0-65-generic 
    Update Level /opt/coldfusion10/cfusion/lib/updates/chf10000013.jar 
    Adobe Driver Version 4.1 (Build 0001) 
    JVM Details
    Java Version 1.6.0_29 
    Java Vendor Sun Microsystems Inc. 
    Here are my Apache2 Specs
    Server version: Apache/2.2.22 (Ubuntu)
    Server built:   Apr 17 2014 21:49:25
    Server's Module Magic Number: 20051115:30
    Server loaded:  APR 1.4.6, APR-Util 1.3.12
    Compiled using: APR 1.4.6, APR-Util 1.3.12
    Architecture:   64-bit
    Server MPM:     Prefork
      threaded:     no
        forked:     yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/etc/apache2"
    -D SUEXEC_BIN="/usr/lib/apache2/suexec"
    -D DEFAULT_PIDLOG="/var/run/apache2.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="mime.types"
    -D SERVER_CONFIG_FILE="apache2.conf"
    I am hoping this is no normal behavior for Coldfusion 10.
    Many thanks in advance.

    We're having the same problem, although with CF11.

  • Very strange index.jsp problem (Apache2 + Jboss/Tomcat)

    I've been working on this for 6 hours until the current time of 4.30 am - any help is very much appreciated.
    I (thought) I had successfully integrated Jboss/Tomcat with apache 2 using mod_jk 1.2.8 - and added an alias for jmx-console. But I just can't make index.jsp serve when loading the default directory. I also tried with a fairly straightforward jsp site I have 'ConnectSite' (just a conference name).
    I have created deployment and alias called connect, results
    http://localhost:8080/ConnectSite [success]
    http://localhost/ConnectSite/index.jsp [success]
    http://localhost/ConnectSite/ [fail] - Apache treats it like any other directory.
    But what's really strange is if i take out mod_jk from apache and leave in DirectoryIndex index.jsp - then apache will serve the .jsp file unprocessed. All the static content is served by apache just fine.
    I am baffled. Should I just try proxy for the moment.
    Many Thanks,
    -Mike D
    Config files -
    Apache section (Have of course added DirectoryIndex index.jsp)
    LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
    <IfModule mod_jk.c>
    JkWorkersFile /usr/local/apache2/workers.properties
    JkLogFile /usr/local/apache2/logs/mod_jk.log
    JkLogLevel error
    JkOptions +ForwardDirectories
    DirectoryIndex index.jsp
    # JkAutoAlias /usr/java/jboss/server/default/deploy
    # send all requests ending in .jsp to worker1
    JkMount /*.jsp foo
    # send all requests ending /servlet to worker1
    JkMount /*/servlet/ foo
    </IfModule>
    (running apachectl configtest returns syntax OK)
    workers.properties ...
    # Tomcat and Java configuration
    workers.tomcat_home=/usr/java/jboss/server/default/deploy/jbossweb-tomcat50.sar
    workers.java_home=/usr/java/jdk
    ps=/
    worker.list=foo
    # Definition for local worker using AJP 1.3
    worker.foo.type=ajp13
    worker.foo.host=localhost
    worker.foo.port=8009
    worker.foo.cachesize=20

    Workaround for anyone interested:
    In apache conf:
    use JkMount /ContextName/ to explicitly send each directory with index.jsp to Tomcat

  • Preinstalled apache, apache2 and tomcat

    Hello,
    I'm setting up a Sun Fire V490 running solaris 10 for use as a web server. I need to have Apache httpd version 2 and tomcat version 4.x to run.
    So I found that the machine comes with apache httpd 2 preinstalled and also apache httpd 1 with fully integrated tomcat engine.
    But as stated I need to have apache httpd 2 with tomcat running!
    Apart from configuring the system to run httpd version 2 instead of version 1 by use of svcadm, I'm wondering how to get a solid solution to also have tomcat running. Ok I could simply install a tomcat version from apache.org, but I would like to ensure that this is the right solution for e.g. future upgrades.
    So if anybody has got some more knowledge but this issue, I would be happy about letting me know!
    Thanks, Raimund

    Hey, I came into the same question while configuring tomact on Sun server.
    So, what did you finally do...........?
    any help will be great....
    Thanks,

Maybe you are looking for

  • Itunes purchased video barely plays on my new laptop, I'm at a loss

    Hey, I'm not sure if this is a problem with itunes and vista compatability or what, but I just bought a new HP notebook and installed itunes. I purchased a tv episode and when I try to play it I'm getting about 1 frame every 30 seconds while the audi

  • Is there a way to create Event Generators in WLST?

    In the PO sample there is code to create JMS Event Generators using Jython. Is there a WLST equivalent? I tried using the JMSEventGeneratorsMBean (from com.wli.management.configuration) but got errors about the number of arguments.

  • Need web browser plug in

    I need the quicktime browers plug in?

  • System requirement tp install Utilities Best practices(utilities-V1.500)

    Hello All, We want to install SAP Best Practices for Utilities (UTILITIES - V1.500) in our landscape. I checked the system requirements proposed by SAP and observed that most of the s/w releases they are reffering to are ECC5 (500) and our system is

  • Translations in ABAP reports

    Hi all !!! Is there any way to export all texts from abap reports in any standard format ?? (tab separeted etc.). I need to prepare translations of my abap reports and I have to prepare document with all text used in it for sworn translator. Standard