Re: problem working servlets/jsp-examples

2006-03-26 Thread Markus Schönhaber
Bassel Mannaa wrote:
 I start my web browser put the link http://localhost:8080/
 the server is working however when I click on servlet examples I get the
 404 error with description: *The requested resource (/servlets-examples/)
 is not available.
 *this is the same situation I got when I click on jsp examples.
 I have the same problem with my own servlets
 *
 *I'm using Apache Tomcat/5.5.16 on windows*

In the 5.5.16 .exe distribution some .class files are corrupted:
http://issues.apache.org/bugzilla/show_bug.cgi?id=39041

AFAIK the .zip is not affected.

Regards
  mks

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



Re: [5.5] path specified in context.xml not being used

2006-03-26 Thread Nic Daniau
agree with Chuck. It used to work in previous versions of Tomcat (up to
5.5.9 if I'm correct) but it stopped behaving like this in more recent
versions (eg 5.5.16). The doc explicitely says not to use the path attribute
in context files deployed within your war's META-INF or your server's
conf/Cataline/localhost.

On 26/03/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Wang, Hansen [mailto:[EMAIL PROTECTED]
  Subject: RE: [5.5] path specified in context.xml not being used
 
  If you want to use something different than that, you can
  create a context.xml and put in under the virtual host's
  conf direction (e.g. CATALINA_HOME/conf/Catalina/localhost).
  In this context.xml, you can specify the context path and
  docBase.

 This is not documented behavior, and if it works, it's an accident.  The
 name of each .xml file in conf/Catalina/localhost provides the path for
 the associated Context described therein.  Check the docs at:
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
 for actual supported mechanisms.

 - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

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




RE: Recommended Specs for Oracle 10g db server

2006-03-26 Thread Mohan2005

Thank you all kindly for these valuable comments and suggestions. I have
notices somethings we have obvious problems and need to be addressed.

We are running this 10g on a hardware RAID-5 array (SCSI).

The 10g is at the backend of 12 tomcat servers load balanced thru a apache
web server.

Each tomcat has a max. connections of 40 simulataneously.

As you have said we have identified few sql processes overloading the CPU's.

However, we cannot move back to non HT technology as this is not provided at
a HW level to us.

So were either planning to go for a quad (HT) with lots more RAM so to
increase SGA.

Thanks again for your help.
--
View this message in context: 
http://www.nabble.com/Recommended-Specs-for-Oracle-10g-db-server-t1340651.html#a3595161
Sent from the Tomcat - User forum at Nabble.com.


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



Re: hibernate jdbc drivers question

2006-03-26 Thread Martin Gainty

Good Morning Wade-

The driver is the wrong version..kinda like engine light going on your dash
which will raise your blood pressure but will not deliver any useful 
information


to whom do I send this post to?
Thanks,
Martin-

- Original Message - 
From: Wade Chandler [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Martin Gainty 
[EMAIL PROTECTED]

Sent: Saturday, March 25, 2006 9:54 PM
Subject: Re: hibernate jdbc drivers question



--- Martin Gainty [EMAIL PROTECTED] wrote:


I have a quick question with hibernate hsqldb
drivers

 [java] 11:58:23,125  INFO SchemaExport:177 -
exporting generated schema to
database
 [java] 11:58:23,125 ERROR SchemaExport:200 -
schema export unsuccessful
 [java] java.sql.SQLException: No suitable
driver
 [java] at
java.sql.DriverManager.getConnection(Unknown Source)

Which hsqldb (presumably jdbc) drivers does
Hibernate support???

Thanks,
Martin-


Isn't Hibernate a separate project with it's own
mailing list and not even an Apache project?  I just
say that because I don't think every Tomcat user = a
Hibernate user...not even sure it's a 25% margin.  My
guess would be that Hibernate doesn't simply support
JDBC drivers as you see
java.sql.DriverManager.getConnection being the culprit
and the usual factory method to obtain a database
connectionI would not even assume Hibernate has
(this huge list of JDBC drivers) packaged into it's
jar files.  I think you'll have to put the JDBC
drivers jars in your classpath (web application lib
folder).  My assumption would be that is all you have
to do to allow this to happen, and some how tell
Hibernate which driver to load
(Class.forName(yada.yada.Yada).newInstance() or new
yada.yada.Yada()maybe through config files, but I
bet their site and list has more information?  Maybe
you mistakenly sent the email to the wrong list?

Wade

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



not logging ServletContextException anywhere

2006-03-26 Thread Dean Hiller
All I get in the logs is this(which I know is caused by an exception 
in contextInitialized() method of my ServletContextListener)


SEVERE: Error listenerStart
Mar 26, 2006 6:36:25 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/projectservice] startup failed due to previous errors

I have tried with and without my own logging.properties file in 
WEB-INF/classes.  That logging.properties file works for my JSF backing 
beans, but not for this listener.  I can't get a stack trace anywhere 
from tomcat.  How do I debug if can't get any logs working?  or how do I 
get the logs to work.  This is a brand new installation of 5.5.16 and 
all I changed in the config was adding antiJARLocking and 
antiResourceLocking both set to false.  I can send you my code and/or 
war file if you need.


thanks for any info on this,
dean


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



how to install Tomcat 5.5 in Windows 2003?

2006-03-26 Thread Cesar Ribera
Hi All.
  I'm just begining to use Tomcat, installed in WinXP before, with no problems, 
I tried to install it in Windows Server 2003 and I had a popup GPF Windows 
about Memory 'read'  and I couldn't finish the installation.
   
  The Win2K3 server has IIS 6 already installed...
   
  Where can I find detailed documentation regarding the necesary steps to 
Install Tomcat in Windows 2003? The most basic info, the better.
   
  Thanks in advance for your help, best Regards.

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

WebDAV problem with CoyoteConnector? and javax.servlet.HttpServlet

2006-03-26 Thread Samuli Elomaa

Hi,

I have been coding a little webdav servlet based on jakarta tomcat  
webdavservlet.java on Apache Tomcat 4.1.24.
Now my problem is that, when the users webdav client connects to my  
servlet it sends request starting with OPTIONS /webdav/ HTTP/1.1..

For this request it wants an response like:

HTTP/1.1 200 OK
DAV: 1,2
Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH,  
COPY, MOVE, LOCK, UNLOCK

MS-Author-Via: DAV

Now, the problem is that instead of my servlet responding by using  
doOptions, the doOptions is never called because tomcat 
(CoyoteConnector?)

answers before my servlet with answer like:

HTTP/1.1 200 OK
Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS
Content-Type: text/plain
Content-Length: 0
Date: Sun, 26 Mar 2006 17:15:41 GMT
Server: Apache Coyote/1.0

And this causes the webdav client to answer wrong address, etc.  
Strange thing is that doGet and doPut work, but not doOptions,  
doHead, etc.
It seems like CoyoteConnector filters the OPTIONS request out? Does  
anybody know how to get over this?


Thanks for your time :)
- Samuli


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



Re: hibernate jdbc drivers question

2006-03-26 Thread Wade Chandler
Martin,

I'm pretty sure you want this documentation:
http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-hibernatejdbc

and the mailing list and forums can be subscribed to
here:
http://www.hibernate.org/20.html

Hope it helps,

Wade


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



RE: Recommended Specs for Oracle 10g db server

2006-03-26 Thread Wade Chandler
--- Mohan2005 [EMAIL PROTECTED] wrote:

 
 Thank you all kindly for these valuable comments and
 suggestions. I have
 notices somethings we have obvious problems and need
 to be addressed.
 
 We are running this 10g on a hardware RAID-5 array
 (SCSI).
 
 The 10g is at the backend of 12 tomcat servers load
 balanced thru a apache
 web server.
 
 Each tomcat has a max. connections of 40
 simulataneously.
 
 As you have said we have identified few sql
 processes overloading the CPU's.
 
 However, we cannot move back to non HT technology as
 this is not provided at
 a HW level to us.
 
 So were either planning to go for a quad (HT) with
 lots more RAM so to
 increase SGA.
 
 Thanks again for your help.
 --
 View this message in context:

http://www.nabble.com/Recommended-Specs-for-Oracle-10g-db-server-t1340651.html#a3595161
 Sent from the Tomcat - User forum at Nabble.com.

I noticed one comment sent to you was their issue with
bottle necks dealt with locks.  We had a similar issue
with an MS SQL server at my last company.  I started
studying the issue a bit and the problem was we were
doing multiple inserts, updates, deletes in a
transaction using multiple JDBC (executeUpdate)calls. 


What I did to speed this up was to create a SQL Buffer
which would stack multiple insert,update, and delete
statements in a single string which would get sent to
the backend (database) server at once instead of this
happening individually.  The only thing you lose is
the update count returned by JDBC, but what you gain
is a HUGE performance gain by allow you to shorten the
over all transaction and significantly reduce the lock
time. 

We had things which were running 30 minutes or so
before we made the buffer changes.  After adding this
buffering mechanism we added to our DAO (Data Access
Objectsthey were Plain Old Java Objects) the runs
of an individual users updates took between 30-60
seconds (1/2 minute thru 1 minute).  This was their
overall process time to perform all of the updates the
software was making to their data.  

So, our difference was better than we hoped for.  30
minutes vs 30-60 seconds is a performance gain to me
;-).  We had something like 1000-100,000 insert and
updates at a time.  What I did was come up with a
piece that would run multiple large SQL statements. 
Reason: different databases allow different buffer
sizes for the SQL which can be run at one time.  MS
SQL Server I limited the overall calling to around
1000 statements at a time.  You'll have to figure out
what happens with Oracle and how many statements can
be included at one time.  Basically:

buffer.addUpdate(INSERT..yada yada yada);
buffer.addUpdate(INSERT..yada yada yada);
buffer.addUpdate(UPDATE..yada yada yada);
buffer.addUpdate(UPDATE..yada yada yada);
buffer.addUpdate(UPDATE..yada yada yada);
buffer.addUpdate(DELETE..yada yada yada);
...etc

buffer.update();//runs the buffered SQL statements.

...every time I called addUpdate limit number of
times I added the current List to a Vector to hold
statements which would be called when update was
issued.  So...basically...update did:

//you've already gotten a Statement object s
for(int i = 0; i  vector.size();i++){
   List l = (List)vector.get(i);
   StringBuffer sql = new StringBuffer();
   for(int x = 0; x l.size();x++){
  String s = (String)l.get(i);
  sql.append(s);
  sql.append('\n');
   }
   //remeber since you have multipe statements here
   //the last call is the only call the return
   //value mentions...update count of the last
   //statement in the buffer
   s.executeUpdate(sql.toString());
}

Anyways, I've used this scheme with MySQL, MS SQL,
Firebird, Sybase, and HSQLDB, and it worked equally
well with all.  You don't have to use it with
everything, but for very large DB transactions it
seems to be the best way to get around locks and hangs
and other performance issues.  So, maybe you could get
away with locating your main long running transactions
and replacing any code there with this type of scheme
to see how it helps.  Granted this may not even be
your issue as it depends on what your software is
doing, but if you are performing many (hundreds or
thousands or hundreds of thousands) updates in a
single transaction and using multipe executeUpdate
calls from JDBC to do this updates or using EJB or
Hibernate or something else like it then I'm guessing
this is going to be a large part of your problem if
not the problem.  MS SQL server hates long running
transactions (not sure about Oracle, but guessing it's
the same..just the way locks work), and it's PIDs
would show processes locking up and dropping off the
map, never coming back, and leaving locks locked
indefinitely or for hours at a time sometimes.

Basically once you are done implementing this
buffering the only real JDBC code you'll end up with
is getting the Connection, Statement, and calling
update on your buffer which calls these buffered
statements.


reject

2006-03-26 Thread Mikolaj

-- 
Ten list zosta³ przeskanowany przez program ArcaMail
Silnik (2006-01-25/2006-03-25)
This message has been scanned by ArcaMail
Engine (2006-01-25/2006-03-25)
http://www.mks.com.pl


Cluster member discovery

2006-03-26 Thread Parham, Clinton
Hello Tomcat Users!

I'm trying to setup two node clustering (nodeA  nodeB) using the
following: Windows 2003, Tomcat 5.5.16 (apache-tomcat-5.5.16.exe) and
JDK1.5. For some inexplicable reason, I cannot get nodeB to discover
nodeA. nodeA always discovers nodeB successfully.

The two nodes are identical machines - purchased/configured at the same
time. Tomcat and JDK were installed to the same folders and use
identical server.xml files except for bind address values. nodeA and
nodeB have dual network cards - one public, one private. To try and
figure out the problem, I turned logging on following these
instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html and
added org.apache.catalina.cluster set to debug. 

In nodesA's (192.168.3.30) log, I see it find nodeB (192.168.3.31):

INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.3.31:4
001,catalina,192.168.3.31,4001, alive=35000]

