Trying to find out why a server is accessing struts.apache.org? - struts

I have a server on which there is evidence of accesses to http://struts.apache.org. Nobody has installed struts on it, but Tomcat 7.0 is certainly installed. Is is possible that Tomcat is performing those accesses? In case struts is included as part of Tomcat installation, how can I determine the struts' version. Thanks in advance!.

org.apache.catalina.startup.TaglibUriRule
That is an example of a TagLib (or TLD, tag library definition) from Tomcat 7.0. I would assume something during Tomcat's course of TagLib scanning it would accessing struts. Hard to tell based on the info provided.

Related

How to integrate bootsfaces and jsf on glassfish server?

The boots faces won't show when i run the xhtml page. I just added the jars from the website to libraries, am I missing something? Should I change some XML file or something. I know it works on Tomee but i have to use Glassfish for this.
There are nasty bugs in the Glassfish implementation. Maybe you've run into one of them. Have a look at this article of mine describing how to run BootsFaces on a Glassfish server.

How to run Php Pages in Netbeans

I have just successfully deployed Quercus on Glassfish 4.1. I tested in the browser
http://localhost:8080/quercus-4.0.39/ and saw this:
Congratulations! Quercus™ Open Source 4.0.39 is interpreting PHP
pages. Have fun!
Then ran Netbeans Tools > Options > PHP > Activate PHP Support
It worked. I now see this:
So I made 3 tests:
I ran a php page in an html application but instead of displaying the page it prompts a download box to open in Notepad
I created a new PHP project with below configuration:
But when I run the app with above configuration I receive this error:
Firefox can't establish a connection to the server at localhost.
So I tried with a third test with other configuration:
When I run this third test I get a HTTP Status 404 - Not Found error on GlassFish server.
What am I doing wrong? Thank you!
The problems with your tests are:
PHP needs to be interpreted by a web server. Your browser doesn't know what to do with a PHP file, so it just treats it like a file rather than a page to render. Apache is the most common and easiest server to do that with, GlassFish is unnecessary and probably not the best choice for PHP.
In this test, you are trying to visit a web server which doesn't exist. You don't have any server that listens on port 80.
Here, GlassFish is reporting that it can't find the resource you requested. Have you made sure to put your PHP project in the right directory for Quercus (like in step 4 of your documentation link) and made sure you're visiting a valid URL?
I think the best thing for you to do is move away from Quercus. The latest version of it is very old and implements an old version of PHP (version 5, whereas the latest is 5.6). Looking at the official website, the project appears to be dead, with broken links and very old documentation.
I would suggest you investigate installing a WAMP (Windows, Apache, MySQL, PHP) or LAMP (Linux, Apache, MySQL, PHP) stack. There are lots of very easy installers for this approach which will help you get up to speed and a lot of helpful tutorials and documentation.
For those who using tomcat, below are the steps :-
Right click your project --> properties --> Run Configuration --> For Run As, select PHP Built-in Web Server
Go to Tools --> Options --> PHP tab --> in Php 5 interpreter, browse the correct location for php
Then it should works !
In my case , my php is in /usr/bin/php7.0, so I put the path in Php 5 interpreter.

rewriterule for apache tomcat

I have installed apache tomcat software for learning jsp.
In that software how to do that all request can handle from one class or file,
In WAMP, we can do with rewriterule, but in apache tomcat how to do, can anybody tell me how to do that?
Basically you can use a Filter for that purposes. Since it could require some job, you can use library for that like UrlRewriteFilter if you don't want to complicate your project.
Also, if you are learning JSP, I suggest you to learn JSF 2.X instead since JSP is deprecated. In that case, you will probably like to use PrettyFaces.

How to get Apache Tomcat running with jsp files?

I'm new to web servers and would appreciate your help. I was given JSP files (and some other css and javascript files) and I'm trying to figure out a way to quickly get these JSP files up and running on the Apache Tomcat server just to view them. I got the Tomcat server running using Eclipse, but now I'm not sure how I can run the JSP files. Do I need a web.xml file? I've looked at some examples of web.xml but I am not sure what pieces are needed.
If there is anything that you can give me to lead me in the right direction, it would be extremely helpful. Thanks in advance!
Have a look here: http://www.vogella.com/articles/EclipseWTP/article.html
In short:
Install the WTP extension and create a new Dynamic Web Project. Set the project to run with the Tomcat managed by Eclipse.
Then copy your JSPs to the project and start Tomcat through Eclipse.
Maybe you can convert your existing project to a Dynamic Web Project.

glassfish with jruby on rails: Modifing "glassfish is loading your application" page

I'm running glassfish gem with jruby on rails. I would like to modify "glassfish is loading your application" page with our startup page.
Is that possible for glassfish gem?
EDIT: Is that possible (and how) glassfish server?
Is this for glassfish application server, or glassfish gem? I know that it is possible with the latter.
At any rate, to do this on glassfish gem, you'd have to hack one of the jars that the gem ships. Basically, that startup page is hard coded in grizzly (I believe) somewhere, and that file resides in that jar. It's not a pretty process, and it is very brittle. For the minimal gain that you get for showing a customized page, which is shown for a very brief time, it is too much trouble to endure, in my opinion.
I'm sure this is possible with glassfish the server, and it might be similar, but I have not tried it myself.