tomcat

HTTP Status 408 error during login with domain forwarding set up

Hi, On my site wemanageloans.com, many of the users are getting the following error when they try to login with the correct credentials: HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browse...

Fire off an internal ServletRequest in Tomcat

I am using Quartz to schedule background tasks for a web application. Some of these tasks just fire off requests against the same web application. I want to avoid depending on any kind of network settings (for example a request with my own domain name might not be routed properly if made from within the data center). Is there a Java API...

to find out the class files associated with html page generated by web server

Hi I have webapplication which is running in my machine(written in java) and i need to find out the class files associated with html page generated by this web server.How to findout this?. ...

Tomcat: Change the Virtual hosts programmatically?

Hello, Tomcat offers a build in "Virtual Hosting" Support: An Engine/Web-Application can be configured to be responsible for a list of Domains. These Domains have to be put into the server.xml/context.xml files with a special xml directive. => Is there any possibility to change the Tomcat Configuration (in general) and especially the "...

JSP exception - class not found (tomcat)

I'm setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root cause: java.lang.ClassNotFoundException: java.sql.SQLClientInfoException org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC...

How to set the AJP packet size in Tomcat?

I've followed the instructions here for setting the maxPacketSize in AJP... AJP connector doc It states in the doc that I need to "you must also change the packetSize attribute of your AJP connector on the Tomcat side! The attribute packetSize is only available in Tomcat 5.5.20+ and 6.0.2+." I have no idea how to change it though! Th...

AJAX calls from Apache-hosted file to Tomcat servlet on same server failing.

Why are my AJAX requests failing? I have a website www.foo.com, and I'm running Tomcat on the same server, www.foo.com:8080/services. However, when a file on foo.com makes an ajax call as such: $.get("http://foo.com:8080/services/action.do", null, myCallback ); I get an error response, rather than the xml document I get if I manually...

persist tomcat jndi settings

Hi, We would like to pass the same WAR thru dev, test, and production. How can we persist our JNDI settings w/o manual modification of server.xml? For example, in Websphere there is an admin console, and the JNDI resources can be added manually and saved, or using jacl/jython script out the addition of the necesary JNDI resources. Why ...

Deployed NetBeans web app that uses JDBC gives "java.sql.SQLException: No suitable driver found"

I have a Java web app using JDBC created in NetBeans deployed to Tomcat that gives a "java.sql.SQLException: No suitable driver found for ..." error. The same app works fine when I run it as a non-web Java app. I have the jar of the JDBC driver I'm using added to the libraries of the web app. ...

Tomcat 6 can't find mysql driver

Hey, There is a similar question here but regarding the class path. http://stackoverflow.com/questions/1585811/classnotfoundexception-com-mysql-jdbc-driver I've had everything working great until some days ago. Suddenly my little application can't find the mysql driver. And i don't understand why (really I've checked everything) I got...

Unix Script not working in Java Process Runtime.exec()

Hello All... I am developing an application in Spring Web MVC where i need to execute some of the linux script.. I am using tomcat version 5.5 for running my project in linux.. My code is looking like this : Process proc = runtime.exec("sudo cp /var/tmp/mailserverfiles/editinterface.txt /etc/sysconfig/network-scripts/editinterface.tx...

session transfer issue from Tomcat to ASP.Net

Hello everyone, I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other aspx pages are in another domain. The issue is, I can not transfer session from aspx web page A to aspx web page B. I want to...

OWA sessionid cookie lost when logging into a Tomcat site iframe

Hi, we have made an extension to OWA page, connecting to a web application running in Tomcst. The content served by this application is shown in an iframe inside OWA page using isapi. This is working everywhere but in a customer where the session cookies set by OWA (sessionid and cadata ) get deleted as soon as a succesful login is done...

Viewing Tomcat 6.0's MBeans in Jconsole

Hi, I'm trying to write a small agent to control tomcat, and right now it looks like JMX is the best option for me. Using the manager http service I can see that there are all sorts of neat mbeans registered that give me all the info I need. Only problem is that when I connect to the tomcat instance using jconsole I don't see any of the...

Deploying jax-ws on Tomcat

After noticing Java 6 includes javax.xml.ws, I'm able to create a standalone web service. How would I go about hosting that in Tomcat 6? ...

Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web application and once for application XYZ). How can I read some 'external' values into server.xml? For example: <Resource name="jdbc/MyDB" username="...

Errors running Coldfusion 9 under Liferay 5.2 to serve portlets

So this all began in trying to get Coldfusion9 portlets to run under Liferay, just like examples that I've seen running JBOSS: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSC00E3E9C-DC24-4488-930D-AEED19172CC5.html I followed those steps, but my application server would be TomCat 5.5 (bundled w Liferay 5.2.3). I wanted to cre...

Purpose of Serialization in webapplication

1.Where is the usage of serialization in a webapplication. 2.Is it necessary that a form bean is serializable. 3.In tomcat what is the usage of sessions.ser file.. ...

WebApplication Context files on Tomcat

I have a download service served using Tomcat 5.5.15. It is created by adding an XML file in $TOMCAT_HOME/conf/Catalina/localhost. E.g downloads.xml for http://example.com/app.downloads/ <Context path="/app.downloads" docBase="Z:\Sites\example.com\downloads\"/> After Tomcat restart the context file is sometimes deleted(not always), an...

How to setup tomcat with Eclipse?

I've been spoiled by .NET development and this is driving me NUTS. I am on Galileo. Installed the WTP. Installed tomcat 6 through the windows installer. If I go (in eclipse) to Window --> Preferences --> Server --> Runtime Environment I get no tomcat option at all, as in a number of tutorials - only a basic folder with the useless J2...