Tomcat7 start/restart on Win7 - tomcat7

I recently installed Apache Tomcat 7 for Windows7 while trying to learn Servlets/JSP.
If I try to start Tomcat by double-clicking on the icon on my desktop (which maps to C:\Apache Software Foundation\tomcat7\bin\tomcat7.exe), it opens up a command prompt with many messages rolling and disappears
If this is start then how to restart ?
The first time I installed it, there was an icon in the system tray, clicking it one could start/stop the server. But that icon disappeared after the first time use. I uninstalled/re-installed apache. Again the icon appeared & disappeared the next time it was accessed.
Is there a way to bring back the icon for good, or a better way to do this?

tomcat7.exe is Tomcat itself, running in a Windows service wrapper.
tomcat7w.exe is the Monitor/Configure app.
You can use tomcat7w.exe for start/stop tomcat service.

Go to C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin
Start Tomcat7w.exe (GUI application).
Here you can start or stop the service from the General tab

Related

opened dialog window in windows service

I am running some Windows application as a service. This application used Office applications(Word, Excel). The service runs under specific user account.
Here is the problem:
When service is trying to use Excel, Excel is showing some dialog window which blocks the application from running. Since it's a service running in noninteractive mode you are not able to see the dialog window.
I was wondering if there is a way to get the title of a dialog window to understand the root cause of it.
I tried using EnumDesktopWindows but it didnt help.
Platform: Windows 10.
Thanks

TomEE Service will not allow to access the application from another LAN Machine

I have deployed my webapps in apache-tomee-plus-1.5.1 and start the server using startup.bat in a windows VM. It's working fine and accessible from any other LAN machine using VM's ip, i.e., 192.168.1.236:8080/archiva.
Now, I want to install the server as a service. For that I have install a service using "service.bat install Archiva" command. When I start the service the application is working fine using localhost/192.168.1.236 from the VM. But not accessible from other LAN machine.
FYI, when I start the service the tomcat home page is shown after hitting 192.168.1.236:8080.
Please help.
Go to Windows Start --> Control Panel
Open Windows Firewall(If not showing, please search it and open).
Click on Allow a Program or Feature through windows firewall
see image...
Click on Change settings and then Allow another program...
Then add all the TomEE.*.exe and press ok.
see image...
Restart your service and application is available from LAN.

windows service server crashes

I have created windows service via Visual Studio.
The service is running ftp server.
I have the same program in .exe app which works perfectly fine.
However, the service crashes in after a while.
I doesn't even get into the OnStop/OnShutdown event, just stops working.
Any ideas?
After doing this myself recently, here is a way of making sure the service restarts after its own crash:
Go to Start - > Control Panel and select Administrative tools in the window. Then, select services and right click on the service you'd like to customize. Under the recovery tab you can set the first failure to restart the service, along with the second and subsequent failures. I hope this helps you out!

Task bar icons missing

I have tried to install a shell DLL in Windows7 using innosetup (installation script). To apply the shell changes I have restarted the explorer by using batch file (during installation).
It seems working on WindowsXP and Windows2003 without any issue. But in Windows7 once the explorer restarted all the taskbar icons like skype, google talk,.. (except Network and Audio icons) are closed. But all those applications are running fine. Even I click on the particular application (say skype) in start menu, it wont appear on taskbar. Only way is, need to stop the application in taskbar and again start it.
Is there any way to fix this.
Note:
I am running the installer with admin rights. Also I have tried to run the following commands in Windows7 'Administrator Command Prompt' to restart the explorer.
taskkill /f /im explorer.exe
explorer.exe
The same results happen. All the icons are closed in taskbar. But if I start the explorer via taskmanager this issue wont occur.
Note sure whether it is related to my installation setup (the same commands I am using in my batch file and used to run during installation)
Is there any way to fix this issue.?? I want to install without closing the taskbar icons..
Is it possible that your icon is in the overflow area? Click on the little "uparrow" chevron on the left of the notification area and see if your icon is in there.

Programatic launching of application on windows startup

I have a particular piece of software that i wish to load on windows startup. Under normal circumstances i would simply place a shortcut in the startup folder or an entry in the run key in the registry.
Unfortunately and for an unknown reason this application throws a win32 execption whenever that is done - and i am assuming it is because an element of windows has not been loaded that is vital to this application.
Once windows has actually loaded i can double click on the icon and it runs fine. So my question is - is there a programmatic solution to this? I have already tried a console app launcher that sleeps for n seconds and then launches but all that seems to do is delay the startup of windows.
Does anyone have any creative solutions? I am open to anything from a windows service to c#, vb, batch files.. etc
Thx
Can you run it as a service, or write a shell service which will attempt to start it up? That way you will have built in support for response on failure and delay time before trying again.
Have a look at AUTOEXEC.BAT. But be careful!!

Resources