Tomcat running under apache

Hi All,
I want to be able to run my tomcat3.3.1a under apache webserver, and i klnow i have to use mod_jk. The problem i am having is that my tomcat is not producing the mod_jk.conf_auto file.
I have even added the apacheconfig directive to server.xml but the file is not being generated.
Any ideas anyone on how i can get this file generated.
Thanks in advance
Sajid

I've tried the instructions from http://www.webmasterbase.com/article.php?pid=52&aid=305, and it's OK.

Similar Messages

  • Returning database query results under Apache Axis

    I'm trying to write a web service that will return the results of a standard database query. Does anyone have any pointers on what sort of data structure I should convert my ResultSet to that would be best suited to run under Apache Axis? Currently I am trying to use a String[][][], which Axis can serialize and encode fine, but seems to have problems decoding. If someone has some client-side source that is able to receive a String[][][], please post it, as I would rather not have to change the web services around if at all possible.

    According to IBM, the best way to do this is by returning an array of a complex type. Using this idea, I changed my services to return an array of DBRow objects, which I wrote for this purpose. DBRow is a simple class that contains a single private String[] with get and set accessors, in accordance with the JavaBeans standard. If you need more details, just respond to this topic.

  • Tomcat 5 under NetBeans 3.6 read files with wrong path

    The problem is quite simple:
    I have XSLT file which I read in my servlet. Under Tomcat 4.1.29 (and earlier till 4.0.1) everything works fine, but Tomcat 5 under NetBeans 3.6 produces an error while he tries to read a file not from a directory
    $CATALINA_HOME/webapps/..
    but from a dir
    $CATALINA_HOME/bin/webapps/...
    anybody knows how to fix it? Why he wants to start reading from "bin" directory
    P.S. Tomcat runs under WIn2000

    Actually, sorry, it's more complicated than that... the rules for <xsl:include> say that by default the transformer will look in the same directory as the XSLT file that's doing this include. But that only works if the transformer knows what directory that is. So if you give the transformer an InputStream containing the XSLT (e.g. by using getResourceAsStream), it has no way of knowing what directory it came from. Use the version that creates a File object for the XSLT, and wrap that in a StreamSource when passing it to the transformer. That works for me.

  • Building Tomcat source under Eclipse

    Hallo, all
    I want to study tomcat code and build Tomcat source under Eclipse IDE (Windows, JDK 142). I have readed the Guide on Tomcat web http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html
    and downloaded the build.xml and try to run ant, ant will download needed package&#65292; i got the same error all the time, seemed that i do not have a CVS client? Who can give me some idea about building tamcat under eclipse, thanx!!!
    checkout:
    [echo] If the checkout fails, run `cvs -d :pserver:[email protected]:/home/cvspublic login` and try again. Th
    password for the anonymous CVS access is `anoncvs`
    [cvs] Caught exception: CreateProcess: cvs -d:pserver:[email protected]:/home/cvspublic -q -z3 checkout -P j
    karta-tomcat-5 error=2
    [cvs] Caught exception: CreateProcess: cvs -d:pserver:[email protected]:/home/cvspublic -q -z3 checkout -P j
    karta-tomcat-catalina error=2
    [cvs] Caught exception: CreateProcess: cvs -d:pserver:[email protected]:/home/cvspublic -q -z3 checkout -P j
    karta-tomcat-jasper error=2
    [cvs] Caught exception: CreateProcess: cvs -d:pserver:[email protected]:/home/cvspublic -q -z3 checkout -P j
    karta-tomcat-connectors error=2
    [cvs] Caught exception: CreateProcess: cvs -d:pserver:[email protected]:/home/cvspublic -q -z3 checkout -P j
    karta-servletapi-5 error=2

    Go: Right Click on My Computer (on your desktop) -> Properties -> Advanced -> Environment Variables
    You should have JAVA_HOME set to something like C:\j2sdk1.4.1_05 and CATALINA_HOME set to something like C:\jakarta-tomcat-4.1.27. You don't need to set a classpath.

  • Configure BO services to run under a user that has the EN_US locale

    Hi all,
    My question is following a previous thread on a known issue where a work-around has been proposed by Efstratios Karaivazoglou (Thanks for that):
    BusinessObjects Integration Kits
    I thought a new thread would be more appropriate since this is basically a whole new question.
    The proposed work-around is the following:
    "please configure the BO services on your windows server to run under a user (belonging to the local administrators group) that has the EN_US locale set in its default profile. This is a known problem of WebI and the SAP integration KIT running on an international (e.g german) version of windows."
    Regarding that work-around two questions came up:
    (1) "BO services" mean basically the BOE MySQL database service and the Apache Tomcat service, right?
    (2) A user that has the "EN_US locale set in its default profile": Where in the user profile settings would you set the locale to EN_US? I just had a look at the user properties in "Computer Management" on the windows server and haven`t seen this property.
    Unfortunately we don`t have the FixPack 1.3 installed yet (which is supposed to solve the problem).
    Many thanks in advance for your help.
    Best regards,
    Kai

    Hi,
    BO services means the SIA (Server Intelligence Agent) and the Tomcat. You can do this over the Central Configuration Manager utility.
    After logging on the Windows Server with the credentials of the new user you can set the regional settings under Control Panel->Regional and Language Options 
    Regards,
    Stratos

  • JSP's running under Resin server engine???

    I have a JSP application that I am trying to move from running under Tomcat 4.0 to Resin web server engine.
    When trying to run the application, I get this error:
    java.util.MissingResourceException: Can't find bundle for base name AppProperties, locale
    I think the error is happening because I have the AppProperties file in the wrong place under the Resin directory. Could someone please let me know how to properly use a Resource Bundle Properties file using Resin for my JSP's to run???
    Please help...
    Thank you...

    Never mind....I got it....

  • Re: execution problem with oracle jsp under apache

    i followed the instruction to install oracle jsp running on apache 1.3.9 and apacheJServ/1.1b3 under win nt 4.0 with sp5. i created a servlet zone to hold the jsp file but for some reason it will not look the the dir specified in the jserv.conf. it look at the dir under apache document root dir.. therefore, i created a dir under the apache root dir and then it was able to compile the hellouser.jsp correctly. when i run lotto.jsp, the image files would not display. why?

    Apache Servlet zones allow you separate servlet (sets) into distinct classloaders. The OJSP servlet needs to exist in a servlet zone. However the content the OJSP servlet operates on (the .jsp file) lives in the document root directory just like your other web content. OJSP does support a configuration/init parameter whereby you can explicitly specify a physical directory other than what is mapped via the Apache settings. Please consult the documentation if you want to do this.
    As for why the lottery images aren't being displayed, more information is needed. The generated page should create local references to the images files. Are the images in where they are expected to be? Can you be more explicit about the URI you send and the physical structure of the Lottery sample in the file system?

  • Installing Tomcat connector for Apache

    I realize this is more of a Linux configuration issue but it does deal with Tomcat so I am hoping someone can help.
    I am having some problems installing the tomcat connector for Apache web server on Linux (Red Hat enterprise).
    I need to have both Apache (by which I mean Apache Web Server) and Tomcat running on this system and it is my understanding that one can use the tomcat connector as an Apache module to connect from Apache to Tomcat for jsp requests.
    Okay so here is what has been done.
    Tomcat is installed and running fine (on port 8080)
    Apache is running fine.
    I followed this guide http://tomcat.apache.org/connectors-doc/howto/quick.html
    And I created all the config files etc but when it comes to finding the mysterious mod_jk.so file I am stuck. I went to the downloads area and end up in the following directory/page http://apache.mirrors.northco.net/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.14/
    I don't see a mod_jk.so file in there. (?!?) So... I poked around some more but I feel I am looking at the right directory so I downloaded the worker.so file and put that in my apache modules directory. I renamed it as mod_sk.so (now please bear in mind that I am not too dumb and I realize that renaming a file isn''t doing anything magical but due to lack of any documentation describing why there are two different files I took a guess and thought that maybe the different files are different threading setups or something (considering the other one is named prefork to me this seemed to be a logical conclusion based on the information given))
    And of course it doesn't work. By which I mean the following happens if I run configtest for apache (if I try to start Apache same disaster)
    # /sbin/service httpd configtest
    Syntax error on line 3 of /etc/httpd/conf.d/tomcat_connector.conf:
    Cannot load /etc/httpd/modules/mod_jk.so into
    server: /etc/httpd/modules/mod_jk.so: cannot open
    shared object file: No such file or directoryOkay... Except a file with that name (see above) IS in that directory. And it has the same permissions as the other modules which are loading.
    (After moving to the modules directory)
    # dir
    libphp4.so mod_cache.so mod_imap.so mod_proxy_http.so
    mod_access.so mod_cern_meta.so mod_include.so mod_proxy.so
    mod_actions.so mod_cgi.so mod_info.so mod_python.so
    mod_alias.so mod_dav_fs.so mod_jk.so mod_rewrite.so
    [more stuff that loads here but edited for length]So I think something else has gone wrong here... namely that I have the wrong file or something.
    Anyway I am a bit stuck at this point. Could someone point me in the right direction please because I am just going in circles at this point with the documentation not matching up to what files are available or explaining what those files in fact actually are.

    I solved this issue by compiling the file from source. I got hold of another admin friend who told me that the version I had was for 64 bit. Now how I was supposed to discover this or where in fact a compiled version of this file is on the apache site I know not.
    But it's working now.

  • Anyone manage to get ColdFusion to work under Apache on OS X 10.10 Yosemite?

    Hi all I'm having great difficulty getting ColdFusion10 to work under Apache with OS X 10.10 Yosemite.
    Here is a description of what I've faced and a little of what I've done to solve my problem
    Problem 1
    Apache httpd.conf file gets messed up
    Solution: copy original httpd.conf file from /etc/apache2/original/ to /etc/apache2/
    Problem 2
    No Java Virtual Machine is installed!
    Solution: install Java (version 6 or 7 is better) you may only be able to install version 8
    Problem 3
    ColdFusion doesn't know where your Java installation is so find and update your ColdFusion configuration files
    /Applications/ColdFusion10/cfusion/bin/jvm.config
    /Applications/ColdFusion10/cfusion/bin/coldfusion
    /Applications/ColdFusion10/cfusion/runtime/bin/wsconfig_jvm.config
    change the source to whatever your current Java is and where it's located
    for example if you have version 7 installed:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
    if you have version 8 installed:
    /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
    Problem 4
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: YOUR PATH HERE!
    Solution:Still working on this one!

    I think you should try Pacifist http://www.charlessoft.com/
    It's a .pkg installer for OS X, I used it several times to install software that Apple's Installer can't install. After installing Xsan 1.0 from your CD, just launch Apple's software update to upgrade to version 1.3. I think it should work (I didn't try it with Xsan, but this procedure works with other software).
    Khafaga

  • Vhost configuration for Adobe Media Server running under linux.

    Please help me with Vhost configuration for Adobe Media Server running under linux.
    I was running a media sharing website for which I wanted to use Adobe Media Server.
    To use, AMS, I disabled the already installed Apache server and installed AMS along with the built in Apache server. I could successfully install AMS and could login to AMS Admin Console through my IP number.
    My existing website, www.mydomain.com is having its contents located at:
    /home/mydomain/public_html
    (Directory created under the old version of Apache not bundled with AMS)
    Users will be uploading their videos, which will get transcoded and will be delivered to the website visitors in the existing scenario.
    To use this website with AMS, this is what I did:
    I created a folder for my domain, www.mydomain.com as below
    /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    Copied Application.xml and Vhost.xml from /opt/adobe/ams/conf/_defaultRoot_/   and pasted them in /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    In the Application.xml file there are 2 entries:
    <Alias name="mydomain.com"></Alias>
    <AppsDir>${/home/mydomain/public_html}</AppsDir>
    Please help me with further steps to be completed:
    Do I need to create a separate VirtualHost entry in the Apache installed with AMS?
    If yes, can I specify already existing document root for my website (/home/mydomain/public_html) or do I need to create a separate folder under webroot/Apache ?
    If yes to point 2 above, then do I need to copy all the existing contents from /home/mydomain/public_html to the newly created folder ?
    I hope, I can serve all my static contents like html pages and php and media like video/audio. In that case do I need create alias to my Media/Alias folder or AMS will automatically start streaming when a video/audio is requested ?
    What other steps do i need to complete?
    Any help in this regard would be highly appreciated.
    Thanks and Regards

    Dear sir or madam,
    Here is Letswin Technology, which specializes in global servers, web hosting, VPS, VPNj. If anything I can do for you, pls contact us!
    Have a nice day!

  • Flex 2 + CF MX 7.0.2 under Apache

    I have been trying for almost 4 months to get Flex and CF
    7.0.2 to communicate with each other under Apache 2.2, but have
    gotten basically no-where. For example, I can't even get Ray
    Camden's Flex implementation to work, nor any of the CF wizard
    tutorials...or anything for that matter.
    Apache works. CF works. Flex works. CF works WITH Apache (so
    it says...after doing all the technotes and jdbc:mysql stuff) but
    Flex and CF won't communicate properly as regards reading any kind
    of data from a database.
    Under the CF wizard in Flex, for example, it tells me the
    only valid server root is WEB-INF/flex, on the install drive of
    CF...but that's not even on the same drive as Apache htdocs.
    Has anyone run across a tutorial on how to make this fly? I
    have basically used the ACME Guide, and dumped in Flex, as I've run
    into no instructions anywhere to cover adding Flex properly under a
    CF/Apache environment. I have tried every configuration I can think
    of, and completely formatted/reinstalled everything at least a
    dozen times since November.
    Any suggestions? Should I just dump Apache completely? I
    thought it was wrong to run CF/Flex on the web without it...
    Shawn

    You need to do the 7.01 update and then the 7.02 update.
    http://www.adobe.com/support/coldfusion/downloads_updates.html#mx7
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "gill1723" <[email protected]> wrote in
    message
    news:ekn3k5$8fa$[email protected]..
    >I installed coldfusion mx 7 and tried to update it and
    this is what I am
    > getting. We are running ms server 2003 with IIS, any
    suggestions
    >
    > Unsupported Version This is not a valid version of
    ColdFusion MX 7.0.1
    > (Server Configuration) or it is unsupported by the
    updater
    >

  • SSO to partner application running under IIS

    Hi,
    We have a complete set-up for 9iAS Release2 where some applications are running. In parallell we have an application running under IIS, and would now like to enable the IIS application as a partner application to 9iAS letting the 9iAS SSO server handle the authentication.
    In the documentation of Oracle Proxy Plug-in I read that this proxy plug-in can be used to proxy requests from IIS to Oracle http server (OHS) and also in this way enable SSO.
    My question is if this can be done only for applications running under 9iAS but having IIS as web server, or if it is also possible like in our case to enable SSO via the proxy plug-in to applications runnind under IIS?
    If this is not supported is the only available solution to use the SSO SDK in my IIS application?
    Thanks and regards,
    Rikard

    Here's a DIY answer.
    See Metalink Note 269820.1 which shows you how to use Perl to overwrite the host name in the HTTP header and remove the port number.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product API:
    VB.NET web service -> native library (p/invoke) -> native API ....
    Web service requests are successfully completed and the system runs without problem for hours. A trace of the native API shows it is being called by multiple processes and multiple threads within those processes.
    The main native API dll contains a static global variable used to detect whether it is the first time it has been called and run initialization logic if it is. This dll is itself linked to a second dll that contains a global variable used to detect if it is
    the first time it has been called.
    After some hours the trace shows that the native API is invoked by an existing process but that the initialization logic is being exercised again, even though the global variable was set to indicate not first time and is never reset.  One theory was that
    the first process has ended and a new process has started almost instantaneously using the same process ID. However this is not the case as existing thread IDs from the same process are seen to write to the trace again after the first time logic has executed
    for the second time, indicating the process has not restarted. The problem occurs regularly.
    It is as though the process's global data has been initialized again and malloc'ed memory freed while the processing is still running. Is there any way this is possible when running under IIS?
    There is an internal thread which waits on a blocking read of a named pipe (via ReadFile), and when the problem occurs, the ReadFile call ends with ERROR_NO_ACCESS, which appears to indicate the malloc'ed buffer is no longer valid, again implying something
    has happened to the memory allocated to the process.

    Suggestting you asking it on:
    http://forums.iis.net/

  • RE: How to have multiple application running under one server

              I have one server
              I have many application
              Question: Is it possible for me to have a weblogic properties file under each
              of this application.
              

    If your question is whether you can run multiple instances of WebLogic
              (or multiple applications) on one server, the answer is yes. The only
              problem is, you must have a unique port for each of the servers to run
              on. I.e., they can not all run under port 80 which has obvious
              internet/network implications.
              This also means you have multiple weblogic.properties files etc. for
              each instance.
              We do this with WL5.1 on a Linux 2.4 kernel in developement to allow
              multiple developers run their own instance on one box.
              Dano
              Mettu Kumar <[email protected]> wrote in message news:<[email protected]>...
              > No if you are running single instance of wls.
              >
              > Kumar.
              >
              > Sonny wrote:
              >
              > > I have one server
              > > I have many application
              > > Question: Is it possible for me to have a weblogic properties file under each
              > > of this application.
              

Maybe you are looking for