tomcat

Setting up tomcat + ssl failed.. cannot connect to SSL channel?

Hi, I'm trying to get Tomcat 6.0.20 working with SSL authentication. I used keytool to create a new certificate, put it into my user dir, and set the tomcat authentication to this (server.xml): (Omitted) --> <Server port="8005" shutdown="SHUTDOWN"> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="...

Tomcat cannot resolve '<%@ include file', possibly related to taglibs JasperException: File Not Found

In the jsp i have: <%@ include file="/assets/includes/inc_standard_init.jsp" %> In the browser I get: org.apache.jasper.JasperException: /oprs.jsp(1,1) File "/assets/includes/inc_standard_init.jsp" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher...

Remote deploy Tomcat webapp from Eclipse

For development and testing purposes I'd like to deploy my webapp from within eclipse to a remote tomcat server. Is this possible ? If not, how should I set up my development environment for smooth and easy remote deployment ? ...

Tomcat parent webapp shared by configurable children webapps

Currently, we support many clients using the same web app, but each client has a different configuration for accessing their database, setting files etc. As the client list grows, updating the web apps is becoming increasingly arduous, and the duplication of resources is a waste of memory, file space, etc.. What we'd like to do is have...

How to separate J2EE web application for apache and tomcat

Hi All, I want to setup and Apache and Tomcat together and deploy my war file on the this setup. My question is how I separate my application for apache and tomcat ?Please give me example. Thanks Kumara ...

Tomcat CometProcessor NIO served via Apache httpd?

I have a CometProcessor Servlet working fine in Apache Tomcat. My server.xml connector entry is: <Connector connectionTimeout="20000" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/> I can hit the servlet (named 'EventBus') with a URL to Tomcat directly like so: http://xyz.com:8080/EventBus I h...

How to tie the Lifecycle for a Spring Bean to the webapps' lifecycle ?

I want to create a bean that has start() and stop() methods. When the webapp's context is active, start() is called during Spring's runtime bootup. When the webapp is undeployed or stopped, the stop() method is invoked. Is this correct: I annotate my start() method with @PostConstruct and the stop() method with @PreDestroy ? Normally ...

Linking Apache to Tomcat with multiple domains.

Okay, so I've been working for a while on this, and have been searching, but so far I have not found any answers that actually answer what I want to know. I'm a little bit at the end of my rope with this one, but I'm hoping I can figure this out sometime soon. So I have Apache 2 installed and serving up standard webpages, but I also ha...

Migrating from Tomcat 5.5.x to 6.0.x.

I'm migrating an mature application from Tomcat 5.5.x to 6.0.x. What are the sticking points that I need to make sure that I address? I use a couple of Tomcat's services that I suspect will need adjustment... The logging mechanism: I altered the conf/logging.properties to include my webapp. The Resource of type="javax.sql.DataSource...

java:how to hide static resources like html ,images from user on jboss platfrom?

I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my folder structure is mainfolder(contains subfolders and jsp pages) images(contains all of images files) headerfiles(header files) javascript(javascript files) url for website login page is mywebsite.com/...

tomcat deletes exploded webapps

Each time I shut down Tomcat server, it deletes my exploded webapp. What do I have to do to stop that? It's really inconvenient constantly copying it again under the webapps dir. ...

JSP files in external directory

In my project, we allow customer to write customer specific logic in JSP pages and attach to our product. Right now after deploying .ear file customer copy the custom files under /WebContent/custom directory so that we can refer those JSPs. This is a tedious process for installation, I would like to simplify this. I tried the following ...

where is jsp's java file

In tomcat6, where does tomcat put the generasted java file for a JSP file? java.lang.NullPointerException at org.apache.jsp.xxx.yyy.view_jsp._jspService(view_jsp.java:164) ...

getOutputStream() has already been called for this response

I google the error message "getOutputStream() has already been called for this response" and many people said it is because of the space or newline after <% or %>, but in my code , there is no a space or a newline. I am using tomcat6 on linux. <%@ page import="java.servlet.*, javax.servlet.http.*, java.io.*, java.util.*, com.lowagie.tex...

deploy struts app on jboss

I'm working through some struts tutorials, and here's one of the ones I'm using: http://www.vaannila.com/struts/struts-example/struts-login-page-example-1.html I downloaded the "source + lib" link at the bottom of that page, I copied the Example2 folder from the zip to my webapps folder under tomcat, and everything works as advertised. ...

how can i retrieve the msg from HttpServletResponse.sendError

i have two tomcat servers that communicate between them. upon an error at one of the servers i would like to send an error response to the other server. i am sending the error using: resp.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); i am catching the response with org.apache.commons.httpclient.httpMethod. my questio...

Getting exception of org.dom4j.DocumentException : feature read only while deploying war file in tomcat of linux

Hello All... I have working copy of war file which is working fine in windows.. Now when i am deploying that war file into linux + tomcat, it's giving me following stacktrace : 2009-11-23 17:06:08,675 INFO (org.springframework.jdbc.datasource.DriverManagerDataSource:153) - Loaded JDBC driver: com.mysql.jdbc.Driver 2009-11-23 17:06:08...

how can I get Tomcat to serve external JSP's

I have a war that also needs to server jsp's from alternative external directories. In weblogic this is acheved with virtual directory mappings. Is their a clean way to acheive this with Tomcat ...

How to grant access to authenticated users in Tomcat 5.5.x?

I'd like to be grant access to authenticated users in my web application without requiring them to be a member of a specific role. My first guess was to specify <role-name>*</role_name> in my auth-constraint, however it seems that this just means grant access to any role defined in my web-app, not grant access to any authenticated user....

Forcing classpath precedence with Tomcat 5.5 under eclipse

I am currently developing a web application based upon Struts2 & Spring components combined with a set of tier libraries in a company-made framework. These librairies expose sets of spring beans, through blahblah.xml files embedded in the provided jar files. I need to replace some of the implementation classes exposed through such bean...