Tomcat 6 « Tomcat « JSP-Servlet Q&A

1. Are writes from within a Tomcat 6 CometProcessor non-blocking

I have a CometProcessor implementation that is effectively doing a Multicast to a potentially large number of clients. When an event occurs that needs propagated to to all the clients, ...

2. Tomcat 6 Default Buffer Size

Is there a way to set the default buffer size for JSPs in Tomcat? I know I can set them on every page, but am hoping there's a global option ...

3. Tomcat 6: Importing utility class from WEB-INF/classes

(I've removed client name because of NDA) Java/JSP newbie here. I have a JSP site and I have a 'Functions' class in WEB-INF/src/client/project/ In the, the package is com.client.util This is compiled and ...

4. Servlet mapping in apache tomcat 6.0.20

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 and

5. which one will be given priority in Tomcat 6: index.html or index.jsp?

Our web app contains both index.html and index.jsp, and we use Apache Tomcat 6. When a request having the path till the context (for eg.,http://localhost:8080/mysite) comes to the tomcat which one ...

6. run a servlet program in tomcat 6.0

How i can run a servlet program in tomcat 6.0?

7. Can WEB-INF be at a subdirectory JSP Tomcat6

I have an JSP application, it is under server/a/b and WEB-INF is under server/a/b/WEB-INF, not at the app-root directory. Now I get an error saying the package P does not exisit when ...

8. Tomcat 6 with servlet 3 spec

Contrary to the documentation, is it possible to use the servlet 3 spec with tomcat 6?

9. Multiple Tomcat Instance that runs as a service

I have an existing Tomcat Installation that is running on production mode right now. It runs as a windows service. What I want is to add another tomcat instance but points ...

10. Scheduled task in a web application?

I'm building a statistics apps for an online game, built using the servlet API in Java (to be deployed on Tomcat). It's easy enough to let the game send a message ...

11. Share a folder in tomcat

How can I enable a folder to be accessable using a browser with tomcat 6 ? I think I need to add a context to web.xml ? I'm trying - So when ...

12. problem with javascript with JSP

Hey all i am trying to use javascript with my jsp file as under: JSP File:

 <?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"

13. How to configure Permanent Servlets in Tomcat 6?

Permanent servlets are loaded when the server is started, and live until the server is shutdown. I have requirement to start some server side java programs and These programs then provide functionality that ...

14. Tomcat 6 refuses a valid docBase

This is my webapp context file, /etc/tomcat6/Catalina/localhost/ri.xml

<Context docBase="/home/bart/Dropbox/projects/RevoraIndieSite/webapp" reloadable="true">

However, Tomcat complains:
INFO: Deploying configuration descriptor ri.xml
28-Apr-2011 23:44:04 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/bart/Dropbox/projects/RevoraIndieSite/webapp does not exist or is not ...

15. Commons Daemon procrun stdout initialized

I am using Tomcat 6, it was working fine, and suddenly I am getting “Commons Daemon procrun stdout initialized” on log, how can I fix this ??

16. ServletRequest.getParameter always returns null when the post size is big

We are maintaining a spring mvc (2.5.6) web application running on Tomcat 6.0.14 There is a bug in our app that caused one text field to increase its size resulting in a ...

17. Tomcat 6.0.10's org.apache.juli is empty

Anyone knows why Tomcat deliberately left some empty packages, including org.apache.juli, in catalina.jar? I need org.apache.juli.logging.*, any idea where to find those classes? Thanks

18. jspx: output DOCTYPE with only a PUBLIC identifier

I want to output the following DOCTYPE specifier with jspx:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This seems to be impossible. What I tried is:
<jsp:output doctype-root-element="HTML" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
...which results ...

19. JSP - Package not found

I just installed tomcat 6 on my server with Apache. My jsp file return the following error:

Only a type can be imported. x.y.Z resolves to a package
In the source file, ...

20. Having problems with JSP and tomcat 6

HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError( org.apache.jasper.compiler.ErrorDispatcher.javacError( org.apache.jasper.compiler.JDTCompiler.generateClass( org.apache.jasper.compiler.Compiler.compile( org.apache.jasper.compiler.Compiler.compile( org.apache.jasper.compiler.Compiler.compile( org.apache.jasper.JspCompilationContext.compile( org.apache.jasper.servlet.JspServletWrapper.service( org.apache.jasper.servlet.JspServlet.serviceJspFile( org.apache.jasper.servlet.JspServlet.service( javax.servlet.http.HttpServlet.service( note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.

22. where does servlet run in tomcat 6 Server.?

Are you asking what the "current working directory" is for your web application? I think that when running in Tomcat, the current working directory for all web applications is tomcat_home/bin. Why? Because the current working directory is an operating system concept that relates to the process, which in this case is the JVM, and the JVM is started from tomcat_home/bin.

23. give a JSP a host name using tomcat 6.0

24. Problem with Tomcat 6 and OpenEJB

Hi all, I have a Tomcat 6 server configured with OpenEJB,which runs perfectly when I fire it at Eclipse. However,when I try to run the server directly from startup.bat I get the following error.Does anyone know how to solve it?Tks. org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: Unable to bind business remote deployment in jndi. at org.apache.openejb.assembler.classic.Assembler.createApplication( at org.apache.openejb.assembler.classic.Assembler.createApplication( at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem( at ...

26. Tomcat6 wont work with my Servlet

HI! I have created an Apache server 2.2.4 and connected to Tomcat 6.0.13 using connector mod my problem is, all the examples programs that were included during installation are working perfectly though webserver/examples/ from l get a html index file on which all the examples are displayed and l execute the program by clicking in "execute link", but when l ...

27. Tomcat 6 Servlet Program Running Problem