Re: Reload on Tomcat 5.5

2005-05-22 Thread Stephen Souness
Please post a snippet of your config from server.xml with the relevant 
Host entry so that we can eliminate that as a possible cause of the problem.



--
Stephen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.25 session persistence

2004-09-21 Thread Stephen Souness
Hi all,
I have a Tomcat 5.0.25 system running behind apache under linux, which 
produces the following exception whenever I restart it:

java.io.FileNotFoundException: 
/usr/local/jakarta-tomcat-5.0.25/work/Catalina/www.my-sitename.co.nz/_/SESSIONS.ser 
(No such file or directory)

Does anyone know whether I should create this file, or whether I need to 
configure something to deal with it?

I have done some googling and have not seen much useful info on this topic.
--
Stephen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27

2004-08-15 Thread Stephen Souness
startup.bat didn't even get to starting Java, so I change the echo off 
line to be echo on and redirected the output to a file to see how far it 
was getting, like this:

 startup.bat  output.txt
The last information from output.txt is:
D:\Tomcat 5.0\bincall D:\Tomcat 5.0\bin\catalina.bat start
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Which makes a little sense, as I am trying to avoid having a full JDK.
Anyone else successfully running Tomcat 5 on Windows with just a JRE and 
not a JDK (including tools.jar in common/lib for compiling JSPs).

--
Stephen Souness

alan sparago wrote:
Are both instances of Tomcat trying to run on the same port? You cannot have
two processes trying to run on the same port for the same ip address.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Souness
Sent: Saturday, August 14, 2004 7:53 PM
To: [EMAIL PROTECTED]
Subject: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat
5.0.27
Test environment is Windows 2000 pro, live environment is Windows 2000 
server.

On my test system I've struck a problem when trying to install Tomcat 5 
when the system is currently still running Tomcat 4.  During 
installation there is a failure installing the Tomcat5 service - 
possibly a clash with the existing Tomcat service?

When I try to run the newly installed Tomcat 5 from a dos shell it 
closes immediately with no feedback presented or logged.

Has anyone encountered this before, or does anyone have some tips as to 
what I could be doing wrong?

--
Stephen Souness
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27

2004-08-14 Thread Stephen Souness
Test environment is Windows 2000 pro, live environment is Windows 2000 
server.

On my test system I've struck a problem when trying to install Tomcat 5 
when the system is currently still running Tomcat 4.  During 
installation there is a failure installing the Tomcat5 service - 
possibly a clash with the existing Tomcat service?

When I try to run the newly installed Tomcat 5 from a dos shell it 
closes immediately with no feedback presented or logged.

Has anyone encountered this before, or does anyone have some tips as to 
what I could be doing wrong?

--
Stephen Souness
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SV: Tomcat virtualhost bug?

