Tomcat 5.5 Virtual Hosting

2005-09-16 Thread Durfee, Bernard
Okay, after much struggle here is the solution I came up with for
virtual hosting...

1 Machine, 3 DNS Entries - mymachine.me.com, app01.me.com, app02.me.com

==
server.xml - 3 host entries under the Catalina engine:

  Host name=localhost
appBase=webapps
unpackWARs=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false
  /Host

  Host name=app01.me.com
appBase=webapps-app01.me.com
unpackWARs=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false
  /Host

  Host name=app02.me.com
appBase=webapps-app02.me.com
unpackWARs=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false
  /Host

Notice each host has a separate appBase.
==

==
Create directories for host contexts:
[TOMCAT]/conf/Catalina/app01.me.com
[TOMCAT]/conf/Catalina/app02.me.com

These are the directories that Tomcat will look in to figure out how to
process incoming URLs.

Copy manager.xml from [TOMCAT]/conf/Catalina/localhost to both of these
new directories. This allows you to use the manager to deploy into each
host.
==

==
Start Tomcat, browse to app01.me.com/manager/html, which will bring up
the manager for app01.me.com.

Deploy your application, make sure the WAR file is named with the
context you want. To deploy to the root context you need to name the
WAR: ROOT.war, with 'root' all caps.
==

Bernie


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



RE: Help figuring out Virtual Hosts

2005-09-16 Thread Durfee, Bernard
Dola,
I believe in order to serve static content you'll need to create a
context XML file. I just posted an email outlining how I was able to get
virtual hosting working. An additional step in your case would be to
create a file [TOMCAT]/conf/Catalina/servera.com/ROOT.xml and include a
context definition. The your content would reside in the
[TOMCAT]/webapps-servera.com directory.

Bernie



 -Original Message-
 From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 16, 2005 2:44 PM
 To: Tom Cat
 Subject: Help figuring out Virtual Hosts
 
 
 Hi,
 
 I've certainly RTFM'd and had thoroughly read
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.ht
ml#Host%20Name%20Aliases
 
 but I just can't figure out how to get virtual servers
 to work.
 
 Basically, assume that DNS is set up properly and that 
 ServerA.com ServerB.com and Server.com resolve to the same 
 IP. Now, I want ServerA.com to go to 
 Server.com/MyAppA/index.jsp and ServerB.com to go to 
 Server.com/MyAppB/index.jsp. This, in my mind is sort of like 
 how Apache lets you do it, where of course it takes advantage 
 of the convention of index.html being the default destination.
 
 OK, how do I achieve this with Tomcat? Could anyone
 please provide a specific example?
 
 Many thanks,
 
 Dola
 
 
   
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 
 -
 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]



Virtual Hosts

2005-09-15 Thread Durfee, Bernard
I am having trouble configuring virtual hosts in Tomcat 5.5.9. I have
two applications app01 and app02. I have 2 DNS entries
app01.myserver.com and app02.myserver.com that both point to the machine
on which Tomcat is running. How do I configure Tomcat to serve from
app01.war when app01.myserver.com is hit and app02.war when
app02.myserver.com is hit.

Thanks,
Bernie


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



RE: Virtual Hosts

2005-09-15 Thread Durfee, Bernard
Okay, so I created two host elements in my server.xml...

  Host name=app01.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

  Host name=app02.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

...but how do I tell Tomcat which context to process? There will be no
context correct? Do I need a separate appBase directory for each host
element?

Thanks,
Bernie



 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 15, 2005 12:10 PM
 To: Tomcat Users List
 Subject: RE: Virtual Hosts
 
 
 Simplistically ...
 
 Configure Host elements inside your Engine. Create a folder 
 for each application within webapps. Set the Host docBase to each. 
 
 Check out the online ref.
 
  -Original Message-
  From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
  Sent: 15 September 2005 17:07
  To: tomcat-user@jakarta.apache.org
  Subject: Virtual Hosts
  
  
  I am having trouble configuring virtual hosts in Tomcat 
 5.5.9. I have 
  two applications app01 and app02. I have 2 DNS entries 
  app01.myserver.com and app02.myserver.com that both point to the 
  machine on which Tomcat is running. How do I configure 
 Tomcat to serve 
  from app01.war when app01.myserver.com is hit and app02.war when
  app02.myserver.com is hit.
  
  Thanks,
  Bernie
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
 Disclaimer:  The information contained within this e-mail is 
 confidential and may be privileged. This email is intended 
 solely for the named recipient only; if you are not 
 authorised you must not disclose, copy, distribute, or retain 
 this message or any part of it. If you have received this 
 message in error please contact the sender at once so that we 
 may take the appropriate action and avoid troubling you 
 further.  Any views expressed in this message are those of 
 the individual sender.  QAS Limited has the right lawfully to 
 record, monitor and inspect messages between its employees 
 and any third party.  Your messages shall be subject to such 
 lawful supervision as QAS Limited deems to be necessary in 
 order to protect its information, its interests and its reputation.  
 
 Whilst all efforts are made to safeguard Inbound and Outbound 
 emails, QAS Limited cannot guarantee that attachments are 
 virus free or compatible with your systems and does not 
 accept any liability in respect of viruses or computer 
 problems experienced. /FONT
 
 
 -
 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]



Deploying root context

2005-09-15 Thread Durfee, Bernard
Is there a way to use the Tomcat 5.5.9 manager to deploy a WAR file as
the root context? If not, how to I munge the deployed web application to
make it the root context?

Bernie


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



Oracle Tomcat 5.5.x

2005-08-26 Thread Durfee, Bernard
Hello,
I am trying to create an Oracle 10g datasource with connection caching
enabled. In my server.xml I have the following...

Resource
name=jdbc/myDS
auth=Container
type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@my.db.com:1521:me username=my_name
password=my_pass
connectionCacheName=my-cache
connectionCachingEnabled=true /

...under GlobalNamingResources. Is this properly creating an Oracle
datasource with implicit connection caching enabled? If so, how do I
verify that this datasource is pooling connections?

Thanks,
Bernie


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



resource processing

2005-08-26 Thread Durfee, Bernard
How are Resource elements in the server.xml file processed? For
instance...

Resource
name=jdbc/myDS
auth=Container
type=javax.sql.DataSource
factory=org.apache.commons.dbcp.BasicDataSourceFactory

driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@my.db.com:1521:me
username=me
password=it
connectionProperties=SetBigStringTryClob=true

initialSize=0
maxActive=20
maxIdle=10
minIdle=0
maxWait=6
/

...am I correct in thinking that when Tomcat is started it will grab an
instance of org.apache.commons.dbcp.BasicDataSourceFactory. It will then
call getObjectInstance() to retrieve the datasource. Is the rest handled
by the factory? Does Tomcat assume all remaining attributes are
properties that should be sent to the object factory?

Bernie


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



OracleDataSourceFactory

2005-07-14 Thread Durfee, Bernard
In the ever confusing quest to properly create an Oracle data source in
Tomcat 5.5.x using the 10g JDBC drivers, I am stuck trying to properly
configure connection caching. I've tried the following in my context XML
file...

Resource
name= jdbc/suny
auth= Container
type= oracle.jdbc.pool.OracleDataSource
driverClassName = oracle.jdbc.driver.OracleDriver
factory = oracle.jdbc.pool.OracleDataSourceFactory
 
url = jdbc:oracle:thin:@xyz.com:1521:etc
user= abc
password= def

connectionCachingEnabled= true
implicitCachingEnabled  = true
maxStatementsLimit  = 5
minLimit= 0
maxLimit= 20 
validateConnection  = true
/

...but when I retrieve the data source in my code and examine it...

OracleDataSource ods = (OracleDataSource)m_dataSource;
message.append(\nExtended Oracle data source information);
message.append(\nName: +
ods.getDataSourceName());
message.append(\nDescription:  +
ods.getDescription());
message.append(\nCaching enabled:  +
ods.getConnectionCachingEnabled());
message.append(\nImplicit caching enabled: +
ods.getImplicitCachingEnabled());
message.append(\nExplicit caching enabled: +
ods.getExplicitCachingEnabled());
message.append(\nFast Failover enabled:+
ods.getFastConnectionFailoverEnabled());
message.append(\nConnection cache properties:  +
ods.getConnectionCacheProperties());

...I get the following inconsistent results...

Extended Oracle data source information
Name:   OracleDataSource
Description:null
Caching enabled:true
Implicit caching enabled:   false
Explicit caching enabled:   false
Fast Failover enabled:  false
Connection cache properties: {MaxStatementsLimit=0,
AbandonedConnectionTimeout=0,
MinLimit=0, TimeToLiveTimeout=0, LowerThresholdLimit=20, InitialLimit=0,
ValidateConnection=false,
ConnectionWaitTimeout=0, PropertyCheckInterval=900, InactivityTimeout=0,
ClosestConnectionMatch=false,
MaxLimit=2147483647, AttributeWeights=NULL}

