tomcat5.5

Processing Java servlet 'javax.servlet' package not found

末鹿安然 提交于 2020-01-04 07:28:24
问题 Not a very common implementation, but using Processing as a Java Servlet has been discussed in previous posts before (1, 2). I have been developing a program in Processing to use as a Java servlet. However, when I have code (such as like the first linked example) in a Processing sketch, I get the error message The package 'javax.servlet' does not exist. You might be missing a library. I have Tomcat 5.5 service running on XP, and my environment variables are as follows CLASSPATH = C:\tomcat

Sharing a single log4j jar file in Tomcat5 between multiple webapps with separate property files

荒凉一梦 提交于 2020-01-02 07:28:55
问题 Is it possible to use a single log4j jar file in an tomcat 5.5 setup, where it can be used by multiple webapps and have seperate logging for each webapp? I have about 8 different webapps written where the only real difference between the log4j property files is the log filename. However if I attempt to move log4j from the webapp WEB-INF/lib directory to the tomcat5 shared/lib directory I run into problems. All the property files basically look the same as the one below, where I just set file

Sharing a single log4j jar file in Tomcat5 between multiple webapps with separate property files

一个人想着一个人 提交于 2020-01-02 07:27:53
问题 Is it possible to use a single log4j jar file in an tomcat 5.5 setup, where it can be used by multiple webapps and have seperate logging for each webapp? I have about 8 different webapps written where the only real difference between the log4j property files is the log filename. However if I attempt to move log4j from the webapp WEB-INF/lib directory to the tomcat5 shared/lib directory I run into problems. All the property files basically look the same as the one below, where I just set file

javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25

爷,独闯天下 提交于 2020-01-02 01:12:29
问题 I am getting issue while sending email. javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at org.apache.jsp.online_005fScheme_005fSend_005fMail_jsp.sendMail(online_005fScheme_005fSend_005fMail_jsp.java:116) at org.apache

ClassNotFoundException Error in Tomcat 5.5 and Tomcat 6.0

泪湿孤枕 提交于 2019-12-23 08:37:12
问题 I am having this strange issue with the tomcat 5.5 and tomcat 6.0 servers. I have two web applications which will be installed on tomcat.When tomcat is started these two web applications also get started simultaneously but sometimes one web application fails to initialize because of the init failure in one application another application is getting classnotfoundexception errors while running. In tomcat 7.0 the application is running fine even if the other application failed to initialize.

Nightmare: Upgrading Tomcat 5.5 to 6.0

倖福魔咒の 提交于 2019-12-22 09:27:36
问题 I'm trying to upgrade a perfectly running embedded Tomcat 5.5 to Tomcat 6.0. I understand that all I need to do is replace Tomcat 5.5 jars with 6.0. That's what I did. So I replaced the following jars: catalina-5.0.28.jar catalina-5.5.9.jar catalina-optional-5.5.9.jar commons-el.jar commons-modeler-1.1.0.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jmx-5.0.28.jar jsp-api-2.0.jar naming-factory.jar naming-resources.jar servlet-api-2.4.jar servlets-default.jar tomcat

Default session timeout for Apache Tomcat applications

Deadly 提交于 2019-12-17 17:29:56
问题 What is the default session timeout for web applications deployed on Tomcat5.5? Is it browser specific? In my web application, default timeout is mentioned neither in web.xml nor in code. 回答1: Open $CATALINA_BASE/conf/web.xml and find this <!-- ==================== Default Session Configuration ================= --> <!-- You can set the default session timeout (in minutes) for all newly --> <!-- created sessions by modifying the value below. --> <session-config> <session-timeout>30</session

How to change Java version used by TOMCAT?

心不动则不痛 提交于 2019-12-17 07:26:16
问题 I have Java 1.6 and Tomcat 5.5 installed on my system. But Tomcat 5.5 accesses Java 1.5 and hence as the outcome I get the error Bad version number in .class file while executing java code with JSP. How can I change the Tomcat version to Java 1.6? UPDATE I tried changing the JVM that the tomcat5w.exe is pointing to the version 1.6 and now I am out of the Bad version in .class file error. But now, I get the following error. exception org.apache.jasper.JasperException org.apache.jasper.servlet

Tomcat 5.5 Axis2 application scope problem - Unable to create single instance

白昼怎懂夜的黑 提交于 2019-12-13 18:45:49
问题 I have deployed an axis2 web service on Tomcat 5.5. The web service functions as expected. But I noticed I was getting duplicated log entries. After researching it became clear that multiple instances of the class were being created - ie the first time it ran, one log entry; second time, two entries and so on. I added the scope="application" parameter, but that has not solved the problem. I added it both in the service tag and as a separate parameter tag to no avail. This class has many key

View response headers before they are sent to the client?

老子叫甜甜 提交于 2019-12-11 12:18:31
问题 I am writing a project for school. I want to be able to display, on a web page, the response headers that the web server sent to the client. I am able to read request headers from HttpServletRequest and am able to write response headers to HttpServletResponse no problem. Is there any way to do this? It is possible to make a copy of what the server is about to send? I am using Eclipse Helios to develop this JSP with POJOs application, and am using Tomcat 5.5 running on Debian Lenny to serve it