Configuring apache & tomcat on seperate machines

I need help to setup tomcat 3.2.1. and apache 1.3.20 on separate machines (Windows 95 & Windows NT)!! I am able to run them fine on one machine but am baffled with putting them on two separate machines.
I would be most gratefull if anyone can provide me with the steps of configuration and show me examples with regards to the Apache httpd.conf & Tomcat mod_jk.conf files.
Thanks

Not sure how to solve your two machine setup, but as for the mapped network drive, mapped drives are profile specific. When you log into the machine all settings, mappings, desktop, etc. are restores. When you log off, all those things are gone.
Apache on the other hand does not have it's own "profile", and is running as a service so it doesn't "know" of any mapped drives from it's point of view. Local drives are fine, the OS can see those at all levels.
Correct me if I'm wrong anyone, but you could have Apache and Tomcat running on seperate machines as their own web service. And when ever you need to make a JSP/servlet call, just reference the Tomcat machine.
Tomcat is currenly setup for port 8080, but I'm sure you can set it up to work off port 80 and have it "look" like a normal web server. The Apache server would just handle your static HTML pages.

Similar Messages

  • How to run different versions of Apache Tomcat on one machine?

    Hi, I am developing a web application. My application runs on Apache Tomcat 5.5.12 and i am using jdk 1.5_03. My application detects files that are automatically scanned to a specific directory and queues them for capture in a database.
    The scanner software (HP Toolbox) is also a web application (Unfortunately), it installs itself with Apache Tomcat 4.03. It is "wired" in a specialised way (not the way you would usually deploy web apps). So the Web server is customised by HP (Hewlett-Packard).
    The scanner needs this software running inorder to automatically scan to a specified folder. You can only specify local directories to scan to from the Toolbox application
    There seems to be some resource conflict when I run my version of Tomcat when the Toolbox application is running (I get an exception
    ..IllegalMonitorState...current thread not owner). Visa vera is alos true..if i start my application first the Toolbox application won't run.
    I tried to install the Toolbox app on another machine and monitor a directory remotely...this doesn't work because you can't read or write to remote files from a servlet or JSP.
    I tried loading my application in the web apps directory of Apache 4.03 but it did not detect my application. I don't know how to configure the Tomcat customised by HP.
    How can i go about this problem? Is there a way of running two versions of Apache Tomcat on one machine?
    Thanks
    Parthiv

    This is the exception i get when i try to run my version of Apache Tomcat when the Toolbox is running: My application is set to port 80.
    Exception in thread "http-80-1" java.lang.IllegalMonitorStateException: current thread not owner
         at java.lang.Object.notifyAll(Native Method)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1216)
         at java.lang.Thread.run(Unknown Source)

  • Problem in configuring Apache Tomcat Server

    Hi, I am facing problem in configuring Apache Tomcat server. I have downloaded its version 4.1.18 from the Internet. After unzipping and installing it, I have enabled the Root Context, enabled the Invoker Servlet, haven't changed the port to 80 from default 8080, have turned on the Servlet Reloading, have set the Java_Home variable in autoexec.bat, and have changed the DOS memory setting to 4096.
    Also, the concerned lines in my autoexec.bat file look like this:
    path c:\windows;c:\windows\command;c:\jdk1.2;c:\jsdk2.0;
    c:\JavaWebServer2.0;c:\jakarta-tomcat-4.1.18
    set java_home=c:\jdk1.2
    set tomcat_home-c:\jakarta-tomcat-4.1.18
    set classpath=.;c:\ServDevel;.;c:\jakarta-tomcat-4.1.18\common\lib\servlet.jar;.;c:\jsdk2.0\lib\servlet.jar;.;
    Still, after having done all this, when I start the server using startup.bat (which happens without any problems) and type in http://localhost:8080/ on the browser to test the server, nothing happens. It doesn't show me the Tomcat Welcome screen. I get an error page saying "This page is not available". Why? Where am I going wrong?
    Sushant

    1) Try http://127.0.0.1:8080
    2) set tomcat_home-c:\jakarta-tomcat-4.1.18
    Is the minus-sign after tomcat_home also in the autoexec.bat?
    Replace it with an equals-sign
    3) When you run startup.bat, is a new command window opened and are the following three lines displayed at the end? It should stay open, otherwise something is wrong (unless running as a service).
    INFO: Initializing Coyote HTTP/1.1 on port 8080
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.18

  • OAS and Apache Tomcat on same machine

    Hi guys,
    I have a server for "Business objects XI/MS SQL server" which uses Apache TomCat 5.
    I want to install RDBMS 10g and Oracle Application server on this machine. Is there any conflict possible?
    What measures I may take to keep both applications running on same machine.?
    thnks in advance

    Besides the obvious things like memory and CPU (load), just make sure that you don't get any port conflicts and you will be ok. (at least, you will be on unix. I don't know much about Windows, so can't help you with that one).

  • How to install apache tomcat in nebeans

    hello everyone,
    i am not able to configure apache tomcat in my netbeans.
    i am little bit confuse between apache tomcat and glassfish servers. can any one tell where we glassfish and where we use apache tomcat?

    Tomcat is a 'servlet engine'; put as simple as I can make it, it is a Java webserver. You can create web applications based on servlets & JSPs and run them on Tomcat.
    Glassfish is an Java Enterprise (JEE) server and provides an implementation for the full Java Enterprise Edition specification. This also includes servlets & JSPs, but on top of that you get a whole batch of additional services.
    I would start with Tomcat if I were you. You don't need to configure anything, if you download the proper Netbeans bundle it comes with Tomcat 7 already setup. If that is not the case, you either picked the wrong bundle or you made wrong decisions during installation.
    edit:
    Question for you. Do you know anything about Java at all (since you are posting this in new to java)? If not then you are waaaaaaaay out of your league trying to get into web programming, it is complicated and confusing enough if you know Java, it is near impossible to understand if you don't even know the basics of the basics yet.
    Edited by: gimbal2 on Aug 5, 2011 3:57 AM

  • Apache Tomcat and Authentication Control

    Hi,
    IIS has �Basic Authentication� to check for username and password.
    Does anyone knows a way to set up and configures Apache Tomcat 4.1.XX to authenticate the user? I have the default web site: http://localhost:8080/test/servlet/com.test.HomeServlet and I want authenticate the user before they get to this page.
    Note: http://localhost:8080/admin/login.jsp has the login page for the admin. Can I reuse this login page and using the same users database for my default web site?
    Please help, Thanks!
    -John

    Hi,
    After starting your server, hit the following URL in a browser window.
    http://localhost:8080/tomcat-docs/realm-howto.html
    This documentation will give you some idea how to authenticate users in Tomcat.
    Thanks and regards,
    Pazhanikanthan. P

  • How can I run two instances of apache tomcat in the same machine.

    Hi
    Can I run 2 instances of apache tomcat in the same machine.If yes then how.?

    Yes, you can. Just run 2 instances. Make sure that they run on different ports.

  • Apache Tomcat and Servlets configuration...

    Hi there fellow Javites,
    does anybody know how to configure the apache tomcat server xml file to enable you to use the "old servlet url technique"? I hear that its been disabled by default in newer versions Tomcat.
    You know where you would previously type in: http://localhost:8080/servlet/folder1.servlets.TheServlet
    ,but now you have to tell your web.xml file where your servlet is so you now have to type in:
    http://localhost:8080/TheServlet
    That is, unless you enable the server config file to allow you to do both.
    I hate to ask such questions but I really hate the Apache Tomcat documentation.
    Thanks.

    Hi there,
    well I was kinda hoping they'd be a shortcut to having to map the servlet in the web.xml file. In the older versions of the Apache tomcat you used to just be able to type in the url and the Servlet would be found.
    Does anybody know how to enable the later versions of Apache Tomcat via the config file to use the old style of Servlet mapping?
    I guess a more important question I should be asking also is, is this older style of mapping servlets now considered bad practice and is why it is no longer enabled by default in more recent Apache Tomcat versions???
    Thank you, this community rocks! Keep up the Javite work guys, they'll never take us alive. NO LOL. :D

  • Need Document/steps for configuring Samba,apache,tomcat

    Hi all,
    I need steps/document for configuring samba,tomcat,apache in solaris 10 x86.please guide.please send to [email protected]

    docs.sun.com should have a lot od the Solaris specific documentation- I don't know how much it would have have specifically on Samba, Apache and Tomcat etc.
    Documentation on configuring Samba and Apache (and probably Tomcat) are available on the respective websites. You may want to Read The existing technical Manuals then post questions on specific issues that are not covered by the exisitng documentaion.

  • Apache Tomcat 6 configuration

    I have apache tomcat 6 web server.
    I am not clear with where to put the the java classes(servlets)
    so that they will be accessible from the localhost?
    Please I need help on that.

    the class files should come under the \webapps dir in Tomcat folder, inside that folder create a folder with a name relevant to ur file, create another folder named, \WEB-INF inside that and create another folder named classes inside the WEB-INF folder and place ur class files inside that.........
    Like this:- (Assuming ur running windows xp or vista)
    C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myservlet\WEB-INF\classes

  • Netware 6.0 SP5 Apache/Tomcat

    I am setting up a New install Netware 6.0 server and have netware all patched up with sp5, & BM 3.7 patched up. This server will not be located in my office so I wanted to try to get the web app side up to date. I want to use Imanager to remotely check the health etc... I know this is an older version of Netware but this is a temporary replacement server and we should only be using this server for a year or 18 months max and we will no longer have a need for it. I say all that to ask how to upgrade Apache & Tomcat so I manager will work. I have EDIR 8.7.3 and the Novell JVM is at 1.4.2.04. The additional requirements for Imanager 2.01 are Tomcat 3.3, Tomcat 4 and Apache 1.3. Currently the server has Tomcat 3.3 installed and Apache 1.03. I can find a TID (10071533) on upgrading Tomcat 3.3 to Tomcat 4 on Netware 6.0 but cannot find the install file "Tomcat4.04b2", or any other variant. So do I need to get a newer version or what? I also need to update the Apache and cannot seem to find the correct files for that either. Any help would be greatly appreciated.

    On 05/03/2009 14:56, jpeteet wrote:
    > So there is nothing "special" I need to do for it to work on Novell
    > other than download it and do its setup? Thank you.
    Certainly with Apache it's a case of extracting the NLMs from the
    archive and then copying over the old ones.
    Personally I
    * download the update
    * extract to a directory on my local machine
    * rename the configuration files in the local copy to prevent actual
    configuration files on server being overwritten
    * make a copy of sys:\apache or sys:\apache2 (depending on which I'm
    updating)
    * copy the local copy over to the server, overwriting existing files
    (remember we've just renamed the config files)
    * restart Apache
    Hope this helps.
    Simon
    Do you work with Novell technologies within an academic environment?
    Your campus may benefit from joining the Novell Technology Transfer
    Partners (TTP) organisation. See www.novell.com/ttp for more info.

  • Apache+Tomcat access to static apache data from Tomcat

    Hi,
    Apache is in path /opt/apache
    and tomcat is on /opt/apache/tomcat
    I have to access to static data (/opt/apache/data) that is handled by my apache http server from my tomcat web application. Is there a way to do this in a clean way without doing things like this :
    getServletCoontext().getRealPath(xxx) and doing some ../data manipulations
    Thanks

    I'm not completely sure I fully understand your problem.
    I do not recommend opening sockets to your own WLS instance. That is a
    recipe for deadlock.
    Can you just include the static file in your response?
    -- Rob
    Yol. wrote:
    We have a WebApplication which is running on a WebLogic Server 6.1.
    The clients access to the application via an Apache hosted in another machine.
    The Apache server redirects the requests to the server except the static files
    which are served by the Apache Server.
    Nevertheless, we have a few static resources that are not requested by the external
    clients but are requested by the application in the WLS. The problem is that to
    make this, it access the resource via the WLS, that is, via an url. That makes
    the WLS open at least one socket. This cause that after a few time, there are
    too many sockets in the machine opened in TIME-WAIT state.
    For some reasons it is not possible to change the configuration of the sockets
    in the server hosting the WLS.
    We would like to access to this resources that are in the war of the WebApllication
    without opening a socket.
    Is it possible? Any ideas or suggestions?
    Many many thanks in advance,
    Yol.

  • Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

    Can someone give my a hand with this problem because the unix administrator of my website don't know how to fixes.
    When I try to run a servlet name SimpleServer or other servlet from my website I received the following error:
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/SimpleServlet
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    java.lang.ClassFormatError: SimpleServlet (Illegal constant pool type)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1643)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:937)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1372)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:484)
    Thanks in advance,
    Jose

    Hi,
    ClassFormatError is Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.
    So check whether you have properly configured servlet and whether class file is VALID and is in right place or not.
    Sandesh

  • Problem in configuring Apache Web Server v2.2

    Hi,
    I am facing problem in configuring apache web server with tomcat 7.0. I want to configure the web server in such a way that I can access the application only using the localhost(without appending the port to it). Ex I want to access the application through "http://localhost" instead of "http://localhost:8080".
    I tried to configure it using the concept of vertical clustering and "load balancer", but failed to do that.
    Can anyone please tell me steps to configure apache web server with tomcat or provide any useful link / urls to do that one.
    Thanks in advance

    The only way you can achieve it is by running the web server to listen on port 80
    Please change the port in your httpd.conf file for the webserver and restart it.
    If any other processes are running/using on port 80 on that machine, then please stop them, otherwise you will not be able to achieve your requirement.
    Arun

  • Apache Tomcat service failing every minute

    Hi there,
    We have been running Business Objects Edge with WebIntelligence for several months now without issue. The server runs Windows 2003 and SQL2000, with Tomcat 5.0.27. There are also 2 other seperate Tomcat 4.0 instances running for other applications. The server configuration has not changed since Edge was implemented, no other software has been installed.
    The server is scheduled to reboot every weekend, which doesn't normally cause an issue. However, after last weekend, I am unable to access WebIntelligence. The windows system log shows this every minute:
    "The Apache Tomcat 5.0.27 service terminated unexpectedly.  It has done this 514 time(s).  The following corrective action will be taken in 1000 milliseconds: Restart the service."
    I can't see anything at all in the windows application log, and I don't think there's anything relevant in the Tomcat logs. Task manager shows the Tomcat5.exe service consuming a large amount of CPU for a minute or so, then being assigned a new PID as the service fails.
    I have tried restarting the server again, but with no luck. Please help as it's a critical business system that we've been without for a day already!

    When you say that you can't access Webi, do you mean Infoview? or WebI reports?    Can you log into infoview?  Can you view a report if it doesn't have refresh on open?  I'm curious if it fails at a particular point, or if tomcat just didn't start correctly and therefore it keeps trying.
    These are just stabs in the dark, but I wonder if this has to do with any of the following:
    1. disk space usage.  (is tracing turned on?  logs will accumulate over time, so it eats up all of your HD and doesn't leave room for swap and cache)
    2. a large scheduled report that never ran to completion?  (trace the webi job server, or turn it off.  to see if you can at least access your webi reports and refresh ad-hoc.)
    3. orphaned java process?  Tomcat restarting is a strange symptom.  May be a stupid question, but have you already tried bouncing your server?  Orphaned processes can clog up the port, and cause it to never start up properly. 
    4. Is another BOBJ deployment conflicting or clustering with yours?  Your production server may not have had any changes, but if you duplicated your deployment onto another system in the same network segment, it may try to cluster.
    Maybe try turning off all BusinessObjects services such as CMS, WebiReportServer, etc just to see if Tomcat will stay running.  Can you access the tomcat homepage and the jsp examples?

Maybe you are looking for

  • Get the data with more than one of the desired value

    Hi, I need to pull the records with more than one value of 'Other' on the delivery days fields. The delivery fields are mon,tue,wed,thu,fri and sat that tells the where the item will be delivered. The value can be Home, Work, or Other. Here is the Sa

  • My iPod touch 4th generation won't turn on and when I plug it in to charge, it gets really hot. Is there a fix for this?

    More information: The iPod ran out of battery late thursday night and I plugged it in to charge. The charging symbol appeared but within 20 minutes, the ipod had gotten very hot and had gained no charge. It hasn't been dropped and it hasn't gotten we

  • No service for system SAPDRT, client 011 in Integration directory

    Hi Experts, Currently i am working on IDOC to file scenario. IDOC is sent out of ecc 6.0 succefully with STATUS CODE 03. But its not reaching the Xi sytem. on the ERP side i am geeting an error in the transaction SM58 Saying that "No service for syst

  • Static content in a quiz: How?

    Hi, I'm creating a quiz using the learning components. It works fine when every page in the quiz contains a question. However, I can't find any info about pages that do *not" contain a question, i.e. the learning material that will be used as the bas

  • Preventing line breaks within field

    Hi, Some of my fields contain phrases that should stay together rather than break over a line. For example, one of my fields is a date field (e.g. 27 October 2009) and I'd liike the whole date field to stay together on one line. Is there any way to c