.msi downloading as text
I'm using tomcat 6.0 and struts2. When I try to click on a link to download a .msi file on IE, the page loads up text from the .msi file instead. Has anyone encountered this before? What can be done? Thanks... ...
I'm using tomcat 6.0 and struts2. When I try to click on a link to download a .msi file on IE, the page loads up text from the .msi file instead. Has anyone encountered this before? What can be done? Thanks... ...
What are the advantages and disadvantages of using *mod_jk* and *mod_proxy* for fronting a tomcat instance with apache? I've been using mod_jk in production for years but I've heard that it's "the old way" of fronting tomcat. Should I consider changing? Would there be the benefits? thanks ...
I'm doing some Spring development and I'm trying to decide if libraries should always be kept in the application lib, even if they end up being common to more than one app. Doesn't Tomcat startup slowdown if a bunch of jar files end up in the common/lib? I'm also fearful of versions and dependencies. Isn't that less of a problem if the a...
I have two tomcat web applications that need to share information using a singleton. I have already made it work by placing the jared classes in the tomcat common directory. Each webapp then gets the same copy of the singleton. What I would like to do is to integrate this behavior within eclipse. I would like the common classes to be ...
Hi, I've coded some algorithms in java and I need to include those algorithm in my web application. I'm using Apache Tomcat and what I need to do is that when, for example, I click on the start button on my web page a java class should be executed. I think this done by using servlets, am I right? If so, do you know where I can find some...
I am using Apache DBCP with JNDI in my tomcat container to pool connections to a mysql database. Everything works fine but a problem i am seeing is that once a pconnection is pooled it is never released. So after a load spike connection sit their forever sleeping. Is their a way to shrink the pool through context.xml parameters? here...
Im not sure that its possible to do what I want to accomplish. I want to map one single servlet to two different URL. I want both http://10.0.0.1/a and http://10.0.0.1/b to map to the same servlet. I know its possibe to do the following in web.xml; <servlet-mapping> <servlet-name>ServletName</servlet-name> <url-pattern>/b</...
I'm trying to protect a resource in tomcat so that only "valid users" (those with a valid login and password in the realm) can access it. They do not necessarily belong to a group in the realm. I have tried with many combinations of the <security-constraint> directive without success. Any ideas? ...
Hi, I want to detect when an include in a jsp occurs in a web application and specifically which page is being included. I want to do this when the menu page is requested. One option is to overwrite PageContext but it turns out you can't access it anywhere to wrap it. As far as I can see PageContext is the only class which provides incl...
We're deploying a WAR file into Tomcat 5.5 and it works fine if WEB-INF\classes contains .classes files, but if we move the .jar file containing that .classes into WEB-INF\lib, we get an exception on runtime complaining that java.lang.NoSuchMethodError, but existing class file in .jar file contains the class and method does exits! Any ...
Until recently I'd considered myself to be a pretty good web programmer (coming up for 10yrs commercial experience on a variety of e-commerce, static and enterprise applications). I'm self taught and have always used the Microsoft product stack (ASP, ASP.NET)... My applications are always functional, relatively bug free, but have never...
when i add the following java opts to enable debugging: JAVA_OPTS="$JAVA_OPTS -noverify -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" i get the following error whenever the try to shutdown the tomcat: ERROR: transport error 202: bind failed: Address already in use ["transport.c",...
Hi all, in my file "struts-config.xml" I've wrote: When my application start load successfully application.properties. How I can reload this properties (because I wanna change a lot of property wrote inside file) without restart application? Thanks a lot. T. ...
Having a hard time figuring out how to send dynamic data to a web-app's user without having to create a file & using a dynamic link to static content using java technology. (The main reasons for avoiding the file creation on disk are security and speed) This is something I have previously done in python, but this web-app is intended to ...
I have a Spring app that has a lot of dependencies (18 megabytes of JAR files..) - Now, when I am testing on the remote Tomcat 6.0 server, I'd like to not have to upload that 19 megabytes of dependencies, and just upload the classes. Pretty simple, right? I can't get the damn thing to work. I'm using Eclipse 3.4, and if in Java Build ...
I have a Spring/Hibernate application which I have converted into a web application in order to provide RESTful web services (using Jersey). I am trying to deploy the web application onto Tomcat 6.0.20 and I get only a cryptic error message in the log file: Jul 8, 2009 2:25:22 PM org.apache.catalina.core.StandardContext start SEVERE: E...
when I give http://localhost:8081 first it show connection error. Then I give cataline start in the command prompt,and tried. Now I am getting a blank page. Any one have any idea why it so? ...
Hi, I´ve installed Tomcat and I've been testing it: I wrote some .html and .jsp files and tried then in the server. They semm to work correctly together. For example: these files I'm trying allow me to upload a file to the server and writes its name in a database (mysql). Once this is done I have a button that allows me to upload another...
I'm looking for a simple open source, or reference application that I could use for testing some Java servers. The primary server would be Tomcat, and the database backend is MySQL. Are there some reasonable sample applications out there that are fairly easy to get up and running with? The ideal application would be fairly stateless in ...
Hi, We are trying to implement Oracle connection pooling with the help of Spring Framework. We are using DBCP connection pooling method. However the integration between DBCP and spring doesn't go down that well. Problem that we face is that DBCP returns PoolableConnections Object while Oracle expects OracleConnection Objects. (Thorws C...