how to know which file is being invoked on accessing website in tomcat - tomcat7

I am currently running my applications on Tomcat 7u59 with JDK6. My developers are requesting me to deploy there class files in the production environment while I am asking them to test on the testing environment.
They are getting it tested but I am not sure whether they are getting tested the module that contains the class files they asked me to place in the production environment. And neither the testing team helps in this regard.
So, in this regard, I would like to know which files of the application are being invoked when a particular module is tested.
Could anyone help me in this regard? Any alternate suggestions are helpful.

if you are on a linux system you can use lsof command with some grep command in pipe.
Hope it helps

Related

Compiling and debugging erlang code- for custom ejabberd modules?

This is a very specific and niche question- but something that'll probably help people working on existing codebases.
Current Scenario
We are running ejabberd 18.01 on prod- and we can't really change this right away. Our current setup for running custom modules is this- either modify existing modules from the source code, or make our own custom modules that are compiled using the erlang compiler that's bundled in with the installer from here. We use erlide as our IDE in Eclipse.
We compile the custom files in in erlide, into a separate directory from where our ejabberd .beam files are; and then transfer the files manually from there to the ebin folder in ejabberd. This is done so that we have VCS for our modified module files.
We aren't using rebar3, and I have zero clue as to how to implement in a heavily modified existing codebase without breaking something. Our only legitimate way of debugging is to put loggers at every step of the process, compile, transfer files, and restart the server- which drastically increases dev time.
It is a genuine nightmare to work with, and resources on ejabberd as well as erlang is scarce- we mostly have the docs to go by, and barely any SO questions relevant.
Any suggestions, resources that can help me setup something to help especially for debugging, would be highly appreciated. Maybe something in vscode would be great. Transferring files I've still managed with inotify, but debugging makes me want to tear my hair out. Please help. Thank you.
P.S.- This is all on Ubuntu 20.04, if relevant. Erlang/OTP version - 20.02, erts- 9.2. Please ask for any further clarifications if required.

First build HelloWorld application not working

I'm newbie in Opendaylight. I'm trying the very first example of ODL controller application by following this tutorial:
Controller Core Functionality Tutorials
Of course it was not updated so I had to modify something for the newest version (Carbon SR3, on Ubuntu 16.04 LTS). However, when I executed the program, I couldn't find the message
HelloProvider Session Initiated
by typing
log:display | grep Hello
It means my application was not started. On the other hand, I verified features but there was only odl-hello-api by default (no restconf, dlux, etc.). I had to modified karaf/pom.xml (karaf4-parent version 3.0.2-SNAPSHOT, adding dependencies for dlux-core and dluxapps) to install these features but of course I coudln't find my application in ODL graphic application.
Anyone has the same issues? Thanks in advance.
The core tutorials project is no longer maintained. I would suggest looking at the toaster sample documented at https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Step-By-Step. To try your own project, use the startup archetype documented at https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype.

Running Pdfclown on the web

Does anyone know the command or the way to run pdfclown on java servlet? There's pdfclown.samples.web folder included in the library but the readme says nothing about how to run the server.
You have to setup a local Tomcat server and plug it to pdfclown.samples.web within eclipse (please, see among the countless trillions of tutorials available on the Web ;-) ).
BTW, you are right that the README doesn't mention the webserver setup: I'll remedy in the next release.

OSGi using SpringDM on Virgo, running from Eclipse, MAC vs Windows development

This question is more of type "has anyone experienced something similar before and if so, what was the issue?".
At work I use an iMac to do my daily programming. After some initial (and still occasional) struggles, I got my project running on Virgo server. Stand-alone or from Eclipse, both work.
I checked out the same code at home on my Windows PC, installed same version of Eclipse and Virgo. I took the same installation & configuration steps like on the Mac at work. I can get the project up & running stand-alone. However, when I try to get the project deployed from withing Eclipse, no matter what I try, some bundles would not deploy.
As one of desperate last options I even moved Virgo to a c:\v, just in case the path was to long. Still no success.
Did anyone experience something like this before? What was the reason? Any hidden configuration I might be missing?
Thanks,
Jan
you can have a look at the Virgo\work\org.eclipse.virgo.kernel.deployer_<someVersion>\staging\global\bundle\ directory. Virgo tooling should normally deploy to this directory and invoke the deployer. maybe there are some issues. i suppose, you already checked the debug-output-logs? maybe it issnt a problem of deployment but something else.

is user-extension must for selenium RC?

I have created a project in Eclipse for Selenium automation using testNG framework. I have never used any user extension file in the past, but I heard that we need to use an user extension file. As since I am unsure of the proper use of this file I have never used it and my project runs smoothly. The question now arises is that later on will I have any issues because of not using an user-extension file? Please give me some ideas on the user extension file and let me know whether its mandatory to use in selenium RC project.
thanks in advance
No, the user-extensions.js file is not required. But you may indeed need to use it, if your existing tests depend on an extension that is in it. Obviously, at that point you need to use the version of the file that the test author used.
I am not quite sure what your question is but I think the answer is No anyway, you do not need to have any "user extension files" in order to use selenium API in any JAVA testing environment. You just call API from your testNG or other testing frameworks. see http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/doc/java/

Resources