Port blocked when Tomcat is made a windows service

Hi All
I have a web application which listens on some port for server response .That port gets blocked when Tomcat is made a windows service.But if i run tomcat normally this problem does not occure.So i am not getting what is exact problem?

Huh?
As a guess you mean that you when you run Tomcat the server port doesn't work.
The difference is because in one case you are running as one user and in the other you are running as a different user. On windows you are probably running 'without' a user because you didn't explicitly set one up.
The solution is to use an explicit user. That is also the way you should test. Log in as that user and run tomcat from the command line as that user.

Similar Messages

  • Runtime.getRuntime.exec() not working when Tomcat is made a windows Sevice

    Hi,
    I am working on a web application which launches a exe file on subitting the form. I am using Apache Tomcat 4.0.6 to run the web application. Initially Tomcat was not made a windows service on my machine and when I launch an exe it is launching without any problems. I used the following command to launch the exe file:
    <code>
    Process p = Runtime.getRuntime().exec("C:\\Program Files\\Mercury Interactive\\WinRunner\\arch\\wrun.exe" + strWROptions);
    </code>
    The above command launches WinRunner on the local machine.
    without using tomcat if I just compile and run a test program with this command, the exe is launching perfectly. But, Once I made tomcat a windows service on my machine the exe is not launching.
    Also, a process is being created in the windows task bar named wrun.exe once I submit the form but WinRunner is not lauching on the desktop.
    Can any one please help and suggest me.
    Thanks,
    Ramesh

    The version of Java I am using is 1.4.2. Even without
    using the string array as you mentioned, the exe
    (wrun.exe) is launched on my desktop if I don't run
    Tomcat as a windows service. But the problem arises on
    making it a service :-(
    That is strange because going by the documentation what you have been using should never work. I can't test it though, I'm not on MSWindows at the moment..
    Now, when I use this string array convention, I am
    getting an error saying "The tool could not launch..
    some error occured".
    That's not a Java error message, it must come from WinRunner. This means that you have succesfully started WinRunner (great!) but something else is wrong; maybe the parameters you pass to it are incorrect.
    How would you run it on the command line? Like this?wrun -t "D:\L5_QE\L5A\Initial" -create_text_report on -runThat line executes the wrun program and passes it five parameters, not three. The first parameter is "-t", the second "D:\L5_QE\L5A\Initial", the third "-create_text_report", the fourth "on", and the fifth "-run". The array of strings that corresponds to that line isString[] command = {"C:\\Program Files\\Mercury Interactive\\WinRunner\\arch\\wrun.exe",
                    "-t", "D:\\L5_QE\\L5A\\Initial",
                    "-create_text_report", "on",
                    "-run"};

  • New install cant 'see' infoview etc when Tomcat starts as a windows service

    Post Author: sdimb
    CA Forum: Deployment
    Help, we are a new site trying to install BOXI R2 SP2 on a windows server.  We have installed as per all instructions including Tomcat but when we try to 'use' Infoview we get a blank page.  If we stop Tomcat and restart it via the command prompt we can use Infoview but we need to have this working as a windows service.  We have tried re-installing several times and always get the same result.  does anyone have any ideas as to what we have done wrong please.

    Post Author: mewdied
    CA Forum: Deployment
    Running tomcat as a service may be running under a different user context than when running it via the command prompt.  This may be causing your issue.

  • Policy Agent on BEA WebLogic when server instance runs as windows service

    hi.
    my environment is: win2k3, bea weblogic server 8.1sp4, access manager 7.1 and policy agent 2.2. installation process of policy agent asks for server startup script (startWebLogic.cmd) which i found under my server instance catalogue. the only issue is that my server instance is installed as a windows service and should not be started in a command window.
    am i safe with just specifying the path to the startup script or is there another way of dealing with this issue?
    might be a dumb question, but it would be nice to be sure that i'm doing the right thing before i go ahead and install policy agent. :)
    thanks,
    tb

    Hi,
    I have not set it up as a window service but can try to help. for one thing, this step is not permanent and if it does not work then you can undo this step by re-editting the script to remove the line you added. This step has you change the bea startup script for that domain to call the agent script setAgentEnv_AdminServer(it ws copied into bea domain directory during installation of agent) which just sets some agent resources in the classpath. If you start bea and those things are not in the classpath etc then agent wont work. So no permanent damage, you can change it if it doesnt work.
    I suggest you try it out and start the bea server as a service and see if it works - if not try again.
    I am not sure what the windows service would use to start the app server, but somehow it must specify some environment properties and things in its classpath, so if this script doesnt work then you can just do the things in the setAgentEnv_AdminServer script like setting those things in classpath.
    Please let us know if it works and if any extra steps required? Would be helpful to others to know how to configure as a windows service.
    hth,
    Sean

  • Dll not found when Tomcat run as an NT service

    I am running Tomcat 4.1.27 j2sdk 1.4.2 on Windows 2000 SP4.
    I am trying to connect to a datacom database using jdbc.
    When I run Tomcat in a separate DOS window - the database connection works fine.
    When I run Tomcat as an NT service I get the following error:
    org.apache.jasper.JasperException: no cadcdb32 in java.library.path
    The service is logged in as an administrator.
    cadcdb32.dll is located in C:\Program Files\CA\AdvantageDatacomServer5.0\
    This directory is in the PATH environmental variable.
    The batch file that starts the DOS window (which works) is:
    C:\j2sdk1.4.2\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start
    How can I have Tomcat find the dll when run as a service ?
    Thank you

    Create new user or use an existing user and Log On to this user in the Service {Properties->Log On->This account}.

  • Running OSB and SOA Suite as Windows Services?  Node Manager

    Hi,
    Based on our current hardware configuration, we need to deploy our SOA Managed Server and Admin Server on the same machine as our OSB. Currently for development we just start the servers using the start scripts and keep a window open for them (3 of them: 1 - admin, 1 - soa_server1, and 1 - OSB.) We want to be able to run these as services and allow the admins to log out of the box. It seems like the Node Manager would allow us to do that but can we configure our Windows server to have a Node Manager running for the OSB and another for the SOA stuff on the same box? Do we even need to do that? Can we have a single Node Manager manage all three on port 5556?
    I hope this makes sense. Thanks in advance for any quick responses.
    Jeremy

    Definitely you can (should) have a single node manager. You may refer below links -
    http://blogs.oracle.com/jamesbayer/2010/01/weblogic_nodemanager_quick_sta.html
    WLS 10.3.2 Adminserver startup failed when trying to run as Windows Service
    Regards,
    Anuj

  • BI windows services causing BI publisher report not to work

    All,
    We have BI windows services installed. When we start BI thru windows services all the analysis and dashboard works but I am not able to open BI publisher reports.
    The page stays on Processing.... only.
    As soon as we start BI services thru command prompt all the publisher reports works.
    Any thoughts.
    Thanks in advance

    By default BI services(BI Server, Presentation server, scheduler, java host) are Windows services, more over there is no relation for BIP with BI unless you configure BI Security.
    If it is OC4J then make sure your configuration.
    If helps pls mark

  • Windows Services not working, nmbd stopping

    Hi all,
    I encounter a strange problem.
    I'm currently trying to install a Mac OS X Server System on a Xserve and XRaid. This to remove a Win2K Server with AD on and Exchange working on it.
    I set my server in OD master, import accounts from the AD, replaced Exchange with Kerio etc ...
    But when i try to use Windows services, smbd always working fine (file sharing is ok), nmbd stopping. So i can't use it as a PDC server because the domain i create disappears with the crash of the nmbd process. In fact nmbd seems to stop after nmblookup requests.
    I've to say that the Win2K server is not stopped.
    I installed lots of OS X Server as Windows PDC and it has always been working fine.
    I also tried to activate Windows Service as "linked to Active Directory" and as "Standalone Server" and it resulted the same issue.
    Does anyone had an idea ? I thought that it could be a problem with the Win2K requests and crashing my nmbd with nmblookup.

    I'll try these things tomorrow to see what happens :
    - Change the "os level" setting to something high in /etc/smb.conf . (because of the Win2K Server).I'll set this to 255.
    1. Make sure that DNS is running on your server. Make sure that the server has a dns entry for itself.
    2. Ideally "Workgroup Master Browser" and "Domain Master Browser" should both be enabled. An aside, this did not interfere with my seperate AD domain on the same network.
    3. Enable WINS on your server.
    4. Configure WINS on Windows clients to point to server.

  • Every time I try to install windows service pack 2 I get error message WindowsUpd​ate_800040​05

    When I try to install windows service pack 2 I get error message WindowsUpdate_80004005, has anyone else had this problem and how do you fix it

    If you have an external drive (USB thumbdrive or hard disk) connected, disconnect it and try the service pack installation again. 
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Windows service can not open DB.

    Hi,
    in 8.1.7 on Win 2003, when I launch oracleservicemyDB in Windows services, it can not open myDB and I have this error in alertlog :
    Database mounted in Exclusive Mode.
    ORA-1991 signalled during: alter database mount exclusive...
    I can connect via sqlplus and issue :
    ALTER DATABASE OPEN;
    and no problem.
    I can SHUTDOWN or STARTUP in sqlplus without any problem. Any idea ?
    I have already recreated PWDmyDB.ora file by ORAPWD.
    myDB is a clone (by CREATE CONTROLFILE script) of another DB.
    Many thanks.

    Hi,
    The oracle service has a setting which defines whether or not the instance is started when the service is started. It's a long time since I've used 8i on Windows, but I believe the command to change the setting went something like this:
    oradim.exe -edit -sid <sid> -startmode a
    This will configure the service so that next time it is started, it will start the instance (the 'a' means auto).
    Cheers,
    Andy Barry
    http://www.shutdownabort.com

  • Java and Tomcat: Why do I need the port number when accessing Tomcat?

    My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website the uses servlets, JavaServer Pages, and JDBC.
    I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    I installed Java Web Services Developer Pack on MyWebServer. It requires Java 2 Standard Edition (J2SE), so I installed that first. The files I downloaded and installed are as follows:
    J2SE: j2sdk-1_4_0-rc-win.exe
    JWSDP: jwsdp-1_0-ea1-win.exe
    After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\jwsdp\bin; [and other previous statements]
    On MyWebServer I start Tomcat (from the JWSDP menu option). It starts properly (as far as I can tell).
    Then, from MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    �The page cannot be displayed�.
    I then try again and add the port number:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html.
    Here�s my question: Why do I have to enter the port number to get a page displayed? Do I have to have Apache HTTP Server running on MyWebServer to display pages without entering the port number?
    Thanks for your help.

    When you web server is running at the default Http Port, then you do not have to specify the port yourself.(The browser does it automatically)
    So if you run your web server at port 80, then you will not have to specify the port explicitlyin the url.
    If you want to use tomcat only as a jsp/servlet processing engine then install a web server (either IIS, or apache web server) and run it on port 80. (so that you dont have to specify the port)
    Now configure tomcat to run as a servlet engine for this web server. for this refer to the tomcat documentation.
    If you do not want to have an external webserver then you can configure tomcat itself to run at port 80 (in this case tomcat would do the work of both the web server as well as jsp/servlet engine... but this is not the setup for a production site). this can be done by changing the server.xml file in the conf directory of tomcat installation.
    hope this helps.
    regards,
    Abhishek.

  • How to block vendor invoices when GR is made to stock type 2?

    Hi,
    I would like to get your advices on the following case:
    - I need to be able to block vendor EDI invoices from payment when GR is made with 101 to stock type "2", Quality inspection. Manual blocking is not the case here but SAP should block invoices automatically in these cases. Is there any user exit available for this? Invoice blocking should be made also in the case when initial GR is made with 107 (in this case invoice is blocked by standard) and material is then released from valuated GR blocked stock with 109 to stock type "2", Quality inspection. In standard system vendor invoice is now unblocked but my customer needs to have an invoice still blocked as material is in quality inspection stock type.
    Please advice.
    Br,
    Tapio

    Hi,
    Refer this post
    http://forums.sdn.sap.com/thread.jspa?threadID=1488428
    You will get the idea

  • Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram, Lately Photoshop CC 2014 in my PC gets blocked when doing

    Últimamente Photoshop CC 2014 se  detiene fusionando las capas al hacer panoramas. Primero  edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
    Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
    Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
    Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram

    Últimamente Photoshop CC 2014 se  detiene fusionando las capas al hacer panoramas. Primero  edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
    Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
    Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
    Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram

  • When I attach a JPG file in my email and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it." Anyone know why and how to fix this problem?

    When I attach a JPG file in my email message and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it so that they can save it." Anyone know why and how to fix this problem?

    Your Windows friend should ask in a Windows forum why his email client won't open attached jpg files. We have no idea what email client he is using or how his Windows security is configured.

  • When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

Maybe you are looking for

  • Has fstab gone redundant??

    Hello everyone,     Has fstab been replaced by mtab,coz it seems tht all the mtab entries are catered to before the fstab entries,its resulting in my root partition to be mounted twice,its showing another partition with 37.0gb size and when i click o

  • API to update onhand quantity

    Hi All, Is there any API that I can use to update the onhand quantity of Inventory Item. Thanks, Priya.

  • Unable to connect to host on port 4241

    HI SAPers, I have started the gui, now that I am trying to connect to server I am getting the following error: Error while connecting to communication partner - see preceeding messages. Could not connect to host lxxxxxxx on port 4241. java.net.Connec

  • Where are audiobooks stored on my computer?, where are audiobooks stored on my computer?

    Any one know where audio books are stored on the computer? I recently downloaded one and its fine on my iphone, but i cannot find it anywhere on my computer???

  • Itunes Genius changes album names

    Having a strange issue...After changing albums/songs imported from cds to the album names on itunes, I update itunes match and genius. It then promptly reverts them to other names and removing the info I edited.  Anyone know why this is happening?