...that show that the data source is correct and the
connectionCachingEnabled property is getting through. But I can't seem
to set any of the other properties, most importantly the maximum number
of connections for the pool. So I have a few questions...

Is this is latest and greatest way to properly create and configure an
Oracle data source in Tomcat?

How does Tomcat go about creating the data source and how does it decide
what properties to set on the data source?

Is there a definitive list of properties for the Oracle data source?

Thanks,
Bernie Durfee

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



Clustering: Slow session creation

2005-06-21 Thread Durfee, Bernard
I have been having a problem with clustered sessions in Tomcat 5.5.7. I
am using the pooled replication mode, but I have also tried asynchronous
mode. Right now there is one machine, the other machine is down. I would
have assumed that machine one would have seen that machine two is down
and not bothered to try to replicate the session, but it appears as if
it is trying to communicate anyway...

 org.apache.catalina.connector.RequestFacade.getSession(boolean) 
org.apache.catalina.connector.Request.getSession(boolean) 
 org.apache.catalina.connector.Request.doGetSession(boolean) 
  org.apache.catalina.cluster.session.DeltaManager.createSession() 
 
org.apache.catalina.cluster.session.DeltaManager.createSession(boolean) 
 
org.apache.catalina.cluster.session.DeltaManager.getNewDeltaSession() 
 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(ClusterMessage) 
 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(ClusterMessage,
Member) 
  java.io.ObjectOutputStream.writeObject(Object) 
 
org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Strin
g, byte[]) 
 
org.apache.catalina.cluster.io.XByteBuffer.createDataPackage(byte[]) 
 
org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(S
tring, byte[], IDataSender) 
 
org.apache.catalina.cluster.tcp.PooledSocketSender.sendMessage(String,
byte[]) 
 
org.apache.catalina.cluster.tcp.SocketSender.sendMessage(String, byte[])

  org.apache.catalina.cluster.tcp.SocketSender.connect() 
   java.net.Socket.init(InetAddress, int)

...it looks like the ReplicationTransmitter is trying to send a message,
which hangs until the socket times out. Where can I set the timeout for
this? 20 seconds seems long, 2 seconds would probably be more
appropriate. I enabled DEBUG messages for the cluster component, but
this is all I get in the logs...

[2005-06-21 13:53:38,281 DEBUG]
[org.apache.catalina.cluster.session.DeltaManager] Manager (/xyz) send
new session (6359D20C5E68DE71BB557443724A0218)
[2005-06-21 13:53:59,406 DEBUG]
[org.apache.catalina.cluster.session.DeltaManager] Created a
DeltaSession with Id[6359D20C5E68DE71BB557443724A0218] Total count=1

...no other information about why an attempt is made to create the
socket and why it takes so long to timeout. I've sort of solved the
problem by disabling clustering, but I would like to get it working at
some point. Any ideas?

Thanks,
Bernard Durfee

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



getSession(true) VERY slow - 5.5.7

2005-05-23 Thread Durfee, Bernard
I am running Tomcat 5.5.7 on Windows 2000 and when a user logs in, the
call to request.getSession(true) is taking 20 seconds. Any ideas on how
to track down the source of this problem?

Bernard Durfee


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



Garbage Collection

2005-04-12 Thread Durfee, Bernard
How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

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



RE: Garbage Collection

2005-04-12 Thread Durfee, Bernard
Right, my question was whether or not Tomcat would call System.gc() to
'suggest' to the JVM that garbage collection take place. Tomcat itself
is the best authority as to how busy it is. Since Tomcat has been around
for a long time I figured that this might have been implemented at some
point.

Bernard Durfee


-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection


Hi There,

Tomcat does not control the garbage collection, it is up to the
JVM to decide if and when a garbage collection is performed. The only
way you can request a garbage collection is by using the System.gc()
method, which the JVM can ignore.

For more information on this Topic read the documentation for the JVM
that you are using.

Pete

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection


How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

-
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]


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



Thread Timeout

2005-04-12 Thread Durfee, Bernard
Is there a way to set the timeout on request processing threads? I'd
like to be able to say that If a request takes more than 60 seconds,
then kill it.

Bernard Durfee

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



RE: Garbage Collection

2005-04-12 Thread Durfee, Bernard
I'd rather have a major garbage collection kick off with no users logged
in vs. 100 users logged in. My application pulls data from a database
and generates charts on the fly. Both of those operations require object
creation. So my heap usage grows over time. My usage trends tend to be
bunched, rather than constant. So in my case, more predictable garbage
collection would be a great benefit.

Bernard Durfee


-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:32 PM
To: Tomcat Users List
Subject: Re: Garbage Collection


Calling System.gc() is considered to be a bad thing since this would 
trigger a major garbage collection which would take relatively long, 
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this 
moment. But does that mean that is always a good idea to make a GC now?
No, maybe one millisecond later a new request will arrive and if Tomcat 
is then in GC, it is busy and cannot handle the request.
I think this is the reason why Tomcat doesn't call the GC itself.

Christoph

Durfee, Bernard wrote:
 Right, my question was whether or not Tomcat would call System.gc() to

 'suggest' to the JVM that garbage collection take place. Tomcat itself

 is the best authority as to how busy it is. Since Tomcat has been 
 around for a long time I figured that this might have been implemented

 at some point.
 
 Bernard Durfee
 
 
 -Original Message-
 From: Pete Guyatt [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 12, 2005 3:33 PM
 To: Tomcat Users List
 Subject: RE: Garbage Collection
 
 
 Hi There,
 
   Tomcat does not control the garbage collection, it is up to the
JVM 
 to decide if and when a garbage collection is performed. The only way 
 you can request a garbage collection is by using the System.gc() 
 method, which the JVM can ignore.
 
 For more information on this Topic read the documentation for the JVM 
 that you are using.
 
 Pete
 
 -Original Message-
 From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
 Sent: 12 April 2005 20:12
 To: Tomcat Users List
 Subject: Garbage Collection
 
 
 How is garbage collection controlled in Tomcat 5.5? I ran a bit of an 
 experiment by profiling Tomcat 5.5.7 while running a web application. 
 I ran a load test against the application that finished with the 
 allocated object size just below the heap size. If it grew any more, 
 garbage collection would run. So the load test was done and with 
 Tomcat idle, the garbage collector never ran. It would seem like a 
 good time to run the garbage collector.
 
 As is stands now the next person to hit the application will push the 
 heap size over the limit and they will have to wait for garbage 
 collection. Seems like Tomcat should either attempt to trigger the 
 garbage collector when idle.
 
 Bernard Durfee
 
 -
 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]
 
 
 -
 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]


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



unpackWARs

2005-04-08 Thread Durfee, Bernard
Does the setting unpackWARs affect performance during runtime? The WAR
ends up unpacked to the 'work' directory regardless of this setting,
correct?

Bernard Durfee

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



RE: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Durfee, Bernard
Jesper,
I seemed to me that there would be a performance increase in using the DLL, 
since the servlet is running on the same machine as Domino. Using the CORBA 
method to connect to the same machine seemed like extra overhead.

Bernard Durfee


-Original Message-
From: Jesper B. Kiær [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 3:03 AM
To: Tomcat Users List
Subject: Re: java.library.path - DLL - Domino ..why not use CORBA?



Hi

I'm wondering why you're using the Domino DLLs to access Domino?

Domino has a Corba interface which enables you to access all the Domino classes 
(exept the Notes UI)

This whould be the normal way to do it.

What makes you choose the other way?

regards
Jesper B. Kiaer

http://www.jezzper.com


-Durfee, Bernard [EMAIL PROTECTED] wrote: -

To: Tomcat Users List
From: Durfee, Bernard
Date: 04/06/2005 22:33
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However,
this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino); 
m_logger.info(Using java.library.path:  + 
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path  at 
java.lang.ClassLoader.loadLibrary(Unknown Source)  at 
java.lang.Runtime.loadLibrary0(Unknown Source)  at 
java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-

 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]


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



java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
No dice. It just seems that a call to System.loadLibrary() is not using
the 'java.library.path', otherwise how could it possibly not see the
DLL?

Bernard Durfee


-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 4:43 PM
To: Tomcat Users List
Subject: Re: java.library.path - DLL - Domino


On Apr 6, 2005 3:33 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 I am trying to use the native library for connecting to Domino from a 
 servlet. I was under the impression that the DLL needed to be in the 
 path specified by the java.library.path system property. However, this

 does not seem to work.

Try manually registering the DLL:

regsvr32 D:\Lotus\Domino\nlsxbe.dll

REgards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
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]



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
Yes, I started by making sure that the DLL was in the Windows system
path. I also tried running the DLL as you suggested and it did indeed
find the DLL and complain about the bad entry point. I believe that
Tomcat supplies a special class loader to each web application. I also
believe that the class loader is expected to find libraries and such. So
the question is, where do I put my DLL so that the web application class
loader can find it? Apparently the answer is not java.library.path,
unless there is a bug in Tomcat preventing it from properly parsing the
path.

