tomcat

Performance/Load testing web application running on Tomcat

Hi all, Could someone recommend an open source load testing tool which allows the load/stress testing of a web application running on tomcat. I have seen Jmeter but i am struggling to get it to work properly with Javascript. What other popular load testing tools are out there? Thanks ...

What is the default username and password in Tomcat?

I installed Netbeans and tryed to access the server's manager using: (id/pass)manager/manager, admin/admin, system/password... None of them worked. ...

creating userPattern for JNDIRealm

Hey guys, I have to meet a second distinguishion among users. I just pasted out the example given for JNDIRealm dn: uid=jjones,ou=people,dc=mycompany,dc=com <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" connectionName="cn=Manager,dc=mycompany,dc=com" connectionPassword="secret" connectionURL="ldap://local...

Failing to deploy webapp in tomcat using maven cargo

I am trying to deploy a webapplication using maven cargo plugin into tomcat server. But i am getting the below error when i am running the command mvn cargo:deploy in the command prompt. [INFO] Failed to deploy [C:\Users\Ramesh\workspace\SimpleSpringMvcExample\target \SimpleSpringMvcExample.war] FAIL - Encountered exception ...

How to detect from web application that client uses http proxy - why XFF header is missing?

I try to discover, from the web application, whether client uses transparent proxy. It should be simple in theory: just check for existence of XFF (x-forwarder-for) header. But for some unknown reasons this doesn't work at all. I work in the office which is connected to internet via corporate transparent proxy. If I go to any "ip-proxy-...

How do I resolve the grails bootstrap execution error "postProcessBeanDefinitionRegistry already called for this post-processor"?

I'm building a Grails (1.3.4) app configured with the grails plugin tomcat-1.3.4 and using Spring (3.0.3RELEASE) but reusing an existing Spring applicationContext.xml file. I copied the relevant portions of the old file into the one generated by Grails (just below the characterEncodingFilter bean). After making sure that all the requir...

Remote debugging Tomcat with Eclipse

I can't seem to debug the tomcat application through Eclipse. I've set CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n and then I run bin/catalina.sh, where I see output saying it's listening for dt_socket on port 8000. But whenever I try to connect to port 8000 in Eclipse (by adding an entry in t...

Tomcat still does not show directory list even if I enabled it in conf/web.xml

So I already set listings to true and tomcat still does not show my directory. I also restarted the server numerous times but still same effect. ...

Using CDI (Weld) in Tomcat with simple POJO classes

Hi there After 2 days of debugging and trying I have no other idea than asking you for a solution. I want to use CDI (on JEE6) in a Tomcat WebApp with only simple plain old java objects (yet). As far as I know it is simply possible to inject POJO java classes into other POJO Java classes?! Here are my example classes class ToBeInjec...

Servlet.service() for servlet jsp threw exception java.lang.NullPointerException

i am getting below exception and tomcat hangs and my services are down. SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.search_005fresult_jsp._jspService(search_005fresult_jsp.java:86) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.ser...

setup of eclipse project : tomcat server , jdk , external libraries and so on

Hello I'm a beginner java developer and i'm not very confident with java world tools. i'm using eclipse helios, jsdk 1.5, axis2 plugin and tomcat 6.0.29 on windows to port a very old webservice , preaviosuly deployed on a websphere. I've added a tomcat server to my eclipse project, when i start the server i get the following message : ...

apache portable runtime binary for windows?

from http://apr.apache.org , apr only available in source format. any third party side we can get apr pre-compiled ready so that i can use with tomcat6. ...

Java Web Service with backend stuff going on..

Hi Everyone, I'm thinking about developing a Java Web Service using RESTEasy. I am going to follow this example: http://technicalmumbojumbo.wordpress.com/2009/10/13/restful-webservices-using-jboss-resteasy-tutorial/ Now, that's very well and good for getting the server to reply back with a simple response, however how do I get some "ba...

Servlet include swallows HTTP headers in Tomcat

I have a servlet that does a request dispatcher include of another servlet. The included servlet sets headers that I would like to read in the including servlet. So I pass in a custom HTTPResponse object in the include() method which captures all feedback activity from the servlet. The problem is that the headers are not being set in...

Integrating a Swing App With Tomcat

Hi All. I recently created a web application with GWT. Then re-used most of the code to create a Swing version of the application that accesses a local database in offline mode. I am now implementing the 'online' mode of the application and want to access the same data as my GWT application. Any ideas? Considered connecting directly to...

is Hibernate 3.x compatible with Tomcat 5.0.x?

So, I have a godaddy account and I wanted to use it for a small hibernate/spring project... they host java, but they only have the Tomcat 5.0.27 version... would I have to go to a previous version of hibernate or would it work just fine? thanks, Johan ...

Is it possible to update the app without restarting the server in JSF?

I'm working with Eclipse 3.5, Tomcat 6, JSF 1.2 and IceFaces 1.8. Whenever I update any file in my app, I have to restart the server to see the latest changes. How to update my app without restarting the server? The server option "Automatically publish when resource changes" is already selected. Update: If I change the main file, the c...

JSP:include is not rendering the included file

I just created a new IceFaces application and I'm trying to include a navigation bar in all of the pages. When I use the jsp:directive.include tag the file is included, but when I use jsp:include it does not seem to be loaded. In fact, when I check the HTML source code in my browser, it's like the included file was completely empty. I do...

Stress - Load testing a web application

Hi to all, I have a web application deployed on a tomcat server. I upload files via a POST method and then the uploaded files are transcoded to another type (e.g. 3gp to flv). How can I test, how many concurrent uploads and transcodings my web application can handle? Any thoughts or any examples? Don't know a thing about stress or load ...

How to deploy servlets to a share Tomcat instance?

I've created a servlet app using Netbeans and it works on my local machine. Now I need to deploy the app to my college class Tomcat 6 instance. The instance is set up like so: /java/tomcat/webapps/<student_id>, where student_id are the 30 student IDs for my class. What exactly do I need to deploy to /java/tomcat/webapps/elvin in order...