2004-07-22 Thread Stephen Souness
Would it work if you just had separate absolute paths for each host appBase?
I'm seeing a similar issue on my development system and need to come up 
with something thast will be suitable for deploying to live systems - 
while preferably allowing for some configuration changes without having 
to bring the whole Tomcat down (which is more related to the discussion 
about whether and how the context.xml file can work for Tomcat apps 
http://www.simongbrown.com/blog/2003/04/28/1051559432000.html).

--
Stephen

Trond Hersløv wrote:
Thanks QM,
funny as it sounds, but nothing works and I'm happy.
No I must just deploy my apps manually. GREAT!
I'll drink a cold norwegian beer now. - haven't slept since saturday.
Thanks again.

-Opprinnelig melding-
Fra: QM [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, May 25, 2004 19:37
Til: Tomcat Users List
Emne: Re: SV: SV: Tomcat virtualhost bug?
On Tue, May 25, 2004 at 07:25:14PM +0200, Trond Hersl?v wrote:
: You say disable deployOnStartup. Did you mean autoDeploy?
Not at all -- I most certainly meant deployOnStartup.
Please search the online Tomcat docs for this term, it is explained in
detail.
: What is the point of setting Host:webapps, Context:docBase and
Context:path
: when all three virtualHost
: always take every application it finds under webapps?
See above ref to deployOnStartup.  =)
-QM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk2: .so versus .dll

2004-07-20 Thread Stephen Souness
If the naming of these files follows the usual conventions - mod_jk2.dll 
is a library for Windows, mod_jk2.so is a library for unix/linux.

They're probably equivalents to eachother but will not be interchangable.
--
Stephen

Hirode, Kartheek V. wrote:
Hello all
We have the following config working hunky-dory in our env:
	- Win2000
	- Apache 2.0.47	(port 80)
	- Tomcat 4.1.16	(port 8009)
	- jk2
	- The three run inprocess as an NT service
	- The jk2 starts the Tomcat with the JNI APR (TomcatStarter)
	Everything works fine. 

Now here's the problem:
- The jk2 module is a DLL (mod_jk2.dll)
- Based on certain recommendations, we are trying to change this to use the 
mod_jk2.so version.
So what we've done is:
- Replaced the DLL with the SO file
- Changed the LoadModule directive in the httpd.conf file to point to the SO 
file
- Restarted the NT service
- The loading of the module works fine, no errors
- But the calls to Tomcat do not work. In fact, Tomcat has not even started
We get the following errors when a call is made that needs the JK2 and Tomcat:
[Mon Jul 19 12:44:11 2004] [error] channelApr.open() attempt to connect to 
127.0.0.1:8009 (localhost) failed 730061
[Mon Jul 19 12:44:11 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Mon Jul 19 12:44:11 2004] [error] ajp13.service() failed to connect endpoint 
errno=0 No error
[Mon Jul 19 12:44:11 2004] [error] ajp13.service() Error forwarding 
ajp13:localhost:8009 1 1
[Mon Jul 19 12:44:11 2004] [error] mod_jk2.handler() Error connecting to 
tomcat 12, status 0

From RTFM, I know that there are several configurations in play here, but they all 
seem to apply when an Apache-jk2-Tomcat needs to be configured from ground up. What we 
have in our case is a config that works fine with the DLL file, but does NOT work at 
all with the SO file.
Any pointers? 

Thanks and regards
-- Kartheek Hirode
   Hewlett Packard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enabling EL on Tomcat 5.0

2004-06-21 Thread Stephen Souness
I had a similar problem recently
Assuming that you have the appropriate jar files in the appropriate 
locations you will need the following in your application's web.xml

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4
...
and something like the following in your JSP
%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %
this tells Tomcat to be compatible with the appropriate version of the 
Servlet spec and to refer to the appropriate jstl version.


Valter G. Nogueira Jr. wrote:
I am following the book Java Server Pages, 3rd Edition and all samples run in a snap.
But when I try to use EL no my pages it doesn't work. I mean if a write:
${1+2+3}
I got the ${1+2+3} instead of 6
 How should I configure tomcat to evaluate expression?
Thanks,
Valter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


character encoding of jsp output in Tomcat 5.24 JRE 1.4.2_04 jvm.dll

2004-06-01 Thread Stephen Souness
Hi,
Does anyone have any hints as to why Tomcat would replace some 
characters with a question mark when being run inside the JVM dll on 
Windows, yet display the same characters correctly when run with java.exe ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: character encoding of jsp output in Tomcat 5.24 JRE 1.4.2_04 jvm.dll

2004-06-01 Thread Stephen Souness
After comparing the system properties output by a dump from a JSP page 
(source below), I noticed a difference between the file.encoding properties.

Using the service configuration tool I was able to add the following to 
the JVM's configuration options:

file.encoding=ISO-8859-1
Eureka!
systemProperties.jsp
%@ page import=java.util.* %
%
Properties systemProperties = System.getProperties();
Enumeration enum = systemProperties.propertyNames();
while (enum.hasMoreElements())
{
  String key = (String) enum.nextElement();
  out.print(key +  =  + systemProperties.getProperty(key) + br);
}
%

Stephen Souness wrote:
Hi,
Does anyone have any hints as to why Tomcat would replace some 
characters with a question mark when being run inside the JVM dll on 
Windows, yet display the same characters correctly when run with java.exe ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]