Bernard Durfee


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:01 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: java.library.path - DLL - Domino


Have you tried putting it into your system path via the PATH environment
variable?  (If you're running Tomcat as a service, you'll need to reboot
to have it take effect I think.)

If it's there, what happens if you run rundll32 nlsxbe
SomeDummyEntryPoint? 
it should find the DLL, but complain about the invalid entry point.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 3:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-
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]


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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
The DLL was found when I put it in the C:\JavaTools\JRE1.5.0\bin which
is in the sun.boot.library.path. Looking through the code in
ClassLoader.java, it should search the paths in java.library.path
after it searches sun.boot.library.path. ClassLoader parses
java.library.path once at the first call to loadLibrary...

usr_paths = initializePath(java.library.path);

...so why is it not finding the DLL on that path? The only possible
reason would have something to do with Tomcat or Java security
interfering, but I can find no evidence of this.

Bernard Durfee


-Original Message-
From: Durfee, Bernard 
Sent: Wednesday, April 06, 2005 4:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino


I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-
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]



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
Problem solved, I restarted Eclipse, waved my hands a couple times and
presto, the DLL is found no problem. The wonders of Java on Windows.
Although it would be great if someone could explain how with a DLL in a
path in the java.library.path could not be found.

Bernard Durfee


-Original Message-
From: Durfee, Bernard 
Sent: Wednesday, April 06, 2005 4:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino


I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-
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]



Re: changing my web app and then deploying takes a lot of time!!!

2005-03-18 Thread Bernard
Hi again,

In my case, the application's WEB-INF/web.xml change does not trigger
a reload although I have
WatchedResourceWEB-INF/web.xml/WatchedResource
in context.xml.

No idea why this does not work.

But a change of the application's context descriptor triggers a
reload, e.g.:

touch yourCatalinaHome/conf/Catalina/yourDotcom/ROOT.xml

No idea why this works.

Have you tried it?

Regards,
Bernard


On Fri, 18 Mar 2005 02:33:46 +, you wrote:

Hi again!

I am currently developoing a web application and whenever I change my 
project (jsp file or java classes) I have to deploy and undeploy the 
application again. Which take a lot of time and it drives me crazy!!!

Do you know how can I foce tomcat to deploy my build directory and
whenever I change something in the build directory it can automatically
detect it and refresh the deployed web application?

Thank you in advance, Kostas


-
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]



Cluster Deployment Question

2005-03-18 Thread Durfee, Bernard
I am ready to set Tomcat up in a clustered environment. So to test I
have installed two instances of Tomcat 5.5.7 on the same XP machine. One
listens on 8080 and the other on 8081. I configured the server.xml as
follows...

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
/

Receiver
className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=auto
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=10
/

Sender
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000
/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false
/
/Cluster

...with tcpListenPort as 4001 in one instance and 4002 in the other.
With watchEnabled false on one but true on the other. The Tomcat
instances start fine and both indicate...

INFO: Replication member added

...when started. This tells me that they see each other. When I try to
deploy a web-app by dropping it in the war-listen directory I get...

SEVERE: Unable to install WAR file
java.io.FileNotFoundException: C:\tmp\war-deploy\clustertest.war (The
system cannot find the path specified)

...okay, so that doesn't work. So I try to deploy through the manager on
8080 using Select WAR file to upload...

The 8080 server says: WARNING: Manager[/clustertest], requesting session
state from
org.apache.catalina.cluster.mcast.McastMember[tcp://123.321.21.25:4002,1
41.254.21.25,4002, alive=227500]. This operation will timeout if no
session state has been received within...

The 8081 server then says: Mar 18, 2005 3:03:35 PM
org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived
WARNING: Context manager doesn't exist:/clustertest

...then the 8080 server waits, then times out and says...

SEVERE: Manager[/clustertest], No session state received, timing out.

...any ideas? Seems like the Tomcats are talking and trying, but can't
send the WAR from one to the other.

Bernard Durfee

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



Re: Reload webapp and context

2005-03-17 Thread Bernard
Hi,

Maybe this can help:

In Tomcat 5.5, the file context.xml in the server's conf directory
allows for watched resources, which when touched, cause an application
reload:

It looks like this:

!-- The contents of this file will be loaded for each web application
--
Context

!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
WatchedResourceMETA-INF/context.xml/WatchedResource

!-- Uncomment this to disable session persistence across Tomcat
restarts --
!--
Manager pathname= /
--

/Context

I am trying to not include the manager application in a production
system because of the additional security risk.

Regards,
Bernard


On Thu, 17 Mar 2005 11:02:57 +0100, you wrote:

Hi,

To reload, start, stop, deploy, undeploy contexts see the Manager :
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html

I don't know your tomcat version, but it works since TC 4.

Cheers.

On Thu, 17 Mar 2005 08:32:54 +0100
Roland Carlsson [EMAIL PROTECTED] wrote:

 Hi!
 
 I have a problem with an webapp with deploying webapps. The problem is the
 contextfile that since my development environment differs a little to my
 deployment environment have to be edited a little after deployment. But how
 do I force tomcat to re-load the context? Right now the only way I know
 about is to reboot tomcat witch leads to a full stop of all my web-apps
 instead of only one witch in turn leads to more complaints from my users.
 
 So, is there a way to force reload of the context when reloading the
 web-app?
 
 Thanks in advance
 Roland Carlsson
 
 
 -
 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]


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



Re: Reload webapp and context

2005-03-17 Thread Bernard
Roland,

You might want to add yourself to the cc list of this bug:

Normal startup causes server error 500
http://issues.apache.org/bugzilla/show_bug.cgi?id=34050

It might be in the area of your interest.

Regards,

Bernard


On Thu, 17 Mar 2005 11:02:57 +0100, you wrote:

Hi,

To reload, start, stop, deploy, undeploy contexts see the Manager :
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html

I don't know your tomcat version, but it works since TC 4.

Cheers.

On Thu, 17 Mar 2005 08:32:54 +0100
Roland Carlsson [EMAIL PROTECTED] wrote:

 Hi!
 
 I have a problem with an webapp with deploying webapps. The problem is the
 contextfile that since my development environment differs a little to my
 deployment environment have to be edited a little after deployment. But how
 do I force tomcat to re-load the context? Right now the only way I know
 about is to reboot tomcat witch leads to a full stop of all my web-apps
 instead of only one witch in turn leads to more complaints from my users.
 
 So, is there a way to force reload of the context when reloading the
 web-app?
 
 Thanks in advance
 Roland Carlsson
 
 
 -
 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]


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



Tomcat startup with jsvc on Linux

2005-03-17 Thread Bernard
Hi,

How can I start Tomcat with jsvc so that the jsvc command returns
control to the command prompt or script exactly after the
Daemon started successfully ?

I would like it to behave in the same way as other services such as
Apache httpd so I can cod success and failure messages in the script.

The supplied script redirects output to a log file and in that way
jsvc returns immediately, long before writing Daemon started
successfully to the log file.

If I do NOT code the 
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
parameters, then the command does not return at all and I have to
press [Enter] or [Ctrl+C] at the console.

It looks as if I am lacking some knowledge here.


Many thanks for your help,

Bernard

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



Serious Tomcat Question

2005-03-17 Thread Bernard
Hi,

I would like to hear opinions from users or developers who have a
little more experience with mod-jk/Tomcat then me.

With multiple virtual hosts, I would like to add and delete virtual
hosts on a routine basis.

