Classpath problems with Tomcat4 and RedHat 7.2

2002-05-07 Thread Jose Ferrer

I am having problems reading a resource file I placed in 
/var/tomcat4/common/lib. I also tried placing it in 
/var/tomcat4/common/classes.

I wrote a small JSP which lists the classpath and I notice it prints out as 
/var/tomcat/common/lib  (missing the 4). Does anyone know where this is 
set?

Jose Ferrer



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




RE: Classpath problems with Tomcat4 and RedHat 7.2

2002-05-07 Thread Jose Ferrer

Yes, CATALINA_HOME is set to /var/tomcat4

Here is my simple jsp

%@ page language=java %
%@ page import = java.util.*  %
%@ page import = java.io.*  %
%  Properties prop = System.getProperties();   %
Java class path: %=prop.getProperty(java.class.path)%

%
Properties props = new Properties();
FileInputStream fin = new FileInputStream(DBConnMgr.properties);
props.load(fin);
%
P
%=props.getProperty(admin.log)%

The java.class.path returned is
Java class path: 
/usr/java/j2sdk1.4.0/lib/tools.jar:/var/tomcat/common/lib/:/var/tomcat4/  
bin/bootstrap.jar
Notice the missing 4 in the common/lib classpath.
It is interesting that the bootstrap.jar is listed as being in /var/tomcat4 
but common/lib is listed as being in /var/tomcat. I'm still trying to 
figure out where the classpath is set. I know how to do this when tomcat is 
started from a shell but not as a daemon.

If I place the DBConnMgr.properties file in my root directory it works. 
When I place it in /var/tomcat4/common/lib (or any other supposedly valid 
classpath) it does not.

Jose Ferrer


On Tuesday, May 07, 2002 12:10 PM, Larry Meadors 
[SMTP:[EMAIL PROTECTED]] wrote:
 Do you have a CATALINA_HOME environment variable set? That might cause
 this...

  [EMAIL PROTECTED] 05/07/02 09:21AM 
 I am having problems reading a resource file I placed in
 /var/tomcat4/common/lib. I also tried placing it in
 /var/tomcat4/common/classes.

 I wrote a small JSP which lists the classpath and I notice it prints
 out as
 /var/tomcat/common/lib  (missing the 4). Does anyone know where this is

 set?
 

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




Fix for Socket Write Error...

2001-01-18 Thread Jose Ferrer

I've responded to this question several times. Had the same problem and 
could not find an answer. We installed Tomcat 3.2.1 on Windows NT, Windows 
98 and RedHat Linux. The problem did not occur on Linux. But it did occur 
on both NT and Windows 98. After having tried many things, including the 
latest IE. we installed the latest service packs and the problem went away 
on both windows machines. It was easy to test because any time we started a 
page with a lot of images these errors would pop up. After installing the 
service packs we did not get an error in 30 minutes of testing. Hope it 
helps.

Jose

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




RE: error starting tomcat

2001-01-17 Thread Jose Ferrer

Manuel,

We were getting the same problem with Win98. Fixed it by downloading the latest 
service pack

Jose

On Wednesday, January 17, 2001 5:25 AM, Manuel Alzola [SMTP:[EMAIL PROTECTED]] 
wrote:
 Hello.
 
 My tomcat 3.2.1 installed on a machine with win95 with internet explorer 5.5 sp1 
crashes on start dumping the following stack trace
 
 FATAL:java.net.SocketException: Option unsupported by protocol: create
 java.net.SocketException: Option unsupported by protocol: create
 at java.net.PlainSocketImpl.socketCreate(Native Method)
 at java.net.PlainSocketImpl.create(PlainSocketImpl.java:70)
 at java.net.ServerSocket.init(ServerSocket.java:166)
 at java.net.ServerSocket.init(ServerSocket.java:121)
 at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
 ServerSocketFactory.java:97)
 at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
 nt.java:239)
 at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
 a:188)
 at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 Any suggestions?
 
 Thanks in advance
 
 Manuel
 
   File: ATT00019.htm  

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




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Jose Ferrer

Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine. 
It was finally fixed when we installed the latest win98 service pack. Hope 
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney 
[SMTP:[EMAIL PROTECTED]] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt 
window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian


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

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