Further down in nodeA's log, I also see it send/receive pings from
itself and also receive pings from nodeB.

Now, in nodesB's log, the story is different. I don't see anything about
nodeA. What I do see a lot of is nodeB sending pings but never receiving
any - not even from itself. There are no errors or warnings in either
log file.

To confirm that multicast works between the nodes, I used the Windows
2003 mcast.exe test utility and also ran the JGroups test:
http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html. Both were
successful.

Does anyone know what the problem is? What other information can I
provide to help troubleshoot this?

Thanks,
Clinton

Here's the Cluster section from nodeB's server.xml. It's nothing special
- I just uncommented the cluster tags and added the local network card
address:

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
mcastBindAddr=192.168.3.31
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

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

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

Here's truncated logging from nodeB (192.168.3.31). Notice there is no
mention of nodeA (192.168.3.30) even though it's up and running:

INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster
is about to start
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Cluster is about to start
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.ClusterReceiverBase -
Starting replication listener on address:192.168.3.31
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.ClusterReceiverBase -
Starting replication listener on address:192.168.3.31
 INFO Thread-1 org.apache.catalina.cluster.tcp.ReplicationTransmitter -
Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with
name Catalina:type=ClusterSender,host=localhost
 INFO Thread-1 org.apache.catalina.cluster.tcp.ReplicationTransmitter -
Start ClusterSender at cluster 

Re: mod_jk settings for a large node cluster

2006-03-26 Thread Mark Thomas
Mohan2005 wrote:
 any sugestions on this please ?

http://tomcat.apache.org/faq/tomcatuser.html#why


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



Re: WebDAV problem with CoyoteConnector? and javax.servlet.HttpServlet

2006-03-26 Thread Mark Thomas
Samuli Elomaa wrote:
 Now, the problem is that instead of my servlet responding by using 
 doOptions, the doOptions is never called because tomcat (CoyoteConnector?)
 answers before my servlet with answer like:

It isn't the CoyoteConnector.