This is achieved by re-starting both httpd and tomcat after
re-configuration (I don't know any other way).

Surprisingly, Apache immediately returns a server error 500 response
while Tomcat is re-starting.

IMHO this renders almost useless the init() and destroy() servlet
logic that is used to make user sessions persistent before and after a
server restart.

If, for example, the expected servlet response is JavaScript that is
embedded in a web page, then the whole web application gets broken
without even showing an error by this.

This is so because there is no way that I can catch this error in
JavaScript.

The error 500 response is HTML and and the script engine cannot read
it.

This is just a special case but I think an error 500 response for a
server re-start could be considered a disaster in most other cases as
well.

What can be done about this?

I have filed a bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34050

Do you agree with my view?

How long would a thing like this take to fix?

Many thanks,

Bernard

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



Re: Serious Tomcat Question

2005-03-17 Thread Bernard
Thanks Dan for your reply. Your suggestion is very much appreciated.

Running multiple instances as a workaround for this may be fine for a
handful of virtual hosts, but if you have 50 or 100? How much memory
and CPU or even how many physical machines do I need for that?

I would also find it error-prone having to administer multiple
different ports. Currently adding and deleting a virtual host is a
fully automated process.

I have one jsp page on one host only and for the rest I have only 2
servlets for each host. The servlets generate remote scripts only - no
jsp and no HTML at all. I also don't have any security issues on the
server side because users cannot upload server-parsed documents.
I can't imagine that running so many virtual machines and tomcats will
serve me well.

Currently this is handled beautifully with mod_jserv but feel I have
to switch to tomcat because old mod_jserv doesn't appear to be
supported with Apache httpd version 2.

I just need a very basic robust, cooperative servlet engine for this
and not a space shuttle solution.

Am I perhaps using the wrong servlet engine? I could live without jsp
entirely as long as the old servlet tag as a means of java
server-side include is supported.


Regards,

Bernard

On Thu, 17 Mar 2005 19:15:00 -0800, you wrote:

Not sure what your need or frequency is for routine adding/deleting of a 
virtual host is, but have you considered running multiple instances of 
Tomcat and connecting them each over different jk port?  Perhaps, one 
instance runs your stable virtual hosts - another runs your dynamic set of 
virtual hosts?  I have experienced that Tomcat tends to startup more slowly 
the more virtual hosts you have in the config.  I run with multiple 
instances of Tomcat and when I do need to restart Tomcat, it is relatively 
quick. Doesn't address your session issue though.

btw I run FC2/Apache 2.0/JK2/Tomcat 5.0.28

At 05:33 PM 3/17/2005, Bernard wrote:
Hi,

I would like to hear opinions from users or developers who have a
little more experience with mod-jk/Tomcat then me.

With multiple virtual hosts, I would like to add and delete virtual
hosts on a routine basis.

This is achieved by re-starting both httpd and tomcat after
re-configuration (I don't know any other way).

Surprisingly, Apache immediately returns a server error 500 response
while Tomcat is re-starting.

IMHO this renders almost useless the init() and destroy() servlet
logic that is used to make user sessions persistent before and after a
server restart.

If, for example, the expected servlet response is JavaScript that is
embedded in a web page, then the whole web application gets broken
without even showing an error by this.

This is so because there is no way that I can catch this error in
JavaScript.

The error 500 response is HTML and and the script engine cannot read
it.

This is just a special case but I think an error 500 response for a
server re-start could be considered a disaster in most other cases as
well.

What can be done about this?

I have filed a bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34050

Do you agree with my view?

How long would a thing like this take to fix?

Many thanks,

Bernard

-
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]


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



Re: Reload webapp and context

2005-03-17 Thread Bernard
Hi Torrey,

I can't comment on .war file deployment directly because I am not
using it. But I want to help you anyway, suggesting the approach I
would take.

I would forget manager for a moment. A basic servlet engine (these
things have been around for 10 years or more, remember Sun's Java
Server) are capable to reload servlets if any of the watched resources
change.

Server restart for your purpose is a very sad state of affairs, not
acceptable by today's standards.

So I would try to touch any of the watched resources, e.g. a servlet
class file, a servlet jar file or the web.xml file.

That, from my experience with old mod_jserv, does not immediately
trigger class re-loading. Only the next servlet request provides the
event for that (noticable delay of servlet response).

If that does not work, then you have the most basic problem. If it
works, then you have a feeling for how it should work. Then work your
way up to war file deplayment with manager.
I would think that you don't need manager for most management tasks
e.g. war file deployment because who can assume that you want to
introduce a security risk by providing such powerful access to your
application via http???

Playing around a little is sometimes very useful.

Regards,

Bernard

On Thu, 17 Mar 2005 18:50:40 -0800, you wrote:

I have a similar problem in 5.5 when deploying my .war files. If I go to 
the manager and undeploy a webapp that was deployed from a war it only 
deletes the .war file and not the exploded directory. If I want to 
deploy an update I have to stop tomcat and start it again for it to 
pickup the change in the war file. Even when I have auto-deploy set to 
true.

I have done everything I can think of but it seems that to make an 
update like this in Tomcat you have to stop and restart which is really 
unfortunate.

Bernard wrote:

Roland,

You might want to add yourself to the cc list of this bug:

Normal startup causes server error 500
http://issues.apache.org/bugzilla/show_bug.cgi?id=34050

It might be in the area of your interest.

Regards,

Bernard


On Thu, 17 Mar 2005 11:02:57 +0100, you wrote:

  

Hi,

To reload, start, stop, deploy, undeploy contexts see the Manager :
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html

I don't know your tomcat version, but it works since TC 4.

Cheers.

On Thu, 17 Mar 2005 08:32:54 +0100
Roland Carlsson [EMAIL PROTECTED] wrote:



Hi!

I have a problem with an webapp with deploying webapps. The problem is the
contextfile that since my development environment differs a little to my
deployment environment have to be edited a little after deployment. But how
do I force tomcat to re-load the context? Right now the only way I know
about is to reboot tomcat witch leads to a full stop of all my web-apps
instead of only one witch in turn leads to more complaints from my users.

So, is there a way to force reload of the context when reloading the
web-app?

Thanks in advance
Roland Carlsson


-
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]




-
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]


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



Re: changing my web app and then deploying takes a lot of time!!!

2005-03-17 Thread Bernard
This drives me crazy, too.

I can't comment on .war file deployment directly because I am not
using it. But I want to help you anyway, suggesting the approach I
would take.

I would forget manager for a moment. A basic servlet engine (these
things have been around for 10 years or more, remember Sun's Java
Server) are capable to reload servlets if any of the watched resources
change.

Server restart for your purpose is a very sad state of affairs, not
acceptable by today's standards.

So I would try to touch any of the watched resources, e.g. a servlet
class file, a servlet jar file or the web.xml file.

BTW I just tried this under Windows 98 with the web.xml and my servlet
jar file without success. Same under Linux. Nothing works.

My context.xml is this:

Context

!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
WatchedResourceMETA-INF/context.xml/WatchedResource

!-- Uncomment this to disable session persistence across
Tomcat restarts --
!--
Manager pathname= /
--

/Context


So it should work.

I feel really lost here, too. Does changing your app context.xml work
for you? Sorry that I couldn't help you... :(

Regards,

Bernard


On Fri, 18 Mar 2005 02:33:46 +, you wrote:

Hi again!

I am currently developoing a web application and whenever I change my 
project (jsp file or java classes) I have to deploy and undeploy the 
application again. Which take a lot of time and it drives me crazy!!!

Do you know how can I foce tomcat to deploy my build directory and
whenever I change something in the build directory it can automatically
detect it and refresh the deployed web application?

Thank you in advance, Kostas


-
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]



General Basic Deployment Question

2005-03-17 Thread Bernard
Hi,

I want to deploy a servlet jar file without using the manager
application.

From reading context.xml, I understand that is possible to re-start an
application by modifying the files that are listed in it e.g. 

WatchedResourceWEB-INF/web.xml/WatchedResource

But it doesn't work for me. How can I get it to work?
Has anybody seen this working at all?

With the jserv servlet engine, I only had to touch any file in the
list of the servlet repositories and the servlet zone was re-started.

My requirements are minimal, fully satisfied by the old jserv.


Many thanks,

Bernard

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



Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Bernard
Hi,

My Tomcat with Apache httpd mod_jk and JDK 1.4 on Redhat 9 Linux runs
my applications but it does not shutdown as expected.

My servlets' destroy() methods are not called even though I use jsvc,
the commons daemon, with the script provided in the distribution.

I get the following error:

jsvc.exec error: Service exit with a return value of 143

I would be very grateful for any help. All my mailing list and
newsgroup searches have not yielded any results. I am desparate.


The full log content is below. There are multiple other errors

SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml

also in this log which I was not able to resolve. The file
/usr/local/tomcat5/conf/web.xml exists and is readable and I don't
know why tomcat cannot process it.

Many thanks in advance

Bernard

jsvc.exec debug: user changed to 'tomcat'
jsvc.exec debug: Using default JVM in
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
jsvc.exec debug: Attemtping to load library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
jsvc.exec debug: JVM library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so loaded
jsvc.exec debug: JVM library entry point found (0x40313788)
jsvc.exec debug: +-- DUMPING JAVA VM CREATION ARGUMENTS
-
jsvc.exec debug: | Version:   10002
jsvc.exec debug: | Ignore Unrecognized Arguments: False
jsvc.exec debug: | Extra options: 3
jsvc.exec debug: |   -Dcatalina.home=/usr/local/tomcat5 (0x)
jsvc.exec debug: |   -Djava.io.tmpdir=/var/tmp (0x)
jsvc.exec debug: |
-Djava.class.path=/usr/java/j2re1.4.2/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar:/usr/local/tomcat5/bin/bootstrap.jar
(0x)
jsvc.exec debug:
+---
jsvc.exec debug: Java VM created successfully
jsvc.exec debug: Class org/apache/commons/daemon/support/DaemonLoader
found
jsvc.exec debug: Native methods registered
jsvc.exec debug: Checking daemon
jsvc.exec debug: Daemon checked successfully
Created MBeanServer with ID: eb7859:102aac0ffef:-8000:testhost:1
Mar 16, 2005 10:46:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 16, 2005 10:46:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 32644 ms
jsvc.exec debug: Daemon loaded successfully
Mar 16, 2005 10:46:19 PM org.apache.catalina.core.StandardService
start
INFO: Starting service Catalina
Mar 16, 2005 10:46:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Mar 16, 2005 10:46:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2005 10:46:22 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:46 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:49 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Mar 16, 2005 10:46:51 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:54 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:46:54 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:05 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:47:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:11 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:14 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:16 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2005 10:47:16 PM

