tomcat

C++.NET WSDL Stubs fails when connection is lost

We are using C++ .NET to contact a webservice through Apache (2.0.63) which load balances to a Tomcat server. We used wsdl version 2.0.50727.42 (Visual Studio 2005) to generate the webservice code from a WSDL file (duh). We are using Apache to load balance for us and we can dynamically add worker servers (which happen to be Tomcat serve...

Using both SSL and Non-SSL in Tomcat 6

I have a Tomcat 6 server and I want just about everything to be behind SSL however I want one servlet to be accessible through non-ssl. Is it possible to configure Tomcat this way? It is currently set up to forward all requests to the secure port. ...

Tomcat servlet logging

I'm new to Servlet containers and have created a web application using Tomcat 6.0.26. I have 'TODO: log' scattered throughout my code. I see there exists: myServlet.getServletContext().log() which appears to write to a file prefixed with 'localhost' in the Tomcat '/logs' directory. I don't need any advanced logging capability, but I...

How to monitor session values?

Hi All, I am developing a web app. In that app, i am maintaining huge data map in the session. I deployed my app in Tomcat 6.0. Sometimes i am experincing heap space problem. How to increase the heap space? How do i maintain the session values? How to track the values in the sesssion? I am using netbeans 6.1 to develope the app. Is th...

java.lang.UnsatisfiedLinkError under tomcat

I have a java class (eval.java) that invokes a native method in an so file (libmodel.so). I can use System.loadLibrary() to load the libmodel.so without any error (-Djava.library.path=/usr/lib), and the native method initModel() works fine. However, when I deploy it as a web service (tomcat 6.0.26 + axis2 1.5.1 + eclipse jee helios) to ...

JSP EL expressions not working in tag files

We are trying to move our Java web application from a Tomcat 5.5 server to a more modern Tomcat 6.0.24 one, but we are having some problems with JSP EL. The expressions placed within XML tag files are not recognized by the server, that simply renders them as text (just as in the following example). Any ideas why? <object id="${id}" ...

redirect to http back after https in tomcat + jsf

Hi! I have a login page that I would like to show in https. After validating the user, I would like to transfer him back to http. So I declared in web.xml <security-constraint> <web-resource-collection> <web-resource-name>Login and Restricted Space URLs</web-resource-name> <url-pattern>/general/enter.jsf</url-pattern> </web-...

Locate DLL location when invoked from jsp

Have a website written in java and is on tomcat/apache. One of the pages apparently calls a c# dll All i have is source code as the guy who worked on this project has left and trying to figure out his code. I am looking at the webserver, how would one deploy this dll on above set up? As per the stage website, when user gets to a certa...

Where should a Java web application store its data?

My Java web application (myapp.war) ist deployed by placing it into the webapps direcotry on Tomcat on Ubuntu 10.04. This application needs to save some data in files. But the user, which is running Tomcat (tomcat6) has no write access to the home directory /usr/share/tomcat6/ and no write access to the current working direcotry /var/li...

Tomcat Spring WebApplicationContext

In the Spring framework reference I found this: The ApplicationContext interface has a few other methods for retrieving beans, but ideally your application code should never use them. Indeed, your application code should have no calls to the getBean method at all, and thus no dependency on Spring APIs at all. but I have no idea to...

Deploying with Django-Jython, and Tomcat?

Hi, I have a Django app we're attempting to deploy to a Tomcat server, using django-jython. Just to test things, I've created the WAR archive file for a empty Django app successfully. The test Django application is called "chair". Our Tomcat server apparently doesn't like WAR archives files, so I exploded (unzipped this), and copied t...

Apache: how to setup in Apache/mod_proxy an upper bound on the number of concurrent forwarded requests?

I have a fairly standard setup where a front-end Apache server forwards requests to Tomcat through mod_proxy/AJP. How can I setup Apache/mod_proxy so it only forwards at most N (say, N=4) concurrent requests to Tomcat? Other concurrent requests coming into Apache should not be rejected, and should instead be queued to later be sent to To...

How to investigate excessive java garbage collection

I have a Tomcat instance which is exhibiting the following behaviour: Accept a single http incoming request. Issue one request to a backend server and get back about 400kb of XML. Pass through this XML and transform it into about 400kb of JSON. Return the JSON response. The problem is that in the course of handling the 400k reques...

grails app will not deploy on tomcat FAIL - Application could not be started

My first experience with implementing my own rackspace cloud server is going really well up to this point. I have Debian installed and I am running tomcat 5.5 on the server. I have a grails application that I created a war file of. (I am using grails 1.3.2 BTW) I open the Tomcat manager and use the upload and deploy war feature. The ...

Tomcat Threads Ready

I deployed a web application on a server. I created a script in order to perform load on the application(stress test). The stress generated different requests using 10 threads. I arrived into the following status as shown in the manager of tomcat: Free memory: 34.57 MB Total memory: 1166.43 MB Max memory: 1166.43 MB Max threads: 200 Cu...

Apache + Tomcat with mod_jk: maxThread setting upon load balancing

Hi, I have Apache + Tomcat setup with mod_jk on 2 servers. Each server has its own Apache+Tomcat pair, and every request is being served by Tomcat load balancing workers on 2 servers. I have a question about how Apache's maxClient and Tomcat's maxThread should be set. The default numbers are, Apache: maxClient=150, Tomcat: maxThread...

java.lang.OutOfMemoryError: PermGen space in tomcat with eclipse

i get this exception frequently when running my app on tomcat using eclipse: java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClass...

Tomcat on Windows - Free profiling and metrics gathering tools?

Hi there We're using Windows 2008 and we are thinking of switching application servers from Adobe ColdFusion 9 to Railo 3.1. This would mean using a new Java servlet container, so instead of Adobe JRun 4, we're looking at Apache Tomcat. Adobe have a helpful perfmon plugin for CF9. We can gather most stats with that. The problem is, as...

Spring disconnecting from Derby

I'm using Apache Derby with the Spring JdbcTemplate inside a web app running on Tomcat. Spring is managing the data source. I've noticed that if I update the .war file and Tomcat undeploys/redeploys the app, I get this error: java.sql.SQLException: Another instance of Derby may have already booted the database /tmp/manager_db/manager....

Handling Spanish characters in Java/JSP

I have a small webapp which handles a lot of Spanish text. At one point in the code, a JSP page responds with a Json String containing some of this text. If I print the String to the Console, it looks like jibberish. But if I examine the header/content of the response in Chrome Developer Tools, it looks correct. It is transferred in the...