It could be a couple of things.
Check that the OPTIONS request is for a URL mapped to your servlet.
Check your doOptions() method has the right signature.

Mark


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



Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Serkan Durusoy [DNA - encoding the future]
Hello All,

I am new to this mailing list, so please bare with (and warn) me if I fall
into a mistake.

Here is our environment followed by my question:

We are currently developing a hosted content management system (CMS)
solution using mainly JSP's and Java Classes. Our production environment
will be:

 Tomcat 5.5.16
 JDK 1.5.06
 Windows 2003 Server Web Edition (for the time being, we are not
considering linux/unix - we just don't have experiences linux/unix system
administrators)
 MySQL 5.0.19 (MyISAM storage engine)

The server machine consists of all Intel branded OEM hardware which sum up
to:
 Intel E7320 Chipset Server Motherboard
 Dual Xeon 3.0 CPU
 4GB (4x1GB) ECC Ram
 Onboard RAID 1 or RAID 0 (we haven't decided between 0 and 1 yet - but we
cannot have 10 or 0+1 or any other RAID configuration)
 2 x 500GB SATAII NCQ Hard Drives

Our system design implements an approach where there is only one application
(hence only one document root / webapp) and only one database.

Yet the number of web sites to be hosted on a single server is assumed to be
around 1000. Hence, there is only one virtual host and there are 999
Alias'es defined beneath that host.

Index.jsp detects the URL entered in the browser (defined on our DNS as
pointed to our tomcat server) and assembles the page using static files
(images, CSS etc) and html content (stored on the database) for that
specific URL. We chose this approach to better utilize resources like
database connection pool etc.

We are assuming 1,000 web sites (aliases) which will supposedly to handle a
total of 150,000 page views daily.

To simplify the suggested architecture, one may think of it as a large
dynamic web site with 100,000 pages (stored on DB) and 150,000 daily page
views. According to surveys and internet usage statistics in our country
(Turkey), our estimate of peak-time page views will be concentrated as
follows:

 18,000 hits/peak-hour

I really do not have any basis (or real-life experience whatsoever) to
predict the number of concurrent requests (peak workload) to the server in
such an example. All I can give you (except if you have any questions that I
might be able to answer) is that we will have a relatively large web site
with a relatively large amount of visitors.

Here is my question:

We have always used tomcat with its out-of-the-box configuration so we do
not have any experience on advanced configuration of Tomcat, nor do we have
any experience in fine-tuning. You can safely assume that our application
and our database are tuned well.

What are performance oriented configuration parameters on Tomcat? Where do
they reside in terms of configuration files, start-up parameters etc? What
would you suggest as values to those parameters in our case?

I have come across with terms like max heap size (I guess this is JVM
related), max-buffer-length, max-threads, max-spare-threads and so on, but I
really do not know what figures to change them to.

I really do not have the luxury (or means) to play around with parameters to
test and see what we will get, therefore I will really appreciate the help.
All I need is someone suggest me an above-average (in terms of performance)
Tomcat (and possibly JVM) configuration so that I will make sure our server
won't be down on its first launch day.

Kind regards,

Serkan Durusoy
DNA Internet Cozumleri San. ve Tic. A.S.
[A] Gardenya Plaza 2 Kat:6 Atasehir - Istanbul - Turkey
[P] +90 216 456 4 156
[F] +90 216 456 4 157
[U] www.dna-tr.com
[E] [EMAIL PROTECTED]





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



Re: Cluster member discovery

2006-03-26 Thread Filip Hanik - Dev Lists

did you try to remove the bind address?
Filip


Parham, Clinton wrote:

Hello Tomcat Users!

I'm trying to setup two node clustering (nodeA  nodeB) using the
following: Windows 2003, Tomcat 5.5.16 (apache-tomcat-5.5.16.exe) and
JDK1.5. For some inexplicable reason, I cannot get nodeB to discover
nodeA. nodeA always discovers nodeB successfully.

The two nodes are identical machines - purchased/configured at the same
time. Tomcat and JDK were installed to the same folders and use
identical server.xml files except for bind address values. nodeA and
nodeB have dual network cards - one public, one private. To try and
figure out the problem, I turned logging on following these
instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html and
added org.apache.catalina.cluster set to debug. 


In nodesA's (192.168.3.30) log, I see it find nodeB (192.168.3.31):

INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.3.31:4
001,catalina,192.168.3.31,4001, alive=35000]

Further down in nodeA's log, I also see it send/receive pings from
itself and also receive pings from nodeB.

Now, in nodesB's log, the story is different. I don't see anything about
nodeA. What I do see a lot of is nodeB sending pings but never receiving
any - not even from itself. There are no errors or warnings in either
log file.

To confirm that multicast works between the nodes, I used the Windows
2003 mcast.exe test utility and also ran the JGroups test:
http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html. Both were
successful.

Does anyone know what the problem is? What other information can I
provide to help troubleshoot this?

Thanks,
Clinton

Here's the Cluster section from nodeB's server.xml. It's nothing special
- I just uncommented the cluster tags and added the local network card
address:

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

mcastBindAddr=192.168.3.31
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver 
 
className=org.apache.catalina.cluster.tcp.ReplicationListener

tcpListenAddress=192.168.3.31
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

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

Here's truncated logging from nodeB (192.168.3.31). Notice there is no
mention of nodeA (192.168.3.30) even though it's up and running:

INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster
is about to start
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Cluster is about to start
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.ClusterReceiverBase -
Starting replication listener on address:192.168.3.31
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.ClusterReceiverBase -
Starting replication listener on address:192.168.3.31
 INFO Thread-1 org.apache.catalina.cluster.tcp.ReplicationTransmitter -
Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with
name Catalina:type=ClusterSender,host=localhost
 INFO Thread-1 

Re: Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Peter Lin
supporting 150,000 page views a day isn't a problem. I know first hand it
can handle that kind of load. the bigger question is whether or not the
design of the application will scale well for 1000 virtual hosts.

What I've done in the past is to get some sample traffic and then start
testing a couple of machines with increasing load. That's really the only
way to know how Tomcat should be tuned.  For example, when I worked for
Superpages.com I spent about 3 months testing and tuning.

In my case, I had existing http logs, so I could take a sample of 1million
requests and use it to simulate real traffic. I then compared the results
against existing performance numbers. At the end, I could compare production
performance vs a series of results with different heap settings.

peter

On 3/26/06, Serkan Durusoy [DNA - encoding the future] 
[EMAIL PROTECTED] wrote:

 Hello All,

 I am new to this mailing list, so please bare with (and warn) me if I fall
 into a mistake.

 Here is our environment followed by my question:

 We are currently developing a hosted content management system (CMS)
 solution using mainly JSP's and Java Classes. Our production environment
 will be:

  Tomcat 5.5.16
  JDK 1.5.06
  Windows 2003 Server Web Edition (for the time being, we are not
 considering linux/unix - we just don't have experiences linux/unix system
 administrators)
  MySQL 5.0.19 (MyISAM storage engine)

 The server machine consists of all Intel branded OEM hardware which sum up
 to:
  Intel E7320 Chipset Server Motherboard
  Dual Xeon 3.0 CPU
  4GB (4x1GB) ECC Ram
  Onboard RAID 1 or RAID 0 (we haven't decided between 0 and 1 yet - but
 we
 cannot have 10 or 0+1 or any other RAID configuration)
  2 x 500GB SATAII NCQ Hard Drives

 Our system design implements an approach where there is only one
 application
 (hence only one document root / webapp) and only one database.

 Yet the number of web sites to be hosted on a single server is assumed to
 be
 around 1000. Hence, there is only one virtual host and there are 999
 Alias'es defined beneath that host.

 Index.jsp detects the URL entered in the browser (defined on our DNS as
 pointed to our tomcat server) and assembles the page using static files
 (images, CSS etc) and html content (stored on the database) for that
 specific URL. We chose this approach to better utilize resources like
 database connection pool etc.

 We are assuming 1,000 web sites (aliases) which will supposedly to handle
 a
 total of 150,000 page views daily.

 To simplify the suggested architecture, one may think of it as a large
 dynamic web site with 100,000 pages (stored on DB) and 150,000 daily page
 views. According to surveys and internet usage statistics in our country
 (Turkey), our estimate of peak-time page views will be concentrated as
 follows:

  18,000 hits/peak-hour

 I really do not have any basis (or real-life experience whatsoever) to
 predict the number of concurrent requests (peak workload) to the server in
 such an example. All I can give you (except if you have any questions that
 I
 might be able to answer) is that we will have a relatively large web site
 with a relatively large amount of visitors.

 Here is my question:

 We have always used tomcat with its out-of-the-box configuration so we do
 not have any experience on advanced configuration of Tomcat, nor do we
 have
 any experience in fine-tuning. You can safely assume that our application
 and our database are tuned well.

 What are performance oriented configuration parameters on Tomcat? Where do
 they reside in terms of configuration files, start-up parameters etc? What
 would you suggest as values to those parameters in our case?

 I have come across with terms like max heap size (I guess this is JVM
 related), max-buffer-length, max-threads, max-spare-threads and so on, but
 I
 really do not know what figures to change them to.

 I really do not have the luxury (or means) to play around with parameters
 to
 test and see what we will get, therefore I will really appreciate the
 help.
 All I need is someone suggest me an above-average (in terms of
 performance)
 Tomcat (and possibly JVM) configuration so that I will make sure our
 server
 won't be down on its first launch day.

 Kind regards,

 Serkan Durusoy
 DNA Internet Cozumleri San. ve Tic. A.S.
 [A] Gardenya Plaza 2 Kat:6 Atasehir - Istanbul - Turkey
 [P] +90 216 456 4 156
 [F] +90 216 456 4 157
 [U] www.dna-tr.com
 [E] [EMAIL PROTECTED]





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




RE: Run Tomcat in W2k3 as service

2006-03-26 Thread Ryan Daly
On Fri, 2006-03-24 at 09:42 -0500, Ryan Daly wrote:
 On Fri, 2006-03-24 at 08:27 -0600, Benjamin Armintor wrote:
  I'm not sure about Windows services specifically, but you can start the
  JVM with a security manager generically by using the
  -Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE
  URL java startup options.  You can append these to  $JAVA_OPTS on Unix
  systems to get a security manager (it's effectively what the catalina
  startup script does), so I'd try using those as the --JvmOptions values.

This does appear to function properly.  Thanks for the help.
--

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



Re: Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Leon Rosenberg
Hello Serkan,

18.000 hits / per hour sounds rather boring, but:
18.000 hits per hour = 5 hits per second which means, that assuming no
requests have to wait for processing you must be able to finish each
request in 200 ms. That's not a tomcat issue, 100 and more requests
per second can be server easily, as long as your application is able
to do it. Your weakpoint could be the database on the same server as
the tomcat, if you need more than one second for 5 hits moving the
database onto separate machine could be the next logical step, but as
said before, it's an if.

Actually you should take jmeter or something similar and simulate the
load you expect as Peter said in his post. Normally the out-of-the-box
tomcat should be sufficent, but if your really have 100.000 pages
(resulting in 100.000 classes!) you should give the tomcat more perm
gen space.

You surely already found the link to the proper FAQ, but just in case:
http://tomcat.apache.org/faq/memory.html

regards
Leon



On 3/26/06, Serkan Durusoy [DNA - encoding the future]
[EMAIL PROTECTED] wrote:
 Hello All,

 I am new to this mailing list, so please bare with (and warn) me if I fall
 into a mistake.

 Here is our environment followed by my question:

 We are currently developing a hosted content management system (CMS)
 solution using mainly JSP's and Java Classes. Our production environment
 will be:

  Tomcat 5.5.16
  JDK 1.5.06
  Windows 2003 Server Web Edition (for the time being, we are not
 considering linux/unix - we just don't have experiences linux/unix system
 administrators)
  MySQL 5.0.19 (MyISAM storage engine)

 The server machine consists of all Intel branded OEM hardware which sum up
 to:
  Intel E7320 Chipset Server Motherboard
  Dual Xeon 3.0 CPU
  4GB (4x1GB) ECC Ram
  Onboard RAID 1 or RAID 0 (we haven't decided between 0 and 1 yet - but we
 cannot have 10 or 0+1 or any other RAID configuration)
  2 x 500GB SATAII NCQ Hard Drives

 Our system design implements an approach where there is only one application
 (hence only one document root / webapp) and only one database.

 Yet the number of web sites to be hosted on a single server is assumed to be
 around 1000. Hence, there is only one virtual host and there are 999
 Alias'es defined beneath that host.

 Index.jsp detects the URL entered in the browser (defined on our DNS as
 pointed to our tomcat server) and assembles the page using static files
 (images, CSS etc) and html content (stored on the database) for that
 specific URL. We chose this approach to better utilize resources like
 database connection pool etc.

 We are assuming 1,000 web sites (aliases) which will supposedly to handle a
 total of 150,000 page views daily.

 To simplify the suggested architecture, one may think of it as a large
 dynamic web site with 100,000 pages (stored on DB) and 150,000 daily page
 views. According to surveys and internet usage statistics in our country
 (Turkey), our estimate of peak-time page views will be concentrated as
 follows:

  18,000 hits/peak-hour

 I really do not have any basis (or real-life experience whatsoever) to
 predict the number of concurrent requests (peak workload) to the server in
 such an example. All I can give you (except if you have any questions that I
 might be able to answer) is that we will have a relatively large web site
 with a relatively large amount of visitors.

 Here is my question:

 We have always used tomcat with its out-of-the-box configuration so we do
 not have any experience on advanced configuration of Tomcat, nor do we have
 any experience in fine-tuning. You can safely assume that our application
 and our database are tuned well.

 What are performance oriented configuration parameters on Tomcat? Where do
 they reside in terms of configuration files, start-up parameters etc? What
 would you suggest as values to those parameters in our case?

 I have come across with terms like max heap size (I guess this is JVM
 related), max-buffer-length, max-threads, max-spare-threads and so on, but I
 really do not know what figures to change them to.

 I really do not have the luxury (or means) to play around with parameters to
 test and see what we will get, therefore I will really appreciate the help.
 All I need is someone suggest me an above-average (in terms of performance)
 Tomcat (and possibly JVM) configuration so that I will make sure our server
 won't be down on its first launch day.

 Kind regards,

 Serkan Durusoy
 DNA Internet Cozumleri San. ve Tic. A.S.
 [A] Gardenya Plaza 2 Kat:6 Atasehir - Istanbul - Turkey
 [P] +90 216 456 4 156
 [F] +90 216 456 4 157
 [U] www.dna-tr.com
 [E] [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: how to get selected value from drop down box which get from database

2006-03-26 Thread Xin Hua Sun
Hi Everyone,
 
 I have a problem with get selected value from drop down box which the data get 
from database.
 
 I use the following code to succefully get the data from database and dsiplay 
it in the drop down box. But I don't know how to get the selected value from 
drop down box and send it to servlet to process. The code is as follows;
 
 select name=anyname
 % for(int i=0; idbdata.length; i++) { %
 option%=dbdata[i] %/option
 % } %
 
 Thanks for your help!
 
 Xin
 
 
 

-
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! 
Messenger with Voice.

unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Bassel Mannaa
greetings,

I've been trying to deploy a servlet. It worked out when I enabled the
invoker servlet and called my Hello servlet like this 
http://localhost:8080/myapp/servlet/Hello;.
but when I redisabled the invoker servlet and inserted the web.xml file in
WEB-INF and tried to call the servlet i got the 404 error.
thats what i included in the web.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameHello/servlet-name
servlet-classHello/servlet-class
servrlet-mapping
servlet-nameHello/servlet-name
url-pattern/Hello/url-pattern
/servrlet-mapping
/servlet
/web-app
---
How can i deploy a servlet without enabling the invoker?
i'm using tomcat 5.5.16, the zip distribution
regards,
Bassel Mannaa


RE: how to get selected value from drop down box which get from database

2006-03-26 Thread Tim Lucia
This is not a tomcat question.  It is an HTML question.  The answer is that
the form will post a variable with the name of the input control = value of
the input control, or, anyname=x where x is the selected value of anyname.

i.e.

form action=#
select name=anyname
option1/option
option2/option
/select
input type=submit
/form

Will submit ...#?anyname=1 if loaded and submitted without changing the
drop-down value.

Tim


-Original Message-
From: Xin Hua Sun [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 26, 2006 6:39 PM
To: users@tomcat.apache.org
Subject: Re: how to get selected value from drop down box which get from
database

Hi Everyone,
 
 I have a problem with get selected value from drop down box which the data
get from database.
 
 I use the following code to succefully get the data from database and
dsiplay it in the drop down box. But I don't know how to get the selected
value from drop down box and send it to servlet to process. The code is as
follows;
 
 select name=anyname
 % for(int i=0; idbdata.length; i++) { %
 option%=dbdata[i] %/option
 % } %
 
 Thanks for your help!
 
 Xin
 
 
 

-
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo!
Messenger with Voice.


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



RE: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Tim Lucia
How did you invoke it with the invoker servlet disabled?  According to your
web.xml, it would be available at:

http://localhost:8080/myapp/Hello


Tim


-Original Message-
From: Bassel Mannaa [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 26, 2006 6:59 PM
To: users@tomcat.apache.org
Subject: unable to deploy a servlet while disabling the invoker

greetings,

I've been trying to deploy a servlet. It worked out when I enabled the
invoker servlet and called my Hello servlet like this 
http://localhost:8080/myapp/servlet/Hello;.
but when I redisabled the invoker servlet and inserted the web.xml file in
WEB-INF and tried to call the servlet i got the 404 error.
thats what i included in the web.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameHello/servlet-name
servlet-classHello/servlet-class
servrlet-mapping
servlet-nameHello/servlet-name
url-pattern/Hello/url-pattern
/servrlet-mapping
/servlet
/web-app
---
How can i deploy a servlet without enabling the invoker?
i'm using tomcat 5.5.16, the zip distribution
regards,
Bassel Mannaa


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



Re: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Markus Schönhaber
Bassel Mannaa wrote:
 I've been trying to deploy a servlet. It worked out when I enabled the
 invoker servlet and called my Hello servlet like this 
 http://localhost:8080/myapp/servlet/Hello;.
 but when I redisabled the invoker servlet and inserted the web.xml file in
 WEB-INF and tried to call the servlet i got the 404 error.
 thats what i included in the web.xml file.
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 servlet
 servlet-nameHello/servlet-name
 servlet-classHello/servlet-class
 servrlet-mapping
 servlet-nameHello/servlet-name
 url-pattern/Hello/url-pattern
 /servrlet-mapping
 /servlet
 /web-app
 ---
 How can i deploy a servlet without enabling the invoker?

By simply deploying it. Your problem is not the deployment but the URL you use 
to access your servlet. Try
http://localhost:8080/myapp/Hello
At least this is what you configured in the above web.xml.

Regards
  mks

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



Re: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Wendy Smoak
On 3/26/06, Bassel Mannaa [EMAIL PROTECTED] wrote:

 servrlet-mapping
...
 /servrlet-mapping

In addition to making sure you're using the right URL, check your
spelling in web.xml.

--
Wendy

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



Re: Cluster member discovery

2006-03-26 Thread Martin Gainty

Bill-

Make sure your tomcat install is operational
check whatever the default connector (catalina) port is configured to via
netstat -a | grep CatalinaPort

if it isnt there then that Tomcat server never came up and you should check 
the logs in %CATALINA_HOME%\logs for any exceptions or errors


Martin-
- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 26, 2006 3:06 PM
Subject: Re: Cluster member discovery



did you try to remove the bind address?
Filip


Parham, Clinton wrote:

Hello Tomcat Users!

I'm trying to setup two node clustering (nodeA  nodeB) using the
following: Windows 2003, Tomcat 5.5.16 (apache-tomcat-5.5.16.exe) and
JDK1.5. For some inexplicable reason, I cannot get nodeB to discover
nodeA. nodeA always discovers nodeB successfully.

The two nodes are identical machines - purchased/configured at the same
time. Tomcat and JDK were installed to the same folders and use
identical server.xml files except for bind address values. nodeA and
nodeB have dual network cards - one public, one private. To try and
figure out the problem, I turned logging on following these
instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html and
added org.apache.catalina.cluster set to debug.
In nodesA's (192.168.3.30) log, I see it find nodeB (192.168.3.31):

INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.3.31:4
001,catalina,192.168.3.31,4001, alive=35000]

Further down in nodeA's log, I also see it send/receive pings from
itself and also receive pings from nodeB.

Now, in nodesB's log, the story is different. I don't see anything about
nodeA. What I do see a lot of is nodeB sending pings but never receiving
any - not even from itself. There are no errors or warnings in either
log file.

To confirm that multicast works between the nodes, I used the Windows
2003 mcast.exe test utility and also ran the JGroups test:
http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html. Both were
successful.

Does anyone know what the problem is? What other information can I
provide to help troubleshoot this?

Thanks,
Clinton

Here's the Cluster section from nodeB's server.xml. It's nothing special
- I just uncommented the cluster tags and added the local network card
address:

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

mcastBindAddr=192.168.3.31
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver 
className=org.apache.catalina.cluster.tcp.ReplicationListener

tcpListenAddress=192.168.3.31
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

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

Here's truncated logging from nodeB (192.168.3.31). Notice there is no
mention of nodeA (192.168.3.30) even though it's up and running:

INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster
is about to start
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Cluster is about to start
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
with class=org.apache.catalina.cluster.tcp.ReplicationValve
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
Default ClusterListener at cluster localhost
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
add ClusterListener
[EMAIL PROTECTED] to
[EMAIL PROTECTED]
 DEBUG Thread-1 

Re: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Martin Gainty

Good call wendy..

personally..I steer clear of things such as invoker which supposedly 
auto-configure web.xml for you

Much better to identify jsp,servlet, startup params in web.xml beforehand
That way you always know what tomcat is supposed to do-
Martin-
- Original Message - 
From: Wendy Smoak [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 26, 2006 7:13 PM
Subject: Re: unable to deploy a servlet while disabling the invoker


On 3/26/06, Bassel Mannaa [EMAIL PROTECTED] wrote:


servrlet-mapping

..

/servrlet-mapping


In addition to making sure you're using the right URL, check your
spelling in web.xml.

--
Wendy

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



PHP Servlet Fails in Tomcat 5.5.15

2006-03-26 Thread Gregg Leichtman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have tried without success for several days to get the PHP servlet
running under Tomcat. My environment is as follows:

Suse Linux 9.3
[EMAIL PROTECTED]:~/tomcat/apache-tomcat-5.5.15/logs uname -a
Linux aragorn 2.6.11.4-21.10-default #1 Tue Nov 29 14:32:49 UTC 2005
i686 i686 i386 GNU/Linux

[EMAIL PROTECTED]:~/tomcat/apache-tomcat-5.5.15/logs java -version
java version 1.5.0_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

Tomcat 5.5.15 installed under my home directory to avoid any
permissions problems.

[EMAIL PROTECTED]:~/tomcat/apache-tomcat-5.5.15/common/lib php -i
phpinfo()
PHP Version = 4.4.2

System = Linux aragorn 2.6.11.4-21.10-default #1 Tue Nov 29 14:32:49
UTC 2005 i686
Build Date = Mar 25 2006 12:09:10
Configure Command =  './configure' '--prefix=/usr/local'
'--with-java=/usr/local/java/jdk1.5.0_04/'
'--with-servlet=/usr/local/java/apache-tomcat-5.5.15/common'
'--datadir=/usr/local/share/php' '--mandir=/usr/local/man'
'--bindir=/usr/local/bin' '--libdir=/usr/local/share'
'--includedir=/usr/local/include' '--sysconfdir=/etc'
'--with-_lib=lib' '--with-config-file-path=/etc'
'--with-exec-dir=/usr/local/lib/php/bin' '--disable-debug'
'--enable-inline-optimization' '--enable-memory-limit'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
'--disable-ctype' '--disable-session' '--without-mysql'
'--disable-cli' '--without-pear' '--with-openssl'
'--enable-force-cgi-redirect' '--enable-discard-path' '--enable-cli'
'--with-pear' 'i586-suse-linux'
Server API = Command Line Interface
Virtual Directory Support = enabled
Configuration File (php.ini) Path = /etc
PHP API = 20020918
PHP Extension = 20020429
Zend Extension = 20050606
Debug Build = no
Zend Memory Manager = enabled
Thread Safety = enabled
Registered PHP Streams = php, http, ftp, https, ftps


This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

... I can provide the rest of the PHP config info, if requested.

I configured and built the Tomcat native library used by the Apache
Portable Runtime (APR) on this system during this time period using
openssl-0.9.7i and apr-1.2.2 and copied all of the newly built
libraries and links from the .libs directory to tomcat home/common/lib

I altered the enum variables in the servlet.java class from enum to
xenum to avoid the keyword clash that occurs in using JDK 1.5. I also
altered the PHP configure file to use servlet-api.jar instead of
servlet.jar, since JDK 1.5 is being used. Both of these alterations
are also suggested at: http://wiki.apache.org/tomcat/UsingPhp

I configured and built PHP as shown above in the configure command. I
reviewed the output from the compilation of the reflect.java and
servlet.java classes and saw no errors. I copied the newly built
phpsrvlt.jar and libphp4.so files to tomcat home/common/lib

The following complaint about the PERL Compatible Regex  did show
during configure, but I don't think it is related to my current problem.
...
checking for Java support... yes
checking Java Jar location... /usr/local/java/jdk1.5.0_04//bin/jar cf
checking Java C location... /usr/local/java/jdk1.5.0_04//bin/javac
checking Checking for libjava... /usr/local/java/jdk1.5.0_04//jre/lib/i386
sed: can't read /home/gsl/downloads/php-4.4.2/ext/pcre/Makefile.frag:
No such file or directory
checking for LDAP support... no
...

The Makefile.frag file is indeed missing as sed states.

I placed the servlet config as described in the wiki above into
tomcat home/conf/web.xml by copying it from the web.xml file located
in the PHP source distribution at PHP source root
directory/sapi/servlet/web.xml.

I also altered the tomcat home/conf/server.xml file as follows:

!-- Define a non-SSL HTTP/1.1 Connector on port 8080

 Added protocol attribute. gsl 22Mar2006.
--
Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true
   protocol=org.apache.coyote.http11.Http11AprProtocol /

to allow access the APR protocol.

I placed the file test.php in directory tomcat home/webapps whose
contents is:
[EMAIL PROTECTED]:~/tomcat/apache-tomcat-5.5.15/webapps cat test.php
?php phpinfo(); ?

I added the following to catalina.sh (could have done this with an env
export as well):
CATALINA_OPTS=$CATALINA_OPTS
- -Djava.library.path=/home/gsl/tomcat/apache-tomcat-5.5.15/common/lib

I then started up Tomcat using ./startup.sh under the bin directory
and confirmed that Tomcat was running correctly by accessing
http://localhost:8080 at which point I saw the familiar Tomcat page.

I then attempted to go to the page http://localhost:8080/test.php at
which point I received:
*
description* _The 

Re: Disabling put and delete http methods

2006-03-26 Thread Bill Barker
Urm, what part of 'disabled' don't you understand ;-).

Tomcat has refused to pass on the request to the Servlet, since nobody is 
authorized to perform this Method on it (hence the 403 - Forbidden). 
Sending 404 is just wrong, since the resource does exist.  Sending 405 would 
mean that Tomcat is incapable of processing a DELETE, rather than simply 
that you aren't allowed to do it.


Stephen More [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
My jakarta-tomcat-5.0.28/conf/web.xml now contains:

 security-constraint
 web-resource-collection
  web-resource-nameDisallowed Location/web-resource-name
  url-pattern/*/url-pattern
http-methodPUT/http-method
http-methodDELETE/http-method
 /web-resource-collection
 auth-constraint /
 /security-constraint

But when I try to:
DELETE /tomcat-docs/changelog.html

I get 403 Access Denied instead of a 404 or 405.

It does not appear that the DELETE option has been disabled.
What else do I need to configure ?


-Thanks
Steve More


On 3/25/06, Bill Barker [EMAIL PROTECTED] wrote:
 Well, your security-constraint is pretty much of a cluster-f*ck. 
 Firstly,
 you need url-pattern/*/url-pattern.  Then you need auth-constraint /
 (which is deny-from-all, what you have below is
 allow-from-authenticated-users).

 I'm guessing that there is more that you're not telling us.  While I'm way
 too lazy to test this myself, I'm having trouble believing that your
 particular mis-configuration would result in the error you are seeing.

 Stephen More [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 I am having problems trying to disable put and delete.
 I have searched the Internet and they all say the same thing.

 Add the following:

 security-constraint
 web-resource-collection
 web-resource-nameDisallowed Location/web-resource-name
 url-pattern*/url-pattern
 http-methodDELETE/http-method
 http-methodPUT/http-method
 /web-resource-collection
 auth-constraint
 role-name*/role-name
 /auth-constraint
  /security-constraint

 So I added that to jakarta-tomcat-5.0.28/conf/web.xml and restart.
 While this stops all deletes and puts it is also stopping all gets and
 posts too !

 What am I doing wrong ?  I placed it near the end of the file after
 the mime-mappings.

 -Thanks
 Steve More




 -
 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: Cluster member discovery

2006-03-26 Thread Parham, Clinton
Yes, I tried removing the bind address. The behavior is the same. Any
other suggestions?

Thanks.

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 26, 2006 3:06 PM
To: Tomcat Users List
Subject: Re: Cluster member discovery

did you try to remove the bind address?
Filip


Parham, Clinton wrote:
 Hello Tomcat Users!

 I'm trying to setup two node clustering (nodeA  nodeB) using the
 following: Windows 2003, Tomcat 5.5.16 (apache-tomcat-5.5.16.exe) and
 JDK1.5. For some inexplicable reason, I cannot get nodeB to discover
 nodeA. nodeA always discovers nodeB successfully.

 The two nodes are identical machines - purchased/configured at the
same
 time. Tomcat and JDK were installed to the same folders and use
 identical server.xml files except for bind address values. nodeA and
 nodeB have dual network cards - one public, one private. To try and
 figure out the problem, I turned logging on following these
 instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html and
 added org.apache.catalina.cluster set to debug. 

 In nodesA's (192.168.3.30) log, I see it find nodeB (192.168.3.31):

 INFO Cluster-MembershipReceiver
 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member

added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.3.31:4
 001,catalina,192.168.3.31,4001, alive=35000]

 Further down in nodeA's log, I also see it send/receive pings from
 itself and also receive pings from nodeB.

 Now, in nodesB's log, the story is different. I don't see anything
about
 nodeA. What I do see a lot of is nodeB sending pings but never
receiving
 any - not even from itself. There are no errors or warnings in either
 log file.

 To confirm that multicast works between the nodes, I used the Windows
 2003 mcast.exe test utility and also ran the JGroups test:
 http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html. Both
were
 successful.

 Does anyone know what the problem is? What other information can I
 provide to help troubleshoot this?

 Thanks,
 Clinton

 Here's the Cluster section from nodeB's server.xml. It's nothing
special
 - I just uncommented the cluster tags and added the local network card
 address:

 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
   mcastBindAddr=192.168.3.31
 mcastAddr=228.0.0.4
 mcastPort=45564
 mcastFrequency=500
 mcastDropTime=3000/

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

 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

 Here's truncated logging from nodeB (192.168.3.31). Notice there is no
 mention of nodeA (192.168.3.30) even though it's up and running:

 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Cluster
 is about to start
  INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Cluster is about to start
  DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
 with class=org.apache.catalina.cluster.tcp.ReplicationValve
  DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
 with class=org.apache.catalina.cluster.tcp.ReplicationValve
  INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
 Default ClusterListener at cluster localhost
  INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Add
 Default ClusterListener at cluster localhost
  DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
 add ClusterListener
 [EMAIL PROTECTED] to
 [EMAIL PROTECTED]
  DEBUG Thread-1 org.apache.catalina.cluster.session.ClusterListener -
 add ClusterListener
 [EMAIL PROTECTED] to
 [EMAIL PROTECTED]
  DEBUG Thread-1 org.apache.catalina.cluster.tcp.ClusterReceiverBase -
 Starting replication listener on 

RE: Cluster member discovery

2006-03-26 Thread Parham, Clinton
Martin,

The install on nodeB is operation. I am able to open the default Tomcat
page, If you're seeing this page via a web browser, it means you've
setup Tomcat successfully.

Netstat lists the http(80), mcast(45564) and receiver (4001) ports.

Other ideas? This is very frustrating.

Thanks.
[Bill?? :) humor?]

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 26, 2006 7:37 PM
To: Tomcat Users List
Subject: Re: Cluster member discovery

Bill-

Make sure your tomcat install is operational
check whatever the default connector (catalina) port is configured to
via
netstat -a | grep CatalinaPort

if it isnt there then that Tomcat server never came up and you should
check 
the logs in %CATALINA_HOME%\logs for any exceptions or errors

Martin-
- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 26, 2006 3:06 PM
Subject: Re: Cluster member discovery


 did you try to remove the bind address?
 Filip


 Parham, Clinton wrote:
 Hello Tomcat Users!

 I'm trying to setup two node clustering (nodeA  nodeB) using the
 following: Windows 2003, Tomcat 5.5.16 (apache-tomcat-5.5.16.exe) and
 JDK1.5. For some inexplicable reason, I cannot get nodeB to discover
 nodeA. nodeA always discovers nodeB successfully.

 The two nodes are identical machines - purchased/configured at the
same
 time. Tomcat and JDK were installed to the same folders and use
 identical server.xml files except for bind address values. nodeA and
 nodeB have dual network cards - one public, one private. To try and
 figure out the problem, I turned logging on following these
 instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html
and
 added org.apache.catalina.cluster set to debug.
 In nodesA's (192.168.3.30) log, I see it find nodeB (192.168.3.31):

 INFO Cluster-MembershipReceiver
 org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member

added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.3.31:4
 001,catalina,192.168.3.31,4001, alive=35000]

 Further down in nodeA's log, I also see it send/receive pings from
 itself and also receive pings from nodeB.

 Now, in nodesB's log, the story is different. I don't see anything
about
 nodeA. What I do see a lot of is nodeB sending pings but never
receiving
 any - not even from itself. There are no errors or warnings in either
 log file.

 To confirm that multicast works between the nodes, I used the Windows
 2003 mcast.exe test utility and also ran the JGroups test:
 http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html. Both
were
 successful.

 Does anyone know what the problem is? What other information can I
 provide to help troubleshoot this?

 Thanks,
 Clinton

 Here's the Cluster section from nodeB's server.xml. It's nothing
special
 - I just uncommented the cluster tags and added the local network
card
 address:

 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
 mcastBindAddr=192.168.3.31
 mcastAddr=228.0.0.4
 mcastPort=45564
 mcastFrequency=500
 mcastDropTime=3000/

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

 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

 Here's truncated logging from nodeB (192.168.3.31). Notice there is
no
 mention of nodeA (192.168.3.30) even though it's up and running:

 INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
Cluster
 is about to start
  INFO Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Cluster is about to start
  DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
 with class=org.apache.catalina.cluster.tcp.ReplicationValve
  DEBUG Thread-1 org.apache.catalina.cluster.tcp.SimpleTcpCluster -
 Invoking addValve on StandardEngine[Catalina].StandardHost[localhost]
 with 

NoClassDefFoundError in SystemLogHandler during Bootstrap in binary version

2006-03-26 Thread Cody Caughlan
Tomcat version: 5.5.16
SuSE 10 OSS
JDK: 1.5.06
Classpath: /usr/local/apache-tomcat-5.5.16/bin:
/usr/local/apache-tomcat-5.5.16/server/lib:
/usr/local/apache-tomcat-5.5.16/common/lib:
/usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext


I get this error in catalina.out when I attempt to start Tomcat.

java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)



This subject has come up before on this list and people have suggested
adding TOMCAT_HOME/server/lib/tomcat-util.jar and
TOMCAT_HOME/common/lib to my CLASSPATH. Which I did. Same for
TOMCAT_HOME/bin which contains common-daemon.jar. As you can see above
my CLASSPATH contains all of the necessary references. I have also
placed commons-logging.jar in common/lib.

Any fresh ideas? Thanks!

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



InputBuffer and Posting Data

2006-03-26 Thread Vikram Goyal
Hi all,

 

I am trying to post some data via an applet to a JSP running on Tomcat
5.5.16. In my applet code, I am setting the following:

 

postConn.setRequestMethod(POST);

 

postConn.setRequestProperty(Content-Length, (buf.length) + );

 

postConn.setRequestProperty(Content-Type, application/octet-stream);

 

Now, on the server side, I am retrieving my actual data by using the
ServletInputStream gathered from request.getInputStream() method. The
connection also contains some query parameters, which I am retrieving on
the server side using request.getParameter().

 

Now, irrespective of the size of the data that I post, the
ServletInputStream is truncating the data to a size of 8K (for files
greater than that size, smaller files are the received correctly). I
understand, after going through the source code, that the Request class
uses the InputBuffer class for reading from this stream and the default
size of the buffer for this operation is 8K. However, I would have
expected this buffer to grow, if the data was larger than this default,
but this is not happening.

 

Is there a setting to increase this buffer automatically that I need to
set? Alternatively, is there a setting that I need to set that will set
the default to a larger value? I have searched and searched and cannot
find anything.

 

Thanks,

Vikram

 

 



IIS Isapi Redirector Not Working - 404 Error

2006-03-26 Thread EEstes

I am trying to get IIS 6.0 to redirect http requests to Tomcat 5.5 on port
8080.

I have downloaded and installed the isapi_redirect.msi from this link:
http://www.axint.net/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15
/

It created the jakarta virtual directory under the default web site in
IIS.  The ISAPI filter was added for the isapi_redirect.dll and is showing
the green arrow status.  I edited uriworkermap.properties and added the
relevant context to be redirected to Tomcat:
/auth/*=wlb

I have explicitly allowed the isapi_redirect.dll as a web service extension
in IIS.  I verified the registry entries created by the Isapi redirector,
and everything looks okay.  I also verified in Tomcat's server.xml that the
AJP 1.3 connector is set up (port 8009).

When I go directly to the 8080 URL, it works just fine:
http://localhost:8080/auth/Authorize

When I try to redirect from port 80, it fails:
http://localhost/auth/Authorize

I get a 404 error in the IIS log, indicating that the redirector is not
handling the requests:
2006-03-27 05:57:57 W3SVC1 127.0.0.1 GET /auth/Authorize - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 0 3

Any ideas ?


Thanks,
Eric


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



Re: WebDAV problem with CoyoteConnector? and javax.servlet.HttpServlet

2006-03-26 Thread Samuli Elomaa

Hi,

The servlet is mapped correctly and requesting doGet by through web  
browser works fine.
What do you mean by right signature? you mean the  
java.security.Signature? or just the code syntax?


Here's the code I use for my class which extends (the tomcat)  
WebDavServlet.


protected void doOptions(HttpServletRequest req, HttpServletResponse  
response)

throws ServletException, IOException {
super.doOptions(req, response);
System.out.println(DavTest.doOptions  + new Date());
response.addHeader(DAV, 1,2);
String options = OPTIONS, GET, HEAD, POST, DELETE, TRACE,  
PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK;

response.addHeader(Allow, options);
response.addHeader(MS-Author-Via, DAV);
}

Samuli

On 26.3.2006, at 23.00, Mark Thomas wrote:


Samuli Elomaa wrote:

Now, the problem is that instead of my servlet responding by using
doOptions, the doOptions is never called because tomcat  
(CoyoteConnector?)

answers before my servlet with answer like:


It isn't the CoyoteConnector.

It could be a couple of things.
Check that the OPTIONS request is for a URL mapped to your servlet.
Check your doOptions() method has the right signature.

Mark


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



sysdeo: whoa, wait a minute

2006-03-26 Thread Dola Woolfe
Hi,

I'm evaluating everyone's advice (thank you, by they
way!!!) concerning IDE's for jsp development and the
first thing I tried was sysdeo with eclipse (webtools
next, then netbeans).

Boy, am I getting a surprise. So I created a Tomcat
Project (right?) and pointed to the directory that
already has all of my jsp pages. Now I see the new
project and the list of the jsp files. So far so good.


But I'm not getting any help from the IDE! I need:
highlighting, indenting, and automatic building or
any kind of building, but I'm not getting any of
that!!! These are the only things that actually need 
from my IDE as (so far) I'm using ant to compile and
deploy.


Was I naive to expect to get these features? Or am I
missing something now?

Thanks in advance!

Dola

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



IIS Integrated Authentification and Tomcat

2006-03-26 Thread Benjamin Lerman
 Hi,

 I plan to use IIS as a front-end for a J2EE application running on
Tomcat.

 I plan to use IIS integrated authentification to do NTLM
authentification of users.

 I need to get the login of the authentificated user from my application.

 Is there any place where IIS puts this value ? Either a Header or
something like that ?

 Thanks.

Benjamin


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



Re: Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Leon Rosenberg
On 3/27/06, Per Johnsson [EMAIL PROTECTED] wrote:
 Hi!

 One good thing you could do is make sure you have the APR installed
 (Apache Portal Runtime) apr.apache.org.

Why???


 /Per Jonssons

Leon

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



Re: PHP Servlet Fails in Tomcat 5.5.15

2006-03-26 Thread Nikola Milutinovic

 *exception*
 
 java.io.IOException: null
 net.php.servlet.send(Native Method)
 net.php.servlet.service(servlet.java:207)
 net.php.servlet.service(servlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This exception is not only generic, but it is also missing the cause. It is
definitely generated in the JNI method, so you'd have to look in there.

 I then altered the servlet class to include some debugging info just
 prior to its invocation of the send method:
 
   send(request.getMethod(),
   request.getQueryString(),
   request.getRequestURI(),
   contextPath,
   request.getContentType(),
   request.getContentLength(),
   request.getRemoteUser(),
   display_source_mode
  );
 
 Here is the result:
 request.getMethod()   = GET
 request.getQueryString()= null 
 request.getRequestURI()= /test.php
 contextPath =
 /home/gsl/tomcat/apache-tomcat-5.5.15/webapps/ROOT/test.php
 request.getContentType()   = null
 request.getContentLength()= -1
 request.getRemoteUser()= null
 display_source_mode = false

This looks fine.

 The corresponding native method appears to be in servlet.c as:
 
 JNIEXPORT void JNICALL Java_net_php_servlet_send
 (JNIEnv *jenv, jobject self,
  jstring requestMethod, jstring queryString,
  jstring requestURI, jstring pathTranslated,
  jstring contentType, jint contentLength,
  jstring authUser, jboolean display_source_mode)
 
 I haven't written JNI code before, but I suspect that the first two
 args are just hidden info. that is typically passed to a native
 method, so I don't see a signature mismatch or anything else wrong here.

The error would have been much different, in case of a signature mismatch.

 Alternatively, does anyone have any further ideas on what I could do
 to debug this further?
 
 A few other individuals posted this null IOException on the net, but
 no resolution was provided. Being such a generic error, their problem
 might not even be related to what I am experiencing.

Well,...

As I have said above, the exception is thrown in the native method, so you
could go into the source of that method and see where it could throw an
exception. Other than that, you could try building a different version of PHP,
like 5.0 or 5.1 branch. Maybe they will fare better.

Nix.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Nikola Milutinovic
--- Leon Rosenberg [EMAIL PROTECTED] wrote:

 On 3/27/06, Per Johnsson [EMAIL PROTECTED] wrote:
  Hi!
 
  One good thing you could do is make sure you have the APR installed
  (Apache Portal Runtime) apr.apache.org.

APR = Apache Portable Runtime library

 Why???

Well, it can spead things up, making TC serve static pages faster.

Nix.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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