I am working on an application which uses tomcat as a web server and java swing app. as only client to communicate to the web server via webservices.
I am stuck in a situation where i need the server to somehow notify the client of some kind of updated event, that occurred on the server side. Something like reverse ajax or similar.
A...
We are running tomcat, and we are generating pdf files on the fly. I do not have the file size before hand, so I cannot direcly link to a file on the server. So I directly send the output.
response.setContentType("application/force-download");
OutputStream o = response.getOutputStream();
And then I directly output to this OutputStre...
In our tomcat application, we catch a CommunicationsException. There are various config parameters which can lead to this, including the database config being set wrong, but also the tomcat config have TOMCAT5_SECURITY=yes
When we catch the exception we want to give a helpful error message to the user. So we want to ask tomcat whether T...
I have uninstalled Plone, but it's home page keeps showing up at http://localhost:8080/
That is, when I go to http://localhost:8080/ I see:
Plone
Zope & Plone are now up and running.
* Your Plone site has not been added yet: Click here to create a Plone site.
* Use the Zope Management Interface.
* Plone.Org — documentation, add-ons, ...
I am in process of building up a small framework that does unit testing for JSPs. These JSPs have some custom tags, otherwise they are not any special.
Although there are numerous Java unit testing solutions available, I prefer not to use the method where a separate full-blown JSP container is launched, application deployed and results ...
I try to compile a webtools project for Java5/Tomcat 5.5 in ubuntu (with manually installed eclipse 3.4). I set the installed jre to java-1.5.0-sun-1.5.0.18 and the compiler compliance level to 1.5. When I export this to a .war file, and try to deploy it in Tomcat (Windows XP, Tomcat 5.5.27, Java 1.5.0_18) , I get the following error:
...
i have a JSP web page that refreshes every 1 minute.
on each refresh, the session object is checked for validity.
When the tomcat web server restarts, the session goes away...and when the page refreshes, it says "invalid". anyone has a solution to my problem?
...
With our Java webapp running on Apache Tomcat 6.0.18 on Ubuntu with Java 1.6.0_6, we can stop tomcat just fine.
However, with the same war file deployed to a Apache Tomcat 6.0.18 on Red Hat Enterprise Linux with Java 1.6.0_13, calling /etc/init.d/tomcat6 stop does not stop Tomcat. I have not yet attempted using 1.6.0_6 on Red Hat to ...
I am trying to create a custom realm in Tomcat. My problem is that there is a SessionAttributeListener as part of the framework which checks to see if any object added to the session is serializable, and if it isn't it causes problems... like invalidating the session.
Because org.apache.catalina.realm.GenericPrincipal is not serializab...
Hi,
I have a problem concerning with proxool and oracle driver in Tomcat.
The web application I use contains a webservice jar file using metro and a servlet to initialize / start the proxool pool. The proxool pool is configured with an oracle connection. When the service is called, it fetches a connection from the pool, executes a stat...
Hi
I was asked to write a servlet that collects client's details such as ip, mac address etc.
getting his IP is pretty straight-forward (request.getRemoteAddr()) but I dont find an elegant way to get his MAC address.
seems reasonable that the web server has access to data such as Mac address etc, since it gets the TCP packets and all....
Hi, I'm using Apache 2.2 and Tomcat 6.0.18 on Windows XP. I've enabled the mod_proxy module to redirect the traffic from my Apache web server to Tomcat. I only updated the httpd.conf file to have the redirection like this:
ProxyPass /myapp http://MYMACHINENAME:8080/MyApp/Start
ProxyPassReverse /myapp http://MYMACHINENAME:8080...
I need to design a web service layer on top of an existing application. Really, I'm most interested in WS-Security and JMS support, possibly JTA.
What is the best server to use for this? Would it be a wise decision to go with lightweight Tomcat (which I'm experienced with), or would I be better off with a server that implements the ...
Hi
I am not sure if anyone else encountered this issue,
I have a java app that polls data from an external provider every second, it works fine and polls data as required -this is a console app
I have written a jsp service that does the same, it is basically returning the same data that the console app writes to the console, instead...
This might sound like a dumb or a simple question, but I really have little to no experience with clustering of any kind and I'm just curious if and how a certain scenario is possible.
Let's say I've set up a cluster of N Tomcat instances, and I've deployed my application App1 across all N instances.
What would I need to do to be able ...
The standard data source configuration in JBoss requires the username and password of the database user to be in the xxx-ds.xml file. If I define my data source as a c3p0 mbean I encounter the same issue.
Is there a standard way to have the user and password encrypted? What is a good place to save the key?
This of course relevant to to...
I'm trying to configure a Realm in Tomcat to access an LDAP server with TLS security. My basic Realm configuration looks like this:
<Realm className="org.apache.catalina.realm.JNDIRealm"
debug="99"
connectionURL="ldap://localhost:389/"
userPattern="uid={0},ou=People,dc=nsdl,dc=org" />
I get an error like ...
What's the best way to pass arguments to a tomcat instance? Are command line arguments available to all applications within the container? Can I pass arguments to particular apps? Do I need to manage this through the built in app server?
EDIT:
To clarify, I'm looking to pass a parameter to specify the configs to use. Sometimes this migh...
I'm trying to expose a REST-full service (hosted by Tomcat) and can't figure out what is the required configuration for Spring 3 (M3).
This is how (example) the service looks like:
@Controller
@Scope("prototype")
public class UsersController
{
@RequestMapping(value="/users/hello", method=RequestMethod.GET)
public String hello()...
I've got several Web apps running on a Tomcat 5.5 server, and I'm working on improving/updating the overall logging system used throughout the system. I already had some success with logback-classic. However, when I try to use logback-access (i.e. access the lbAccessStatus servlet), I get this exception:
exception
javax.servlet.Servle...