Re: Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Bernard
Thanks Wolfgang!

Still problems.

I downloaded from
http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/
the latest file:
commons-daemon-20050316.zip

autoconf worked fine.
./configure worked fine.
make failed with many errors.

How to fix this? Is it worth it? When is the next version coming out?

The errors are below.
I cross-posted to the commons-dev list because I used a nightly build.

Many thanks,

Bernard


# ./configure
*** Current host ***
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Java compilation tools ***
checking for javac... NONE
checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac
checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac)
works... yes
checking for jar... NONE
checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar
*** Host support ***
checking C flags dependant on host system type... ok
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue make
[EMAIL PROTECTED] jsvc-src]# make
make -C native all
make[1]: Entering directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c arguments.c -o arguments.o
arguments.c: In function `arguments':
arguments.c:231: warning: unused variable `temp'
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c debug.c -o debug.o
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
dso-dlfcn.c:51: warning: function declaration isn't a prototype
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:22:17: jni.h: No such file or directory
java.c:35: parse error before '*' token
java.c:35: warning: type defaults to `int' in declaration of `jvm'
java.c:35: warning: data definition has no type or storage class
java.c:36: parse error before '*' token
java.c:36: warning: type defaults to `int' in declaration of `env'
java.c:36: warning: data definition has no type or storage class
java.c:37: parse error before cls
java.c:37: warning: type defaults to `int' in declaration of `cls'
java.c:37: warning: initialization makes integer from pointer without
a cast
java.c:37: warning: data definition has no type or storage class
java.c:42: parse error before '*' token
java.c:42: warning: function declaration isn't a prototype
java.c: In function `shutdown':
java.c:43: `reload' undeclared (first use in this function)
java.c:43: (Each undeclared identifier is reported only once
java.c:43: for each function it appears in.)
java.c: At top level:
java.c:49: warning: function declaration isn't a prototype
java.c: In function `java_init':
java.c:91: warning: implicit declaration of function `jint'
java.c:91: `symb' undeclared (first use in this function)
java.c:91: `JavaVM' undeclared (first use in this function)
java.c:91: parse error before ',' token
java.c:92: `JNINativeMethod' undeclared (first use in this function)
java.c:93: `JavaVMOption' undeclared (first use in this function)
java.c:93: `opt' undeclared (first use in this function)
java.c:95: `JavaVMInitArgs' undeclared (first use in this function)
java.c:95: parse error before arg
java.c:97: parse error before ret
java.c:120: warning: implicit declaration of function `dso_error'
java.c:166: `arg' undeclared (first use in this function)
java.c:166: `JNI_VERSION_1_2' undeclared (first use

Re: Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Bernard
Thanks Wolfgang!
Sorry about my previous email - I found my mistake.

Regards,

Bernard

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



Apache httpd and Tomcat with multiple virtual hosts

2005-02-16 Thread Bernard
Hi,

I am setting up Apache 2 with mod_jk and Tomcat 5.5 with multiple
virtual hosts.

My background is mod_jserv where I had
ApJServMount /myServletAlias /myZone
in the VirtualHost sections.

Now Tomcat, I undestand, has also its own virtual hosts in server.xml,
e.g. Host name=localhost appBase=webapps ...

So with this scheme

Apache has its own virtual hosts.

And Tomcat has its own virtual hosts.

I feel a uncomfortable with the duplication of server names and server
aliases in two different configuration files. Isn't there a better way
to manage multiple virtual hosts?

Bernard



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



Multiple broken Tomcat Linux daemon instances with jsvc?

2005-02-14 Thread Bernard
Hi all,

Summary: Using jsvc may result in multiple running instances of the
Tomcat servlet engine on the same machine with the same pid file. Is
this an intended behavior?


Background, Details:

I intend to use Tomcat 5.5 in a commercial environment with multiple
virtual hosts.

It appears that when adding a virtual host, Tomcat needs to be
re-started to recognize a new host entry in server.xml.

Furthermore, something like jsvc (from the Apache Jakarta Commons
Daemon project) must be used to call the servlet destroy() methods in
order to have a controlled shutdown without losing data e.g. user
sessions.

Tomcat includes shell scripts that execute jsvc. I adapted such a
script and added the parameter --pidfile
as documented in http://jakarta.apache.org/commons/daemon/jsvc.html

jsvc creates a pid file as expected, however it does not delete it
when its process is killed.

jsvc also creates multiple instances even if the pid file exists.

Consequently, multiple instances of Tomcat may exist of which only one
can be deleted via the pid file.

I am trying to understand what I am missing here because I think that
the described scenario is not acceptable in a professional
environment. Or maybe further development is needed.


Many thanks in advance for you comments.

Bernard

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



Apache/2.0.52 (Win32) + mod_jk/1.2.8 + Tomcat 5.5.7

2005-02-07 Thread Bernard
I'm trying to connect Apache 2.0.52 with Tomcat 5.0.28 using the
mod_jk connector, to no avail.

First, before all the details, I could not find the built-in
facilities on either Apache mod_jk and Tomcat connector sides to
debug/verify the ajp13 connection. I am sure I overlooked these and
would be grateful for hints.


So I test with the SnoopServlet example via Tomcat's invoker.

The servlet works fine through Tomcat's own http server on port 8080.

Apache runs fine at the same time on port 80 but the servlet doesn't:

http://localhost/servlet/SnoopServlet

Not Found

The requested URL /servlet/SnoopServlet was not found on this server.
Apache/2.0.52 (Win32) mod_jk/1.2.8 Server at localhost Port 80

mod_jk.log gives some details as below but how can I know whether
mapping succeeded or failed?


[Mon Feb 07 22:23:50 2005] [-8276887:-8386719] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/servlet/SnoopServlet' from 3 maps
[Mon Feb 07 22:23:50 2005] [-8276887:-8386719] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map
context URI '/servlet/'
[Mon Feb 07 22:23:50 2005] [-8276887:-8386719] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map
context URI '/*/zgb/'
[Mon Feb 07 22:23:50 2005] [-8276887:-8386719] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map
context URI '/*/zsp/'


In server.xml I have (nothing changed):

Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /


In workers.properties I have:

ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Any help would be appreciated. I am desparate.

P.S. I don't have a personal firewall that could complicate things.


Thanks,

Bernard


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



RE: Major bug in deployer!!

2005-01-21 Thread Durfee, Bernard
Thanks for the response Doug. Can you describe how to do this remotely?
I tried renaming 'context.xml' to 'servlet#myservlet.xml' in the WAR
file, but as I expected the deployer did not find the file. I'm not sure
where this is described in the documentation, the only significant item
I could find was...

You may define as many Context elements as you wish. Each such Context
MUST have a unique context path, which is defined by the path
attribute.

...and...

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.

...but neither mention the usage of the '#' character or that the 'path'
attribute is ignored and the name of the WAR file is used instead as the
context path. I am pretty sure this is the case because I just changed
my 'context.xml' file to...

...
Context path=/something-other-than-myservlet reloadable=true
...

...and when I deployed the servlet 'myservlet.war' Tomcat simply created
a 'myservlet.xml' file and used 'myservlet' as the context path. To me
it seems like a problem when the documentation discourages the inclusion
of a context in the 'server.xml' file and yet does not respect the
'path' attribute in the context element.

So my question remains... Is there a workaround for this problem that
will allow me to deploy my web application using the deployer when my
web application context path needs to be '/servlet/myservlet'? Yes, the
context NEEDS to be '/servlet/myservlet'!

Bernard Durfee

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Thursday, January 20, 2005 6:17 PM
To: Tomcat Users List
Subject: Re: Major bug in deployer!!


This is the default action of the 5.5 path and is noted on the context 
documentation. The way to fix this is to name the context.xml as 
servlet#myservlet.xml

Doug


- Original Message - 
From: Durfee, Bernard [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 20, 2005 10:48 AM
Subject: Major bug in deployer!!


I am trying to use the Tomcat manager to deploy a web application packed
in a WAR file. In my WAR file I have a directory named 'META-INF' and in
that directory I have a file named 'context.xml'. The 'context.xml' file
looks like...

?xml version=1.0 encoding=UTF-8?
Context path=/servlet/myservlet reloadable=true
...
/Context

...so I am telling Tomcat to send all URLs ending with
'/servlet/myservlet' to the web application being deployed. I do a
browse, point to the WAR file and then press 'Deploy'. Tomcat then
copies the WAR file to '/webapps' and copies the 'context.xml' file to
'conf/.../myservlet.xml'.

So far so good.

Now when I go to the manager listing the web applications I see
'/myservlet' in the 'Applications' column. Uh oh! Seems that the 'path'
attribute in the 'context.xml' file is being completely ignored! So
right now I am forced to put the Context element in the 'server.xml'
file directly, in which Tomcat respects the 'path' attribute.

So my question is... Is there a workaround for this problem that will
allow me to deploy my web application using the deployer when my web
application context path needs to be '/servlet/myservlet'? Yes, the
context NEEDS to be '/servlet/myservlet'!

I have tried this in 5.5.4, 5.5.6 and 5.5.7 with the same results. The
deployer would make life on our network admin MUCH easier because I
would be able to deploy new versions of the web application without
bugging him to install them manually. Thanks in advance!!

Bernard Durfee

-
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]


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



Major bug in deployer!!

2005-01-20 Thread Durfee, Bernard
I am trying to use the Tomcat manager to deploy a web application packed
in a WAR file. In my WAR file I have a directory named 'META-INF' and in
that directory I have a file named 'context.xml'. The 'context.xml' file
looks like...

?xml version=1.0 encoding=UTF-8?
Context path=/servlet/myservlet reloadable=true
...
/Context

...so I am telling Tomcat to send all URLs ending with
'/servlet/myservlet' to the web application being deployed. I do a
browse, point to the WAR file and then press 'Deploy'. Tomcat then
copies the WAR file to '/webapps' and copies the 'context.xml' file to
'conf/.../myservlet.xml'.

So far so good.

Now when I go to the manager listing the web applications I see
'/myservlet' in the 'Applications' column. Uh oh! Seems that the 'path'
attribute in the 'context.xml' file is being completely ignored! So
right now I am forced to put the Context element in the 'server.xml'
file directly, in which Tomcat respects the 'path' attribute.

So my question is... Is there a workaround for this problem that will
allow me to deploy my web application using the deployer when my web
application context path needs to be '/servlet/myservlet'? Yes, the
context NEEDS to be '/servlet/myservlet'!

I have tried this in 5.5.4, 5.5.6 and 5.5.7 with the same results. The
deployer would make life on our network admin MUCH easier because I
would be able to deploy new versions of the web application without
bugging him to install them manually. Thanks in advance!!

Bernard Durfee

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



OracleDataSourceFactory

2005-01-05 Thread Durfee, Bernard
Has anyone been able to get the OracleDataSourceFactory working with
Tomcat 5? It seems that no matter how I set up the Resource element in
my context the factory returns a null data source. Any help would be
appreciated.

Bernard Durfee

-Original Message-
From: Dwayne Ghant [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 05, 2005 5:33 PM
To: Tomcat Users List
Subject: Re: Speed issues with SQL Server 2000 and JTDS


Hey Charles,
I have implement a database driver that I found online
do you think it will help you out???


Charles P. Killmer wrote:

I bought the Core Servlets and Java Server Pages and read it over the 
weekend.  Happy New Year to me.  I did get out to a few parties though.
;)  I am having trouble getting JTDS to return results quickly.
 
Has anyone got any example code for how to properly query a SQL Server 
2000 database?  The code I write needs to work with both SQL Server 
2000 and SQL Server 7.  In creating the connection, I am specifying 
TYPE_SCROLL_INSENSITIVE and TYPE_CONCUR_READ_ONLY.  I tried not 
specifying anything and got errors about not being able to scroll the 
results.  Is the only solution to this, use FORWARD_ONLY and buffer the

contents myself?  I hoping there is a better way.
 
Thank you
Charles Killmer
 

  



-- 

Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

 


-
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]



Problem compiling mod_jk.so

2002-06-22 Thread Bernard Landman


Folks,

I am attempting to create a mod_jk.so connector/redirector to tie
Tomcat 4.0.3 (running correctly using its built-in HTTP server)
to an IBM HTTP Server (IHS) Version 1.3.19. The server documentation
says IHS is based on the Apache server so I assume it is Apache 1.3.19.
To continue, the OS is AIX 4.3.3, perl 5.6 is installed, Java 1.3.0 is
installed, and the workstation is an RS/6000. I downloaded
jakarta-tomcat-connectors-4.0.2-01-src.tar.gz from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/
and unzipped/untarred it and found mod_jk.c under

-01-src/jk/native/apache-1.3/

The related jk_*.c files were found under

-01-src/jk/native/common/

Anyway, the various Jakarta-supplied build scripts were essentially
useless because the path names in my setup (which I inherited) are
different from any assumed to be available in the scripts. Since
mod_jk.so is just a shared object - which I have previous successful
experience building in the AIX environment - I decided to try
formulating a Makefile similar to the previous ones I have
used. I also got guidance from some IHS documentation which talked
about building DSOs for use with IHS. At any rate I think I got most
of the paths right because the compiler (IBM VACPP/xlC 5.0.2) did
not complain about any include files not being found. Of all the
jk_*.c files, together with mod_jk.c, only two files did not compile:
jk_jni_worker.c and jk_md5.c. The relevant error messages for the
former were as follows:

xlc_r -qflag=i:w -qsuppress=1506-342  -DUSE_APACHE_MD5  -I ..
/jk/native/common  -I /vol/Java/aix/J1.3.0/java130/include  -I
/usr/HTTPServer/include -c jk_jni_worker.c
jk_jni_worker.c, line 745.28: 1506-068 (E) Operation between types
long(*)(const struct JNIInvokeInterface_***,const struct
JNINativeInterface_***,void*) and void* is not allowed.
jk_jni_worker.c, line 746.43: 1506-068 (E) Operation between types
long(*)(void*) and void* is not allowed.
jk_jni_worker.c, line 747.34: 1506-068 (E) Operation between types
long(*)(const struct JNIInvokeInterface_***,int,int*) and void* is not
allowed.

and the error messages for the latter were:

xlc_r -qflag=i:w -qsuppress=1506-342  -DUSE_APACHE_MD5  -I ..
/jk/native/common  -I /vol/Java/aix/J1.3.0/java130/include  -I
/usr/HTTPServer/include -c jk_md5.c
jk_md5.c, line 500.36: 1506-280 (E) Function argument assignment between
types const char* and const unsigned char* is not allowed.
jk_md5.c, line 503.49: 1506-280 (E) Function argument assignment between
types const char* and const unsigned char* is not allowed.
jk_md5.c, line 505.17: 1506-280 (E) Function argument assignment between
types unsigned char* and char* is not allowed.
jk_md5.c, line 506.30: 1506-280 (E) Function argument assignment between
types unsigned char* and char* is not allowed.

These errors could be the result of using the wrong file versions,
of missing or wrong macro definitions, etc. Or they could just be
actual code errors. If anyone has thoughts or suggestions that may
help to cure these C-language problems, I would sure like to hear them.

Thanks in advance.

Bernie Landman


Can't run JSP Samples on new Tomcat 4.0.3 install

2002-06-14 Thread Bernard Landman


Folks,

I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3;
there is
an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS,
and is based on the Apache HTTP Server - presumably V1.3). I ran into some
port
conflicts when I tried to start tomcat so I added 1 to all the port
numbers
in the conf file and then tomcat appeared to start and stop correctly.

I next tried to exercise the servlet and JSP samples and I found that all
the
servlet samples worked fine but none of the JSP samples worked at all. Each
JSP
sample produced an output similar to the following:

quoted_output
===

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error



TYPE Exception report

MESSAGE Internal Server Error

DESCRIPTION The server encountered an internal error (Internal Server
Error) that
prevented it from fulfilling this request.

EXCEPTION

javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:247)
  at org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:193)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)


ROOT CAUSE

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at org.apache.jasper.compiler.SunJavaCompiler.
compile(SunJavaCompiler.java(Compiled Code))
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled
Code))
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)

===
/quoted_output

Since I am not yet a member of the illuminati, I cannot qickly determine
what
I failed to install or configure properly - and so any help would be
appreciated.
Incidentally there was a similar problem reported on 06/12 by pasiar at 13:
50:43;
in that case it was on a Linux box and an HTTP 404 was emitted.

Thanks in advance.

Bernie Landman


Re: Can't run JSP Samples on new Tomcat 4.0.3 install

2002-06-14 Thread Bernard Landman


Thanks to rsequeira - I am up and running with both sample
sets now.

It turned out that adding tools.jar (absolute path of course)
to CLASSPATH didn't work but copying it to the
$CATALINA_HOME/common/lib dir did.

I apologize for not using the Find tool to locate previous
references to this problem. Please note however that if one
uses JSP as the search string to Find, there are 721 hits;
if one refines this hit list by using the word samples as
the next search string, there are 3 hits, none of which are
applicable to my problem; finally if one uses tools.jar as
the initial search string there are 43 hits, many of which
discuss my problem. Unfortunately I would have had to known
about tools.jar beforehand in order to select it as a search
string...

Anyway, thanks again. Now onward to tying tomcat to IHS so
it handles the servlet/JSP tasks...

Bernie Landman


Re: Using catalina run fails...

2002-06-13 Thread Bernard Choi

Suspect the problem is with the . in your directory name Tomcat 4.0. It
seems to be interpreted as part of the package. Try naming it something
else.. safest to avoid spaces and .s.

- Original Message -
From: Jakarta Tomcat Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 12:55 AM
Subject: Using catalina run fails...


 Subject: Using catalina run fails...
 From: Kevin O'Connor [EMAIL PROTECTED]
  ===
 Any suggestions on this...

 C:\Apache\Tomcat 4.0\bincatalina run
 Using CATALINA_BASE:   C:\Apache\Tomcat 4.0\
 Using CATALINA_HOME:   C:\Apache\Tomcat 4.0\
 Using CATALINA_TMPDIR: \C:\Apache\Tomcat 4.0\temp
 Using JAVA_HOME:   c:\jdk1.3.1_02
 Exception in thread main java.lang.NoClassDefFoundError: 4/0

 Tomcat starts and runs fine using the startup.bat, but not this way.

 Thanks in advance,
 Kevin




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



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




Re: mod_jk.so + apache

2001-08-15 Thread Bernard T. Higonnet

Yann Sagon wrote:

 Hi,
 
 I'm very new to tomcat + apache.
 
 I've dowmloaded tomcat 3.2.3 and mod_jk.so (eapi)
 I'v installed tomcat as a standalone version without problem.
 
 Now, I want to use it with apache and some virtual hosts.


In case you aren't a French native speaker, write back for a translation!

Moi j'ai installé mod_jk.so (trouvé suite à votre indication) dans un 
serveur Apache 1.3.19 avec deux serveurs virtuels.

J'ai utilisé le mod_jk.conf-auto produit par Tomcat, et après avoir 
pataugé un peu pour donner de bonnes valeurs à Alias pour définir la 
racine de  la zone servlets j'ai pu exécuter les exemples, 
ostensiblement sans problème à travers Apache.

Chose curieuse, mod_jk.conf-auto ne comporte pas de ligne AddModule 
mod_jk.c.

Hope this helps, and thanks for your previous answer.

BTH
-- 
   BT Higonnet
   22 rue Nicolo
75116 Paris




Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread Bernard T. Higonnet

Hello,

I have Apache 1.3.19 plopped down on my system as a result of installing 
Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it 
seems to work to the extent that I can look at the examples at 
localhost:8080/examples.

I have the source code for mod_jk but I can't follow the instructions in 
mod_jk-howto.html because I have no apxs (at least that's what find 
says) since I didn't build Apache myself...


TIA
BT Higonnet




Re: Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread Bernard T. Higonnet

e-value - Maxime Mathon wrote:

 apxs is in you apache/bin directory (ie /usr/local/apache/bin)
 set APACHE_HOME if you want to be clean.


Well, no. That's my problem.

On my machine (a standard Mandrake installation (I did not tell it to 
put apache in some funny place) as far as I am aware) there is no 
/usr/local/apache/bin.

The result of find / -name apxs is nothing.

which apxs says he can't find it.

The only other thing I can add is that, curiously, I do have the man 
page for apxs???

BT Higonnet


 
 Bernard T. Higonnet wrote:
 
 
Hello,

I have Apache 1.3.19 plopped down on my system as a result of installing
Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it
seems to work to the extent that I can look at the examples at
localhost:8080/examples.

I have the source code for mod_jk but I can't follow the instructions in
mod_jk-howto.html because I have no apxs (at least that's what find
says) since I didn't build Apache myself...





RE: Tomcat as standalone container

2001-06-14 Thread Christian Bernard



The 
Apache Web server is not contained in Tomcat. Tomcat is a Web server which 
includes a servlet engine and a JSP engine. To use Tomcat, there is no need to 
install a native Web server such as Apache or IIS or Netscape. Tomcat is able to 
serve static html pages as well.
For 
production needs, Tomcat is also able to run ontop of such native servers 
(either as a in-process or out-of-process container) but this is not necessary. 
This is a choice which depends of your context.
For 
more information, download the last version and have a look to the user's 
guide.

Christian BERNARD
Nagora 
Technologies

  -Original Message-From: Casstevens, Brian 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 14, 2001 2:47 
  PMTo: [EMAIL PROTECTED]Subject: Tomcat as 
  standalone container
  I am trying to use 
  Tomcat as a standalone servlet container.To do this, do I need to have 
  the Apache Web server installed and running, or is this contained in 
  Tomcat?
  
  Thanks,
  
  
  Brian 
  Casstevens
  


Re: Starting Tomcat in Apache

2001-03-18 Thread Peter Bernard West

Kenneth,

I don't know enough about the Win environment.  In the absence of a
return value for the script, everything becomes uncertain.  Under linux,
tomcat is started in the background, and I assume the same thing is
happening under Windows.  The uncertainty is in the timing of the
startup of java+tomcat, versus the completion of the startup.bat script.

Is it possible to put a timeout in a batch file?

Peter


Kenneth Westelinck wrote:
 
 Peter,
 
 I'm not sure about this, since this has never occurred before. I make sure
 Tomcat is running fine on it's own and then bring in the startup script. If
 you have a workaround, please let me know.
 
 thanks,
 
 Kenneth Westelinck
 
 From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To:
 [EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date:
 Fri, 16 Mar 2001 12:17:13 +1000
 
 In Windows, does a batch script exit if any of the commands fails? If it
 does not, the script will hang if startup.bat fails, or fails to produce
 mod_jk.conf-auto.
 
 Peter

-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"



Re: Starting Tomcat in Apache

2001-03-15 Thread Peter Bernard West

In Windows, does a batch script exit if any of the commands fails?  If
it does not, the script will hang if startup.bat fails, or fails to
produce mod_jk.conf-auto.

Peter

Steve Prior wrote:
 
 Wouldn't you need to insert a line in the batch file like:
 if exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" erase
 "%TOMCAT_HOME%\conf\mod_jk.conf-auto"
 
 Before :loop otherwise the batch file as given would only wait the first time
 you
 ever ran it?
 
 Steve Prior
 
 Kenneth Westelinck wrote:
 
  Hi,
 
  I think you'll have to create a general startup script. The script starts
  Tomcat first and, if the auto-conf file is generated, starts Apache
  afterwards. I don't have much experience in scripting in Linux, but this is
  how I do it on Windows NT.
 
  startup.bat:
  @echo off
  set JAVA_HOME=c:\jdk13
  set TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1
  set APACHE_HOME=d:\program files\apache group\apache
 
  call "%TOMCAT_HOME%\bin\startup.bat"
  :loop
  if not exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" goto loop
  start "Apache" "%APACHE_HOME%\Apache.exe"  -d "%APACHE_HOME%" -s -k start
 
  shutdown.bat:
  @echo off
  set JAVA_HOME=c:\jdk13
  set TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1
  set APACHE_HOME=d:\program files\apache group\apache
 
  "%APACHE_HOME%\Apache.exe"  -d "%APACHE_HOME%"  -k shutdown
  "%TOMCAT_HOME%\bin\shutdown.bat"
 
  hope this helps,
 
  Kenneth Westelinck
 
  From: venkatesan [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: tomcat [EMAIL PROTECTED]
  Subject: Starting Tomcat in Apache
  Date: Thu, 15 Mar 2001 18:39:36 +0530
  
  Hi All,
 I have tomcat which i am starting everytime by typing
  /bin/startup.sh  and closing by ..bin/shutdown.sh. manually. Tomcat
  is running with Apache in my Linux system. Can anybody know how Apache
  web server will start tomcat automatically when it starts and shutdown
  while it stops.
  
  Thanks in advance
  cheers
  Venkatesh
  
 
  _
  Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"



3.3m1 - individual parsers for apps

2001-03-14 Thread Peter Bernard West

I have just installed 3.3m1 from Henri Gomez' rpms.  The configuration
has changed significantly.  The top-level readme contains release notes,
whcih include the following:

- Class Loading:

  Tomcat 3.3m1 now uses a new hierarchy of class loaders. It provides
for the
  separation of the classes used by the Tomcat container and the classes
used
  by web applications.  This solves a major problem in Tomcat 3.2 where
all
  web applications had to share Tomcat's XML parser. Now each web
applicaton
  can have its own XML parser, or if desired all web applications can
share
  an XML parser different from the one used by Tomcat. As a side effect
of
  this change, web applications in Tomcat 3.3m1 are not provided an XML
  parser by default.  You must supply one if your web application
requires
  one. For details about where to place jar files, see the README files
in the
  "lib", "lib/common", and "lib/shared" directories of your Tomcat
installation.

I have read the README files mentioned, and I cannot see where to place
files for individual applications (e.g. Cocoon).  Where do such files
go? 

Peter
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"



3.3m1 test.war file

2001-03-14 Thread Peter Bernard West

The release notes for 3.3m1 mention that the test.war file can be
obtained from the "v3.3-m1/apps" directory.  I can't find this directory
or file.  Anyone know where it is?

Peter
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"



IE Caching

2001-02-09 Thread Bernard Durfee

All,
 I've tried every solution that I can think of to prevent IE from
caching content. I've placed every 'no-cache' meta tag and response
element known to man, but IE 5.5 still caches content.
 Does Tomcat 3.2.1 effect the response header when sending the response
back to the browser? I'm using Tomcat as the webserver, I just want to
be sure the problem lies in IE as opposed to Tomcat.

Thanks,
 Bernie Durfee

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




Re: IE Caching

2001-02-09 Thread Bernard Durfee

Craig,
 Everything is coming out of JSPs, so it must be IE then. Setting IE to
'Check Everytime' works a little better, at least it won't show old
content, but it still caches no matter what. This is a security issue
and it's critical for me to find a solution.
 SSL will be used soon, which I've been told helps. It's amazing that
Microsoft would drop the ball like this when such high security risks
are at stake.

Thanks,
 Bernie Durfee

"Craig R. McClanahan" wrote:
 
 Bernard Durfee wrote:
 
  All,
   I've tried every solution that I can think of to prevent IE from
  caching content. I've placed every 'no-cache' meta tag and response
  element known to man, but IE 5.5 still caches content.
   Does Tomcat 3.2.1 effect the response header when sending the response
  back to the browser? I'm using Tomcat as the webserver, I just want to
  be sure the problem lies in IE as opposed to Tomcat.
 
 
 If Tomcat is serving static content, it automatically adds a "Content-Type"
 header (based on the MIME type mappings you have defined) and a "Date"
 header (which the browser can use for subsequent "If-Modified-Since"
 requests (which is what will happen if you configure your browser to "check
 every time").
 
 If Tomcat is serving dynamic content (i.e. the output from a servlet or JSP
 page), it is totally up to your application to set the response headers.
 
 In no case does Tomcat cache the output itself.
 
 
  Thanks,
   Bernie Durfee
 
 
 Craig McClanahan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: IE Caching

2001-02-09 Thread Bernard Durfee

Randy,

In response to your suggestions...

 IE and Tomcat are both running on my machine, there certainly are no
proxies or firewalls involved.

 I know IE is caching because the back button works even after shutting
Tomcat down.

 I've see the 'dynamic' URL solution before. The content on the page is
an aggregation of many different sources, thus appending the current
time to each link is not possible.

Thanks,
 Bernie Durfee

Randy Layman wrote:
 
 I have to say that I've never had this problem with IE 5.0.
 
 Since it seems like this is very constant, here are a few things
 from past discussions that might be pertinant:
 * Is it possible for some form of network cache to exist between you
 and the server?  (Server outside of firewall/proxy and you behind is the
 most likely configuration for this, but your headers should also prevent
 these devices/machines from caching)
 
 * Are you 100% sure that you are seeing caching and not some flaw in
 your JSP?  I only say this because several people in the past had attributed
 caching problems to their own bugs and the discussions went on for several
 days before the root problem came out.
 
 * Try change your URLs a little each time.  Either have a request
 parameter that contains some field that changes each time (probably based
 upon the time the request was made) or do something similar with PathInfo.
 
 Randy
 
 -Original Message-
 From: Bernard Durfee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 09, 2001 4:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: IE Caching
 
 Craig,
  Everything is coming out of JSPs, so it must be IE then. Setting IE to
 'Check Everytime' works a little better, at least it won't show old
 content, but it still caches no matter what. This is a security issue
 and it's critical for me to find a solution.
  SSL will be used soon, which I've been told helps. It's amazing that
 Microsoft would drop the ball like this when such high security risks
 are at stake.
 
 Thanks,
  Bernie Durfee
 
 "Craig R. McClanahan" wrote:
 
  Bernard Durfee wrote:
 
   All,
I've tried every solution that I can think of to prevent IE from
   caching content. I've placed every 'no-cache' meta tag and response
   element known to man, but IE 5.5 still caches content.
Does Tomcat 3.2.1 effect the response header when sending the response
   back to the browser? I'm using Tomcat as the webserver, I just want to
   be sure the problem lies in IE as opposed to Tomcat.
  
 
  If Tomcat is serving static content, it automatically adds a
 "Content-Type"
  header (based on the MIME type mappings you have defined) and a "Date"
  header (which the browser can use for subsequent "If-Modified-Since"
  requests (which is what will happen if you configure your browser to
 "check
  every time").
 
  If Tomcat is serving dynamic content (i.e. the output from a servlet or
 JSP
  page), it is totally up to your application to set the response headers.
 
  In no case does Tomcat cache the output itself.
 
  
   Thanks,
Bernie Durfee
  
 
  Craig McClanahan
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: IE Caching

2001-02-09 Thread Bernard Durfee

Randy,
 Like I said, the links that appear as content in the page that I am
rendering are coming from a variety of sources. It's just impossible to
control what get's appended to them unfortunatly.
 I will look into whether IE is caching because it is on the same
machine. I can't see how that would be a problem, but I'll check it out.

Thanks,
 Bernie Durfee

Randy Layman wrote:
 
 I'm not sure I understand why you can't append an arbritray
 parameter to the end of the URLs.  Just as long as IE has never seen that
 exact URL before it shouldn't be able to think it can display a cached
 version.  Also, as long as your name is unusual, you should not mess up any
 other processing (unexpected parameters would probably be ignored).
 
 Another thought, though, could IE be somehow caching because its is
 on the local machine?  Basiclly IE seeing the URL if from Localhost and
 makes some form of an arbritray decision that it won't load?
 
 Randy
 
 -Original Message-
 From: Bernard Durfee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 09, 2001 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: IE Caching
 
 Randy,
 
 In response to your suggestions...
 
  IE and Tomcat are both running on my machine, there certainly are no
 proxies or firewalls involved.
 
  I know IE is caching because the back button works even after shutting
 Tomcat down.
 
  I've see the 'dynamic' URL solution before. The content on the page is
 an aggregation of many different sources, thus appending the current
 time to each link is not possible.
 
 Thanks,
  Bernie Durfee
 
 Randy Layman wrote:
 
  I have to say that I've never had this problem with IE 5.0.
 
  Since it seems like this is very constant, here are a few things
  from past discussions that might be pertinant:
  * Is it possible for some form of network cache to exist between
 you
  and the server?  (Server outside of firewall/proxy and you behind is the
  most likely configuration for this, but your headers should also prevent
  these devices/machines from caching)
 
  * Are you 100% sure that you are seeing caching and not some flaw
 in
  your JSP?  I only say this because several people in the past had
 attributed
  caching problems to their own bugs and the discussions went on for several
  days before the root problem came out.
 
  * Try change your URLs a little each time.  Either have a request
  parameter that contains some field that changes each time (probably based
  upon the time the request was made) or do something similar with PathInfo.
 
  Randy
 
  -Original Message-
  From: Bernard Durfee [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 09, 2001 4:41 PM
  To: [EMAIL PROTECTED]
  Subject: Re: IE Caching
 
  Craig,
   Everything is coming out of JSPs, so it must be IE then. Setting IE to
  'Check Everytime' works a little better, at least it won't show old
  content, but it still caches no matter what. This is a security issue
  and it's critical for me to find a solution.
   SSL will be used soon, which I've been told helps. It's amazing that
  Microsoft would drop the ball like this when such high security risks
  are at stake.
 
  Thanks,
   Bernie Durfee
 
  "Craig R. McClanahan" wrote:
  
   Bernard Durfee wrote:
  
All,
 I've tried every solution that I can think of to prevent IE from
caching content. I've placed every 'no-cache' meta tag and response
element known to man, but IE 5.5 still caches content.
 Does Tomcat 3.2.1 effect the response header when sending the
 response
back to the browser? I'm using Tomcat as the webserver, I just want to
be sure the problem lies in IE as opposed to Tomcat.
   
  
   If Tomcat is serving static content, it automatically adds a
  "Content-Type"
   header (based on the MIME type mappings you have defined) and a "Date"
   header (which the browser can use for subsequent "If-Modified-Since"
   requests (which is what will happen if you configure your browser to
  "check
   every time").
  
   If Tomcat is serving dynamic content (i.e. the output from a servlet or
  JSP
   page), it is totally up to your application to set the response headers.
  
   In no case does Tomcat cache the output itself.
  
   
Thanks,
 Bernie Durfee
   
  
   Craig McClanahan
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsu